/* ==========================================================================
   Colégio Neuza Dutra - sistema visual
   "Acompanhamos cada fase. Preparamos para o futuro."

   Azul institucional + magenta proprietário (o magenta tem lastro histórico
   nos materiais da marca). Proporção de uso: 65-70% branco/off-white,
   20-25% azul, 5-10% magenta.
   ========================================================================== */

:root {
  /* ---- Azul: cor institucional ---- */
  --azul: #066cba;              /* primary  */
  --azul-escuro: #084b82;       /* primary dark - rodapé, hover, faixas premium */
  --azul-claro: #2488d6;        /* secundário */
  --azul-light: #eaf5fc;        /* superfícies e cards */

  /* ---- Magenta: acento proprietário ---- */
  --magenta: #ab0e7e;           /* accent   */
  --magenta-escuro: #850961;    /* hover    */
  --magenta-light: #f9eaf4;     /* fundos de tag e card */
  --magenta-tint: #f59ed2;      /* único uso: acento sobre fundo azul escuro (AA) */

  /* ---- Neutros ---- */
  --ink: #17212b;               /* texto principal e títulos */
  --muted: #64717d;             /* texto secundário */
  --faint: #69727f;             /* rótulos e legendas - passa AA sobre branco */
  --line: #e3e8ee;
  --line-soft: #eef1f5;
  --branco: #ffffff;
  --offwhite: #f7f9fb;          /* surface */

  /* ---- Etapas: auxiliares, derivadas de azul + magenta ---- */
  --infantil: #ab0e7e;   --infantil-ink: #850961;  --infantil-tint: #f9eaf4;
  --fund1: #2488d6;      --fund1-ink: #1b6baa;     --fund1-tint: #eaf5fc;   /* = --azul-claro */
  --fund2: #066cba;      --fund2-ink: #05548f;     --fund2-tint: #e6f1fb;
  --medio: #084b82;      --medio-ink: #084b82;     --medio-tint: #e7eef6;

  --display: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --texto: "Source Sans 3", -apple-system, "Segoe UI", system-ui, sans-serif;

  --h1: clamp(2.05rem, 1.4rem + 2.6vw, 3.25rem);
  --h2: clamp(1.55rem, 1.28rem + 1.15vw, 2.2rem);

  --wrap: 1180px;
  --pad: clamp(1.25rem, 5vw, 2rem);
  --gap: clamp(1.25rem, 2.6vw, 2rem);
  --section: clamp(3.5rem, 6.5vw, 6rem);

  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(23, 33, 43, .04), 0 8px 24px rgba(23, 33, 43, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--ink);
}
h1 { font-size: var(--h1); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: var(--h2); letter-spacing: -0.026em; }
h3 { font-size: 1.125rem; letter-spacing: -0.014em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--azul); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

