/* =========================================================
   MÁRIO LÚCIO 23529 — LANDING PAGE DE CAMPANHA
   Paleta: preto, amarelo (extraído do logo oficial) e branco
   ========================================================= */

:root {
  /* Paleta oficial — exclusivamente preto, amarelo e branco.
     Tons secundários vêm SEMPRE de opacidade sobre preto ou branco,
     nunca de um cinza / bege / creme separado. */
  --black: #0a0a0a;
  --black-soft: #141414;
  --yellow: #f9c10f;
  --yellow-dark: #dba60a;
  --white: #ffffff;
  --gray-900: #1a1a1a; /* quase-preto para texto principal sobre branco */

  /* Preto com opacidade — textos secundários, bordas e sombras em fundo claro */
  --ink-06: rgba(10, 10, 10, 0.06);
  --ink-10: rgba(10, 10, 10, 0.1);
  --ink-15: rgba(10, 10, 10, 0.16);
  --ink-25: rgba(10, 10, 10, 0.25);
  --ink-45: rgba(10, 10, 10, 0.46);
  --ink-60: rgba(10, 10, 10, 0.64);
  --ink-75: rgba(10, 10, 10, 0.78);

  /* Branco com opacidade — textos secundários e bordas em fundo escuro */
  --paper-08: rgba(255, 255, 255, 0.08);
  --paper-12: rgba(255, 255, 255, 0.12);
  --paper-25: rgba(255, 255, 255, 0.25);
  --paper-55: rgba(255, 255, 255, 0.56);
  --paper-72: rgba(255, 255, 255, 0.74);

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.4);

  --header-h: 84px;
  --container: 1240px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

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

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

/* Links cujo destino em CAMPAIGN_CONFIG ainda é um {{PLACEHOLDER}}:
   ficam visivelmente indisponíveis e não respondem ao clique.
   Voltam ao normal automaticamente quando o valor real é preenchido. */
.link-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none !important;
  filter: grayscale(0.3);
}
.link-disabled:hover { transform: none !important; box-shadow: none !important; }

/* Evita que o cabeçalho fixo esconda os títulos ao navegar por âncoras */
section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--gray-900); position: relative; padding-left: 22px; }
.eyebrow-dark::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 4px;
  background: var(--yellow);
  border-radius: 2px;
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-60);
  max-width: 620px;
  margin-top: 16px;
}
.section-lead-light { color: rgba(255,255,255,0.72); }

.section-head { margin-bottom: 48px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 8px 20px rgba(249, 193, 15, 0.35);
}
.btn-yellow:hover { background: var(--yellow-dark); box-shadow: 0 12px 28px rgba(249, 193, 15, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-outline-dark {
  background: transparent;
  color: var(--gray-900);
  border-color: var(--ink-15);
}
.btn-outline-dark:hover { border-color: var(--gray-900); }
.btn-lg { padding: 18px 36px; font-size: 16.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-900);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width .25s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.nav-cta { padding: 12px 22px; font-size: 13.5px; flex-shrink: 0; }
.cta-number { font-weight: 900; }
.cta-sep { opacity: 0.6; margin: 0 2px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--gray-900);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 16px 30px rgba(0,0,0,0.1);
  padding: 20px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  z-index: 999;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu .nav-link { display: block; padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--ink-06); }
.nav-cta-mobile { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-dotgrid {
  position: absolute;
  left: -60px; bottom: -60px;
  width: 320px; height: 320px;
  background-image: radial-gradient(rgba(249, 193, 15, 0.35) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.5;
}

/* Foto oficial solta sobre o preto, sem moldura, encostando na base da seção.
   O arquivo mario-hero.png/.webp não é alterado — o enquadramento é 100%
   controlado por CSS: a caixa usa largura+altura fixas com object-fit:cover
   e object-position:top, o que remove a margem transparente vazia que já
   existe acima da cabeça no PNG original (sem cortar cabeça/rosto/ombros,
   já que a âncora "top" sempre protege a parte de cima da imagem). */
.hero-photo-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(600px, 50vw, 760px);
  height: min(98svh, 940px);
  overflow: hidden;
  pointer-events: none;
}
/* A <picture> não tem altura própria; sem isso, a <img> dentro
   fica sem referência e volta ao tamanho intrínseco (bug clássico). */
.hero-photo-wrap picture {
  display: contents;
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
  transform: scaleX(-1); /* olha em direção ao slogan — só a foto interna, não o contêiner */
  transform-origin: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 40px 32px;
}

.hero-content { max-width: 520px; }

.hero-wordmark-heading { margin: 0 0 18px; line-height: 0; }
.hero-wordmark {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

.hero-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-72);
  max-width: 500px;
  margin-bottom: 24px;
}

.ballot-number {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.ballot-digit {
  width: 50px; height: 58px;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(249, 193, 15, 0.25);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 3; }

.scroll-cue {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-pill);
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
}

/* ============================================================
   FAIXA ANIMADA (MARQUEE)
   ============================================================ */
.marquee {
  background: var(--yellow);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 0;
}
.marquee-group span {
  font-size: 16px;
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 18px;
  white-space: nowrap;
}
.marquee-group .dot { padding: 0; font-weight: 400; opacity: 0.5; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============================================================
   GERADOR DE AVATAR
   ============================================================ */
.avatar-section {
  background: var(--white);
  padding: 100px 0;
}
.avatar-privacy {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-60);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.privacy-icon { color: var(--yellow-dark); flex-shrink: 0; }
.avatar-tool {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 48px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.avatar-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-06);
  border: 2px dashed var(--ink-15);
}
#avatarCanvas {
  width: 100%; height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#avatarCanvas:active { cursor: grabbing; }
.avatar-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-60);
  text-align: center;
  padding: 20px;
}
.avatar-empty p { font-size: 14.5px; font-weight: 600; }
.avatar-empty.hidden { display: none; }

