/* ==========================================================================
   Colégio CEMA — tokens (Figma A73FLF4AHFnBonBP3Y2VR9, desktop 49:3107 / mobile 49:3450)
   Base comum a todas as seções. Cada seção tem seu arquivo em parts/css/NN-secao.css.
   ========================================================================== */

@font-face {
  font-family: "Commissioner";
  src: url("assets/fonts/commissioner-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Layout */
  --container: 1280px;
  --gutter: 20px;
  --header-w: 1320px;

  /* Cores (Figma) */
  --navy: #0e1b3d;          /* títulos e fundos escuros */
  --navy-deep: #0a1430;     /* rodapé */
  --navy-2: #1c255b;
  --blue: #1e5a7e;          /* etiquetas em fundo claro */
  --text: #4a5670;          /* texto corrido */
  --text-light: #b4bed6;    /* texto em fundo escuro */
  --orange: #f06c30;
  --orange-2: #ff8046;
  --white: #ffffff;
  --cream: #fff5ed;         /* fundo da seção Segmentos */
  --ice: #eef3f8;           /* fundo claro (Estrutura, Banner) */
  --sand: #f6f3f1;          /* fundo do FAQ */
  --line-light: rgba(255, 255, 255, 0.26);

  --grad-orange: linear-gradient(83.94deg, #f06c30 3.998%, #f18757 42.586%, #f39f79 59.479%, #ff8046 92.329%);

  /* Tipografia (Commissioner em todo o site) */
  --font: "Commissioner", system-ui, sans-serif;
  --fs-h1: 56px;
  --fs-h2: 48px;
  --ls-h2: -0.96px;
  --lh-title: 1.2;
  --fs-lead: 20px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-eyebrow: 13px;
  --lh-eyebrow: 20.8px;
  --ls-eyebrow: 1.82px;
  --fs-btn: 16px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Espaçamentos */
  --section-y: 80px;

  /* Botão */
  --btn-h: 52px;
  --btn-pad: 0 16px;
  --btn-r: 102px;
  --btn-arrow: 52px;

  /* Animação de entrada (o site no ar usa fadeIn / fadeInUp) */
  --reveal-y: 24px;
  --reveal-dur: 0.7s;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 767px) {
  :root {
    --fs-h1: 34px;
    --fs-h2: 32px;
    --ls-h2: -0.64px;
    --fs-lead: 16px;
    --section-y: 60px;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--white);
  font-variation-settings: "FLAR" 0, "VOLM" 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Corte vertical dos textos igual ao Figma (leading trim) */
h1, h2, h3, p, .trim { text-box: trim-both cap alphabetic; }
/* Evita palavra sozinha na última linha */
h1, h2, h3, p, li, figcaption { text-wrap: pretty; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Componentes comuns
   ========================================================================== */

/* Etiqueta acima dos títulos (Figma "Eyebrow"): .eyebrow (fundo claro) / .eyebrow--light (fundo escuro) */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  line-height: var(--lh-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--blue);
  text-box: none;
}
.eyebrow--light { color: #ffb896; }   /* Figma: Eyebrow claro sobre fundos escuros */

.title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-title);
  letter-spacing: var(--ls-h2);
  color: var(--navy);
}
.title--light { color: var(--white); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-title);
  color: var(--text);
}

/* Botão do Figma ("Ações"): pílula laranja em degradê + círculo com seta ao lado.
   Estrutura: <a class="cta" ...><span class="cta__btn">TEXTO</span><span class="cta__arrow">SVG</span></a>
   Hover: a pílula clareia e sobe, a seta gira para a direita. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 52px;
  -webkit-backdrop-filter: blur(6.15px);
  backdrop-filter: blur(6.15px);
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  height: var(--btn-h);
  padding: var(--btn-pad);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--btn-r);
  background: var(--grad-orange);
  background-size: 140% 100%;
  background-position: 0 0;
  font-size: var(--fs-btn);
  font-weight: var(--fw-bold);
  line-height: 19px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  transition: background-position 0.45s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cta__arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--btn-arrow);
  height: var(--btn-arrow);
  border: 1px solid rgba(240, 108, 48, 0.2);
  border-radius: 50%;
  background: rgba(240, 108, 48, 0.1);
  color: var(--orange);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.cta__arrow svg { width: 24px; height: 24px; }
@media (hover: hover) {
  .cta:hover .cta__btn { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(240, 108, 48, 0.7); }
  .cta:hover .cta__arrow { transform: rotate(-135deg); background: var(--orange); color: var(--white); }
}

/* Animação de entrada ao rolar: data-reveal="up" (padrão) ou data-reveal="fade".
   Atraso opcional: style="--reveal-delay: 120ms". Sem JavaScript, tudo aparece normalmente. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Menu (Figma 49:3171 desktop / 49:3524 mobile) — barra de vidro sobre o hero.
   Figma: "com a página rolada, trocar texto e contorno para marinho".
   ========================================================================== */

:root {
  --header-top: 19px;
  --header-h: 78px;
  --header-r: 22px;
  --header-glass: linear-gradient(131.08deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 60%, rgba(255, 255, 255, 0.1) 100%);
  --header-glass-scrolled: rgba(255, 255, 255, 0.86);
  --header-shadow: drop-shadow(0 16px 20px rgba(5, 10, 30, 0.5));
  --header-inset: inset 0 0 24px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.45);
  --header-logo-w: 128px;
  --header-logo-h: 42.3px;
  --header-toggle: 35.906px;
}
@media (max-width: 767px) {
  :root { --header-top: 10px; --header-h: 76.3px; }
}

.header {
  position: fixed;
  z-index: 50;
  top: var(--header-top);
  left: 0;
  right: 0;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.header__bar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--header-w);
  height: var(--header-h);
  margin-inline: auto;
  padding: 0 20px;
  border: 1px solid var(--line-light);
  border-radius: var(--header-r);
  box-shadow: var(--header-inset), 0 16px 20px rgba(5, 10, 30, 0.35);
  pointer-events: auto;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header__bar::before {               /* vidro */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  transition: background 0.3s var(--ease);
}

.header__logo img { width: var(--header-logo-w); height: var(--header-logo-h); }

.header__nav { display: flex; align-items: center; gap: 2px; }
.header__link {
  padding: 10px 13px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 24px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  transition: color 0.25s var(--ease);
}
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin-left: 147px;                /* no Figma o botão fica na ponta direita, a 147px da navegação */
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.header__cta svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }

/* Página rolada: barra clara, texto e contorno marinho */
.header.is-scrolled .header__bar { border-color: rgba(14, 27, 61, 0.1); box-shadow: 0 16px 30px -18px rgba(5, 10, 30, 0.45); }
.header.is-scrolled .header__bar::before { background: var(--header-glass-scrolled); }
.header.is-scrolled .header__link { color: var(--navy); }
.header.is-scrolled .header__cta { color: var(--navy); border-color: rgba(14, 27, 61, 0.3); }

@media (hover: hover) {
  .header__link:hover { color: var(--orange-2); }
  .header__cta:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
  .header__cta:hover svg { transform: translateX(3px); }
  .header.is-scrolled .header__link:hover { color: var(--orange); }
  .header.is-scrolled .header__cta:hover { color: var(--white); border-color: var(--orange); }
}

.header__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: var(--header-toggle);
  height: var(--header-toggle);
  padding: 0;
  border: 0;
  border-radius: 8.207px;
  background: var(--orange);
  cursor: pointer;
}
.header__toggle span {
  width: 19.948px;
  height: 2.992px;
  border-radius: 1px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.99px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.99px) rotate(-45deg); }

/* Notebooks menores: o botão fica colado na navegação */
@media (max-width: 1279px) {
  .header__cta { margin-left: 12px; }
  .header__link { padding-inline: 9px; }
}

