/* =====================================================================
   Colégio Horizonte — Monte Alto/MG
   "Cada passo constrói um futuro."
   ===================================================================== */

/* [hidden] precisa vencer qualquer display de componente: sem isto o
   painel do menu e o lightbox continuam capturando os toques invisíveis. */
[hidden] { display: none !important; }

:root {
  /* marca */
  --azul:        #0A80C0;
  --azul-fundo:  #0b6a9e;
  --azul-noite:  #064b72;
  --azul-tinta:  #0d3a55;
  --amarelo:     #FFCB06;
  --amarelo-sol: #ffdc5c;

  /* neutros derivados das cores da marca */
  --branco:      #ffffff;
  --creme:       #fbf9f4;
  --nuvem:       #eef6fb;
  --nuvem-forte: #dcecf7;
  --tinta:       #14303f;
  --tinta-suave: #52707f;
  --borda:       #dfe9ef;

  /* tipografia */
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --texto:   "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ritmo */
  --limite: 1180px;
  --gutter: 22px;
  --raio:   22px;
  --raio-g: 34px;

  /* sombras */
  --sombra-s: 0 2px 10px rgba(13, 58, 85, .06);
  --sombra-m: 0 14px 38px -16px rgba(13, 58, 85, .28);
  --sombra-g: 0 30px 70px -28px rgba(13, 58, 85, .38);

  /* hero: quanto da próxima seção sobe por cima da imagem fixa */
  --hero-sobreposicao: 72svh;
  --hero-zoom: .10;          /* scale(1) -> scale(1.10) */
  --p: 0;                    /* progresso do scroll da hero (0..1), via JS */

  --topo-altura: 78px;
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topo-altura) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--texto);
  font-size: clamp(1rem, .96rem + .22vw, 1.075rem);
  line-height: 1.68;
  color: var(--tinta);
  background: var(--creme);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem); }
h3 { font-size: 1.22rem; font-weight: 600; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--azul); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 3px;
  border-radius: 6px;
}

.limite {
  width: min(100% - var(--gutter) * 2, var(--limite));
  margin-inline: auto;
}

.vis-oculto {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.pular {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  transform: translateY(-160%);
  background: var(--amarelo); color: var(--azul-tinta);
  font-weight: 800; padding: .7rem 1.1rem; border-radius: 999px;
  transition: transform .2s ease;
}
.pular:focus-visible { transform: translateY(0); }

/* ------------------------------------------------------------- botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 700; font-size: 1.02rem; letter-spacing: .005em;
  padding: .82rem 1.6rem;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s ease,
              background-color .22s ease, color .22s ease, border-color .22s ease;
}
.botao svg {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.botao:hover { transform: translateY(-2px); }
.botao:active { transform: translateY(0); }

.botao--amarelo {
  background: var(--amarelo); color: var(--azul-tinta);
  box-shadow: 0 10px 24px -10px rgba(255, 203, 6, .9);
}
.botao--amarelo:hover { background: var(--amarelo-sol); box-shadow: 0 16px 30px -12px rgba(255, 203, 6, .95); }

.botao--azul { background: var(--azul); color: #fff; box-shadow: var(--sombra-m); }
.botao--azul:hover { background: var(--azul-fundo); }

.botao--vidro {
  background: rgba(255, 255, 255, .14);
  color: #fff; border-color: rgba(255, 255, 255, .62);
  backdrop-filter: blur(6px);
}
.botao--vidro:hover { background: rgba(255, 255, 255, .95); color: var(--azul-tinta); border-color: #fff; }

.botao--grande { font-size: 1.1rem; padding: 1rem 2rem; }
.botao--pequeno { font-size: .93rem; padding: .62rem 1.2rem; }

/* ------------------------------------------------------------- header */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--topo-altura);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.topo__interno {
  width: min(100% - var(--gutter) * 2, 1320px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.1rem;
}

.marca { display: flex; align-items: center; gap: .66rem; flex: none; }
.marca img {
  width: 46px; height: 46px;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
  transition: width .3s ease, height .3s ease;
}
.marca__texto { display: flex; flex-direction: column; line-height: 1.12; }
.marca__texto strong {
  font-family: var(--display); font-weight: 700; font-size: 1.04rem;
  color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
  transition: color .3s ease, text-shadow .3s ease;
}
.marca__texto small {
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amarelo); transition: color .3s ease;
}