.avatar-controls { display: flex; flex-direction: column; gap: 22px; }
.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.file-btn:hover { background: #262626; transform: translateY(-2px); }

.control-group { display: flex; flex-direction: column; gap: 8px; }
.control-group label { font-size: 13.5px; font-weight: 700; color: var(--ink-60); text-transform: uppercase; letter-spacing: 0.04em; }
.control-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--ink-15);
  outline-offset: 4px;
}
.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--black);
  cursor: pointer;
}
.control-group input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--black);
  cursor: pointer;
}
.control-group input[disabled] { opacity: 0.4; }

.drag-hint { font-size: 13px; color: var(--ink-60); }

.avatar-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.avatar-buttons .btn { flex: 1; min-width: 150px; }

/* ============================================================
   HISTÓRIA
   ============================================================ */
.historia { background: var(--white); padding: 110px 0; border-top: 1px solid var(--ink-06); }
.historia-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.historia-grid h2 { max-width: 420px; }
.historia-photo {
  margin-top: 32px;
  max-width: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.historia-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.historia-text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-60);
  margin-bottom: 20px;
}
.historia-text strong { color: var(--gray-900); }
.pull-quote {
  margin: 28px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--yellow);
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  color: var(--gray-900);
  line-height: 1.4;
}

/* ============================================================
   BLOCO ESPECIAL — FORTE DO ITAPEMA
   ============================================================ */
.special-block {
  background: var(--black);
  color: var(--white);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.special-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.special-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: grayscale(1);
}
.special-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.72) 55%, rgba(10,10,10,0.92) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 45%, rgba(10,10,10,0.15) 100%);
}
.special-inner { position: relative; z-index: 1; max-width: 780px; margin-inline: auto; text-align: center; }
.highlight-yellow { color: var(--yellow); }
.special-block h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 20px;
  color: var(--white);
}
.special-block p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--paper-72);
}

/* ============================================================
   RESUMO + LINHA DO TEMPO
   ============================================================ */
.summary { background: var(--white); padding: 100px 0; border-top: 1px solid var(--ink-06); }
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.summary-card, .timeline {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.summary-card h3, .timeline h3 { font-size: 24px; font-weight: 800; margin: 6px 0 16px; }
.summary-card > p { font-size: 15.5px; line-height: 1.65; color: var(--ink-60); margin-bottom: 24px; }
.summary-list { display: flex; flex-direction: column; gap: 14px; }
.summary-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}
.summary-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  background: var(--yellow);
  border-radius: 4px;
}

.timeline-list { display: flex; flex-direction: column; gap: 0; position: relative; margin-top: 4px; }
.timeline-list li {
  position: relative;
  padding: 0 0 28px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  border-left: 2px solid var(--ink-15);
}
.timeline-list li:last-child { border-color: transparent; padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -7px; top: -1px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--yellow);
}

/* ============================================================
   NÚMEROS
   ============================================================ */
.numeros {
  background: linear-gradient(180deg, var(--black) 0%, #141414 100%);
  color: var(--white);
  padding: 100px 0;
}
.numeros .section-head { max-width: 640px; }
.numeros .eyebrow { color: var(--yellow); }
.numeros h2 { color: var(--white); }
.numeros-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.numero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(249, 193, 15, 0.18);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: left;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.numero-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); }
.numero-value {
  display: block;
  font-size: 40px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 12px;
}
.numero-label {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.numeros-note {
  margin-top: 32px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.55);
  max-width: 720px;
  line-height: 1.6;
}

