:root{
  --bg0:#0a0610;
  --bg1:#140816;
  --bg2:#1f0b25;
  --card:#12081a;
  --text:#f2ede7;
  --muted:#cbbfb6;
  --gold:#c8a24a;
  --gold2:#e0c77a;
  --purple:#3a1654;
  --purple2:#241033;
  --line:rgba(200,162,74,.55);
  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --radius:18px;
  --radius2:26px;
  --max:1120px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --font-serif: ui-serif, Georgia, "Times New Roman", Times, serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(58,22,84,.55), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(200,162,74,.18), transparent 55%),
    radial-gradient(900px 700px at 60% 85%, rgba(58,22,84,.40), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 30%, var(--bg0));
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
hr.sep{border:0;border-top:1px solid var(--line); margin:26px 0}
.small{font-size:.92rem;color:var(--muted)}
.justify p, .justify li{ text-align: justify; text-justify: inter-word; }

.topbar{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(180deg, rgba(10,6,16,.92), rgba(10,6,16,.66));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(200,162,74,.22);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px; min-width: 220px;
}
.brand img{width:44px;height:44px; border-radius:999px; border:1px solid rgba(200,162,74,.35); padding:4px; background:rgba(0,0,0,.25)}
.brand .name{display:flex; flex-direction:column; line-height:1.12}
.brand .name b{font-family:var(--font-serif); letter-spacing:.4px}
.brand .name span{font-size:.86rem; color:var(--muted)}
.menu{display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:flex-end}
.menu a{padding:10px 10px; border-radius:12px; border:1px solid transparent}
.menu a:hover{border-color:rgba(200,162,74,.35); background:rgba(200,162,74,.06)}
.menu .cta{
  padding:10px 14px;
  border:1px solid rgba(200,162,74,.60);
  background:linear-gradient(180deg, rgba(58,22,84,.72), rgba(36,16,51,.92));
  box-shadow:0 10px 26px rgba(0,0,0,.35);
}
.menu .cta:hover{background:linear-gradient(180deg, rgba(58,22,84,.88), rgba(36,16,51,.98))}
.burger{display:none; width:44px;height:44px; border-radius:12px; border:1px solid rgba(200,162,74,.35); background:rgba(0,0,0,.18)}
.burger span{display:block; width:20px; height:2px; background:var(--text); margin:5px auto; opacity:.9}

.hero{ padding:54px 0 32px; }
.hero-grid{ display:grid; grid-template-columns: 1.2fr .8fr; gap:26px; align-items:stretch; }
.card{
  background:linear-gradient(180deg, rgba(18,8,26,.78), rgba(18,8,26,.62));
  border:1px solid rgba(200,162,74,.22);
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-inner{padding:28px}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(200,162,74,.38);
  background:rgba(200,162,74,.08);
  color:var(--gold2);
  font-size:.86rem;
  letter-spacing:.3px;
}
h1{
  margin:16px 0 10px;
  font-family:var(--font-serif);
  font-size:2.25rem;
  letter-spacing:.4px;
}
.lead{font-size:1.06rem; color:var(--muted); line-height:1.7; max-width:62ch}
.actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 16px; border-radius:14px;
  border:1px solid rgba(200,162,74,.58);
  background:linear-gradient(180deg, rgba(58,22,84,.78), rgba(36,16,51,.96));
}
.btn.alt{
  border:1px solid rgba(200,162,74,.45);
  background:linear-gradient(180deg, rgba(200,162,74,.22), rgba(200,162,74,.08));
  color:var(--text);
}
.btn:hover{filter:brightness(1.06)}
.hero-aside{ display:flex; flex-direction:column; }
.aside-block{
  padding:26px;
  height:100%;
  background:
    radial-gradient(800px 400px at 30% 0%, rgba(58,22,84,.72), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.25));
  border-top:1px solid rgba(200,162,74,.18);
}
.aside-title{font-family:var(--font-serif); color:var(--gold2); font-size:1.2rem; margin:0 0 10px}
.aside-list{margin:0; padding-left:18px; color:var(--muted); line-height:1.7}
.aside-list li{margin:8px 0}

.section{padding:34px 0}
.section h2{
  margin:0 0 14px;
  font-family:var(--font-serif);
  color:var(--gold2);
  letter-spacing:.35px;
  font-size:1.55rem;
}
.grid3{display:grid; grid-template-columns:repeat(3, 1fr); gap:16px}
.grid2{display:grid; grid-template-columns:repeat(2, 1fr); gap:16px}
.tile{
  background:linear-gradient(180deg, rgba(18,8,26,.70), rgba(18,8,26,.56));
  border:1px solid rgba(200,162,74,.18);
  border-radius:var(--radius);
  padding:18px;
}
.tile b{color:var(--gold2); font-family:var(--font-serif)}
.tile p{margin:10px 0 0; color:var(--muted); line-height:1.7}