.navegacao { margin-left: auto; display: flex; align-items: center; gap: 1.32rem; }
.navegacao a {
  position: relative;
  font-size: .855rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
  transition: color .3s ease, text-shadow .3s ease;
  white-space: nowrap;
}
.navegacao a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 3px; border-radius: 3px; background: var(--amarelo);
  transform: scaleX(0); transform-origin: left;
  transition: transform .26s cubic-bezier(.2,.8,.3,1);
}
.navegacao a:hover::after, .navegacao a.ativo::after { transform: scaleX(1); }

.topo__cta {
  flex: none;
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  padding: .56rem 1.15rem; border-radius: 999px;
  background: var(--amarelo); color: var(--azul-tinta);
  transition: transform .22s ease, background-color .22s ease;
}
.topo__cta:hover { transform: translateY(-2px); background: var(--amarelo-sol); }

/* estado sólido (após rolar) */
.topo--solido {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 2px 20px -6px rgba(13, 58, 85, .22);
}
.topo--solido .marca img { width: 40px; height: 40px; box-shadow: none; }
.topo--solido .marca__texto strong { color: var(--azul-tinta); text-shadow: none; }
.topo--solido .marca__texto small { color: var(--azul); }
.topo--solido .navegacao a { color: var(--azul-tinta); text-shadow: none; }
.topo--solido .navegacao a:hover { color: var(--azul); }

.hamburguer {
  display: none;
  width: 46px; height: 46px; flex: none;
  border: 0; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  padding: 0;
  place-content: center; justify-items: center; gap: 5px;
}
.hamburguer span:not(.vis-oculto) {
  display: block; width: 20px; height: 2.4px; border-radius: 3px;
  background: #fff; transition: background-color .3s ease;
}
.topo--solido .hamburguer { background: var(--nuvem); }
.topo--solido .hamburguer span:not(.vis-oculto) { background: var(--azul-tinta); }

/* -------------------------------------------------------- menu mobile */
.menu-mobile {
  position: fixed; inset: 0; z-index: 120;
  background: linear-gradient(170deg, var(--azul) 0%, var(--azul-noite) 100%);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 1.1rem var(--gutter) 2.4rem;
  opacity: 0; transition: opacity .28s ease;
}
.menu-mobile--on { opacity: 1; }

.menu-mobile__caixa { max-width: 460px; margin-inline: auto; }

.menu-mobile__topo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.4rem;
}
.menu-mobile__marca { display: flex; align-items: center; gap: .62rem; min-width: 0; }
.menu-mobile__marca img {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
}
.menu-mobile__marca strong {
  display: block; line-height: 1.15;
  font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff;
}
.menu-mobile__marca small {
  font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amarelo);
}

.menu-mobile__fechar {
  flex: none;
  display: grid; place-content: center;
  width: 46px; height: 46px; border: 0; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .14);
}
.menu-mobile__fechar svg {
  width: 22px; height: 22px;
  fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round;
}

.menu-mobile nav { display: flex; flex-direction: column; }
.menu-mobile nav a {
  display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1.6vw, 1.75rem);
  color: #fff; padding: .52rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  opacity: 0; transform: translateY(14px);
}
.menu-mobile--on nav a { animation: entrar .5s cubic-bezier(.2,.8,.3,1) forwards; }
.menu-mobile nav a span {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  color: var(--amarelo); font-family: var(--texto);
}
.menu-mobile__cta { margin-top: 1.8rem; width: 100%; }
.menu-mobile__rodape {
  margin-top: 1.6rem; text-align: center;
  font-size: .85rem; color: rgba(255, 255, 255, .72);
}

@keyframes entrar { to { opacity: 1; transform: translateY(0); } }

/* ================================================================ HERO */
.hero {
  position: relative;
  height: calc(100svh + var(--hero-sobreposicao));
  background: var(--azul-noite);
}
.hero__pin {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; }
.hero__media img {
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(calc(1 + var(--hero-zoom) * var(--p)));
  transform-origin: 50% 46%;
}
/* will-change só depois do load: ligado já na primeira pintura, o Chrome cria a
   camada e a imagem fica em branco até algo forçar um repaint. */
.hero--pronta .hero__media img { will-change: transform; }
.hero--pronta .hero__conteudo { will-change: transform, opacity; }

/* véu bem leve: o briefing pede legibilidade sem escurecer a foto */
.hero__veu {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,
      rgba(6, 45, 70, .74) 0%,
      rgba(6, 45, 70, .52) 34%,
      rgba(6, 45, 70, .12) 62%,
      rgba(6, 45, 70, .04) 100%),
    linear-gradient(to top,
      rgba(6, 45, 70, .44) 0%,
      rgba(6, 45, 70, 0) 42%),
    linear-gradient(to bottom,
      rgba(6, 45, 70, .5) 0%,
      rgba(6, 45, 70, 0) 190px);
}