/* ---------- Mundo Azul — registro fotográfico editorial ---------- */
.mundo-azul-spotlight {
  max-width: 820px;
  margin: 56px auto 0;
  display: flex;
  align-items: center;
  gap: 40px;
}
.mundo-azul-photo {
  flex-shrink: 0;
  width: 340px;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.mundo-azul-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.mundo-azul-caption {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--paper-72);
  max-width: 380px;
}
.mundo-azul-caption strong { color: var(--white); }

/* ---------- Esporte de base — registro fotográfico ----------
   Os três blocos (esporte-main, esporte-secondary, mundo-azul-photo)
   compartilham a mesma largura máxima (820px) e o mesmo peso visual,
   formando uma galeria editorial padronizada. */
.esporte-narrative { max-width: 820px; margin: 40px auto 0; }
.esporte-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
}
.esporte-main picture,
.esporte-main img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 30%; }
.esporte-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.5) 32%, rgba(10,10,10,0) 58%);
  pointer-events: none;
}
.esporte-main-text {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 28px 32px;
}
.esporte-main-text h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.esporte-main-text p {
  color: var(--paper-72);
  font-size: 14.5px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.esporte-secondary {
  margin-top: 24px;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.esporte-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

/* ============================================================
   TRANSIÇÃO — DA NOSSA RAIZ PARA SÃO PAULO (bandeira estadual)
   ============================================================ */
.flag-transition {
  background: var(--black);
  color: var(--white);
  padding: 100px 0;
  border-top: 1px solid var(--paper-08);
}
.flag-transition-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.flag-transition-text .eyebrow { margin-bottom: 16px; }
.flag-transition-text h2 { color: var(--white); margin-bottom: 18px; }
.flag-transition-text p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--paper-72);
  max-width: 480px;
}
.flag-transition-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flag-image {
  width: 520px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1303; /* reserva o espaço antes do PNG carregar (evita layout shift) */
  transform-origin: left center;
  animation: flag-wave 6s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
}

@keyframes flag-wave {
  0%,
  100% {
    transform:
      perspective(900px)
      rotateY(-2deg)
      rotateZ(-0.4deg)
      translateY(0)
      scaleX(1);
  }
  50% {
    transform:
      perspective(900px)
      rotateY(3deg)
      rotateZ(0.5deg)
      translateY(-8px)
      scaleX(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flag-image {
    animation: none;
  }
}

/* ============================================================
   BANDEIRAS
   ============================================================ */
.bandeiras { background: var(--white); padding: 110px 0; border-top: 1px solid var(--ink-06); }
.bandeiras .section-head { max-width: 640px; }
.bandeiras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.bandeira-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.bandeira-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  background: var(--white);
}
.bandeira-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--black);
  color: var(--yellow);
  margin-bottom: 20px;
}
.bandeira-card h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 10px; }
.bandeira-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }

/* ============================================================
   PROPOSTAS
   ============================================================ */
.propostas { background: var(--white); padding: 110px 0; border-top: 1px solid var(--ink-06); }
.propostas .section-head { max-width: 640px; }
.propostas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}
.proposta-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-15);
}
.proposta-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--yellow);
  -webkit-text-stroke: 1.4px var(--black);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.proposta-item h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.proposta-item p { font-size: 14.5px; line-height: 1.6; color: var(--ink-60); }

/* ============================================================
   FRASE DE IMPACTO
   ============================================================ */
.impact-quote {
  background: var(--yellow);
  padding: 72px 0 64px;
  text-align: center;
}
.impact-wordmark { height: 64px; width: auto; margin: 0 auto 28px; }
.impact-text {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.25;
  max-width: 820px;
  margin: 0 auto;
}
.impact-signature {
  display: block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(0,0,0,0.65);
}

.impact-life-story {
  max-width: 780px;
  margin: 44px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 44px;
  text-align: left;
}
.impact-life-photo {
  width: 360px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  border: 3px solid rgba(10, 10, 10, 0.08);
}
.impact-life-photo img { width: 100%; height: auto; display: block; object-position: center 25%; }
.impact-life-phrase {
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: var(--black);
  text-align: left;
  line-height: 1.4;
  max-width: 320px;
}

/* ============================================================
   CHAMADA FINAL
   ============================================================ */
.final-cta { background: var(--white); padding: 110px 0; border-top: 1px solid var(--ink-06); }
.final-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-wordmark { height: 100px; width: auto; margin: 0 auto 22px; }
.final-card h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  margin-bottom: 20px;
  line-height: 1.28;
  text-wrap: balance;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.final-h2-break { display: block; }
.final-card p {
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 36px;
}
.final-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.social-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.social-btn:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); transform: translateY(-3px); }

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer { background: var(--black); color: rgba(255,255,255,0.75); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 32px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.55); max-width: 320px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.7); transition: color .2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-address li { font-size: 14.5px; color: rgba(255,255,255,0.7); }