.footer{
  padding:30px 0 46px;
  border-top:1px solid rgba(200,162,74,.18);
  background:linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.35));
}
.footer .cols{display:grid; grid-template-columns: 1.3fr .7fr; gap:18px; align-items:start}
.footer a{color:var(--gold2)}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.badge{
  font-size:.86rem; color:var(--muted);
  padding:8px 10px; border-radius:999px;
  border:1px solid rgba(200,162,74,.22);
  background:rgba(0,0,0,.18);
}

.form{ display:grid; gap:12px; }
.input, textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(200,162,74,.22);
  background:rgba(0,0,0,.22);
  color:var(--text);
  font-family:var(--font-sans);
  outline:none;
}
textarea{min-height:140px; resize:vertical}
.input:focus, textarea:focus{border-color:rgba(200,162,74,.55)}
.note{ font-size:.9rem; color:var(--muted); line-height:1.6 }
.page-hero{ padding:34px 0 6px; }
.page-hero h1{font-size:1.9rem}
.breadcrumb{font-size:.9rem; color:rgba(242,237,231,.78)}
.breadcrumb a{color:var(--gold2)}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr;}
  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .brand{min-width:auto}
  .menu{display:none}
  .burger{display:block}
  .menu.open{
    display:flex;
    width:100%;
    padding:10px 0 16px;
    border-top:1px solid rgba(200,162,74,.18);
    justify-content:flex-start;
  }
  .nav{flex-wrap:wrap}
}


/* === UCH Global Overrides (uniform cosmic wine + readability) === */
body{
  background: #12060d !important;
}
/* keep cards readable; ensure sections do not introduce alternate backgrounds */
section, .page-hero, .hero, header.topbar, footer.footer{
  background: transparent !important;
}
/* make paragraph blocks consistent */
p, li{
  text-align: justify;
  text-justify: inter-word;
}
/* reduce ragged edges on very short lines */
p{ hyphens:auto; overflow-wrap: anywhere; }


/* --- Hero aside banner image (responsive) --- */
.aside-hero{
  width:100%;
  aspect-ratio: 3 / 1;
  height:auto;
  object-fit: cover;
  display:block;
  border-radius: 16px;
  border: 1px solid rgba(200,162,74,.22);
  box-shadow: 0 16px 44px rgba(0,0,0,.45);
  margin-bottom: 14px;
}

body{
  user-select:none;
  -webkit-user-select:none;
  -moz-user-select:none;
}

img{
  pointer-events:none;
}

.hero h1{
  font-size:1.9rem;
}

/* --- Marca institucional (título + subtítulo) --- */

.brand-fixed{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

.brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1;
}

.brand-title{
  margin:0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight:700;
  letter-spacing:.2px;
  color:#d4af37;
}

.brand-subtitle{
  margin-top:-1px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight:400;
  color:#d8d0c6;
}

/* --- TOPO --- */

header .brand-fixed .brand-title{
  font-size:16px;
}

header .brand-fixed .brand-subtitle{
  font-size:12px;
}

/* --- RODAPÉ --- */

footer .brand-fixed .brand-title{
  font-size:16px;
}

footer .brand-fixed .brand-subtitle{
  font-size:13px;
}

/* --- TAMANHO DO LOGO --- */

header .brand-fixed img{
  width:42px;
  height:42px;
}

footer .brand-fixed img{
  width:38px;
  height:38px;
}

@media (max-width: 980px){

  .menu.open{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    width:100% !important;
    gap:10px !important;
    padding:14px 0 18px !important;
    border-top:1px solid rgba(200,162,74,.18);
    margin-top:8px;
  }

  .menu.open a{
    display:block;
    width:100%;
    padding:14px 18px;
    border-radius:16px;
    border:1px solid rgba(200,162,74,.22);
    background:linear-gradient(180deg, rgba(18,8,26,.82), rgba(18,8,26,.62));
    text-align:left;
    box-shadow:0 8px 20px rgba(0,0,0,.18);
  }

  .menu.open a.cta{
    text-align:center;
    background:linear-gradient(180deg, rgba(58,22,84,.82), rgba(36,16,51,.96));
    border:1px solid rgba(200,162,74,.50);
  }
}