.hero__conteudo {
  position: relative; z-index: 2;
  align-self: center;
  width: min(100% - var(--gutter) * 2, var(--limite));
  margin-inline: auto;
  padding-top: var(--topo-altura);
  color: #fff;
  transform: translate3d(0, calc(var(--p) * -12svh), 0);
  opacity: calc(1 - var(--p) / .45);
}
.hero__conteudo > * { max-width: 780px; }
.hero[data-saindo] .hero__conteudo { pointer-events: none; }

.hero__olho {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amarelo);
  margin-bottom: 1.1rem;
  opacity: 0; animation: heroEntra .8s cubic-bezier(.16,.8,.3,1) .15s forwards;
}
.hero__olho span {
  width: 34px; height: 3px; border-radius: 3px; background: var(--amarelo);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.1rem + 4.2vw, 4.1rem);
  font-weight: 700; line-height: 1.07;
  margin-bottom: .52rem;
  text-shadow: 0 2px 26px rgba(2, 30, 48, .42);
  opacity: 0; animation: heroEntra .9s cubic-bezier(.16,.8,.3,1) .28s forwards;
}
.hero h1 em {
  font-style: normal; color: var(--amarelo);
  position: relative; white-space: nowrap;
}

.hero__sub {
  font-size: clamp(1.02rem, .94rem + .55vw, 1.32rem);
  font-weight: 600;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 2px 18px rgba(2, 30, 48, .5);
  margin-bottom: 1.9rem;
  opacity: 0; animation: heroEntra .9s cubic-bezier(.16,.8,.3,1) .46s forwards;
}

.hero__acoes {
  display: flex; flex-wrap: wrap; gap: .8rem;
  opacity: 0; animation: heroEntra .9s cubic-bezier(.16,.8,.3,1) .62s forwards;
}

@keyframes heroEntra {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__rolar {
  position: absolute; z-index: 2;
  left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 46px;
  border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 7px;
  opacity: calc(1 - var(--p) / .3);
}
.hero__rolar-linha {
  width: 3px; height: 9px; border-radius: 3px; background: var(--amarelo);
  animation: rolar 1.9s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes rolar {
  0%, 12%   { transform: translateY(0); opacity: 1; }
  60%, 100% { transform: translateY(17px); opacity: 0; }
}

/* ------------------------------------------- seções sobem sobre a hero */
/* As seções seguintes sobem por cima da hero fixa: precisam de fundo opaco.
   O fundo vem de .secao (e não daqui) porque main > section:not(.hero) tem
   especificidade maior que as classes de cada seção e venceria todas elas. */
main > section:not(.hero) {
  position: relative;
  z-index: 2;
}
.colegio { margin-top: calc(-1 * var(--hero-sobreposicao)); }

.secao {
  padding: clamp(4rem, 2.4rem + 6vw, 7.5rem) 0;
  background: var(--creme);
}

/* ------------------------------------------------- curva + trilha topo */
.curva {
  position: absolute; left: 0; right: 0; top: 0;
  width: 100%; height: clamp(54px, 7vw, 108px);
  pointer-events: none;
}
.curva--topo { transform: translateY(-99%); }
.curva__fundo { fill: var(--creme); }
.curva__trilha {
  fill: none; stroke: var(--amarelo); stroke-width: 7;
  stroke-linecap: round; stroke-dasharray: 0 36;
  opacity: .95;
}

/* --------------------------------------------------- tipos de cabeçalho */
.olho {
  display: inline-block;
  font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--azul);
  margin-bottom: .85rem;
  padding-left: 44px; position: relative;
}
.olho::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 32px; height: 3px; border-radius: 3px; background: var(--amarelo);
}
.olho--amarelo { color: var(--amarelo); }
.olho--amarelo::before { background: var(--amarelo); }

.cabecalho { max-width: 720px; margin: 0 auto clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); text-align: center; }
.cabecalho .olho { padding-left: 0; }
.cabecalho .olho::before { display: none; }
.cabecalho .olho {
  background: var(--nuvem); color: var(--azul);
  padding: .34rem .9rem; border-radius: 999px;
}
.cabecalho__apoio { color: var(--tinta-suave); font-size: 1.06rem; max-width: 60ch; margin-inline: auto; }
.cabecalho--claro .olho { background: rgba(255, 255, 255, .14); color: var(--amarelo); }
.cabecalho--claro h2 { color: #fff; }

/* =========================================================== O COLÉGIO */
.colegio__grade {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
}
.colegio__texto h2 { color: var(--azul-tinta); }
.colegio__texto p { color: var(--tinta-suave); }

.numeros {
  list-style: none; margin: 2.1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.1rem;
}
.numeros li {
  flex: 1 1 110px;
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio);
  padding: .95rem 1rem; box-shadow: var(--sombra-s);
  display: flex; flex-direction: column;
}
.numeros strong {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: var(--azul); line-height: 1.1;
}
.numeros span { font-size: .78rem; font-weight: 700; color: var(--tinta-suave); letter-spacing: .03em; }

