/* ============================================================
   CISV Brasil — folha principal
   CSS puro, sem framework. Zero !important (o site atual tem 70).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-600);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.02em;
}
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.12; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
h4 { font-size: var(--fs-h4); font-weight: 600; line-height: 1.35; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-500); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-600); }

img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

/* ---------- utilitarios de layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.measure { max-width: var(--measure); }
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--sunk { background: var(--surface-2); }
.section--blue { background: var(--azul-solido); }
.stack > * + * { margin-top: var(--sp-4); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--azul-solido-2); color: #fff; padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-display); font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- eyebrow / titulos de secao ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin: 0 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-3);
}
.eyebrow::after { content: ""; height: 2px; flex: 1; max-width: 90px; background: linear-gradient(90deg, var(--orange-500), transparent); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { content: ""; height: 2px; flex: 1; max-width: 90px; background: linear-gradient(270deg, var(--orange-500), transparent); }

.section-head { margin-bottom: var(--sp-6); }
.section-head p { color: var(--ink-400); font-size: var(--fs-lead); max-width: 60ch; margin-top: var(--sp-3); }

/* ============================================================
   BOTOES
   Regra de contraste do manual: texto branco sobre #FF671F da
   2,93:1 e reprova em WCAG. Só duas combinacoes sao validas.
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small);
  padding: .72rem 1.35rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  line-height: 1.3; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange-500); color: #231000; }
.btn--primary:hover { background: var(--orange-700); color: #fff; }

.btn--secondary { border-color: var(--blue-500); color: var(--blue-500); background: transparent; }
.btn--secondary:hover { background: var(--azul-solido-2); color: #fff; }

.btn--ghost { color: var(--ink-600); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--ink-900); border-color: var(--ink-400); }

.btn--on-dark { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--azul-solido); border-color: #fff; }

.btn--sm { padding: .5rem 1rem; font-size: var(--fs-tiny); }
.btn--block { width: 100%; }

/* ============================================================
   CABECALHO
   ============================================================ */
.topbar {
  background: var(--azul-solido);
  color: #fff;
  font-size: var(--fs-tiny);
}
.topbar .container { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-4); min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #D6E6F5; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .sep { color: rgba(255,255,255,.3); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { font-family: var(--font-display); line-height: 1.1; }
.brand-text b { display: block; font-size: 1.16rem; font-weight: 800; color: var(--blue-500); letter-spacing: -.02em; }
.brand-text span { display: block; font-size: .72rem; color: var(--orange-700); font-weight: 600; letter-spacing: .005em; }

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav a, .nav .navbtn {
  display: block; padding: .55rem .7rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: .925rem;
  color: var(--ink-700); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display);
}
.nav a:hover, .nav .navbtn:hover { background: var(--blue-050); color: var(--blue-500); }
.nav a[aria-current="page"] { color: var(--blue-500); box-shadow: inset 0 -2px 0 var(--orange-500); }

.has-menu { position: relative; }
.navbtn::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.has-menu[data-open="true"] .navbtn::after { transform: rotate(-135deg) translateY(-2px); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--sp-2); list-style: none; margin: 0;
  display: none;
}
.has-menu[data-open="true"] .submenu { display: block; }
.submenu a { padding: .5rem .7rem; font-weight: 500; font-family: var(--font-body); font-size: var(--fs-small); }
.submenu a b { font-family: var(--font-display); font-weight: 700; display: block; font-size: .92rem; color: var(--ink-900); }
.submenu a:hover b { color: var(--blue-500); }
.submenu a em { font-style: normal; color: var(--ink-400); font-size: var(--fs-tiny); }

.header-cta { display: flex; align-items: center; gap: var(--sp-2); flex: none; }

.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer;
  margin-left: auto;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink-700); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink-700); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); padding: var(--sp-4) 0 var(--sp-5);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding-inline: clamp(1rem, 4vw, 2.5rem); }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav .navbtn { padding: .85rem .25rem; width: 100%; text-align: left; font-size: 1.02rem; }
  .submenu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 var(--sp-3) var(--sp-4); min-width: 0; }
  .navbtn::after { float: right; margin-top: .45em; }
  .header-cta .btn--secondary { display: none; }
}

/* ============================================================
   FAIXA DE CICLO — nunca fica vazia, tem tres estados escritos
   ============================================================ */