/* Menu recolhido */
@media (max-width: 1023px) {
  .header__bar { padding: 0 16px 0 17px; }
  .header__toggle { display: flex; }
  .header__nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line-light);
    border-radius: var(--header-r);
    background: rgba(14, 27, 61, 0.96);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    box-shadow: 0 20px 40px -20px rgba(5, 10, 30, 0.6);
  }
  .header__nav.is-open { display: flex; }
  .header__link { padding: 12px 8px; font-size: 16px; color: var(--white) !important; }
  .header__cta { justify-content: center; margin: 8px 0 0; border: 0; background: var(--grad-orange); color: var(--white) !important; }
}

/* ==========================================================================
   Hero (Figma 49:3765 KV + sobreposição, 49:3114 texto, 49:3303 destaques;
   mobile 49:3514 + 49:3515). No celular segue o site no ar (aprovado): sem o parágrafo do Figma.
   ========================================================================== */

:root {
  --hero-h: calc(887px + var(--segmentos-overlap, 0px));   /* Segmentos começa em 887 e sobe por cima do fundo (margem negativa) */
  --hero-media-h: 966px;
  --hero-kv-h: 931px;
  --hero-bg: #0a112a;
  --hero-shade:
    linear-gradient(180deg, rgba(10, 17, 42, 0.45) 0%, rgba(10, 17, 42, 0) 20%, rgba(10, 17, 42, 0) 70%, rgba(10, 17, 42, 0.8) 100%),
    linear-gradient(90deg, #0a112a 0%, rgba(10, 17, 42, 0.93) 22.25%, rgba(10, 17, 42, 0.64) 45.81%, rgba(10, 17, 42, 0.1) 58%, rgba(10, 17, 42, 0) 70%);
  --hero-pad-top: 229px;
  --hero-content-w: 594px;
  --hero-seal-w: 355px;
  --hero-seal-h: 171px;
  --hero-gap-title: 36px;
  --hero-gap-cta: 40px;
  --hero-fs: 56px;
  --hero-highlights-top: 767px;
  --hero-icon: 40px;
}

@media (max-width: 767px) {
  :root {
    --hero-h: calc(914px + var(--segmentos-overlap, 0px));
    --hero-media-h: 1064px;
    --hero-shade: linear-gradient(180deg, #0a112a 5.527%, rgba(10, 17, 42, 0) 11.054%, rgba(10, 17, 42, 0) 30.289%, rgba(10, 17, 42, 0.71) 34.112%, rgba(10, 17, 42, 0.969) 44.573%, #0a112a 51.615%);
    --hero-pad-top: 494px;
    --hero-gap-title: 13px;
    --hero-gap-cta: 38px;
    --hero-fs: 33.934px;
  }
}

.hero {
  position: relative;
  height: var(--hero-h);
  background: var(--hero-bg);
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0 0 auto;
  height: var(--hero-media-h);
  overflow: hidden;
  background: var(--hero-bg);
}
.hero__img {                        /* recorte do Figma: 105,48% de largura, alinhado à direita e ao topo */
  position: absolute;
  top: 0;
  right: 0;
  width: max(105.48%, calc(var(--hero-kv-h) * 1920 / 1080));
  max-width: none;
  height: auto;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-shade);
}

.hero__inner {
  position: relative;
  height: 100%;
  padding-top: var(--hero-pad-top);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hero-gap-cta);
  max-width: var(--hero-content-w);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: var(--hero-fs);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--white);
  text-box: none;
}
.hero__title strong { font-weight: var(--fw-extrabold); }
.hero__seal {                       /* "Magia": a imagem tem respiro; a caixa do Figma é 355×171 */
  position: relative;
  display: block;
  width: var(--hero-seal-w);
  height: var(--hero-seal-h);
  margin-bottom: var(--hero-gap-title);
}
.hero__seal img {
  position: absolute;
  top: -13.46%;
  left: -4.78%;
  width: 109.27%;
  height: 128.39%;
  max-width: none;
  animation: hero-float 6s ease-in-out infinite;
}
.hero__line { display: block; text-box: trim-both cap alphabetic; }
.hero__line + .hero__line { margin-top: calc(var(--hero-fs) * 0.2 + 0.28em); }

@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.hero__highlights {
  position: absolute;
  top: var(--hero-highlights-top);
  left: calc(var(--gutter) + 1px);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
}
.hero__highlight {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--hero-icon);
  height: var(--hero-icon);
  border: 1px solid rgba(255, 184, 150, 0.31);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb896;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__icon svg { width: 100%; height: 100%; }
.hero__texts { display: flex; flex-direction: column; gap: 10px; }
.hero__texts strong {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 20.4px;
  color: var(--white);
  text-box: trim-both cap alphabetic;
}
.hero__texts span {
  font-size: var(--fs-small);
  line-height: 1.2;
  color: var(--text-light);
  text-box: trim-both cap alphabetic;
}
@media (hover: hover) {
  .hero__highlight:hover .hero__icon { background: rgba(240, 108, 48, 0.25); transform: translateY(-2px); }
}

/* Notebooks e tablets: destaques em grade 2×2 abaixo do botão */
@media (max-width: 1279px) {
  .hero { height: auto; padding-bottom: 140px; }
  .hero__highlights {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 40px;
    margin-top: 72px;
  }
}

/* Celular (site no ar): foto em cima, tudo centralizado, sem destaques */
@media (max-width: 767px) {
  .hero { height: var(--hero-h); padding-bottom: 0; }
  .hero__img { width: 100%; }
  .hero__seal { width: auto; height: auto; }                 /* no ar a imagem aparece inteira, 312×176 */
  .hero__seal img { position: static; width: 312px; height: auto; }
  .hero__content { align-items: center; max-width: none; text-align: center; }
  .hero__title { align-items: center; }
  .hero__line { display: inline; }
  .hero__line + .hero__line { display: block; margin-top: 16.5px; }   /* linhas de 40,7px como no ar */
  .hero__highlights { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__seal img { animation: none; }
}

/* ==========================================================================
   Segmentos (Figma 49:3123 + fundo 49:3112; mobile 49:3531 + 49:3530)
   Comportamento do site no ar: no computador o painel aberto cresce (flex-grow 2,67) e troca a cada 5 s;
   no tablet/celular os painéis viram carrossel com barra de progresso laranja.
   ========================================================================== */

:root {
  --segmentos-overlap: 60px;          /* sobe sobre o fim do hero (site no ar: margin-top -60px) */
  --segmentos-r: 40px;                /* site no ar (Figma: 60px) */
  --segmentos-pad-top: 79px;
  --segmentos-pad-bottom: 80px;
  --segmentos-gap: 50px;              /* introdução → painéis */
  --segmentos-head-w: 536px;
  --segmentos-head-gap: 14px;         /* etiqueta (caixa de 20,8px) → título */
  --segmentos-lead-w: 451px;
  --segmentos-lead-fs: 20px;
  --segmentos-paineis-gap: 16px;
  --segmentos-painel-h: 590px;
  --segmentos-painel-r: 28px;
  --segmentos-painel-pad: 40px 32px;
  --segmentos-grow: 2.67;
  --segmentos-gap-fechado: 20px;
  --segmentos-gap-aberto: 24px;
  --segmentos-titulo-fs: 20px;
  --segmentos-titulo-fs-aberto: 30px;
  --segmentos-faixa-fs: 16px;
  --segmentos-faixa-fs-aberto: 17px;
  --segmentos-nota-fs: 16px;
  --segmentos-claro: #e7ecf7;
  --segmentos-pessego: #ffb896;
  --segmentos-degrade: linear-gradient(180deg, rgba(14, 27, 61, 0) 18%, rgba(14, 27, 61, 0.6) 50%, rgba(14, 27, 61, 0.94) 100%);
  --segmentos-ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* carrossel (tablet/celular) */
  --segmentos-slide-sobra: 80px;      /* parte do próximo slide que aparece */
  --segmentos-slides: 2;
}

@media (max-width: 1023px) {
  :root {
    --segmentos-pad-top: 60px;
    --segmentos-pad-bottom: 60px;
    --segmentos-gap: 40px;
    --segmentos-painel-h: 464px;
    --segmentos-paineis-gap: 20px;
  }
}

@media (max-width: 767px) {
  :root {
    --segmentos-lead-fs: 18px;
    --segmentos-nota-fs: 14px;
    --segmentos-slide-sobra: 61px;
    --segmentos-slides: 1;
  }
}

.segmentos {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--segmentos-overlap));
  padding: var(--segmentos-pad-top) 0 var(--segmentos-pad-bottom);
  border-radius: var(--segmentos-r) var(--segmentos-r) 0 0;
  background: linear-gradient(180deg, #fff4ea 0%, var(--white) 100%);
  overflow-x: clip;
}