.colegio__foto { position: relative; margin: 0; }
.colegio__foto img {
  width: 100%; border-radius: var(--raio-g);
  box-shadow: var(--sombra-g);
}
.colegio__foto::before {
  content: ""; position: absolute; inset: -18px -18px auto auto;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--amarelo); z-index: -1;
}
.selo-passos {
  position: absolute; left: -26px; bottom: -26px;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--azul);
  display: grid; place-items: center;
  box-shadow: var(--sombra-m);
  background-image: radial-gradient(circle at 50% 50%, var(--amarelo) 3.2px, transparent 3.4px);
  background-size: 17px 17px;
  background-color: var(--azul);
}

/* ======================================================== FRASE GRANDE */
.frase {
  position: relative; overflow: hidden;
  background: var(--azul); color: #fff;
  padding: clamp(3.4rem, 2rem + 5vw, 6rem) 0;
  text-align: center;
}
.frase p {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 1rem + 3vw, 3.15rem);
  line-height: 1.18; margin: 0;
  position: relative; z-index: 2;
}
.frase em { font-style: normal; color: var(--amarelo); }
.frase__bolha {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.frase__bolha--a { width: 280px; height: 280px; left: -80px; top: -110px; }
.frase__bolha--b {
  width: 190px; height: 190px; right: -50px; bottom: -80px;
  background: rgba(255, 203, 6, .16);
}

/* ========================================================== TRAJETÓRIA */
.trajetoria { background: var(--creme); }
.trilha {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem; position: relative;
}
.trilha::before {
  content: ""; position: absolute; left: 7%; right: 7%; top: 29px;
  height: 3px;
  background-image: radial-gradient(circle, var(--amarelo) 3px, transparent 3.2px);
  background-size: 16px 3px; background-repeat: repeat-x;
}
.trilha__passo { position: relative; padding-top: 0; }
.trilha__marca {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--azul); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .96rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 0 0 7px var(--creme), var(--sombra-m);
  position: relative; z-index: 2;
}
.trilha__marca svg {
  width: 24px; height: 24px;
  fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round;
}
.trilha__passo--hoje .trilha__marca { background: var(--amarelo); color: var(--azul-tinta); }
.trilha h3 { color: var(--azul-tinta); font-size: 1.1rem; }
.trilha p { color: var(--tinta-suave); font-size: .95rem; }

/* ============================================================== ETAPAS */
.etapa__grade {
  display: grid; grid-template-columns: .92fr 1.08fr;
  gap: clamp(2rem, 1rem + 4vw, 4.4rem); align-items: center;
}
.etapa__grade--invertida { grid-template-columns: 1.08fr .92fr; }
.etapa__linha {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.1rem, .98rem + .7vw, 1.45rem);
  margin-bottom: .9rem;
}

