/* ============================================================
   SITE DE APOIADORES — style.css
   Tokens, base, componentes e seções (desktop-first, 1440px ref.)
   Breakpoints específicos ficam em responsive.css
============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Paleta Brasil */
  --verde: #009c3b;
  --verde-dark: #007a2f;
  --amarelo: #ffdf00;
  --amarelo-dark: #f7c600;
  --azul: #002776;
  --azul-light: #0a3d91;
  --branco: #ffffff;
  --n50: #f5f7fa;
  --n200: #eaeaea;
  --n900: #1e1e1e;

  /* Tipografia */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Escala de espaço */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  /* Raio e sombras */
  --radius: 1.5rem;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 30px rgba(30, 30, 30, 0.07);
  --shadow-lift: 0 28px 70px rgba(0, 39, 118, 0.14);

  /* Largura útil de conteúdo */
  --container: 1600px;
  --gutter: 4rem;
}

/* ---------- Reset e base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; } /* rolagem nativa suave, sem bibliotecas */

body {
  font-family: var(--font-body);
  color: var(--n900);
  background: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--verde); color: #fff; }

.is-hidden { display: none !important; }

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

.section { padding-block: var(--space-6); }
.section--neutro { background: var(--n50); }

/* Ícones Lucide herdam a cor do texto */
svg.lucide { width: 1.2em; height: 1.2em; stroke-width: 2; }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: var(--space-2);
}

/* ============================================================
   BOTÕES — escala, glow, brilho atravessando e ripple (js)
============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  padding: 1rem 2.1rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--azul-light); outline-offset: 3px; }

/* brilho que atravessa */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 135%; }

.btn--verde {
  color: #fff;
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  box-shadow: 0 10px 28px rgba(0, 156, 59, 0.35);
}
.btn--verde:hover { box-shadow: 0 16px 40px rgba(0, 156, 59, 0.45); }

.btn--amarelo {
  color: var(--n900);
  background: linear-gradient(135deg, var(--amarelo), var(--amarelo-dark));
  box-shadow: 0 10px 28px rgba(247, 198, 0, 0.4);
}
.btn--amarelo:hover { box-shadow: 0 16px 40px rgba(247, 198, 0, 0.55); }

.btn--ghost {
  color: var(--azul);
  border: 2px solid rgba(0, 39, 118, 0.18);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--verde); color: var(--verde-dark); background: rgba(0, 156, 59, 0.05); }

.btn--whatsapp { color: #fff; background: linear-gradient(135deg, #25d366, #1da851); }
.btn--telegram { color: #fff; background: linear-gradient(135deg, #229ed9, #1b7fb0); }

/* tinta do ripple (criada via JS) */
.ripple-ink {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ============================================================
   CARDS — base glass sutil + hover com elevação/zoom
============================================================ */
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 250, 0.8));
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lift);
  border-color: rgba(0, 156, 59, 0.25);
}
/* brilho passando no card */
.card::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s ease;
  pointer-events: none;
}
.card:hover::after { left: 160%; }

/* ============================================================
   HERO — exatamente 100vw × 100vh, conteúdo centralizado
============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* mobile: barra de endereço */
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: -6%; /* folga para o parallax não mostrar bordas */
  background:
    radial-gradient(ellipse 70% 55% at 78% 28%, rgba(0, 156, 59, 0.42), transparent 55%),
    radial-gradient(ellipse 60% 50% at 18% 72%, rgba(10, 61, 145, 0.5), transparent 55%),
    radial-gradient(circle at 42% 44%, rgba(255, 223, 0, 0.1), transparent 42%),
    linear-gradient(125deg, #062a13 0%, var(--azul) 52%, #041d2e 100%);
  will-change: transform;
}
.hero__media video { width: 100%; height: 100%; object-fit: cover; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 39, 118, 0.35), rgba(30, 30, 30, 0.25) 45%, rgba(15, 15, 15, 0.72));
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--space-3);
  max-width: 90rem;
}

.hero__kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--amarelo);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.5vw, 9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin-top: var(--space-3);
  margin-inline: auto;
  max-width: 44rem;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
}