/* ---------- Estrutura ---------- */
.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section--alt { background: var(--offwhite); }
.section--azul { background: var(--azul); }
.section--azul-escuro { background: var(--azul-escuro); }
.section--azul-escuro h2, .section--azul-escuro h3 { color: #fff; }
.section--azul-escuro p { color: rgba(255, 255, 255, .82); }
.section--azul-escuro .label { color: var(--magenta-tint); }
.section--azul-escuro .label::before { background: var(--magenta-tint); }
.section--azul h2, .section--azul h3 { color: #fff; }
.section--azul p { color: rgba(255, 255, 255, .8); }

/* Marca-d'água: chevron derivado do símbolo do "N" */
.label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: .75rem;
}
.label::before {
  content: "";
  width: 14px; height: 10px;
  flex-shrink: 0;
  background: var(--magenta);
  clip-path: polygon(0 100%, 0 22%, 50% 55%, 100% 22%, 100% 100%);
}
/* Sobre o azul claro o magenta-tint não alcança 3:1 - usa branco */
.section--azul .label { color: #fff; }
.section--azul .label::before { background: #fff; }

.intro { max-width: 46rem; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.intro p { color: var(--muted); }
.section--azul .intro p { color: rgba(255, 255, 255, .8); }

.head-row {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: end; justify-content: space-between;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}
.head-row .intro { margin-bottom: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .82rem 1.5rem;
  border: 1.5px solid var(--azul);
  border-radius: 100px;
  background: var(--azul);
  color: #fff;
  font-family: var(--display);
  font-size: .9375rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--azul-escuro); border-color: var(--azul-escuro); }

/* Acento magenta: branco por cima passa AA (6,78:1) */
/* Acento magenta: texto branco passa AA (contraste ~6,5:1) */
.btn--magenta { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn--magenta:hover { background: var(--magenta-escuro); border-color: var(--magenta-escuro); color: #fff; }

.btn--outline { background: transparent; color: var(--azul); border-color: #cdd4d2; }
.btn--outline:hover { background: transparent; border-color: var(--azul); }
.btn--claro { background: #fff; border-color: #fff; color: var(--azul); }
.btn--claro:hover { background: rgba(255,255,255,.88); border-color: rgba(255,255,255,.88); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.link {
  display: inline-flex; align-items: center; gap: .375rem;
  font-family: var(--display);
  font-size: .9375rem; font-weight: 600;
  text-decoration: none;
}
.link:hover { text-decoration: underline; }
.link svg { transition: transform .15s ease; }
.link:hover svg { transform: translateX(2px); }

/* ---------- Barra utilitária ---------- */
.utility { background: var(--azul-escuro); color: rgba(255, 255, 255, .78); font-size: .875rem; }
.utility__in {
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
  align-items: center; justify-content: flex-end;
  min-height: 40px; padding: .3rem 0;
}
.utility a, .utility button {
  color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--texto); font-size: inherit;
  line-height: 1;
}
.utility a:hover, .utility button:hover { color: #fff; }
.utility svg { width: 15px; height: 15px; }
.utility__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .22); }
.utility__fam { font-weight: 600; color: #fff; }
/* Ícone dimensionado pela altura de caixa-alta do texto, não pela caixa da linha,
   e alinhado ao centro óptico das maiúsculas (baseline y96 / topo y60). */
.utility__fam .ico-familia { width: 16px; height: 16px; margin-top: -1px; }
/* só a seta gira - o ícone de família fica parado */
.utility__fam .chev { width: 12px; height: 12px; transition: transform .2s ease; }
.utility__fam[aria-expanded="true"] .chev { transform: rotate(180deg); }

.utility__redes { display: inline-flex; align-items: center; gap: .875rem; }
.utility__redes a { padding: .2rem; line-height: 0; }
.utility__redes svg { width: 17px; height: 17px; }
/* Sempre à direita, alinhado com as ferramentas do header */
@media (max-width: 660px) {
  .utility__in { gap: .25rem .875rem; }
  .utility__sep { display: none; }
}

/* Painel Área da Família */
.familia {
  display: none;
  background: #063a66;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.familia.open { display: block; }
.familia__in { padding: 1.5rem 0 1.75rem; }
.familia h4 {
  color: rgba(255, 255, 255, .55);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.familia ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: .625rem; }
@media (max-width: 860px) { .familia ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .familia ul { grid-template-columns: 1fr; } }
.familia a {
  display: flex; align-items: center; gap: .625rem;
  padding: .7rem .875rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r);
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  font-size: .9375rem;
  transition: background .15s ease, border-color .15s ease;
}
.familia a:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .34); }
.familia a svg { width: 17px; height: 17px; flex-shrink: 0; color: #fff; }
.familia a small { display: block; font-size: .75rem; color: rgba(255, 255, 255, .45); }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 1.25rem; min-height: 100px; }

/* Área de proteção da logo - a marca é o bloco quadrado inteiro, sem texto ao lado */
.brand {
  display: block; flex-shrink: 0;
  width: 80px; height: 80px;
  padding: 0; line-height: 0;
}
.brand img { width: 100%; height: 100%; object-fit: contain; }

.header__tools { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; margin-left: auto; }
.header .btn { padding: .62rem 1.25rem; font-size: .875rem; }

/* Botão ícone (busca / menu) */
.icon-btn {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; color: var(--azul); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--azul); background: var(--offwhite); }
.icon-btn svg { width: 20px; height: 20px; }

/* Ordem: logo … busca · CTA · hambúrguer (o hambúrguer é sempre o último) */
.burger { display: grid; position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px; transform: translateX(-50%);
  transition: transform .22s ease, opacity .18s ease, top .22s ease;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { content: ""; top: -6px; }
.burger span::after { content: ""; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 1200px) {
  .header__in { min-height: 86px; }
  .brand { width: 68px; height: 68px; }
}
/* No mobile o CTA sai do header e vai para a barra fixa inferior */
@media (max-width: 760px) {
  .header__in { min-height: 78px; gap: .5rem; }
  .brand { width: 60px; height: 60px; }
  .header__tools { gap: .375rem; }
  .header .btn { padding: .55rem .85rem; font-size: .8125rem; }
  .icon-btn { width: 40px; height: 40px; }
}

/* O rótulo do CTA nunca encurta - o resto do header é que cede espaço */
.header .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .header__in { gap: .3rem; }
  .header__tools { gap: .25rem; }
  .brand { width: 48px; height: 48px; }
  .header .btn { padding: .5rem .7rem; font-size: .78125rem; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 18px; height: 18px; }
}
@media (max-width: 380px) {
  .brand { width: 42px; height: 42px; }
  .header .btn { padding: .48rem .62rem; font-size: .75rem; }
  .icon-btn { width: 33px; height: 33px; }
  .icon-btn svg { width: 17px; height: 17px; }
}
/* 320px: última compressão para o rótulo completo caber sem quebrar */
@media (max-width: 345px) {
  .header__in { gap: .25rem; }
  .header__tools { gap: .2rem; }
  .brand { width: 38px; height: 38px; }
  .header .btn { padding: .45rem .55rem; font-size: .71875rem; }
  .icon-btn { width: 30px; height: 30px; }
  .icon-btn svg { width: 16px; height: 16px; }
}

/* ---------- Gaveta (menu deslizante pela esquerda) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(16, 42, 78, .45);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 71;
  width: min(390px, 88vw);
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 6px 0 30px rgba(16, 42, 78, .18);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }

.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.drawer__top .brand { width: 60px; height: 60px; }

.drawer__body { padding: 1rem 1.25rem 1.5rem; }
.drawer h4 {
  font-family: var(--display); font-size: .75rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--faint);
  margin: 1.5rem 0 .5rem;
}
.drawer__body > h4:first-child { margin-top: 0; }

.drawer__nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  color: var(--azul); text-decoration: none;
}
.drawer__nav a:hover { color: var(--azul); }
.drawer__nav i {
  width: 4px; height: 22px; border-radius: 3px;
  background: var(--seg, var(--line)); flex-shrink: 0;
}
.drawer__nav a span { margin-left: auto; font-family: var(--texto); font-size: .8125rem; font-weight: 400; color: var(--faint); }

.drawer__links { display: grid; gap: .125rem; }
.drawer__links a {
  display: flex; align-items: center; gap: .625rem;
  padding: .6rem .25rem; font-size: .9375rem;
  color: var(--muted); text-decoration: none;
}
.drawer__links a:hover { color: var(--azul); }
.drawer__links svg { width: 17px; height: 17px; color: var(--magenta); flex-shrink: 0; }
.drawer h4 { color: var(--faint); }
.drawer__links small { color: var(--faint); font-size: .8125rem; }

.drawer__foot { margin-top: 1.5rem; display: grid; gap: .625rem; }
.drawer__foot .btn { justify-content: center; }
.drawer__contato { margin-top: 1.25rem; font-size: .875rem; color: var(--muted); }
.drawer__contato a { color: var(--azul); text-decoration: none; display: block; padding: .15rem 0; }

/* ---------- Busca: painel que desce abaixo do header ---------- */
.busca {
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  background: var(--offwhite);
  transition: grid-template-rows .26s cubic-bezier(.4, 0, .2, 1), border-color .26s ease;
}
.busca.open { grid-template-rows: 1fr; border-top-color: var(--line); }
.busca__wrap { overflow: hidden; min-height: 0; }
.busca__in { padding: 1rem 0 1.25rem; }
@media (prefers-reduced-motion: reduce) { .busca { transition: none; } }

.busca__campo {
  display: flex; align-items: center; gap: .75rem;
  background: #fff; border: 1.5px solid var(--azul);
  border-radius: 100px; padding: .5rem .75rem .5rem 1.125rem;
  box-shadow: 0 2px 10px rgba(6, 108, 186, .1);
}
.busca__campo > svg { width: 20px; height: 20px; color: var(--azul); flex-shrink: 0; }
.busca__campo input {
  flex: 1; border: 0; outline: none; background: none;
  font: inherit; font-size: 1rem; color: var(--ink); min-width: 0; padding: .25rem 0;
}
.busca__campo input::placeholder { color: var(--faint); }
.busca__limpar {
  border: 0; background: none; cursor: pointer; color: var(--faint);
  display: none; padding: .25rem; line-height: 0;
}
.busca__limpar svg { width: 17px; height: 17px; }
.busca__limpar:hover { color: var(--ink); }
.busca.tem-texto .busca__limpar { display: block; }
.busca__fechar {
  flex-shrink: 0; border: 0; cursor: pointer;
  background: var(--azul); color: #fff;
  border-radius: 100px; padding: .45rem 1rem;
  font-family: var(--display); font-size: .8125rem; font-weight: 700;
}
.busca__fechar:hover { background: var(--azul-escuro); }

.busca__sugestoes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .875rem; align-items: center; }
.busca__sugestoes span { font-size: .8125rem; color: var(--faint); }
.busca__sugestoes button {
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 100px; padding: .3rem .8rem;
  font-family: var(--display); font-size: .8125rem; font-weight: 600; color: var(--azul);
}
.busca__sugestoes button:hover { border-color: var(--azul); background: var(--azul-light); }

.busca__lista { margin-top: .875rem; display: grid; gap: .25rem; max-height: 46vh; overflow-y: auto; }
.busca__lista a {
  display: block; padding: .7rem .875rem; border-radius: var(--r);
  text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--line);
}
.busca__lista a:hover, .busca__lista a.sel { border-color: var(--azul); background: var(--azul-light); }
.busca__lista b { display: block; font-family: var(--display); font-size: .9375rem; font-weight: 600; color: var(--ink); }
.busca__lista small { display: block; font-size: .8125rem; color: var(--muted); margin-top: .1rem; }
.busca__lista mark { background: var(--magenta-light); color: var(--magenta-escuro); padding: 0 2px; border-radius: 3px; }
.busca__vazio { padding: 1rem .25rem; color: var(--faint); font-size: .9375rem; }
.busca__rodape { margin-top: .75rem; font-size: .8125rem; color: var(--faint); }
.busca__rodape kbd {
  font-family: var(--display); font-size: .6875rem; font-weight: 700;
  border: 1px solid var(--line); border-radius: 4px; padding: .05rem .3rem;
  background: #fff; color: var(--muted);
}

/* ---------- Área logada (modal) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(8, 45, 82, .5);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(430px, 100%); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(8, 45, 82, .3);
  transform: translateY(-10px); transition: transform .2s ease;
}
.modal.open .modal__box { transform: none; }
.modal__topo {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.125rem 1.375rem; border-bottom: 1px solid var(--line);
}
.modal__topo img { width: 46px; height: 46px; object-fit: contain; }
.modal__fechar {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--muted); cursor: pointer;
}
.modal__fechar:hover { border-color: var(--ink); color: var(--ink); }
.modal__fechar svg { width: 17px; height: 17px; }
.modal__corpo { padding: 1.375rem; }

.abas { display: flex; gap: .25rem; background: var(--offwhite); border-radius: 100px; padding: .25rem; margin-bottom: 1.375rem; }
.abas button {
  flex: 1; border: 0; cursor: pointer; background: none;
  border-radius: 100px; padding: .55rem .5rem;
  font-family: var(--display); font-size: .875rem; font-weight: 600; color: var(--muted);
}
.abas button[aria-selected="true"] { background: #fff; color: var(--azul); box-shadow: var(--shadow); }

.painel[hidden] { display: none; }
.modal .field { margin-bottom: .875rem; }
.modal__opcoes { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .25rem 0 1.125rem; font-size: .875rem; }
.modal__opcoes label { display: flex; align-items: center; gap: .45rem; color: var(--muted); cursor: pointer; }
.modal__opcoes a { color: var(--azul); text-decoration: none; }
.modal__opcoes a:hover { text-decoration: underline; }
.modal__aviso {
  margin-top: 1.125rem; padding: .7rem .875rem;
  background: var(--magenta-light); border-radius: var(--r);
  font-size: .8125rem; color: var(--magenta-escuro); line-height: 1.45;
}
.modal__erro {
  display: none; margin-bottom: 1rem; padding: .7rem .875rem;
  background: #fdeceb; border-radius: var(--r); font-size: .875rem; color: #a3231a;
}
.modal__erro.on { display: block; }

/* Estado logado */
.logado__ola { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.25rem; }
.logado__av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--azul-light); color: var(--azul);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
}
.logado__ola b { display: block; font-family: var(--display); color: var(--ink); }
.logado__ola span { font-size: .875rem; color: var(--muted); }
.logado__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.logado__grid a {
  display: flex; align-items: center; gap: .55rem;
  padding: .75rem .75rem; border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-size: .875rem; font-weight: 600;
}
.logado__grid a:hover { border-color: var(--azul); background: var(--azul-light); }
.logado__grid svg { width: 17px; height: 17px; color: var(--azul); flex-shrink: 0; }
.logado__sair { margin-top: 1.125rem; }