.etapa--infantil { background: linear-gradient(180deg, var(--creme) 0%, #fff8e6 100%); }
.etapa--infantil .olho { color: var(--azul); background: #fff; padding: .34rem .9rem; border-radius: 999px; }
.etapa--infantil .olho::before { display: none; }
.etapa--infantil h2 { color: var(--azul-tinta); }
.etapa--infantil .etapa__linha { color: var(--azul); }
.etapa--infantil p { color: var(--tinta-suave); }

.etapa--fundamental {
  background: linear-gradient(180deg, var(--azul-fundo) 0%, var(--azul-noite) 100%);
  color: #fff;
}
.etapa--fundamental .curva__fundo { fill: var(--azul-fundo); }
.etapa--fundamental h2 { color: #fff; }
.etapa--fundamental .etapa__linha { color: var(--amarelo); }
.etapa--fundamental p { color: rgba(255, 255, 255, .82); }
.etapa--fundamental .olho { background: rgba(255, 255, 255, .12); padding: .34rem .9rem; border-radius: 999px; }
.etapa--fundamental .olho::before { display: none; }

.etapa__foto { margin: 0; position: relative; }
.etapa__foto img { width: 100%; border-radius: var(--raio-g); box-shadow: var(--sombra-g); }
.etapa__etiqueta {
  position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  background: var(--amarelo); color: var(--azul-tinta);
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  padding: .45rem 1.1rem; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--sombra-m);
}
.etapa__fotos { display: grid; gap: 1.1rem; }
.etapa__foto--desloca { margin-left: clamp(0px, 4vw, 56px); }

.pilares { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.pilares li {
  display: grid; grid-template-columns: 38px 1fr; gap: .2rem .85rem;
  align-items: start;
  background: #fff; border-radius: var(--raio); padding: 1rem 1.1rem;
  border: 1px solid var(--borda); box-shadow: var(--sombra-s);
}
.pilares svg {
  grid-row: span 2; width: 38px; height: 38px; padding: 8px;
  border-radius: 12px; background: var(--nuvem);
  fill: none; stroke: var(--azul); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.pilares strong { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--azul-tinta); }
.pilares span { font-size: .88rem; line-height: 1.5; color: var(--tinta-suave); }
.pilares--claro li { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.pilares--claro svg { background: rgba(255, 203, 6, .16); stroke: var(--amarelo); }
.pilares--claro strong { color: #fff; }
.pilares--claro span { color: rgba(255, 255, 255, .76); }

.faixa-foto {
  margin: clamp(2.4rem, 1.4rem + 3vw, 4rem) auto 0;
  width: min(100% - var(--gutter) * 2, 1320px);
}
.faixa-foto img {
  width: 100%; height: clamp(170px, 22vw, 290px); object-fit: cover;
  border-radius: var(--raio-g); box-shadow: var(--sombra-m);
}

/* ======================================================== DIFERENCIAIS */
.diferenciais { background: var(--creme); }
.cartoes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, .6rem + 1vw, 1.5rem);
}
.cartao {
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio-g);
  padding: 1.7rem 1.6rem 1.8rem;
  box-shadow: var(--sombra-s);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.cartao:hover { transform: translateY(-6px); box-shadow: var(--sombra-m); border-color: var(--nuvem-forte); }
.cartao__icone {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 17px;
  background: var(--nuvem); margin-bottom: 1.1rem;
  transition: background-color .3s ease;
}
.cartao:hover .cartao__icone { background: var(--amarelo); }
.cartao__icone svg {
  width: 27px; height: 27px;
  fill: none; stroke: var(--azul); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s ease;
}
.cartao:hover .cartao__icone svg { stroke: var(--azul-tinta); }
.cartao h3 { color: var(--azul-tinta); }
.cartao p { color: var(--tinta-suave); font-size: .96rem; margin: 0; }

/* =========================================================== PARCERIAS */
.parcerias { background: var(--azul-tinta); }
.parcerias__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.parceria {
  position: relative;
  padding: 2rem 1.7rem 1.9rem;
  border-radius: var(--raio-g);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .13);
  overflow: hidden;
  transition: background-color .3s ease, transform .3s cubic-bezier(.2,.8,.3,1);
}
.parceria:hover { background: rgba(255, 255, 255, .1); transform: translateY(-5px); }
.parceria__numero {
  display: block;
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: var(--amarelo); opacity: .55; margin-bottom: .7rem;
}
.parceria h3 { color: #fff; font-size: 1.24rem; }
.parceria p { color: rgba(255, 255, 255, .76); font-size: .96rem; margin: 0; }

/* =========================================================== ESTRUTURA */
.estrutura { background: var(--nuvem); }
.mosaico {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.8rem, .5rem + .8vw, 1.2rem);
}
.mosaico__item { position: relative; margin: 0; border-radius: var(--raio-g); overflow: hidden; box-shadow: var(--sombra-m); }
.mosaico__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.mosaico__item:hover img { transform: scale(1.05); }
.mosaico__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.2rem .95rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff;
  background: linear-gradient(to top, rgba(6, 45, 70, .85), rgba(6, 45, 70, 0));
}
/* 4 fotos em 4 colunas x 2 linhas: a grande ocupa 2x2 e a última estica por
   duas colunas, fechando o retângulo sem deixar célula vazia. */
.mosaico__item--grande { grid-column: span 2; grid-row: span 2; }
.mosaico__item--largo { grid-column: span 2; }
.mosaico__item:not(.mosaico__item--grande) { min-height: 190px; }

.mosaico__lista {
  margin-top: clamp(.8rem, .5rem + .8vw, 1.2rem);
  background: #fff; border-radius: var(--raio-g);
  padding: 1.9rem 1.9rem 1.7rem; box-shadow: var(--sombra-s);
}
.mosaico__lista h3 { color: var(--azul-tinta); margin-bottom: 1rem; }
.mosaico__lista ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .55rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mosaico__lista li {
  position: relative; padding-left: 28px;
  font-size: .95rem; color: var(--tinta-suave);
}
.mosaico__lista li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--amarelo);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--amarelo);
}
.mosaico__nota {
  margin: 1.2rem 0 0; padding-top: .9rem; border-top: 1px solid var(--borda);
  font-size: .8rem; color: #8aa3ae;
}