.cycle {
  background: var(--orange-050);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.cycle .container { display: flex; align-items: center; gap: var(--sp-3); min-height: 46px; flex-wrap: wrap; }
.cycle-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); flex: none; }
.cycle b { font-family: var(--font-display); color: var(--ink-900); }
.cycle a { font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--azul-solido);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 78% 15%, rgba(0,114,206,.55), transparent 62%),
    radial-gradient(ellipse 65% 55% at 10% 92%, rgba(255,103,31,.24), transparent 60%),
    var(--azul-solido);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='68' height='68' viewBox='0 0 68 68'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Ccircle cx='34' cy='16' r='6'/%3E%3Cpath d='M22 44c0-7 5.4-12 12-12s12 5 12 12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 68px 68px;
}
.hero .container {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { color: #fff; font-size: var(--fs-display); letter-spacing: -.032em; }
.hero h1 em { font-style: normal; color: var(--edu-diversidade); }
.hero-lede { font-size: var(--fs-lead); color: rgba(255,255,255,.9); max-width: 46ch; margin-top: var(--sp-4); }
.hero-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-6); }
.hero-trust { margin-top: var(--sp-6); display: flex; gap: var(--sp-5); flex-wrap: wrap; font-size: var(--fs-small); color: rgba(255,255,255,.8); }
.hero-trust b { font-family: var(--font-display); color: #fff; display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }

.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-figure figcaption {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4); right: var(--sp-4);
  background: rgba(16,23,32,.78); backdrop-filter: blur(6px);
  color: #fff; font-size: var(--fs-tiny); padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm); line-height: 1.5;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: minmax(0,1fr); }
  .hero-figure { order: -1; }
}

/* ============================================================
   CAMINHOS POR INTENCAO
   ============================================================ */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: var(--sp-4); }
.path {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s;
  border-top: 4px solid var(--accent, var(--blue-500));
}
.path:hover { border-color: var(--line-2); border-top-color: var(--accent, var(--blue-500)); box-shadow: var(--shadow); transform: translateY(-2px); }
.path h3 { margin-bottom: var(--sp-2); }
.path p { color: var(--ink-600); font-size: var(--fs-small); margin: 0; }
.path .go { display: inline-flex; align-items: center; gap: .4em; margin-top: var(--sp-4); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--accent, var(--blue-500)); }
.path .go::after { content: "→"; transition: transform .15s; }
.path:hover .go::after { transform: translateX(3px); }

/* ============================================================
   SELETOR DE IDADE + GRADE DE PROGRAMAS
   ============================================================ */
.agebar { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-5); }
.agebar-label { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); margin-right: var(--sp-2); }
.chip {
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small);
  padding: .48rem 1rem; border-radius: 99px; border: 1.5px solid var(--line-2);
  background: var(--surface); color: var(--ink-600); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--blue-500); color: var(--blue-500); }