/* Peça de quebra-cabeça laranja à esquerda (só computador, como no ar) */
.segmentos__peca {
  position: absolute;
  z-index: -1;
  top: -13.6px;
  left: calc((100% - var(--container)) / 2 - 377.79px);
  width: 274.68px;
  height: auto;
  rotate: -14deg;
  pointer-events: none;
}

.segmentos__inner {
  display: flex;
  flex-direction: column;
  gap: var(--segmentos-gap);
}

.segmentos__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--segmentos-gap);
}
.segmentos__head {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--segmentos-head-gap);
  width: var(--segmentos-head-w);
  max-width: 100%;
}
.segmentos__head .eyebrow { margin-top: -6px; }   /* caixa da etiqueta começa acima do texto, como no ar */
.segmentos__lead {
  flex: 0 1 var(--segmentos-lead-w);
  width: var(--segmentos-lead-w);
  font-size: var(--segmentos-lead-fs);
}

/* Painéis */
.segmentos__paineis {
  display: flex;
  gap: var(--segmentos-paineis-gap);
}

.painel {
  --painel-gap: var(--segmentos-gap-fechado);
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--segmentos-painel-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: var(--painel-gap);
  padding: var(--segmentos-painel-pad);
  overflow: hidden;
  border-radius: var(--segmentos-painel-r);
  background: var(--navy);
  color: var(--white);
  transition: flex-grow 0.55s var(--segmentos-ease), gap 0.45s ease;
}
.painel.is-active { --painel-gap: var(--segmentos-gap-aberto); flex-grow: var(--segmentos-grow); }

.painel__foto {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--painel-pos, center);
  transition: transform 0.8s var(--segmentos-ease);
}
.painel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--segmentos-degrade);
}

.painel__icone {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
}
.painel__icone svg { width: 44px; height: 44px; }

.painel__titulo {
  font-size: var(--segmentos-titulo-fs);
  font-weight: var(--fw-bold);
  line-height: var(--lh-title);
  letter-spacing: -0.6px;
  color: var(--white);
  transition: font-size 0.45s ease;
}
.painel__faixa {
  max-width: 226px;
  font-size: var(--segmentos-faixa-fs);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-title);
  color: var(--segmentos-claro);
  transition: font-size 0.45s ease, max-width 0.45s ease, margin-top 0.45s ease;
}
.painel__titulo + .painel__faixa { margin-top: calc(20px - var(--painel-gap)); }   /* título → faixa sempre 20px (Figma) */
.painel.is-active .painel__titulo { font-size: var(--segmentos-titulo-fs-aberto); }
.painel.is-active .painel__faixa { font-size: var(--segmentos-faixa-fs-aberto); max-width: 604px; }

/* Nota + link: fechados somem rápido; ao abrir, entram depois que o painel cresce (igual ao ar) */
.painel__extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-height: 0;
  margin-top: calc(-1 * var(--painel-gap));
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: max-height 0.35s ease, margin-top 0.35s ease, opacity 0.15s ease, transform 0.25s ease;
}
.painel.is-active .painel__extra {
  max-height: 340px;
  margin-top: 0;
  overflow: visible;
  opacity: 1;
  transform: none;
  transition: max-height 0.5s ease 0.15s, margin-top 0.5s ease 0.15s, opacity 0.45s ease 0.4s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s;
}
.painel__nota {
  max-width: 226px;
  font-size: var(--segmentos-nota-fs);
  line-height: var(--lh-title);
  color: var(--segmentos-claro);
}
.painel__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-title);
  white-space: nowrap;
  color: var(--white);
  text-box: trim-both cap alphabetic;
  transition: color 0.25s ease;
}
.painel__link svg { flex: none; width: 20px; height: 20px; transition: transform 0.3s var(--ease); }

@media (hover: hover) {
  .painel:hover .painel__foto { transform: scale(1.04); }
  .painel__link:hover { color: var(--segmentos-pessego); }
  .painel__link:hover svg { transform: translateX(3px); }
}

.segmentos__progresso { display: none; }

/* ---------- Tablet e celular: carrossel (2 slides no tablet, 1 + sobra no celular) ---------- */
@media (max-width: 1023px) {
  .segmentos__intro { flex-direction: column; align-items: stretch; gap: 36px; }
  .segmentos__head,
  .segmentos__lead { flex: none; width: auto; }
  .segmentos__peca { display: none; }

  .segmentos__paineis {
    margin-right: calc(-1 * var(--gutter));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .segmentos__paineis::-webkit-scrollbar { display: none; }

  .painel,
  .painel.is-active {
    --painel-gap: var(--segmentos-gap-fechado);
    flex: 0 0 calc((100% - var(--segmentos-slide-sobra) - (var(--segmentos-slides) - 1) * var(--segmentos-paineis-gap)) / var(--segmentos-slides));
    scroll-snap-align: start;
  }
  .painel.is-active .painel__titulo { font-size: var(--segmentos-titulo-fs); }
  .painel.is-active .painel__faixa { font-size: var(--segmentos-faixa-fs); max-width: 226px; }

  .segmentos__progresso {
    display: block;
    width: calc(100% + var(--gutter) - var(--segmentos-slide-sobra));
    height: 4px;
    margin-top: calc(18px - var(--segmentos-gap));   /* barra 18px abaixo dos slides (site no ar) */
    overflow: hidden;
    border-radius: 4px;
    background: rgba(240, 108, 48, 0.18);
  }
  .segmentos__progresso span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--orange);
    transform: scaleX(var(--segmentos-progresso, 0.3333));
    transform-origin: left;
    transition: transform 0.4s var(--ease);
  }
}

/* ==========================================================================
   O CEMA (Figma 49:3328 fotos + 49:3159 texto, fundo 49:3113; mobile 49:3552 + 49:3513)
   ========================================================================== */

:root {
  --ocema-r: 40px;                  /* cantos de baixo (site no ar; Figma: 50px) */
  --ocema-pad-y: 80px;
  --ocema-gap: clamp(48px, 8vw, 129px);   /* fotos → texto: 129px no frame de 1920, encolhe em notebooks */
  --ocema-fotos-w: 629px;
  --ocema-fotos-ratio: 629 / 442;
  --ocema-col-gap: 19px;
  --ocema-row-gap: 12px;
  --ocema-rows: 245fr 185fr;
  --ocema-foto-r: 28px;
  --ocema-logo-w: 212px;
  --ocema-texto-w: 483px;
  --ocema-texto-min: 460px;
  --ocema-head-gap: 18px;
  --ocema-lead-fs: 20px;
  --ocema-destaque-titulo-fs: 20px;
  --ocema-destaque-texto-fs: 18px;
  --ocema-destaque-gap: 20px;
  --ocema-escurecer: rgba(14, 27, 61, 0.54);
}

@media (max-width: 1023px) {
  :root { --ocema-gap: 48px; }       /* tablet: fotos em cima, texto embaixo */
}

@media (max-width: 767px) {
  :root {
    --ocema-pad-y: 60px;
    --ocema-gap: 36px;
    --ocema-fotos-ratio: 381 / 267.73;
    --ocema-col-gap: 11.5px;
    --ocema-row-gap: 7.27px;
    --ocema-rows: 148.4fr 112.06fr;
    --ocema-foto-r: 16.96px;
    --ocema-logo-w: 128.4px;
    --ocema-lead-fs: 18px;
    --ocema-destaque-titulo-fs: 18px;
    --ocema-destaque-texto-fs: 16px;
    --ocema-destaque-gap: 16px;
  }
}

.ocema {
  position: relative;
  z-index: 2;
  padding-block: var(--ocema-pad-y);
  border-radius: 0 0 var(--ocema-r) var(--ocema-r);
  background: var(--white);
  overflow-x: clip;
}