@media (max-width: 768px){

  .hero h1{
    font-size: clamp(22px, 5.5vw, 22px) !important;
    line-height: 1.1;
    text-align: justify;
    text-justify: inter-word;
  }

}
/* === AJUSTE GLOBAL DE RODAPÉ MOBILE === */
@media (max-width: 768px){
  .footer{
    padding:24px 0 34px !important;
  }

  .footer .container{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .footer .cols{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .footer .justify{
    width:100% !important;
    min-width:0 !important;
  }

  .footer .justify p,
  .footer .justify li,
  .footer .small{
    text-align:justify !important;
    text-justify:inter-word !important;
    line-height:1.7 !important;
  }

  .footer .brand-fixed{
    width:100% !important;
    align-items:center !important;
    gap:12px !important;
    margin-bottom:8px !important;
  }

  .footer .badges{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:10px !important;
    width:100% !important;
    margin-top:14px !important;
  }

  .footer .badge{
    display:flex !important;
    width:100% !important;
    min-height:48px !important;
    padding:14px 16px !important;
    border-radius:16px !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    white-space:normal !important;
    line-height:1.4 !important;
  }

  .footer hr.sep{
    margin:20px 0 !important;
  }
}

@media (max-width: 768px){
  .page-hero h1{
    font-size: 15px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    letter-spacing: -0.4px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px){

  /* textos de leitura das páginas internas */
  .panel p,
  .panel li,
  .section p,
  .section li{
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* títulos internos (h2, h3) */
  .panel h2,
  .panel h3,
  .section h2,
  .section h3{
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

}
/* === FINAL GLOBAL MOBILE STANDARDIZATION === */
:root{
  --reading:#ddd4ca;
}

/* global text color unification across all pages */
p,
li,
.small,
.lead,
.note,
.tile p,
.aside-list,
.brand-subtitle,
.breadcrumb,
.footer .small,
.footer .justify p,
.footer .justify li{
  color:var(--reading) !important;
}

/* justified reading blocks everywhere they appear */
.section p,
.section li,
.tile p,
.tile li,
.page-hero p,
.page-hero li,
.footer p,
.footer li,
.aside-block p,
.aside-block li{
  text-align:justify !important;
  text-justify:inter-word !important;
}

/* consistent desktop reading hierarchy without affecting titles */
.section p,
.section li,
.tile p,
.tile li,
.page-hero p,
.page-hero li,
.footer p,
.footer li,
.aside-block p,
.aside-block li{
  line-height:1.7 !important;
}

@media (max-width: 768px){
  /* tighter horizontal space to help titles and buttons fit */
  .container{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  /* all internal page titles in one line */
  .page-hero h1{
    font-size:14px !important;
    line-height:1.05 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    letter-spacing:-0.4px !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    hyphens:none !important;
    max-width:100% !important;
    display:block !important;
    margin-bottom:12px !important;
  }

  /* section titles and tile labels unified */
  .section h2,
  .tile b,
  .aside-title{
    font-size:16px !important;
    line-height:1.25 !important;
  }

  .section h2{
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* single mobile reading standard for all reading text */
  .section p,
  .section li,
  .tile p,
  .tile li,
  .page-hero p,
  .page-hero li,
  .footer p,
  .footer li,
  .aside-block p,
  .aside-block li,
  .small,
  .lead,
  .note,
  .breadcrumb{
    font-size:14px !important;
    line-height:1.65 !important;
    color:var(--reading) !important;
  }

  /* all action buttons full width on mobile */
  .actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:12px !important;
    width:100% !important;
  }

  .actions .btn,
  .actions .btn.alt,
  a.btn,
  a.btn.alt,
  .badge,
  a.badge,
  .menu.open a,
  .menu.open a.cta{
    display:flex !important;
    width:100% !important;
    min-height:50px !important;
    padding:14px 16px !important;
    align-items:center !important;
    justify-content:center !important;
    text-align:center !important;
    white-space:normal !important;
    line-height:1.35 !important;
    border-radius:16px !important;
  }

  /* footer standardized as one vertical reading flow */
  .footer .cols{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .footer .justify,
  .footer .justify *{
    min-width:0 !important;
  }

  .footer .badges{
    flex-direction:column !important;
    align-items:stretch !important;
    width:100% !important;
  }

  /* footer and cards breathing room */
  .tile,
  .card-inner,
  .aside-block{
    padding:20px !important;
  }
}

body::after{
  content: "ICH • USO RESTRITO";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: max-content;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  color: rgba(212,175,55,0.18);
  text-shadow: 0 0 2px rgba(0,0,0,0.25);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2147483647;
}

html, body {
  margin: 0;
  padding: 0;
  background: #12030a !important; /* use o tom mais escuro real do site */
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

#app, main, .site-wrap, .page, .page-wrap {
  background: transparent;
}

html {
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #1a060c 0%, #12030a 100%);
  z-index: -1;
  pointer-events: none;
}

/* === CAPA TOPO INDEX === */
.top-cover{
  width:100%;
  margin:0;
  padding:0;
}

.top-cover img{
  display:block;
  width:100%;
  height:auto;
  max-width:none;
}