.chip[aria-pressed="true"] { background: var(--azul-solido-2); border-color: var(--azul-solido-2); color: #fff; }

.programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: var(--sp-4); }
.program {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.program:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.program[hidden] { display: none; }
.program-media { position: relative; aspect-ratio: 16/10; background: var(--blue-100); overflow: hidden; }
.program-media img { width: 100%; height: 100%; object-fit: cover; }
.program-age {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: var(--surface); color: var(--ink-900); font-family: var(--font-display);
  font-weight: 800; font-size: var(--fs-tiny); padding: .3rem .7rem; border-radius: 99px;
  box-shadow: var(--shadow-sm);
}
.program-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.program-body h3 { margin-bottom: var(--sp-2); }
.program-body p { font-size: var(--fs-small); color: var(--ink-600); margin-bottom: var(--sp-4); }
.program-meta { margin-top: auto; display: flex; gap: var(--sp-4); font-size: var(--fs-tiny); color: var(--ink-400); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.program-meta b { display: block; color: var(--ink-700); font-family: var(--font-display); font-size: var(--fs-small); }
.empty-state { padding: var(--sp-6); text-align: center; color: var(--ink-400); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ============================================================
   PROTECAO A CRIANCA — bloco de home, nao nota de rodape
   ============================================================ */
.safeguard { background: var(--azul-solido); color: #fff; }
.safeguard .container { display: grid; grid-template-columns: auto minmax(0,1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: clamp(2.5rem, 5vw, 4rem); }
.safeguard-icon { width: 66px; height: 66px; flex: none; }
.safeguard h2 { color: #fff; }
.safeguard p { color: rgba(255,255,255,.88); max-width: 62ch; }
.safeguard a { color: #fff; font-weight: 600; }
.safeguard .btn { margin-top: var(--sp-4); }
@media (max-width: 700px) { .safeguard .container { grid-template-columns: minmax(0,1fr); } }

/* ============================================================
   NUMEROS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-4); }
.stat { text-align: center; padding: var(--sp-4); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem); color: var(--blue-500); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat span { display: block; margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--ink-400); line-height: 1.4; }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-5); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.quote blockquote { margin: 0 0 var(--sp-4); font-family: var(--font-quote); font-size: 1.13rem; line-height: 1.55; color: var(--ink-900); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-small); }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-100); color: var(--blue-500); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.quote figcaption b { display: block; color: var(--ink-900); font-family: var(--font-display); }
.quote figcaption span { color: var(--ink-400); font-size: var(--fs-tiny); }

/* ============================================================
   HISTORIAS
   ============================================================ */
.stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: var(--sp-4); }
.story {
  display: flex; flex-direction: column; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}
.story:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.story img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.story-body { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.story-body h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.story-body p { font-size: var(--fs-tiny); color: var(--ink-400); margin: 0; }

/* ============================================================
   PAGINAS INTERNAS
   ============================================================ */
.page-head { background: var(--surface-2); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 4vw, 3rem); }
.page-head h1 { max-width: 22ch; }
.page-head .lede { font-size: var(--fs-lead); color: var(--ink-400); max-width: 60ch; margin-top: var(--sp-4); }

.breadcrumbs { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; font-size: var(--fs-tiny); color: var(--ink-400); }
.breadcrumbs li::after { content: "/"; margin-left: .45rem; color: var(--line-2); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--ink-400); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-500); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink-700); font-weight: 600; }

.prose { max-width: var(--measure); }
.prose h2 { margin: var(--sp-7) 0 var(--sp-3); }
.prose h3 { margin: var(--sp-6) 0 var(--sp-2); }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; margin: 0 0 var(--sp-4); }
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--blue-500); }
.prose strong { color: var(--ink-900); font-weight: 700; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .layout-aside { grid-template-columns: minmax(0,1fr); } }

.factbox { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + 1rem); }
.factbox h3 { font-size: 1.02rem; margin-bottom: var(--sp-4); }
.factbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-small); }
.factbox dt { color: var(--ink-400); }
.factbox dd { margin: 0; color: var(--ink-900); font-weight: 600; text-align: right; }
.factbox .btn { margin-top: var(--sp-5); }
.factbox .btn + .btn { margin-top: var(--sp-2); }

/* Fim de pagina: nenhuma pagina e beco sem saida */
.next-step { background: var(--blue-050); border: 1px solid var(--blue-300); border-radius: var(--radius); padding: var(--sp-5) var(--sp-6); margin-top: var(--sp-7); }
.next-step h3 { margin-bottom: var(--sp-2); }
.next-step p { font-size: var(--fs-small); color: var(--ink-600); }
.next-step .actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }

/* ---------- acordeao (FAQ) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; padding: var(--sp-4) var(--sp-5); font-family: var(--font-display);
  font-weight: 600; color: var(--ink-900); list-style: none; display: flex;
  align-items: flex-start; gap: var(--sp-3); font-size: 1.02rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before {
  content: ""; flex: none; width: .55em; height: .55em; margin-top: .42em;
  border-right: 2px solid var(--blue-500); border-bottom: 2px solid var(--blue-500);
  transform: rotate(-45deg); transition: transform .18s;
}
.accordion details[open] summary::before { transform: rotate(45deg); }
.accordion summary:hover { background: var(--surface-2); }
.accordion .answer { padding: 0 var(--sp-5) var(--sp-5) calc(var(--sp-5) + 1.15em); font-size: var(--fs-small); }
.accordion .answer p:last-child { margin-bottom: 0; }

/* ---------- localizador de chapters ---------- */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-4); }
.chapter {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
}
.chapter[hidden] { display: none; }
.chapter h3 { font-size: 1.08rem; margin-bottom: var(--sp-1); }
.chapter .uf { font-size: var(--fs-tiny); color: var(--ink-400); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-display); font-weight: 700; }
.chapter dl { margin: var(--sp-4) 0 0; font-size: var(--fs-small); }
.chapter dt { color: var(--ink-400); font-size: var(--fs-tiny); }
.chapter dd { margin: 0 0 var(--sp-3); }
.chapter dd a { word-break: break-word; }