/* Peça laranja à direita, que sobe sobre o fim dos Segmentos (só computador, como no ar) */
.ocema__peca {
  position: absolute;
  z-index: -1;
  top: -148.3px;
  right: calc((100% - var(--container)) / 2 - 396.5px);
  width: 260px;
  height: auto;
  rotate: 18deg;
  pointer-events: none;
}

.ocema__inner {
  display: flex;
  align-items: center;
  gap: var(--ocema-gap);
}

/* Mosaico: foto alta à esquerda (com o logo) e duas à direita */
.ocema__fotos {
  flex: none;
  max-width: calc(100% - var(--ocema-texto-min) - var(--ocema-gap));   /* garante espaço para o título em 2 linhas */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: var(--ocema-rows);
  gap: var(--ocema-row-gap) var(--ocema-col-gap);
  width: var(--ocema-fotos-w);
  aspect-ratio: var(--ocema-fotos-ratio);
}
.ocema__foto {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--ocema-foto-r);
  object-fit: cover;
}
.ocema__foto--direita { object-position: right center; }   /* como no ar */
.ocema__foto--chegada {
  position: relative;
  isolation: isolate;
  grid-row: span 2;
  display: grid;
  place-items: center;
}
.ocema__foto-img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% 50%;
  transition: transform 0.8s var(--ease);
}
.ocema__foto--chegada::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--ocema-escurecer);
}
.ocema__logo {
  width: var(--ocema-logo-w);
  height: auto;
}
img.ocema__foto { transition: transform 0.6s var(--ease), box-shadow 0.4s var(--ease); }

@media (hover: hover) {
  .ocema__foto--chegada:hover .ocema__foto-img { transform: scale(1.05); }
  img.ocema__foto:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(14, 27, 61, 0.45); }
}

.ocema__texto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: var(--ocema-texto-w);
  max-width: 100%;
}
.ocema__head {
  display: flex;
  flex-direction: column;
  gap: var(--ocema-head-gap);
}
.ocema__lead { font-size: var(--ocema-lead-fs); }

.ocema__destaque {
  display: flex;
  flex-direction: column;
  gap: var(--ocema-destaque-gap);
  align-self: stretch;
  padding: 18px 20px;
  border-radius: 20px 20px 42px 20px;
  background: #fff4ea;
  color: var(--text);
  line-height: var(--lh-title);
}
.ocema__destaque-titulo { font-size: var(--ocema-destaque-titulo-fs); font-weight: var(--fw-bold); }
.ocema__destaque-texto { font-size: var(--ocema-destaque-texto-fs); }

/* Tablet e celular: fotos em cima, texto embaixo */
@media (max-width: 1023px) {
  .ocema__inner { flex-direction: column; align-items: stretch; gap: var(--ocema-gap); }
  .ocema__fotos { width: 100%; max-width: var(--ocema-fotos-w); }
  .ocema__texto { width: auto; max-width: var(--ocema-fotos-w); }
  .ocema__peca { display: none; }
}

/* ==========================================================================
   Equipe — "Quem faz a magia" (Figma 49:3189 texto, 49:3207 vídeo, 49:3108 fundo; mobile 49:3571 / 49:3510)
   Entra 80px (60 no celular) por baixo da seção O CEMA, como no site no ar.
   ========================================================================== */

:root {
  --equipe-overlap: 80px;                 /* parte escondida sob a seção anterior */
  --equipe-pad-top: 80px;                 /* além da sobreposição */
  --equipe-pad-bottom: 80px;              /* além da sobreposição da Estrutura */
  --equipe-bg:
    radial-gradient(60% 70% at 85% 30%, rgba(88, 76, 214, 0.28) 0%, rgba(88, 76, 214, 0) 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(30, 90, 126, 0.45) 0%, rgba(30, 90, 126, 0) 70%),
    var(--navy);
  --equipe-eyebrow: #ffb896;              /* etiqueta clara do Figma */
  --equipe-text: #e7ecf7;
  --equipe-text-w: 413px;
  --equipe-video-w: 734px;
  --equipe-col-gap: 129px;                /* texto 413 + 129 + vídeo 734 (x 862 no Figma) */
  --equipe-fs-title: 40px;
  --equipe-gap: 26px;
  --equipe-item-gap: 15px;
  --equipe-item-pad: 13px 16px;
  --equipe-item-r: 20px;
  --equipe-item-bg: rgba(255, 255, 255, 0.05);
  --equipe-item-bg-hover: rgba(255, 255, 255, 0.09);
  --equipe-icon: 40px;
  --equipe-fs-item: 16px;
  --equipe-fs-frase: 20px;
  --equipe-video-r: 32.729px;
  --equipe-video-pad: 37.405px;
  --equipe-shade: linear-gradient(180deg, rgba(14, 27, 61, 0) 50%, rgba(14, 27, 61, 0.85) 100%);
  --equipe-play: 74.81px;
  --equipe-legenda-gap: 16.365px;
  --equipe-fs-legenda: 19.871px;
  --equipe-fs-tempo: 15.196px;
  --equipe-lh-tempo: 19.755px;
  /* Decorações (posição no frame de 1920, a partir do topo da seção) */
  --equipe-anchor: calc(50% - 960px);      /* borda esquerda do frame de 1920 */
  --equipe-linhas-x: 1064px;
  --equipe-linhas-y: 86px;
  --equipe-linhas-w: 884px;
  --equipe-linhas-h: 616px;
  --equipe-estrela-x: 1754px;
  --equipe-estrela-y: 28px;
  --equipe-estrela-w: 225px;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --equipe-col-gap: 56px; }      /* notebooks menores: o texto mantém 413px e o vídeo encolhe */
}

@media (max-width: 767px) {
  :root {
    --equipe-overlap: 60px;
    --equipe-pad-top: 60px;
    --equipe-pad-bottom: 60px;
    --equipe-fs-title: 32px;
    --equipe-fs-item: 14px;
    --equipe-fs-frase: 18px;
    --equipe-video-pad: 20px;
    --equipe-play: 31.595px;
    --equipe-fs-legenda: 14px;
    --equipe-fs-tempo: 12px;
    --equipe-anchor: 0px;
    --equipe-linhas-x: 5px;
    --equipe-linhas-y: 541px;
    --equipe-linhas-w: 420px;
    --equipe-linhas-h: 299px;
  }
}

.equipe {
  position: relative;
  margin-top: calc(-1 * var(--equipe-overlap));
  padding: calc(var(--equipe-overlap) + var(--equipe-pad-top)) 0 calc(var(--estrutura-overlap, 80px) + var(--equipe-pad-bottom));
  overflow-x: clip;
  color: var(--equipe-text);
}
/* Fundo atrás da seção anterior (os cantos arredondados dela ficam por cima) */
.equipe::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--equipe-bg);
}

/* Linhas de luz: recortadas antes do início da Estrutura */
.equipe__deco {
  position: absolute;
  inset: 0 0 var(--estrutura-overlap, 80px);
  overflow: hidden;
  pointer-events: none;
}
.equipe__linhas,
.equipe__estrela {
  position: absolute;
  max-width: none;
  pointer-events: none;
}
.equipe__linhas {
  top: var(--equipe-linhas-y);
  left: calc(var(--equipe-anchor) + var(--equipe-linhas-x));
  width: var(--equipe-linhas-w);
  height: var(--equipe-linhas-h);
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: screen;
}
/* Estrela de vidro: cruza a borda com a seção anterior, por cima dela */
.equipe__estrela {
  z-index: 3;
  top: var(--equipe-estrela-y);
  left: calc(var(--equipe-anchor) + var(--equipe-estrela-x));
  width: var(--equipe-estrela-w);
  height: auto;
  mix-blend-mode: screen;
}

.equipe__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--equipe-col-gap);
}

.equipe__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--equipe-gap);
  flex: 0 0 var(--equipe-text-w);
}
.equipe__eyebrow { height: 16px; color: var(--equipe-eyebrow); }   /* no Figma a etiqueta ocupa 16px */
.equipe__title {
  font-size: var(--equipe-fs-title);
  letter-spacing: -0.96px;
  text-box: none;                        /* desktop: o Figma não corta este título (2 × 48px) */
}
.equipe__title span { color: var(--orange); }