/* ============================================================= GALERIA */
.galeria { background: var(--creme); }
.filtros {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem;
  margin-bottom: clamp(1.6rem, 1rem + 1.6vw, 2.4rem);
}
.filtro {
  font-family: var(--display); font-weight: 600; font-size: .94rem;
  padding: .5rem 1.15rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--tinta-suave);
  border: 1px solid var(--borda);
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.filtro:hover { transform: translateY(-2px); color: var(--azul); }
.filtro--on { background: var(--azul); color: #fff; border-color: var(--azul); }
.filtro--on:hover { color: #fff; }

.galeria__grade {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.7rem, .4rem + .8vw, 1rem);
  /* dense: as fotos panorâmicas ocupam duas colunas e sobraria buraco no fim
     da linha quando não coubessem. */
  grid-auto-flow: dense;
}
.foto {
  position: relative; margin: 0; padding: 0; border: 0;
  border-radius: 20px; overflow: hidden; cursor: zoom-in;
  background: var(--nuvem-forte);
  aspect-ratio: 4 / 3;
  box-shadow: var(--sombra-s);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease, opacity .3s ease;
}
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 128, 192, .58), rgba(10, 128, 192, 0) 55%);
  opacity: 0; transition: opacity .32s ease;
}
.foto:hover { transform: translateY(-4px); box-shadow: var(--sombra-m); }
.foto:hover img { transform: scale(1.06); }
.foto:hover::after { opacity: 1; }
.foto--alta { grid-row: span 2; aspect-ratio: 4 / 6.2; }
.foto--larga { grid-column: span 2; aspect-ratio: 8 / 3; }

/* ============================================================ CONFIANÇA */
.confianca { background: var(--creme); }
.confianca__grade {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.4rem); align-items: center;
}
.confianca__foto { margin: 0; position: relative; }
.confianca__foto img { width: 100%; border-radius: var(--raio-g); box-shadow: var(--sombra-g); }
.confianca__foto::after {
  content: ""; position: absolute; right: -20px; bottom: -20px;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--amarelo); z-index: -1;
}
.confianca__texto h2 { color: var(--azul-tinta); }

.respostas { margin: 1.8rem 0 0; display: grid; gap: 1.1rem; }
.respostas > div {
  background: #fff; border-left: 4px solid var(--amarelo);
  border-radius: 6px 20px 20px 6px;
  padding: 1.1rem 1.3rem;
  box-shadow: var(--sombra-s);
}
.respostas dt {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: var(--azul-tinta); margin-bottom: .2rem;
}
.respostas dd { margin: 0; font-size: .95rem; color: var(--tinta-suave); }

/* ================================================================= CTA */
.cta {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-noite) 100%);
  padding: clamp(3.4rem, 2rem + 5vw, 6rem) 0;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta__interno { position: relative; z-index: 2; max-width: 780px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .84); max-width: 58ch; margin-inline: auto; margin-bottom: 2rem; }
.cta__passos {
  display: block; height: 14px; width: 190px; margin: 0 auto 1.6rem;
  background-image: radial-gradient(circle, var(--amarelo) 4px, transparent 4.2px);
  background-size: 24px 14px; background-repeat: repeat-x;
  opacity: .9;
}

/* O rótulo e o telefone vivem em caixas próprias: assim o número nunca quebra
   no meio quando o botão fica estreito. */
.cta__botao-texto { display: inline-flex; align-items: baseline; gap: .5rem; }
.cta__botao-texto strong { font-weight: 700; }
.cta__botao-texto > span { white-space: nowrap; }
.cta__botao-texto > span::before {
  content: "·"; margin-right: .5rem; opacity: .5;
}

/* ============================================================= CONTATO */
.contato { background: var(--creme); }
.contato__grade {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.4rem, .8rem + 2vw, 2.4rem); align-items: stretch;
}
.contato__dados { display: flex; flex-direction: column; gap: 1rem; }
.dado {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff; border: 1px solid var(--borda); border-radius: var(--raio-g);
  padding: 1.3rem 1.4rem; box-shadow: var(--sombra-s);
  color: var(--tinta);
  transition: transform .25s ease, box-shadow .25s ease;
}
a.dado:hover { transform: translateY(-3px); box-shadow: var(--sombra-m); }
.dado__icone {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px; background: var(--nuvem);
}
.dado__icone svg {
  width: 23px; height: 23px;
  fill: none; stroke: var(--azul); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.dado__texto { display: flex; flex-direction: column; font-size: .98rem; line-height: 1.5; }
.dado__texto strong {
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--azul); margin-bottom: .2rem;
}
.contato__dados .botao { margin-top: auto; }