/* Indicador de sessão no botão do header */
.icon-btn.logado { border-color: var(--azul); background: var(--azul-light); color: var(--azul); }

body.travado { overflow: hidden; }

/* display:flex do autor sobrepõe o [hidden] do navegador - reforça */
[hidden] { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(2.75rem, 4.5vw, 4rem);
  background: var(--offwhite);
  border-bottom: 1px solid var(--line-soft);
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__topo {
  display: flex; flex-wrap: wrap; align-items: center; gap: .625rem .875rem;
  margin: 0 0 1rem;
}
.hero__kicker {
  font-family: var(--display);
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--azul);
}
.hero__lead {
  font-size: 1.0625rem; line-height: 1.6; color: var(--muted);
  max-width: 32rem; margin: .875rem 0 1.75rem;
}

/* Tag de matrículas - o acento magenta em superfície clara */
.tag-magenta {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-size: .8125rem; font-weight: 700;
  padding: .3rem .85rem; border-radius: 100px;
  background: var(--magenta-light); color: var(--magenta-escuro);
}
.tag-magenta i { width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); }
.hero h1 { margin-bottom: .55rem; }
.hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* ---------- Grades ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid--4, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- Segmentos ---------- */
.seg {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.seg:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.seg__img { position: relative; }
.seg__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.seg__img::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 5px; background: var(--seg);
}
.seg__body { padding: 1.25rem 1.375rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.seg__verb {
  display: inline-block; align-self: flex-start;
  font-family: var(--display); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .7rem; border-radius: 100px;
  background: var(--seg-tint); color: var(--seg-ink);
  margin-bottom: .7rem;
}
.seg h3 { margin-bottom: .2rem; }
.seg__age { display: block; font-size: .875rem; color: var(--faint); margin-bottom: .6rem; }
.seg p { font-size: .9375rem; color: var(--muted); margin-bottom: 1.1rem; flex: 1; }
.seg .link { color: var(--seg-ink); }

/* ---------- Pilares ---------- */
.pilar__ico {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(255, 255, 255, .14);
  color: #fff; margin-bottom: 1rem;
}
.pilar__ico svg { width: 23px; height: 23px; }
.pilar h3 { font-size: 1.0625rem; margin-bottom: .375rem; }
.pilar p { font-size: .9375rem; }

/* ---------- Experiências ---------- */
.exp { display: flex; flex-direction: column; }
.exp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 1rem; }
.exp h3 { margin-bottom: .375rem; }
.exp p { font-size: .9375rem; color: var(--muted); margin-bottom: .75rem; }
.exp ul { display: flex; flex-wrap: wrap; gap: .375rem; }
.exp li {
  font-family: var(--display); font-size: .75rem; font-weight: 600;
  padding: .18rem .6rem; border-radius: 100px;
  background: var(--offwhite); border: 1px solid var(--line); color: var(--muted);
}

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .875rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.gallery figcaption { margin-top: .5rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 780px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Histórias ---------- */
.quote {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.375rem, 2.4vw, 1.875rem);
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }
.quote cite { font-style: normal; font-size: .9375rem; color: var(--faint); }
.quote cite b { display: block; font-family: var(--display); font-weight: 600; color: var(--azul); }