.equipe__list {
  display: flex;
  flex-direction: column;
  gap: var(--equipe-item-gap);
  width: 100%;
}
.equipe__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: var(--equipe-item-pad);
  border-radius: var(--equipe-item-r);
  background: var(--equipe-item-bg);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.equipe__icon {
  flex: none;
  width: var(--equipe-icon);
  height: var(--equipe-icon);
  transition: transform 0.3s var(--ease);
}
.equipe__item p {
  flex: 1 1 0;
  font-size: var(--equipe-fs-item);
  line-height: 1.2;
  color: var(--equipe-text);
}

.equipe__frase {
  font-size: var(--equipe-fs-frase);
  line-height: 1.2;
  color: var(--white);
}
.equipe__frase strong { font-weight: var(--fw-bold); }

/* Vídeo: capa com legenda; ao clicar vira o vídeo com controles */
.equipe__video {
  position: relative;
  flex: 0 1 var(--equipe-video-w);
  aspect-ratio: 734 / 413;
  overflow: hidden;
  border-radius: var(--equipe-video-r);
  background: #000;
}
.equipe__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--equipe-video-pad);
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.equipe__capa,
.equipe__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.equipe__capa { transition: transform 0.6s var(--ease); }
.equipe__play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--equipe-shade);
}
.equipe__legenda {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--equipe-legenda-gap);
}
.equipe__play-icon {
  flex: none;
  width: var(--equipe-play);
  height: var(--equipe-play);
  overflow: visible;
  transform: scale(1.25);            /* o desenho inclui a auréola laranja ao redor do botão */
  transition: transform 0.3s var(--ease);
}
.equipe__legenda-texto {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.equipe__legenda-titulo {
  font-size: var(--equipe-fs-legenda);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--white);
}
.equipe__legenda-tempo {
  font-size: var(--equipe-fs-tempo);
  font-weight: var(--fw-semibold);
  line-height: var(--equipe-lh-tempo);
  color: var(--equipe-text);
}

@media (hover: hover) {
  .equipe__item:hover { background: var(--equipe-item-bg-hover); transform: translateX(4px); }
  .equipe__item:hover .equipe__icon { transform: rotate(-8deg) scale(1.05); }
  .equipe__play:hover .equipe__capa { transform: scale(1.04); }
  .equipe__play:hover .equipe__play-icon { transform: scale(1.4); }
}

/* Tablet e celular: texto em cima, vídeo embaixo (Figma 420) */
@media (max-width: 1023px) {
  .equipe__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .equipe__text { flex: none; max-width: 640px; }
  .equipe__video { flex: none; width: 100%; }
}
@media (max-width: 767px) {
  .equipe__title { text-box: trim-both cap alphabetic; }   /* celular: cortado, como no Figma */
  .equipe__estrela { display: none; }
  .equipe__video { aspect-ratio: 380 / 213; }
}

/* ==========================================================================
   Estrutura (Figma 49:3221 conteúdo, 49:3218 fundo; mobile 49:3598 / 49:3512)
   Sobe 80px (68 no celular) sobre o fim da seção Equipe, com cantos de cima arredondados.
   ========================================================================== */

:root {
  --estrutura-overlap: 80px;
  --estrutura-r: 50px;
  --estrutura-pad-top: 80px;
  --estrutura-pad-bottom: 78px;
  --estrutura-gap: 50px;
  --estrutura-head-w: 455px;
  --estrutura-fs-title: 40px;
  --estrutura-grid-gap: 20px;
  --estrutura-row: 288px;
  --estrutura-foto-r: 30px;
  --estrutura-foto-pad: 40px;
  --estrutura-fs-foto: 20px;
  --estrutura-shade: linear-gradient(180deg, rgba(14, 27, 61, 0) 39.547%, rgba(14, 27, 61, 0.634) 70.057%, rgba(14, 27, 61, 0.765) 81.517%, rgba(14, 27, 61, 0.87) 100%);
  --estrutura-fs-sub: 32px;
  --estrutura-sub-w: 395px;
  --estrutura-ativ-gap: 38px;
  --estrutura-card-w: 197px;
  --estrutura-card-gap: 20px;
  --estrutura-card-pad: 32px;
  --estrutura-card-r: 23px;
  --estrutura-card-icon: 48px;
  --estrutura-fs-card: 20px;
  --estrutura-card-shadow: 0 18px 30px -18px rgba(14, 27, 61, 0.35);
  --estrutura-row-m: 218.5px;            /* altura das fotos na grade 2 × 2 */
  /* Peças laranjas (posição no frame de 1920, a partir do topo da seção — site no ar) */
  --estrutura-peca1-x: -87px;
  --estrutura-peca1-y: -12px;
  --estrutura-peca1-w: 261px;
  --estrutura-peca2-x: 1727px;
  --estrutura-peca2-y: 745px;
  --estrutura-peca2-w: 307px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --estrutura-row-m: 300px; }
}

@media (max-width: 767px) {
  :root {
    --estrutura-overlap: 68px;
    --estrutura-r: 30px;
    --estrutura-pad-top: 60px;
    --estrutura-pad-bottom: 60px;
    --estrutura-gap: 36px;
    --estrutura-fs-title: 32px;
    --estrutura-foto-r: 20px;
    --estrutura-foto-pad: 24px 20px;
    --estrutura-fs-foto: 14px;
    --estrutura-fs-sub: 24px;
    --estrutura-card-gap: 10px;
    --estrutura-card-pad: 16px;
    --estrutura-fs-card: 14px;
  }
}

.estrutura {
  position: relative;
  margin-top: calc(-1 * var(--estrutura-overlap));
  padding: var(--estrutura-pad-top) 0 var(--estrutura-pad-bottom);
  overflow-x: clip;
  border-radius: var(--estrutura-r) var(--estrutura-r) 0 0;
  background: var(--ice);
}

.estrutura__peca {
  position: absolute;
  max-width: none;
  height: auto;
  pointer-events: none;
}
.estrutura__peca--1 {
  top: var(--estrutura-peca1-y);
  left: calc(50% - 960px + var(--estrutura-peca1-x));
  width: var(--estrutura-peca1-w);
}
.estrutura__peca--2 {
  top: var(--estrutura-peca2-y);
  left: calc(50% - 960px + var(--estrutura-peca2-x));
  width: var(--estrutura-peca2-w);
}

.estrutura__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--estrutura-gap);
}

.estrutura__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: var(--estrutura-head-w);
  text-align: center;
}
.estrutura__title {
  font-size: var(--estrutura-fs-title);
  letter-spacing: -0.96px;
}

/* Mosaico: foto grande à esquerda; à direita uma larga em cima e duas embaixo */
.estrutura__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, var(--estrutura-row));
  gap: var(--estrutura-grid-gap);
  width: 100%;
}
.estrutura__foto--biblioteca { grid-column: 1 / 3; grid-row: 1 / 3; }
.estrutura__foto--salas { grid-column: 3 / 5; }

.estrutura__foto {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: var(--estrutura-foto-pad);
  overflow: hidden;
  border-radius: var(--estrutura-foto-r);
}
.estrutura__foto img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.estrutura__foto--biblioteca img { object-position: 54% 50%; }
.estrutura__foto--salas img { object-position: 50% 0%; }
.estrutura__foto--parque img { object-position: 44% 50%; }
.estrutura__foto--refeitorio img { object-position: 38% 50%; }
.estrutura__foto::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--estrutura-shade);
}
.estrutura__foto figcaption {
  font-size: var(--estrutura-fs-foto);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  color: var(--white);
  text-box: trim-both cap alphabetic;
  transition: transform 0.3s var(--ease);
}