.hero__hint {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.hero__hint span {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero__arrow {
  width: 2.4rem !important;
  height: 2.4rem !important;
  color: var(--amarelo);
  animation: arrow-bounce 1.6s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* ============================================================
   FRASE PRINCIPAL — mask reveal esquerda → direita
   Uma linha só no desktop (nowrap ≥ 1024px, ver responsive.css)
============================================================ */
.phrase {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding-block: var(--space-5);
}

.phrase__text {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-align: center;
  /* clamp calibrado para caber em UMA linha de 1280px a 1920px+ */
  font-size: clamp(2rem, 4.6vw, 5.5rem);
  padding-inline: var(--space-3);
}

/* camada base: texto apagado */
.phrase__base { color: rgba(30, 30, 30, 0.12); }

/* camada de preenchimento: gradiente da campanha, revelada por clip-path */
.phrase__fill {
  position: absolute;
  inset: 0;
  padding-inline: var(--space-3);
  background: linear-gradient(90deg, var(--verde) 0%, var(--azul-light) 55%, var(--verde-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  clip-path: inset(0 100% 0 0); /* animado no animations.js */
  will-change: clip-path;
}

/* ============================================================
   FORMAS DE AJUDAR — grid de 4 colunas, alturas idênticas
============================================================ */
.ways { padding-top: 0; }

.ways__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  align-items: stretch;
}

.way {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  height: 100%;
}

.way__icon {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.2rem;
  margin-bottom: var(--space-1);
}
.way__icon svg { width: 2rem; height: 2rem; }
.way__icon--verde  { background: rgba(0, 156, 59, 0.1);  color: var(--verde-dark); }
.way__icon--amarelo{ background: rgba(255, 223, 0, 0.18); color: #8a6d00; }
.way__icon--azul   { background: rgba(0, 39, 118, 0.08); color: var(--azul-light); }

.way__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.way__text { color: rgba(30, 30, 30, 0.65); flex-grow: 1; }
.way__btn { margin-top: auto; align-self: flex-start; padding: 0.8rem 1.6rem; font-size: 0.92rem; }

/* ============================================================
   NÚMEROS
============================================================ */
.stats {
  background: linear-gradient(90deg, var(--azul), var(--azul-light));
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-5);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.6vw, 3.8rem);
  font-weight: 800;
  color: var(--amarelo);
}
.stat__label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ============================================================
   MÓDULOS
============================================================ */
.module__header { max-width: 60rem; margin-bottom: var(--space-4); }
.module__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}
.module__lead { font-size: 1.15rem; line-height: 1.75; color: rgba(30, 30, 30, 0.68); max-width: 48rem; }

/* ============================================================
   FORMULÁRIO PREMIUM
============================================================ */
.form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.form__field--wide { grid-column: span 2; }
.form__actions { grid-column: 1 / -1; }

.form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.form label small { font-weight: 400; color: rgba(30, 30, 30, 0.5); }

.input {
  width: 100%;
  border-radius: 1rem;
  border: 1.5px solid var(--n200);
  background: #fff;
  padding: 1rem 1.2rem;
  font: inherit;
  color: var(--n900);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.input:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(0, 156, 59, 0.12);
  transform: translateY(-1px);
}
.input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.form__error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #dc2626;
}
.form__field.has-error .form__error { display: block; animation: error-in 0.3s ease; }
@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.notice {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  color: var(--verde-dark);
  font-weight: 600;
  font-size: 1.1rem;
}
.notice svg { width: 1.8rem; height: 1.8rem; flex-shrink: 0; }

/* ============================================================
   FOTO COM MARCA D'ÁGUA
============================================================ */
.photo-result { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.photo-result img { max-height: 460px; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.photo-result__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ============================================================
   MISSÕES
============================================================ */
.missions {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  text-align: center;
  font-weight: 600;
}
.mission svg { width: 2.4rem; height: 2.4rem; color: var(--azul-light); }

.group-links { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ============================================================
   COMITÊ
============================================================ */
.finder {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  max-width: 60rem;
}
.finder--stack { grid-template-columns: 1fr 1fr auto; margin-bottom: 0; max-width: none; }

.committee { padding: var(--space-4); }
.badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  background: rgba(0, 156, 59, 0.1);
  color: var(--verde-dark);
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.committee__title { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.committee__title--azul { color: var(--azul); font-size: 1.4rem; margin-bottom: 0.5rem; }
.committee__visit { color: rgba(30, 30, 30, 0.65); margin-bottom: var(--space-3); }

.committee__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-block: var(--space-3);
  color: rgba(30, 30, 30, 0.75);
}
.committee__info dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul);
}
.committee__info dd { margin-top: 0.3rem; }
.committee__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.notice-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-2);
  color: var(--verde-dark);
  font-weight: 600;
}
.notice-inline svg { width: 1.2rem; height: 1.2rem; }

/* ============================================================
   CTA E RODAPÉ
============================================================ */
.cta {
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #fff;
  text-align: center;
  padding-block: var(--space-6);
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 58rem;
  margin-inline: auto;
}
.cta__text { margin-top: var(--space-2); font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); }

.footer {
  border-top: 1px solid var(--n200);
  padding-block: var(--space-4);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(30, 30, 30, 0.5);
}

/* ============================================================
   ESTADOS DE ANIMAÇÃO (JS aplica os finais)
============================================================ */
[data-reveal] { opacity: 0; transform: translateY(50px); }
[data-hero] { opacity: 0; }

/* Acessibilidade: reduz movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-hero] { opacity: 1; transform: none; }
  .phrase__fill { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   FOTOS DO CANDIDATO — cantos arredondados, sombra, hover zoom
   Sem o arquivo de imagem, um placeholder elegante assume.
============================================================ */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  background: linear-gradient(160deg, rgba(0, 156, 59, 0.12), rgba(10, 61, 145, 0.14));
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* mostra sempre a cabeça */
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.photo:hover img { transform: scale(1.035); } /* zoom bem discreto */