/* ---------- Vida no Neuza ---------- */
.post { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r); margin-bottom: .875rem; transition: opacity .2s ease;
}
.post:hover img { opacity: .92; }
.post time {
  display: block; font-family: var(--display); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .375rem;
}
.post h3 { font-size: 1.0625rem; margin-bottom: .375rem; line-height: 1.35; }
.post:hover h3 { color: var(--azul); }
.post p { font-size: .9375rem; color: var(--muted); }

.social {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.375rem, 2.5vw, 1.875rem);
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  align-items: center; justify-content: space-between;
  background: #fff;
}
.social__txt b { font-family: var(--display); font-size: 1.0625rem; color: var(--azul); display: block; }
.social__txt span { font-size: .9375rem; color: var(--muted); }
.social__tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .625rem; }
.social__tags li {
  font-family: var(--display); font-size: .75rem; font-weight: 600;
  padding: .18rem .625rem; border-radius: 100px;
  background: var(--azul-light); color: var(--azul);
}

/* ---------- Matrículas / formulário ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
@media (max-width: 940px) { .visit { grid-template-columns: 1fr; } }

.visit__info p { color: rgba(255, 255, 255, .8); max-width: 34rem; }
.visit__info dl { margin: 1.75rem 0 0; display: grid; gap: 1rem; }
.visit__info dt {
  font-family: var(--display); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); margin-bottom: .125rem;
}
.visit__info dd { margin: 0; font-size: .9375rem; color: rgba(255, 255, 255, .92); }
.visit__info dd a { color: rgba(255, 255, 255, .92); text-decoration: none; }
.visit__info dd a:hover { color: var(--magenta-tint); }

/* O card é branco dentro de uma faixa azul: precisa anular o texto claro
   herdado de .section--azul / .section--azul-escuro, senão fica branco no branco. */