/* Atividades */
.estrutura__atividades {
  display: flex;
  align-items: center;
  gap: var(--estrutura-ativ-gap);
  width: 100%;
}
.estrutura__subtitle {
  flex: 0 0 var(--estrutura-sub-w);
  font-size: var(--estrutura-fs-sub);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.96px;
  color: var(--navy);
}
.estrutura__lista {
  display: flex;
  gap: var(--estrutura-card-gap);
  margin-left: auto;
}
.estrutura__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: var(--estrutura-card-w);
  padding: var(--estrutura-card-pad);
  border-radius: var(--estrutura-card-r);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.estrutura__card svg {
  width: var(--estrutura-card-icon);
  height: var(--estrutura-card-icon);
  transition: transform 0.3s var(--ease);
}
.estrutura__card span {
  font-size: var(--estrutura-fs-card);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  letter-spacing: -0.96px;
  color: var(--navy);
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
}

@media (hover: hover) {
  .estrutura__foto:hover img { transform: scale(1.05); }
  .estrutura__foto:hover figcaption { transform: translateY(-4px); }
  .estrutura__card:hover { transform: translateY(-6px); box-shadow: var(--estrutura-card-shadow); }
  .estrutura__card:hover svg { transform: rotate(-8deg) scale(1.06); }
}

/* Notebooks menores: atividades embaixo do subtítulo */
@media (max-width: 1279px) {
  .estrutura__atividades { flex-direction: column; align-items: center; gap: 36px; text-align: center; }
  .estrutura__subtitle { flex: none; }
  .estrutura__lista { margin-left: 0; }
}

/* Tablet e celular: grade 2 × 2 (Figma 420) */
@media (max-width: 1023px) {
  .estrutura__peca { display: none; }
  .estrutura__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: var(--estrutura-row-m);
    gap: 16px 13px;
  }
  .estrutura__foto--biblioteca,
  .estrutura__foto--salas { grid-column: auto; grid-row: auto; }
  .estrutura__lista { width: 100%; }
  .estrutura__card { flex: 1 1 0; width: auto; min-width: 0; }
}

/* ==========================================================================
   Depoimentos (Figma 49:3253 sobre 49:3109; mobile 49:3661 / 49:3630 / 49:3666)
   Conteúdo e comportamento do site no ar (troca a cada 8 s, setas, arraste no celular).
   ========================================================================== */

:root {
  --depo-pad-top: 82px;
  --depo-pad-bottom: 80px;
  --depo-w: 1064px;                 /* abas e conteúdo */
  --depo-gap: 40px;                 /* cabeçalho → texto → abas → depoimento */
  --depo-gap-tabs: 40px;
  --depo-head-gap: 18px;
  --depo-eyebrow: #ffb896;
  --depo-fs-title: 40px;
  --depo-fs-lead: 20px;
  --depo-tab-gap: 16px;
  --depo-tab-h: 56px;
  --depo-tab-img: 42px;
  --depo-tab-bg: rgba(255, 255, 255, 0.07);
  --depo-tab-border: rgba(255, 255, 255, 0.16);
  --depo-tab-rel: rgba(255, 255, 255, 0.7);
  --depo-photo-w: 440px;
  --depo-body-w: 575px;
  --depo-photo-r: 44px;
  --depo-photo-h: 507px;
  --depo-who: #e7ecf7;
  --depo-badge-bg: rgba(240, 108, 48, 0.18);
  --depo-balloon-pad: 23.2px 32px;       /* Figma 24px; compensa a altura de maiúscula da fonte web (balão de 125px como no Figma) */
  --depo-balloon-r: 0 32px 32px 32px;
  --depo-balloon-fs: 16px;
  --depo-balloon-color: rgba(14, 27, 61, 0.7);
  --depo-arrow: 52px;
  --depo-bg: url("assets/img/depoimentos-fundo.svg");
}

@media (max-width: 767px) {
  :root {
    --depo-pad-top: 58px;
    --depo-pad-bottom: 60px;
    --depo-fs-title: 32px;
    --depo-fs-lead: 16px;
    --depo-gap-tabs: 36px;
    --depo-balloon-pad: 20.8px 20px;
    --depo-balloon-fs: 14px;
    --depo-bg: url("assets/img/depoimentos-fundo-mobile.svg");
  }
}

.depo {
  position: relative;
  overflow-x: clip;
  padding: var(--depo-pad-top) 0 var(--depo-pad-bottom);
  background: var(--navy) var(--depo-bg) center / 100% 100% no-repeat;
  color: var(--white);
}

/* Peças decorativas (posição do site no ar, 1920) */
.depo__peca {
  position: absolute;
  max-width: none;
  height: auto;
  pointer-events: none;
}
.depo__peca--laranja { left: -60px; top: 176px; width: 220px; rotate: 30deg; }
.depo__peca--vidro {
  right: -257px;
  top: 654px;
  width: 560px;
  z-index: 1;                        /* passa por cima do começo do banner, como no ar */
  rotate: -18deg;
  filter: brightness(1.9) contrast(1.15) saturate(1.1);
  mix-blend-mode: screen;            /* a imagem tem fundo preto (Figma: blend "screen") */
}

.depo__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--depo-gap);
  text-align: center;
}

.depo__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--depo-head-gap);
}
.depo__eyebrow { color: var(--depo-eyebrow); }
.depo__title {
  font-size: var(--depo-fs-title);
  color: var(--white);
}
.depo__lead {
  font-size: var(--depo-fs-lead);
  line-height: var(--lh-title);
  color: var(--white);
}

.depo__widget {
  display: flex;
  flex-direction: column;
  gap: var(--depo-gap-tabs);
  width: 100%;
  margin-top: calc(var(--depo-gap-tabs) - var(--depo-gap));
}

/* Abas: foto + nome. Quando não cabem, deslizam na horizontal */
.depo__tabs {
  position: relative;
  display: flex;
  gap: var(--depo-tab-gap);
  width: 100%;
  max-width: var(--depo-w);
  margin-inline: auto;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.depo__tabs::-webkit-scrollbar { display: none; }

.depo__tab {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  gap: 10px;
  height: var(--depo-tab-h);
  padding: 6px 13px 6px 9px;
  border: 1px solid var(--depo-tab-border);
  border-radius: 13px;
  background: var(--depo-tab-bg);
  color: var(--white);
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.depo__tab-img {
  flex: none;
  width: var(--depo-tab-img);
  height: var(--depo-tab-img);
  border-radius: 12px;
  object-fit: cover;
}
.depo__tab-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 79px;
  white-space: nowrap;
}
.depo__tab-name,
.depo__tab-rel { line-height: 1.2; text-box: trim-both cap alphabetic; }
.depo__tab-name { font-size: 14px; font-weight: var(--fw-bold); }
.depo__tab-rel { font-size: 12px; color: var(--depo-tab-rel); }

.depo__tab[aria-selected="true"] {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}
.depo__tab[aria-selected="true"] .depo__tab-rel { color: var(--text); }

/* Depoimento: foto + texto em balões */
.depo__stage {
  position: relative;
  width: 100%;
}

.depo__panel {
  display: flex;
  justify-content: space-between;
  column-gap: 24px;                  /* entre 1024 e 1104 foto e texto encolhem juntos */
  align-items: stretch;
  width: 100%;
  max-width: var(--depo-w);
  margin-inline: auto;
  text-align: left;
  animation: depo-in 0.45s var(--ease) both;
}
.depo__panel[hidden] { display: none; }
@keyframes depo-in {
  from { opacity: 0; transform: translateY(10px); }
}

.depo__photo {
  flex: 0 1 var(--depo-photo-w);
  min-width: 0;
  height: auto;
  min-height: var(--depo-photo-h);
  border-radius: var(--depo-photo-r);
  object-fit: cover;
}

.depo__body {
  display: flex;
  flex: 0 1 var(--depo-body-w);
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.depo__who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 22px;
  font-size: 18px;
  line-height: 21.6px;
  color: var(--depo-who);
  text-box: none;
}
.depo__who strong { font-weight: var(--fw-bold); color: var(--white); }
.depo__badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--depo-badge-bg);
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: 21.6px;
  color: var(--white);
  text-box: trim-both cap alphabetic;
}

.depo__balloons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.depo__balloon {
  padding: var(--depo-balloon-pad);
  border-radius: var(--depo-balloon-r);
  background: var(--white);
  font-size: var(--depo-balloon-fs);
  line-height: 1.4;
  color: var(--depo-balloon-color);
}