.contato__mapa {
  border-radius: var(--raio-g); overflow: hidden;
  box-shadow: var(--sombra-m); min-height: 340px;
  background: var(--nuvem-forte);
}
.contato__mapa iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ============================================================== RODAPÉ */
.rodape {
  position: relative; z-index: 2;
  background: var(--azul-tinta); color: rgba(255, 255, 255, .78);
  padding: clamp(3rem, 2rem + 3vw, 4.6rem) 0 1.8rem;
}
.curva--rodape .curva__fundo { fill: var(--azul-tinta); }
.rodape__grade {
  display: grid; grid-template-columns: 1.2fr 1fr 1.1fr;
  gap: clamp(1.8rem, 1rem + 3vw, 3.4rem);
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.rodape__marca img { width: 74px; height: 74px; border-radius: 50%; margin-bottom: 1rem; }
.rodape__nome { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: .25rem; }
.rodape__frase { font-style: italic; color: var(--amarelo); font-size: .96rem; }

.rodape h2 {
  font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  font-family: var(--texto); color: var(--amarelo); margin-bottom: 1rem;
}
.rodape__links { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.rodape__links a { color: rgba(255, 255, 255, .78); font-size: .95rem; transition: color .2s ease; }
.rodape__links a:hover { color: var(--amarelo); }
.rodape__contato p { font-size: .95rem; margin-bottom: .7rem; }
.rodape__contato a { color: #fff; font-weight: 700; }
.rodape__contato .botao { margin-top: .5rem; }

.rodape__base {
  padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between;
  font-size: .8rem; color: rgba(255, 255, 255, .55);
}
.rodape__base p { margin: 0; }
.rodape__base a { color: rgba(255, 255, 255, .8); }
.rodape__base a:hover { color: var(--amarelo); }

/* ============================================================ LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 32, 50, .95);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  overscroll-behavior: contain;
  opacity: 0; transition: opacity .25s ease;
}
.lightbox--on { opacity: 1; }
.lightbox__palco { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: .9rem; justify-items: center; }
.lightbox__palco img {
  max-width: 100%; max-height: 78svh;
  width: auto; border-radius: 16px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.lightbox__palco figcaption {
  color: rgba(255, 255, 255, .8); font-size: .92rem; text-align: center; max-width: 64ch;
}
.lightbox__fechar, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  width: 50px; height: 50px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .13);
  transition: background-color .2s ease, transform .2s ease;
}
.lightbox__fechar:hover, .lightbox__nav:hover { background: var(--amarelo); transform: scale(1.06); }
.lightbox__fechar svg, .lightbox__nav svg {
  width: 24px; height: 24px;
  fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.lightbox__fechar:hover svg, .lightbox__nav:hover svg { stroke: var(--azul-tinta); }
.lightbox__fechar { top: 18px; right: 18px; }
.lightbox__nav--anterior { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--proxima { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--anterior:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--proxima:hover { transform: translateY(-50%) scale(1.06); }

/* O glifo do WhatsApp é um desenho cheio, não de traço como os demais ícones.
   Precisa de especificidade maior que `.botao svg` e `.dado__icone svg`. */
.botao svg.icone-zap,
.dado__icone svg.icone-zap { fill: currentColor; stroke: none; }
.dado--zap .dado__icone svg.icone-zap { fill: var(--azul); }

/* =========================================================== REVELAÇÃO */
.revelar {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.16,.8,.3,1) var(--d, 0s),
              transform .75s cubic-bezier(.16,.8,.3,1) var(--d, 0s);
}
.revelar--on { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVO — todas as media queries juntas, no fim do arquivo
   ===================================================================== */

@media (max-width: 1180px) {
  .navegacao, .topo__cta { display: none; }
  .hamburguer { display: grid; margin-left: auto; }
}

@media (max-width: 1024px) {
  .colegio__grade,
  .etapa__grade,
  .etapa__grade--invertida,
  .confianca__grade,
  .contato__grade { grid-template-columns: 1fr; }

  .etapa__grade--invertida .etapa__texto { order: 2; }
  .etapa__grade--invertida .etapa__fotos { order: 1; }

  .cartoes { grid-template-columns: repeat(2, 1fr); }
  .trilha { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.3rem; }
  .trilha::before { display: none; }

  .galeria__grade { grid-template-columns: repeat(3, 1fr); }

  .mosaico { grid-template-columns: repeat(2, 1fr); }
  .mosaico__item--grande { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }

  .colegio__foto, .confianca__foto { max-width: 620px; margin-inline: auto; }
  .etapa__foto--desloca { margin-left: 0; }
  .contato__mapa { min-height: 300px; }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
    --raio-g: 24px;
    --topo-altura: 68px;
    --hero-sobreposicao: 42svh;
    --hero-zoom: .06;
  }

  .hero__veu {
    background:
      linear-gradient(to top,
        rgba(6, 45, 70, .84) 0%,
        rgba(6, 45, 70, .5) 46%,
        rgba(6, 45, 70, .18) 100%);
  }
  .hero__media img { object-position: 50% 38%; }
  .hero__conteudo { align-self: end; padding-bottom: 5.2rem; max-width: none; }
  .hero h1 { line-height: 1.1; }
  .hero h1 br { display: none; }
  .hero__acoes { flex-direction: column; align-items: stretch; }
  .hero__acoes .botao { width: 100%; }
  .hero__rolar { display: none; }

  .pilares { grid-template-columns: 1fr; }
  .cartoes { grid-template-columns: 1fr; }
  .parcerias__grade { grid-template-columns: 1fr; }
  .trilha { grid-template-columns: 1fr; gap: 1.6rem; }
  .galeria__grade { grid-template-columns: repeat(2, 1fr); }
  .foto--larga { grid-column: span 2; aspect-ratio: 16 / 9; }
  .foto--alta { grid-row: auto; aspect-ratio: 4 / 5; }
  .mosaico { grid-template-columns: 1fr; }
  .mosaico__item--grande, .mosaico__item--largo { grid-column: span 1; }
  .mosaico__lista ul { grid-template-columns: 1fr; }
  .mosaico__item:not(.mosaico__item--grande) { min-height: 210px; }

  .numeros li { flex: 1 1 100%; flex-direction: row; align-items: baseline; gap: .6rem; }

  /* No celular o botão do CTA não cabe em uma linha: o rótulo e o telefone
     passam a ocupar linhas próprias, centradas, com o ícone ao lado. */
  .cta__botao { padding: .9rem 1.3rem; font-size: 1rem; gap: .7rem; }
  .cta__botao svg { width: 1.5em; height: 1.5em; }
  .cta__botao-texto {
    flex-direction: column; align-items: flex-start;
    gap: .05rem; line-height: 1.25;
  }
  .cta__botao-texto > span { font-size: .93em; opacity: .82; }
  .cta__botao-texto > span::before { content: none; margin: 0; }

  .rodape__grade { grid-template-columns: 1fr; text-align: center; }
  .rodape__marca img { margin-inline: auto; }
  .rodape__links { align-items: center; }
  .rodape__base { justify-content: center; text-align: center; }

  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--anterior { left: 8px; }
  .lightbox__nav--proxima { right: 8px; }
  .lightbox__palco img { max-height: 70svh; }

  /* os círculos decorativos entram para dentro: lá fora empurravam a largura
     do documento e criavam rolagem lateral de poucos pixels. */
  .colegio__foto::before { width: 84px; height: 84px; inset: -8px -8px auto auto; }
  .selo-passos { width: 82px; height: 82px; left: -8px; bottom: -14px; }
  .confianca__foto::after { width: 90px; height: 90px; right: -8px; bottom: -8px; }
}

/* Notebook de tela baixa (ex.: 1366x600): a hero é regida pela altura. */
@media (min-width: 761px) and (max-height: 720px) {
  .hero h1 { font-size: clamp(1.9rem, 3.4vh + 1rem, 2.9rem); }
  .hero__sub { font-size: 1.02rem; margin-bottom: 1.2rem; }
  .hero__olho { margin-bottom: .7rem; }
  .hero__rolar { bottom: 14px; height: 38px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero__conteudo { padding-top: calc(var(--topo-altura) + 6px); }
  .hero h1 { font-size: 1.7rem; }
  .hero__rolar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  :root { --hero-sobreposicao: 0px; --hero-zoom: 0; }
  .hero { height: 100svh; }
  .colegio { margin-top: 0; }
  .hero__media img { transform: none; }
  .hero__conteudo { transform: none; opacity: 1; }
  .hero__olho, .hero h1, .hero__sub, .hero__acoes { opacity: 1; animation: none; }
  .hero__rolar { opacity: 1; }
  .hero__rolar-linha { animation: none; }

  .revelar { opacity: 1; transform: none; transition: none; }
  .menu-mobile--on nav a { opacity: 1; transform: none; animation: none; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