.section--azul .form h3, .section--azul-escuro .form h3 { color: var(--ink); }
.section--azul .form p, .section--azul-escuro .form p { color: var(--muted); }
.section--azul .form .form__hint, .section--azul-escuro .form .form__hint,
.section--azul .form .form__legal, .section--azul-escuro .form .form__legal { color: var(--faint); }

.form {
  background: #fff; border-radius: var(--r-lg);
  padding: clamp(1.375rem, 2.2vw, 1.75rem); box-shadow: var(--shadow);
}
.form h3 { margin-bottom: .2rem; }
.form__hint { font-size: .875rem; color: var(--faint); margin-bottom: 1.05rem; line-height: 1.45; }
.field { margin-bottom: .7rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
@media (max-width: 460px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--display);
  font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: .28rem;
}
.field input, .field select {
  width: 100%; padding: .62rem .8rem;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: #fff; font: inherit; font-size: .9375rem; color: var(--ink);
  transition: border-color .15s ease;
}
.field input:hover, .field select:hover { border-color: #c8cfcc; }
.field input:focus, .field select:focus { outline: none; border-color: var(--azul); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c0392b; }
.field small { display: none; margin-top: .3rem; font-size: .8125rem; color: #c0392b; }
.field.error small { display: block; }
.form__legal { margin-top: .7rem; font-size: .8125rem; color: var(--faint); line-height: 1.45; }
.form form > .btn { margin-top: .3rem; }
.form__done { display: none; }
.form.sent .form__fields { display: none; }
.form.sent .form__done { display: block; }
.form__done p { font-size: .9375rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; margin-inline: auto; }
.intro--centro { margin-inline: auto; text-align: center; }
.intro--centro .label { justify-content: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.25rem 1.2rem .25rem;
  position: relative; font-family: var(--display);
  font-size: 1rem; font-weight: 600; color: var(--azul);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .625rem; top: 1.55rem;
  width: 8px; height: 8px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq__body { padding: 0 2.25rem 1.35rem .25rem; font-size: .9375rem; color: var(--muted); }

/* ---------- Rodapé ---------- */
.footer {
  background: var(--azul-escuro); color: rgba(255, 255, 255, .7);
  font-size: .9375rem; padding: clamp(3rem, 5vw, 4rem) 0 0;
}
.footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer h4 {
  color: #fff; font-family: var(--display);
  font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  margin-bottom: .875rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--gap); padding-bottom: 2.5rem;
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid ul { display: grid; gap: .5rem; }
.footer__brand img { width: 104px; height: 104px; object-fit: contain; margin: -.4rem 0 1.1rem -.4rem; }
.footer__tag { color: #fff; font-family: var(--display); font-weight: 600; }
.footer__social { display: flex; gap: 1rem; margin-top: 1.125rem; }
.footer__social svg { width: 19px; height: 19px; }
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .13); padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .875rem; color: rgba(255, 255, 255, .52);
}

/* ---------- Utilitários ---------- */
.skip {
  position: absolute; left: -9999px; z-index: 100;
  padding: .75rem 1.25rem; background: var(--azul); color: #fff; font-size: .9375rem;
}
.skip:focus { left: 0; top: 0; }