/* Setas laterais (só desktop) */
.depo__arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  place-items: center;
  width: var(--depo-arrow);
  height: var(--depo-arrow);
  padding: 0;
  border: 1px solid rgba(240, 108, 48, 0.2);
  border-radius: 50%;
  background: rgba(240, 108, 48, 0.1);
  color: var(--orange);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.depo__arrow svg { width: 100%; height: 100%; }
.depo__arrow--prev { left: 0; }
.depo__arrow--next { right: 0; }
.depo__arrow--next svg { transform: scaleX(-1); }

@media (hover: hover) {
  .depo__tab[aria-selected="false"]:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
  }
  .depo__arrow:hover { border-color: var(--orange); background: var(--orange); color: var(--white); }
}

/* Setas só quando há espaço ao lado do conteúdo; peças só onde não encostam nas abas e no texto */
@media (max-width: 1499px) {
  .depo__peca { display: none; }
}
@media (max-width: 1199px) {
  .depo__arrow { display: none; }
}

/* Tablet e celular: sem foto; abas deslizam de ponta a ponta (como no ar) */
@media (max-width: 1023px) {
  .depo__photo { display: none; }
  .depo__tabs {
    max-width: none;
    width: auto;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .depo__tab { flex: 0 0 auto; }
  .depo__body { flex-basis: 100%; }
}

@media (max-width: 767px) {
  .depo__tab-text { min-width: 88px; }
  .depo__who { display: none; }      /* no celular o Figma e o site no ar mostram só os balões */
  .depo__body { gap: 0; }
}

/* ==========================================================================
   Banner CTA (Figma 49:3334 / mobile 49:3673)
   ========================================================================== */

:root {
  --banner-pad-top: 80px;
  --banner-pad-bottom: 2px;
  --banner-pad: 80px;
  --banner-r: 30px;
  --banner-text-w: 455px;
  --banner-fs-title: 40px;
  --banner-fs-lead: 20px;
  --banner-shade: linear-gradient(81.65deg, rgba(14, 27, 61, 0.63) 7.76%, rgba(14, 27, 61, 0) 70.03%);
}

@media (max-width: 767px) {
  :root {
    --banner-pad-top: 56px;
    --banner-pad-bottom: 0px;
    --banner-pad: 60px 20px;
    --banner-fs-title: 32px;
    --banner-shade: linear-gradient(180deg, rgba(14, 27, 61, 0) 11.56%, rgba(14, 27, 61, 0.249) 34.11%, rgba(14, 27, 61, 0.824) 50.12%, var(--navy) 64.18%);
  }
}

.banner {
  position: relative;
  overflow-x: clip;
  padding: var(--banner-pad-top) 0 var(--banner-pad-bottom);
  background: var(--ice);
}

/* Peça laranja na lateral esquerda (posição do site no ar, 1920) */
.banner__peca {
  position: absolute;
  left: -107px;
  top: 307px;
  width: 213px;
  max-width: none;
  height: auto;
  z-index: 1;                        /* sobrepõe o início do FAQ, como no ar */
  rotate: -10deg;
  pointer-events: none;
}

.banner__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--banner-r);
  background: var(--navy);
}

.banner__media,
.banner__card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
}
.banner__card::after {              /* degradê sobre a foto */
  content: "";
  background: var(--banner-shade);
}
.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 7.2%;          /* Figma: foto na largura do card, deslocada 5,57% para cima */
  transition: transform 1.2s var(--ease);
}

.banner__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  padding: var(--banner-pad);
}
.banner__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: var(--banner-text-w);
}
.banner__eyebrow { color: var(--orange); }
.banner__title {
  font-size: var(--banner-fs-title);
  color: var(--white);
}
.banner__lead {
  font-size: var(--banner-fs-lead);
  line-height: var(--lh-title);
  color: rgba(255, 255, 255, 0.7);
}

@media (hover: hover) {
  .banner__card:hover .banner__img { transform: scale(1.03); }
}

/* Peça só quando o card não encosta na borda da tela (senão cobriria o canto do card) */
@media (max-width: 1499px) {
  .banner__peca { display: none; }
}

/* Celular: foto no alto do card, texto embaixo sobre o degradê */
@media (max-width: 767px) {
  .banner__card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 513px;
  }
  .banner__media { bottom: auto; }
  .banner__img {
    width: 154.6%;
    max-width: none;
    height: auto;
    margin-left: -54.59%;
    object-fit: initial;
  }
}

/* ==========================================================================
   FAQ (Figma 49:3345 sobre o fundo 49:3219 / mobile 49:3682 sobre 49:3451)
   ========================================================================== */

:root {
  --faq-pad-top: 78px;
  --faq-pad-bottom: 80px;
  --faq-gap: 40px;
  --faq-head-gap: 18px;
  --faq-fs-title: 40px;
  --faq-ls-title: -0.96px;
  --faq-fs-lead: 20px;
  --faq-lead-color: rgba(14, 27, 61, 0.7);
  --faq-w: 1000px;
  --faq-item-gap: 20px;
  --faq-item-pad: 20px;
  --faq-item-r: 20px;
  --faq-fs-q: 18px;
  --faq-icon: 36px;
  --faq-icon-glyph: 20px;
  --faq-icon-bg: #fff4ea;
  --faq-r-top: 50px;
  --faq-bg: linear-gradient(180deg, var(--ice) 0%, #fff4ea 100%);
}

@media (max-width: 767px) {
  :root {
    --faq-pad-top: 60px;
    --faq-pad-bottom: 60px;
    --faq-gap: 36px;
    --faq-fs-title: 32px;
  }
}

.faq {
  padding: var(--faq-pad-top) 0 var(--faq-pad-bottom);
  border-radius: var(--faq-r-top) var(--faq-r-top) 0 0;
  background: var(--faq-bg);
}

.faq__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--faq-gap);
}

.faq__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--faq-head-gap);
  text-align: center;
}
.faq__title {
  font-size: var(--faq-fs-title);
  letter-spacing: var(--faq-ls-title);
}

.faq__lead {
  font-size: var(--faq-fs-lead);
  line-height: 1.2;
  text-align: center;
  color: var(--faq-lead-color);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--faq-item-gap);
  width: 100%;
  max-width: var(--faq-w);
}

.faq__item {
  border-radius: var(--faq-item-r);
  background: var(--white);
  transition: box-shadow 0.3s var(--ease);
  interpolate-size: allow-keywords;   /* abertura suave onde o navegador suporta */
}
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--faq-item-pad);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text {
  font-size: var(--faq-fs-q);
  font-weight: var(--fw-semibold);
  line-height: 22px;
  color: var(--navy);
  text-box: none;                    /* pergunta longa quebra em 2 linhas e o cartão cresce, como no ar (84px) */
  transition: color 0.25s var(--ease);
}

.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--faq-icon);
  height: var(--faq-icon);
  border-radius: 50%;
  background: var(--faq-icon-bg);
  color: var(--navy);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}
.faq__icon svg { width: var(--faq-icon-glyph); height: var(--faq-icon-glyph); }
.faq__icon-v { transform-origin: center; transform-box: fill-box; transition: transform 0.3s var(--ease); }
.faq__item[open] .faq__icon-v { transform: scaleY(0); }   /* "+" vira "−" */
.faq__item[open] .faq__icon { background: var(--orange); color: var(--white); }

.faq__a {
  padding: 0 var(--faq-item-pad) var(--faq-item-pad);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
}
.faq__a p { text-box: none; }
.faq__a a { color: var(--orange); font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 2px; }

@media (hover: hover) {
  .faq__item:hover { box-shadow: 0 14px 30px -18px rgba(14, 27, 61, 0.35); }
  .faq__q:hover .faq__q-text { color: var(--orange); }
  .faq__item:not([open]) .faq__q:hover .faq__icon { transform: rotate(90deg); }
}

/* ==========================================================================
   Página 404 e Política de Privacidade (não existem no Figma; seguem os tokens)
   ========================================================================== */