.footer-legal { padding: 28px 0 34px; }
.footer-legal p {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
}
.footer-copy { margin-top: 14px; color: rgba(255,255,255,0.3) !important; }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(249, 193, 15, 0.45);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), box-shadow .25s var(--ease);
  animation: float-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(249, 193, 15, 0.55); }
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(249, 193, 15, 0.45); }
  50% { box-shadow: 0 10px 26px rgba(249, 193, 15, 0.2), 0 0 0 10px rgba(249, 193, 15, 0.08); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; transition: opacity .01ms linear; transform: none !important; }
}
@media (max-width: 720px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 12px;
  }
  .whatsapp-float svg { width: 23px; height: 23px; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
  .numeros-grid { grid-template-columns: repeat(3, 1fr); }
  .bandeiras-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: var(--header-h); }
  .hero-photo-wrap {
    position: static;
    width: min(50vw, 460px);
    height: auto;
    aspect-ratio: 1400 / 1451; /* recorta a margem transparente vazia acima da cabeça, sem tocar no arquivo */
    overflow: hidden;
    margin: 10px auto 4px;
    justify-content: center;
  }
  .hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
    transform: scaleX(-1);
    transform-origin: center;
  }
  .hero-inner { padding: 8px 32px 56px; }
  .hero-content { max-width: 100%; text-align: left; }
  .hero-wordmark { max-width: 380px; }
  .ballot-number { justify-content: flex-start; }

  .historia-grid { grid-template-columns: 1fr; gap: 28px; }
  .summary-grid { grid-template-columns: 1fr; }
  .propostas-list { grid-template-columns: 1fr; }
  .flag-transition-grid { grid-template-columns: 1fr; gap: 32px; text-align: left; }
  .flag-transition-visual { order: 2; }
  .flag-image { width: 320px; max-width: 86vw; }

  .avatar-tool { grid-template-columns: 1fr; }

  /* Em telas menores, o texto sai de cima da foto do esporte
     para nunca correr risco de cobrir o rosto do Mário. */
  .esporte-narrative { max-width: 100%; }
  .esporte-main { height: auto; }
  .esporte-main-overlay { display: none; }
  .esporte-main-text {
    position: static;
    width: 100%;
    padding: 18px 4px 0;
  }
  .esporte-main-text h3,
  .esporte-main-text p { text-shadow: none; }
  .esporte-main picture,
  .esporte-main img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: center 30%;
  }

  .mundo-azul-spotlight { max-width: 100%; flex-direction: column; align-items: flex-start; gap: 20px; }
  .mundo-azul-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .esporte-secondary { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-top: 16px; }

  .impact-life-story { flex-direction: column; gap: 22px; text-align: center; padding: 0 20px; }
  .impact-life-photo { width: 100%; max-width: 300px; }
  .impact-life-phrase { text-align: center; max-width: 300px; }
}

@media (max-width: 720px) {
  .section-inner { padding: 0 20px; }
  .hero-wordmark { max-width: 320px; }
  .hero-photo-wrap { width: min(70vw, 360px); }
  .ballot-digit { width: 42px; height: 52px; font-size: 24px; }
  .numeros-grid { grid-template-columns: repeat(2, 1fr); }
  .bandeiras-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .final-card { padding: 44px 24px 56px; }
  .final-wordmark { height: 70px; margin-bottom: 18px; }
  .final-h2-break { display: inline; } /* no celular, o navegador distribui a frase livremente */
  .avatar-tool { padding: 24px; }
  .avatar-buttons { flex-direction: column; }
  .avatar-buttons .btn { width: 100%; }
  .special-block { padding: 100px 0; }

  /* Ajuste específico do Forte do Itapema no celular (≤720px):
     enquadramento revisado para manter a torre reconhecível,
     escurecimento geral reduzido e gradiente localizado apenas
     atrás do texto (não mais sobre a fotografia inteira).
     A versão desktop permanece intocada. */
  .special-bg-img {
    object-position: 40% 30%;
  }
  .special-bg-gradient {
    background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.22) 60%, rgba(10,10,10,0.38) 100%);
  }
  .special-inner {
    position: relative;
    padding: 22px 20px;
    border-radius: var(--radius-lg);
  }
  .special-inner::before {
    content: "";
    position: absolute;
    inset: -8px;
    background: linear-gradient(180deg, rgba(10,10,10,0.18) 0%, rgba(10,10,10,0.86) 30%, rgba(10,10,10,0.9) 100%);
    border-radius: var(--radius-lg);
    z-index: -1;
  }
  .special-block h2,
  .special-block p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }
  .header-inner { padding: 0 20px; }
  .mobile-menu { padding: 20px 20px 26px; }
}

@media (max-width: 420px) {
  .ballot-digit { width: 36px; height: 46px; font-size: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-photo-wrap { width: min(78vw, 380px); }
}