.searchbox { position: relative; margin-bottom: var(--sp-5); max-width: 420px; }
.searchbox input { width: 100%; }

/* ---------- formularios ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-small); color: var(--ink-900); }
.field label .req { color: var(--edu-conflito); }
.field .hint { font-size: var(--fs-tiny); color: var(--ink-400); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], select, textarea {
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--ink-900);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .65rem .85rem; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-300); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100); }
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236E7E8D' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
::placeholder { color: var(--ink-300); }

.form-note { font-size: var(--fs-tiny); color: var(--ink-400); margin-top: var(--sp-4); }

/* ============================================================
   RODAPE
   ============================================================ */
.site-footer { background: var(--azul-solido); color: #fff; margin-top: var(--sp-8); }
.site-footer a { color: #D6E6F5; text-decoration: none; }   /* 6,7:1 — #B9D9EB reprovaria */
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-6); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-col h4 { color: #fff; font-size: var(--fs-tiny); text-transform: uppercase; letter-spacing: .09em; margin-bottom: var(--sp-4); font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-small); }

.footer-safeguard { border-top: 1px solid rgba(255,255,255,.16); padding-block: var(--sp-5); font-size: var(--fs-small); color: rgba(255,255,255,.85); display: flex; gap: var(--sp-4); align-items: flex-start; flex-wrap: wrap; }
.footer-safeguard b { font-family: var(--font-display); color: #fff; }

.footer-legal { border-top: 1px solid rgba(255,255,255,.16); padding-block: var(--sp-5); font-size: var(--fs-tiny); color: rgba(255,255,255,.72); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.socials { display: flex; gap: var(--sp-3); }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.socials a:hover { background: #fff; }
.socials a:hover svg { fill: var(--azul-solido); }
.socials svg { width: 17px; height: 17px; fill: #fff; }

/* ---------- banner de consentimento (Aceitar / Recusar / Gerenciar) ---------- */
.consent {
  position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 200;
  max-width: 620px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--sp-5);
}
.consent[hidden] { display: none; }
.consent h3 { font-size: 1.02rem; margin-bottom: var(--sp-2); }
.consent p { font-size: var(--fs-small); margin-bottom: var(--sp-4); }
.consent .actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------- aviso de prototipo ---------- */
.proto {
  background: var(--ink-900); color: #fff; font-size: var(--fs-tiny); text-align: center;
  padding: .45rem 1rem; line-height: 1.45;
}
.proto b { color: var(--edu-diversidade); font-family: var(--font-display); }
.proto a { color: #fff; }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); min-width: 520px; }
th { text-align: left; font-family: var(--font-display); font-size: var(--fs-tiny); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); padding: var(--sp-3) var(--sp-4); background: var(--surface-2); border-bottom: 1.5px solid var(--line-2); }
td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ============================================================
   SELETOR DE IDADE DO HERO
   Ocupa o lugar onde normalmente iria a foto. Enquanto nao ha
   fotografia propria, o espaco nobre faz trabalho de verdade:
   responde a primeira pergunta que todo pai faz.
   ============================================================ */
.agepicker {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}
.agepicker-title { font-size: 1.3rem; font-weight: 700; color: var(--ink-900); }
.agepicker-sub { font-size: var(--fs-small); color: var(--ink-400); margin: var(--sp-2) 0 var(--sp-5); }
.agepicker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.agepicker-btn {
  display: grid; place-items: center; text-align: center; text-decoration: none;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-2); min-height: 74px;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.agepicker-btn b {
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  color: var(--ink-900); line-height: 1.2;
}
.agepicker-btn:hover {
  border-color: var(--blue-500); background: var(--blue-050); transform: translateY(-2px);
}
.agepicker-btn:hover b { color: var(--blue-500); }
.agepicker-note { font-size: var(--fs-tiny); color: var(--ink-400); margin: var(--sp-5) 0 0; text-align: center; }

@media (max-width: 420px) {
  .agepicker-grid { grid-template-columns: repeat(2, 1fr); }
}