.not-found { background: var(--navy); color: var(--white); }
.not-found .title { color: var(--white); }
.not-found .lead { color: var(--text-light); }
.not-found__inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.policy { background: var(--ice); }
.policy__header { background: var(--white); border-bottom: 1px solid rgba(14, 27, 61, 0.12); }
.policy__bar { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.policy__back { font-weight: var(--fw-semibold); color: var(--navy); }
.policy__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: calc(860px + 2 * var(--gutter));
  padding-block: var(--section-y);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--navy);
}
.policy__content p,
.policy__content li { text-box: none; }
.policy__content h2 { margin-top: 24px; font-family: var(--font); font-size: 22px; text-box: none; }
.policy__content ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.policy__content a,
.policy__link { color: var(--navy); text-decoration: underline; }
.policy__link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.policy__updated { font-size: 14px; color: var(--text); }
.policy__table { overflow-x: auto; }
.policy__table table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 14px; }
.policy__table th,
.policy__table td { padding: 10px 12px; border: 1px solid rgba(14, 27, 61, 0.12); text-align: left; }
@media (hover: hover) {
  .policy__back:hover { color: var(--orange); }
}


/* ==========================================================================
   Aviso de cookies (LGPD) — não existe no Figma; segue os tokens do site
   ========================================================================== */

.consent {
  position: fixed;
  z-index: 60;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.consent[hidden] { display: none; }
.consent__box {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 860px;
  padding: 24px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 50px -20px rgba(53, 18, 29, 0.45), 0 0 0 1px rgba(14, 27, 61, 0.12);
  color: var(--text);
}
.consent__title { font-size: 18px; font-weight: 700; color: var(--navy); }
.consent__text { font-size: 14px; line-height: 1.5; text-box: none; }
.consent__text a { color: var(--navy); text-decoration: underline; }
.consent__prefs { display: flex; flex-direction: column; gap: 10px; }
.consent__prefs[hidden] { display: none; }
.consent__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.consent__opt input { margin-top: 2px; accent-color: var(--orange); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.consent__btn {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
}
.consent__btn[hidden] { display: none; }
.consent__btn--primary { border-color: transparent; background: var(--grad-orange); color: var(--white); }
.consent__btn--link {
  border-color: transparent;
  padding-inline: 4px;
  font-weight: 600;
  text-decoration: underline;
  text-transform: none;
}


/* ==========================================================================
   Localização + Rodapé (Figma 49:3380 / mobile 49:3452) — um bloco escuro único
   ========================================================================== */

:root {
  --footer-bg: var(--navy-deep);
  --footer-pad-y: 80px;
  --footer-pad-bottom: 83px;          /* Figma/ar: o bloco tem 1001 de altura */
  --footer-gap: 60px;
  --visite-gap: 34px;                 /* cabeçalho → mapa */
  --visite-head-gap: 24px;
  --visite-texts-w: 431px;
  --visite-texts-gap: 12px;
  --visite-fs-title: 24px;
  --visite-fs-sub: 18px;
  --visite-sub-color: var(--text-light);
  --visite-address-sub: #e7ecf7;
  --visite-map-h: 400px;
  --visite-map-r: 20px;
  --visite-map-bg: #1a2547;
  --footer-brand-w: 370px;
  --footer-cols-gap: 243px;
  --footer-logo-w: 136px;
  --footer-logo-h: 45px;
  --footer-fs: 15px;
  --footer-fs-heading: 13px;
  --footer-ls-heading: 1.82px;
  --footer-icon: 32px;
  --footer-icon-glyph: 16px;
  --footer-icon-bg: rgba(255, 255, 255, 0.08);
  --footer-icon-color: #ffb896;
  --footer-fs-copy: 13px;
}

@media (max-width: 767px) {
  :root {
    --footer-pad-y: 60px;
    --footer-pad-bottom: 60px;
    --visite-head-gap: 32px;
    --visite-texts-gap: 18px;
    --visite-map-h: 253px;
  }
}

.visite,
.footer {
  background: var(--footer-bg);
  color: var(--white);
}
.visite { padding-top: var(--footer-pad-y); }
.footer { padding: var(--footer-gap) 0 var(--footer-pad-bottom); }

.visite__inner {
  display: flex;
  flex-direction: column;
  gap: var(--visite-gap);
}
.visite__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--visite-head-gap);
}
.visite__texts {
  display: flex;
  flex-direction: column;
  gap: var(--visite-texts-gap);
  max-width: var(--visite-texts-w);
}
.visite__title {
  font-size: var(--visite-fs-title);
  font-weight: var(--fw-bold);
  line-height: 28.8px;
  letter-spacing: -0.48px;
  color: var(--white);
}
.visite__sub {
  font-size: var(--visite-fs-sub);
  line-height: 21.6px;
  color: var(--visite-sub-color);
}

.visite__address {
  display: flex;
  align-items: center;
  gap: 12px;
}
.visite__pin {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--orange);
  transition: transform 0.3s var(--ease);
}
.visite__address-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 18px;
  white-space: nowrap;
  color: var(--visite-address-sub);
}
.visite__address-text strong {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--white);
  transition: color 0.25s var(--ease);
}

.visite__map {
  height: var(--visite-map-h);
  overflow: hidden;
  border-radius: var(--visite-map-r);
  background: var(--visite-map-bg);
}
.visite__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Colunas do rodapé (no ar: marca 370 + navegação + contato, com 243 entre elas) */
.footer__cols {
  display: flex;
  align-items: flex-start;
  gap: var(--footer-cols-gap);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 33px;
  flex: 0 1 var(--footer-brand-w);
}
.footer__brand > img {
  width: var(--footer-logo-w);
  height: var(--footer-logo-h);
}
.footer__desc {
  font-size: var(--footer-fs);
  line-height: 18px;
  color: var(--text-light);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: none;
}
.footer__col--contact { gap: 18px; }
.footer__heading {
  font-size: var(--footer-fs-heading);
  font-weight: var(--fw-bold);
  line-height: 15.6px;
  letter-spacing: var(--footer-ls-heading);
  text-transform: uppercase;
  color: var(--white);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 23px;
  font-size: var(--footer-fs);
  line-height: 18px;
  color: var(--text-light);
}
.footer__links li { text-box: trim-both cap alphabetic; }
.footer__links a { transition: color 0.25s var(--ease); }

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--footer-fs);
  line-height: 18px;
  white-space: nowrap;
  color: var(--text-light);
  transition: color 0.25s var(--ease);
}
.footer__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--footer-icon);
  height: var(--footer-icon);
  border-radius: 50%;
  background: var(--footer-icon-bg);
  color: var(--footer-icon-color);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease);
}
.footer__icon svg { width: var(--footer-icon-glyph); height: var(--footer-icon-glyph); }

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: var(--footer-gap);
  font-size: var(--footer-fs-copy);
  line-height: 15.6px;
  color: var(--text-light);
}
.copyright__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}
.copyright__links a,
.copyright__links button {
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--footer-fs-copy);
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.copyright__dev {
  display: flex;
  align-items: center;
  gap: 12px;
}
.copyright__dev img { width: 72px; height: 30px; }

@media (hover: hover) {
  .visite__address:hover strong { color: var(--orange-2); }
  .visite__address:hover .visite__pin { transform: translateY(-3px); }
  .footer__links a:hover { color: var(--white); }
  .footer__contact:hover { color: var(--white); }
  .footer__contact:hover .footer__icon { background: var(--orange); color: var(--white); transform: translateY(-2px); }
  .copyright__links a:hover,
  .copyright__links button:hover { color: var(--orange-2); }
}

/* Tablet: colunas mais próximas */
@media (max-width: 1279px) {
  :root { --footer-cols-gap: clamp(40px, 8vw, 243px); }
}

/* Mobile e tablet estreito: tudo empilhado (Figma 420) */
@media (max-width: 767px) {
  .visite__head {
    flex-direction: column;
    align-items: stretch;
  }
  .footer__cols {
    flex-direction: column;
    gap: var(--footer-gap);
  }
  .footer__brand { flex: none; }
  .copyright {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