.photo__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  padding: var(--space-2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--azul);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.35) 14px 15px),
    linear-gradient(160deg, rgba(0, 156, 59, 0.1), rgba(255, 223, 0, 0.12), rgba(10, 61, 145, 0.12));
}
.photo__placeholder svg { width: 2rem; height: 2rem; }
.photo--empty img { display: none; }
.photo--empty .photo__placeholder { display: flex; }

/* ---------- Hero com foto ---------- */
.hero__content { position: relative; z-index: 2; }

/* ---------- "Como posso ajudar": foto 40% + cards 60% ---------- */
.ways__layout {
  display: grid;
  grid-template-columns: 40% 1fr; /* foto ~40% / conteúdo ~60% */
  gap: var(--space-4);
  align-items: stretch;
}
.ways__photo { align-self: center; aspect-ratio: 4 / 5; height: auto; }
.ways__layout .ways__grid { grid-template-columns: repeat(2, 1fr); }

/* ---------- Módulos com foto lateral ---------- */
.module__split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--space-5);
  align-items: start;
}
.module__split--invert { grid-template-columns: 0.75fr 1.25fr; }
.module__photo { aspect-ratio: 4 / 5; position: sticky; top: var(--space-4); }
.photo--phone { aspect-ratio: 9 / 16; max-width: 22rem; justify-self: center; }

/* ---------- Autocomplete de cidades ---------- */
.finder--city { grid-template-columns: minmax(0, 34rem) auto; }
.autocomplete { position: relative; }
.autocomplete__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  max-height: 17rem;
  overflow: auto;
  list-style: none;
  border-radius: 1rem;
  border: 1px solid var(--n200);
  background: #fff;
  box-shadow: var(--shadow-lift);
  padding: 0.4rem;
}
.autocomplete__list li {
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.autocomplete__list li:hover,
.autocomplete__list li[aria-selected="true"] {
  background: rgba(0, 156, 59, 0.1);
  color: var(--verde-dark);
}
.autocomplete__list mark { background: none; color: var(--verde-dark); font-weight: 700; }

/* ---------- Comitê: descrição e eventos ---------- */
.committee__desc {
  color: rgba(30, 30, 30, 0.7);
  max-width: 46rem;
  margin-bottom: var(--space-2);
}
.committee__events { list-style: none; }
.committee__events li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}
.committee__events li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--amarelo-dark);
}

/* ---------- Rodapé com foto ---------- */
.footer { padding-block: var(--space-5); text-align: center; }
.footer__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--n900); }
.footer__role { font-weight: 600; color: var(--verde-dark); margin-top: 0.2rem; }
.footer__note { margin-top: 0.6rem; }


/* ============================================================
   SEÇÃO HISTÓRIA — foto (40%) + texto (60%)
============================================================ */
.historia__layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: var(--space-5);
  align-items: center;
}
.historia__photo {
  aspect-ratio: 4 / 5;
  align-self: center;
}
.historia__content .module__title { margin-top: 0.4rem; }
.historia__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 48rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(30, 30, 30, 0.7);
}

/* ============================================================
   SEÇÃO PROJETOS — grade de cards (reaproveita .card e .way__icon)
============================================================ */
.projetos__header { max-width: 60rem; }
.projetos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  align-items: stretch;
}
.projeto {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  height: 100%;
}
.projeto .way__title { margin-top: 0.2rem; }
.projeto .way__text { flex-grow: 1; }

/* ============================================================
   RODAPÉ — dados legais de campanha (CNPJ, razão social, contato)
============================================================ */
.footer__mail {
  display: inline-block;
  margin-top: var(--space-2);
  font-weight: 600;
  color: var(--azul);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(0, 39, 118, 0.35);
  transition: border-color 0.25s ease;
}
.footer__mail:hover { border-color: var(--azul); }

.footer__legal {
  margin: var(--space-3) auto 0;
  max-width: 44rem;
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--n200);
}
.footer__legal-item dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azul);
}
.footer__legal-item dd {
  margin-top: 0.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(30, 30, 30, 0.72);
}

/* ============================================================
   HISTÓRIA — texto em slides, sempre na altura exata da foto
============================================================ */
.historia__content { min-width: 0; }
.historia__text.is-slides {
  display: block;
  width: 100%;
  height: var(--historia-max, 30rem);
  overflow: hidden;
}
.historia__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.historia__text.is-sliding .historia__track { will-change: transform; }
.historia__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow: hidden;
}

/* ---------- Navegação (setas + indicadores) ---------- */
.historia__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.historia__arrow {
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0, 39, 118, 0.22);
  border-radius: var(--radius-pill);
  background: var(--branco);
  color: var(--azul);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.historia__arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--azul);
}
.historia__arrow:disabled { opacity: 0.3; cursor: default; }
.historia__dots { display: flex; gap: 0.45rem; }
.historia__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(0, 39, 118, 0.22);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}
.historia__dot.is-active { width: 1.7rem; background: var(--azul); }
.historia__count {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(30, 30, 30, 0.45);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .historia__track { transition: none; }
}
