/* ============================================================================
   VOLTA SC — DESIGN SYSTEM (site.css)
   Marca: verde #A6C613 · azul #1C3645 · cinza #3C3C3B · off-white #F8F9FA
   Títulos Barlow Condensed (substituto da Agency FB do manual) · texto Inter.
   Assinaturas: curvas de nível (relevo da serra), linhas que se desenham,
   camisas das classificações. Movimento: transform-only nas entradas —
   conteúdo NUNCA depende de animação para aparecer.
   ============================================================================ */

:root {
  /* Marca */
  --green: #A6C613;
  --green-600: #93AF10;
  --green-700: #6B800A;   /* verde para TEXTO sobre fundo claro (contraste AA) */
  --green-50: #F2F7DC;
  --blue: #1C3645;
  --blue-950: #0F1F28;
  --blue-900: #142833;
  --blue-800: #19303D;
  --blue-700: #24455A;
  --blue-600: #33596F;
  --gray: #3C3C3B;
  --off: #F8F9FA;
  --white: #FFFFFF;

  /* Semânticas de dado (não decorativas) */
  --mount: #B4572E;       /* montanha / GPM */
  --mount-50: #F6E6DD;

  /* Camisas */
  --j-geral: #A6C613;
  --j-pontos: #1C3645;
  --j-montanha: #22282B;
  --j-jovem: #FFFFFF;
  --j-equipes: #33596F;

  /* Texto (família do cinza da marca) */
  --ink: #16242C;
  --text: #3C3C3B;
  --muted: #6A6F6E;
  --line: #E4E7E6;
  --line-strong: #D3D8D7;

  /* Superfícies e profundidade — sombras tingidas de azul-marinho */
  --ring: 0 0 0 1px rgba(28, 54, 69, .07);
  --shadow-1: 0 0 0 1px rgba(28, 54, 69, .06), 0 1px 2px -1px rgba(28, 54, 69, .08), 0 2px 6px rgba(28, 54, 69, .05);
  --shadow-2: 0 0 0 1px rgba(28, 54, 69, .07), 0 4px 10px -4px rgba(28, 54, 69, .14), 0 18px 40px -16px rgba(28, 54, 69, .22);
  --shadow-3: 0 0 0 1px rgba(28, 54, 69, .08), 0 10px 24px -8px rgba(28, 54, 69, .2), 0 32px 64px -24px rgba(28, 54, 69, .32);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --maxw: 1240px;
  --nav-h: 68px;
  --gutter: clamp(20px, 4vw, 40px);

  --ff-title: 'Barlow Condensed', 'Agency FB', 'Oswald', sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Movimento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* chegada: rápido e assenta */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* desenho de linhas */
  --ease-press: cubic-bezier(.3, 0, .2, 1);

  /* Escala de camadas */
  --z-header: 100;
  --z-menu: 110;
  --z-totop: 90;
  --z-tip: 20;

  --relevo-claro: url("relevo-claro.svg");
  --relevo-escuro: url("relevo-escuro.svg");
}

/* ------------------------------------------------------------ BASE ------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--text);
  background: var(--off);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
::selection { background: var(--green); color: var(--blue); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.section--blue :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--green); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: var(--blue); font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.tcenter { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------- TIPOGRAFIA ----- */
h1, h2, h3, h4, .ttl {
  font-family: var(--ff-title); font-weight: 700; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .95; margin: 0; color: var(--ink);
  text-wrap: balance;
}
.display { font-size: clamp(46px, 6.6vw, 102px); font-weight: 800; line-height: .88; letter-spacing: -.016em; }
.h1 { font-size: clamp(38px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.012em; }
.h2 { font-size: clamp(32px, 4.8vw, 58px); font-weight: 800; letter-spacing: -.01em; }
.h3 { font-size: clamp(22px, 2.4vw, 30px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-title); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: 14px; color: var(--green-700); margin: 0;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.no-rule::before { display: none; }
.eyebrow.on-blue { color: var(--green); }

.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.on-dark .lead, .section--blue .lead { color: rgba(255, 255, 255, .74); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.prose { max-width: 66ch; font-size: 17px; line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ BOTÕES ---- */
.btn {
  --btn-bg: transparent; --btn-fg: inherit; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-title); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  font-size: 15px; line-height: 1; padding: 15px 22px; min-height: 48px;
  border-radius: var(--r-sm); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .16s var(--ease-press);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn .arr { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-green { --btn-bg: var(--green); --btn-fg: var(--blue); }
.btn-green:hover { --btn-bg: #B4D21E; box-shadow: 0 10px 28px -10px rgba(166, 198, 19, .7); }
.btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .38); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .08); --btn-bd: rgba(255, 255, 255, .8); }
.btn-outline { --btn-fg: var(--blue); --btn-bd: rgba(28, 54, 69, .28); }
.btn-outline:hover { --btn-bd: var(--blue); --btn-bg: var(--blue); --btn-fg: #fff; }
.btn-sm { font-size: 13.5px; padding: 11px 16px; min-height: 40px; }

/* Link de texto (CTA terciário) */
.link {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-title); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--blue);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px;
  transition: background-size .3s var(--ease-out), color .2s;
}
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.link .arr { transition: transform .25s var(--ease-out); }
.link:hover .arr { transform: translateX(3px); }
.on-dark .link, .section--blue .link { color: #fff; }

/* ------------------------------------------------------------ HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(20, 40, 51, .96);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
  view-transition-name: site-header;
}
/* Home: header transparente sobre o hero até rolar */
.site-header.is-over-hero { position: fixed; inset: 0 0 auto 0; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-over-hero.is-scrolled { background: rgba(20, 40, 51, .92); border-bottom-color: rgba(255, 255, 255, .07); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }

.nav { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.nav__logo { flex: none; display: flex; align-items: center; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a:not(.btn) {
  position: relative; font-family: var(--ff-title); text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .78); padding: 10px 10px; white-space: nowrap;
  transition: color .2s var(--ease-out);
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--green); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: 10px; }

/* Botão MENU rotulado (o ☰ sozinho não é reconhecido) */
.nav__toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  font-family: var(--ff-title); font-weight: 700; letter-spacing: .12em; font-size: 14px; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 9px 14px 9px 16px; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.nav__toggle:hover { background: rgba(255, 255, 255, .14); }
.nav__toggle .bars { position: relative; width: 18px; height: 12px; }
.nav__toggle .bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .22s var(--ease-out), opacity .15s; }
.nav__toggle .bars span:nth-child(1) { top: 0; }
.nav__toggle .bars span:nth-child(2) { top: 5px; }
.nav__toggle .bars span:nth-child(3) { top: 10px; }
.nav.is-open .nav__toggle .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle .bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--blue-900); padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    visibility: hidden; transform: translateY(-12px); opacity: 0;
    transition: transform .22s var(--ease-out), opacity .18s ease-out, visibility 0s linear .22s;
  }
  .nav.is-open .nav__links { visibility: visible; transform: none; opacity: 1; transition: transform .22s var(--ease-out), opacity .18s ease-out, visibility 0s; }
  .nav__links a:not(.btn) { font-size: 20px; padding: 15px 2px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links a.is-active { padding-left: 14px; box-shadow: inset 3px 0 0 var(--green); }
  .nav__cta { margin: 18px 0 0; }
  .nav__cta .btn { width: 100%; }
  .site-header.is-over-hero .nav.is-open, .site-header.is-over-hero:has(.nav.is-open) { background: var(--blue-900); }
}
@media (max-width: 420px) { .nav__logo img { height: 40px; } }

/* --------------------------------------------------------- SEÇÕES ------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 136px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--off { background: var(--off); }
.section--white { background: var(--white); }
.section--blue, .on-dark { background: var(--blue); color: rgba(255, 255, 255, .86); }
.section--blue h1, .section--blue h2, .section--blue h3, .on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); display: grid; gap: 14px; }
.section__head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
:where(.section) h2 { font-size: clamp(32px, 4.8vw, 58px); font-weight: 800; }
.rule { width: 54px; height: 3px; background: var(--green); border: 0; margin: 4px 0 0; transform-origin: left; }
.center .rule { margin-inline: auto; transform-origin: center; }

/* Textura de relevo (curvas de nível) */
.relevo { position: relative; isolation: isolate; }
.relevo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--relevo-claro) center / cover no-repeat; opacity: .09;
}
.relevo--light::before { background-image: var(--relevo-escuro); opacity: .06; }

/* --------------------------------------------------------------- HERO --- */
.hero { position: relative; isolation: isolate; background: var(--blue-950); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(166, 198, 19, .14), transparent 60%),
    linear-gradient(90deg, rgba(15, 31, 40, .94) 0%, rgba(15, 31, 40, .78) 45%, rgba(15, 31, 40, .35) 100%),
    linear-gradient(180deg, rgba(15, 31, 40, .2) 0%, rgba(15, 31, 40, .0) 40%, rgba(15, 31, 40, .9) 100%);
}
.hero__inner { position: relative; min-height: min(100dvh, 980px); display: grid; align-content: end; padding-block: calc(var(--nav-h) + 56px) clamp(36px, 5vw, 56px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero__sub { max-width: 52ch; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .8); margin: 26px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

/* Telemetria (KPIs na base do hero) */
.telemetry {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.telemetry--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.telemetry > div { padding: 18px 18px 0 0; }
.telemetry > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .1); }
.telemetry b { display: block; font-family: var(--ff-title); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.telemetry b small { font-size: .5em; font-weight: 600; color: var(--green); margin-left: 3px; }
.telemetry span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
@media (max-width: 760px) {
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .telemetry > div { padding: 16px 12px 16px 0; border-left: 0 !important; }
  .telemetry > div:nth-child(odd) { padding-left: 0; }
  .telemetry > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .telemetry > div:last-child { grid-column: 1 / -1; }
  .telemetry--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry--4 > div:last-child { grid-column: auto; }
}

/* Cartão de campeão */
.champ {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 20px 22px; border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.champ__label { font-family: var(--ff-title); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--green); }
.champ__name { font-family: var(--ff-title); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 34px); line-height: .95; color: #fff; margin-top: 4px; }
.champ__meta { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 6px; }
.champ__meta b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.champ .jersey { width: 74px; height: 74px; }

/* Faixa de status (edição encerrada / ao vivo) */
.status-chip { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-title); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: rgba(255, 255, 255, .82); }
.status-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(166, 198, 19, .2); }

/* Countdown (próximas edições) */
.countdown { display: inline-flex; gap: 8px; }
.cd-unit { text-align: center; min-width: 68px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-md); padding: 12px 6px 10px; }
.cd-unit b { font-family: var(--ff-title); font-weight: 800; font-size: clamp(30px, 6vw, 44px); line-height: 1; color: #fff; display: block; font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--green); }

/* ---------------------------------------------------- CABEÇALHO INTERNO */
.page-hero { position: relative; isolation: isolate; background: var(--blue); color: #fff; overflow: hidden; padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5vw, 64px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--relevo-claro) 70% 40% / cover no-repeat; opacity: .1; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--green) 0 120px, transparent 120px); }
.page-hero h1 { color: #fff; font-size: clamp(40px, 7vw, 84px); font-weight: 800; margin-top: 12px; letter-spacing: -.012em; }
.page-hero .lead { color: rgba(255, 255, 255, .74); margin-top: 16px; }
.page-hero--photo { padding-block: clamp(70px, 10vw, 140px) clamp(44px, 6vw, 72px); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 31, 40, .92), rgba(15, 31, 40, .55) 70%, rgba(15, 31, 40, .35)), linear-gradient(0deg, rgba(15, 31, 40, .85), transparent 55%); }
.crumbs { font-size: 12.5px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .1em; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--green); }
.crumbs span[aria-hidden] { opacity: .4; }

/* --------------------------------------------------------- KPIs -------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; }
.kpi { padding: 4px 0; }
.kpi__n { font-family: var(--ff-title); font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); line-height: .92; color: var(--green-700); font-variant-numeric: tabular-nums; }
.kpi__l { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 8px; }
.section--blue .kpi__n, .page-hero .kpi__n, .on-dark .kpi__n { color: var(--green); }
.section--blue .kpi__l, .page-hero .kpi__l, .on-dark .kpi__l { color: rgba(255, 255, 255, .58); }
@media (max-width: 620px) { .kpis { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } }

/* --------------------------------------------------------- GRIDS ------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split--wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 900px) { .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- CARDS -------- */
.card { position: relative; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
a.card, .card--hover { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
a.card:active { transform: translateY(-1px); }
.card--dark { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .82); }
.card--dark h3 { color: #fff; }
.media-zoom { overflow: hidden; }
.media-zoom img { transition: transform .9s var(--ease-out); }
a:hover .media-zoom img, .media-zoom:hover img { transform: scale(1.04); }

/* ------------------------------------------------ BANDEIRAS DE ETAPA --- */
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-title); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; line-height: 1;
  padding: 6px 10px 6px 8px; border-radius: var(--r-xs); background: var(--tag-bg, #EEF0EF); color: var(--tag-fg, var(--gray));
}
.tag::before { content: ""; width: 4px; align-self: stretch; border-radius: 2px; background: var(--tag-dot, currentColor); }
.tag--plana { --tag-bg: var(--green-50); --tag-fg: var(--green-700); --tag-dot: var(--green); }
.tag--media { --tag-bg: #E3EBF0; --tag-fg: var(--blue-700); --tag-dot: var(--blue-600); }
.tag--montanha { --tag-bg: var(--mount-50); --tag-fg: #8E3F1D; --tag-dot: var(--mount); }
.tag--CRI, .tag--CRE { --tag-bg: #ECEDEC; --tag-fg: var(--gray); --tag-dot: var(--gray); }
.tag--rainha { --tag-bg: var(--mount); --tag-fg: #fff; --tag-dot: #fff; }
.on-dark .tag, .section--blue .tag, .page-hero .tag { --tag-bg: rgba(255, 255, 255, .1); --tag-fg: #fff; }
.on-dark .tag--rainha, .page-hero .tag--rainha { --tag-bg: var(--mount); }

/* ------------------------------------------ ROADBOOK (lista de etapas) -- */
.roadbook { display: grid; gap: 12px; }
.stage-row {
  position: relative; display: grid; align-items: center; gap: 22px;
  grid-template-columns: 76px minmax(0, 1.35fr) minmax(0, 1fr) 150px 26px;
  padding: 18px 22px; background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.stage-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.stage-row:hover .stage-row__go { transform: translateX(4px); color: var(--blue); }
.stage-row__num { font-family: var(--ff-title); font-weight: 800; font-size: 54px; line-height: .8; color: var(--blue); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stage-row__num small { display: block; font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.stage-row__date { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stage-row__route { font-family: var(--ff-title); font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 1.9vw, 25px); line-height: 1; color: var(--ink); margin: 6px 0 10px; text-wrap: balance; }
.stage-row__route .to { color: var(--green-700); padding-inline: 4px; }
.stage-row__mini { height: 64px; }
.stage-row__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; text-align: right; }
.stage-row__stats b { display: block; font-family: var(--ff-title); font-weight: 700; font-size: 24px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stage-row__stats span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stage-row__winner { grid-column: 2 / 5; display: flex; align-items: center; gap: 10px; padding-top: 12px; margin-top: -4px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--muted); }
.stage-row__winner .jersey { width: 22px; height: 22px; flex: none; }
.stage-row__winner b { color: var(--ink); font-weight: 600; }
.stage-row__go { color: var(--line-strong); font-size: 22px; transition: transform .3s var(--ease-out), color .2s; justify-self: end; }
.stage-row--rainha { box-shadow: var(--shadow-1), inset 4px 0 0 var(--mount); }
@media (max-width: 900px) {
  .stage-row { grid-template-columns: 58px minmax(0, 1fr) 22px; gap: 10px 16px; padding: 16px 16px 16px 18px; }
  .stage-row__num { font-size: 44px; grid-row: span 2; align-self: start; }
  .stage-row__mini { grid-column: 2 / 3; height: 52px; }
  .stage-row__stats { grid-column: 2 / 3; text-align: left; grid-template-columns: auto auto; justify-content: start; gap: 4px 22px; }
  .stage-row__winner { grid-column: 1 / -1; }
  .stage-row__go { grid-row: 1; grid-column: 3; align-self: start; }
}

/* Cartão de etapa compacto (mantido para compatibilidade) */
.stage-card { display: flex; flex-direction: column; }
.stage-card__top { display: flex; align-items: center; gap: 12px; padding: 18px 20px 8px; }
.stage-card__num { font-family: var(--ff-title); font-weight: 800; font-size: 44px; line-height: .8; color: var(--blue); }
.stage-card__meta { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.stage-card__route { font-family: var(--ff-title); font-weight: 700; font-size: 22px; color: var(--ink); text-transform: uppercase; line-height: 1; }
.stage-card__mini { height: 70px; width: 100%; }
.stage-card__foot { display: flex; gap: 18px; padding: 12px 20px 18px; border-top: 1px solid var(--line); margin-top: auto; }
.stage-card__stat b { font-family: var(--ff-title); font-size: 20px; color: var(--ink); display: block; line-height: 1; }
.stage-card__stat span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* -------------------------------------------- PERFIL ALTIMÉTRICO ------- */
.profile { position: relative; width: 100%; }
.profile svg { width: 100%; height: auto; display: block; overflow: visible; }
.profile__tip {
  position: absolute; z-index: var(--z-tip); pointer-events: none; transform: translateX(-50%);
  background: var(--blue-950); color: #fff; font-size: 12.5px; padding: 7px 10px; border-radius: var(--r-sm);
  white-space: nowrap; opacity: 0; font-variant-numeric: tabular-nums; box-shadow: var(--shadow-2);
}
.profile__tip b { color: var(--green); }
.profile__tip.is-on { opacity: 1; }

/* Perfil da Volta inteira */
.tour-profile { position: relative; }
.tour-profile svg { width: 100%; height: auto; display: block; overflow: visible; }
.tour-profile .seg { cursor: pointer; }
.tour-profile .seg-area { transition: opacity .25s var(--ease-out); }
.tour-profile.has-focus .seg:not(.is-focus) .seg-area { opacity: .32; }
.tour-profile__legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.tour-profile__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

/* ----------------------------------------------------------- MAPA SC --- */
.scmap { position: relative; }
.scmap svg { width: 100%; height: auto; display: block; }
.scmap .state { fill: #E9EDE9; stroke: #C9D1CD; stroke-width: 1.2; }
.on-dark .scmap .state { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .22); }
.scmap .sea-label { font-family: var(--ff-title); font-size: 13px; letter-spacing: .4em; fill: #8AA0A8; }
.scmap .route { fill: none; stroke: var(--green-600); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s var(--ease-out), stroke-width .25s var(--ease-out); }
.scmap .route--loop { stroke-dasharray: 2 5; }
.scmap.has-focus .route:not(.is-focus) { opacity: .2; }
.scmap .route.is-focus { stroke-width: 5; stroke: var(--green); }
.scmap .city-dot { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.scmap .city-label { font-family: var(--ff-body); font-size: 12.5px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #F3F5F3; stroke-width: 4px; stroke-linejoin: round; }
.on-dark .scmap .city-label { fill: #fff; stroke: var(--blue); }
.scmap .stage-pin circle { fill: var(--green); stroke: var(--blue); stroke-width: 2; }
.scmap .stage-pin text { font-family: var(--ff-title); font-weight: 800; font-size: 12px; fill: var(--blue); }
.scmap__inset { position: absolute; right: 0; bottom: 0; width: 27%; max-width: 180px; padding: 10px; background: rgba(255, 255, 255, .86); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.scmap__inset svg .state { fill: #DDE3DF; stroke: #B9C4BF; stroke-width: 4; }
.scmap__inset svg .focus-box { fill: rgba(166, 198, 19, .25); stroke: var(--green-700); stroke-width: 6; }
.scmap__inset span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; text-align: center; }
.scmap__note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Lista de etapas ao lado do mapa */
.route-list { display: grid; gap: 6px; }
.route-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); transition: background-color .2s var(--ease-out); }
.route-item:hover, .route-item.is-focus { background: rgba(28, 54, 69, .05); }
.route-item__n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--blue); font-family: var(--ff-title); font-weight: 800; font-size: 16px; }
.route-item__t, .route-item__s { display: block; }
.route-item__t { font-family: var(--ff-title); font-weight: 700; text-transform: uppercase; font-size: 18px; line-height: 1; color: var(--ink); }
.route-item__s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.route-item__km { font-family: var(--ff-title); font-weight: 700; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ ABAS ----- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  font-family: var(--ff-title); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 15px;
  padding: 11px 18px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--white); color: var(--gray);
  cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tabpanel[hidden] { display: none; }
@media (max-width: 560px) { .tabs--stack { flex-direction: column; } .tabs--stack .tab { text-align: left; } }

/* ----------------------------------------------------------- CAMISAS --- */
.jersey { display: inline-block; width: 28px; height: 28px; flex: none; }
.team-mark { display: inline-block; width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 10px; padding: 2px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.team-mark--escuro { background: var(--blue); box-shadow: none; }
.team-mark--cheio { padding: 0; object-fit: cover; }
.team-mark--largo { width: 72px; padding: 3px 6px; }
.jersey-pill {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-title); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: 15px; padding: 8px 16px 8px 10px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--white); color: var(--gray);
  cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.jersey-pill .jersey { width: 30px; height: 30px; }
.jersey-pill:hover { border-color: var(--blue); }
.jersey-pill.is-active { border-color: var(--blue); box-shadow: inset 0 -3px 0 var(--green); color: var(--ink); }
.jersey-dot { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .12); flex: none; }

.leader-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .leader-cards { grid-template-columns: 1fr; } }
.leader { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; border-radius: var(--r-lg); padding: 18px 20px; background: var(--white); box-shadow: var(--shadow-1); overflow: hidden; }
.leader .jersey { width: 62px; height: 62px; }
.leader__role { font-family: var(--ff-title); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; color: var(--muted); }
.leader__name { font-family: var(--ff-title); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 27px); line-height: .95; color: var(--ink); margin-top: 4px; }
.leader__team { font-size: 13px; color: var(--muted); margin-top: 4px; }
.leader::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--leader-accent, var(--green)); }

/* Faixa "donos das camisas" */
.jersey-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.jersey-card { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 26px 16px 22px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-1); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.jersey-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.jersey-card .jersey { width: 92px; height: 92px; filter: drop-shadow(0 10px 14px rgba(28, 54, 69, .18)); }
.jersey-card__cls { font-family: var(--ff-title); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--muted); }
.jersey-card__name { font-family: var(--ff-title); font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1; color: var(--ink); text-wrap: balance; }
.jersey-card__team { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1000px) { .jersey-band { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .jersey-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jersey-card:last-child { grid-column: 1 / -1; } }

/* ------------------------------------------------- CLASSIFICAÇÃO ------- */
.rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rank thead th { font-family: var(--ff-title); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); text-align: left; padding: 14px 14px; border-bottom: 2px solid var(--line); font-weight: 600; }
.rank td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rank tbody tr { transition: background-color .15s; }
.rank tbody tr:hover td { background: rgba(28, 54, 69, .03); }
.rank tbody tr:last-child td { border-bottom: 0; }
.rank .r-pos { font-family: var(--ff-title); font-weight: 800; font-size: 20px; color: var(--ink); width: 52px; }
.rank .r-num { color: var(--muted); width: 56px; }
.rank .r-rider { font-weight: 600; color: var(--ink); }
.rank .r-team { color: var(--muted); }
.rank .r-val { text-align: right; font-weight: 600; color: var(--ink); }
.rank .r-gap { text-align: right; color: var(--muted); }
.rank tbody tr.is-leader td { background: var(--green-50); }
.rank tbody tr.is-leader .r-pos { color: var(--green-700); }
.rank .bib {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px;
  font-family: var(--ff-title); font-weight: 800; font-size: 15px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; line-height: 1;
}
.flag { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .04em; margin-left: 6px; }
@media (max-width: 680px) {
  .rank thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .rank, .rank tbody, .rank tr, .rank td { display: block; width: 100%; }
  .rank tr { border-radius: var(--r-md); margin-bottom: 10px; padding: 8px 14px; background: var(--white); box-shadow: var(--shadow-1); }
  .rank tbody tr.is-leader { background: var(--green-50); box-shadow: var(--shadow-1), inset 4px 0 0 var(--green); }
  .rank tbody tr.is-leader td { background: transparent; }
  .rank td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; }
  .rank td::before { content: attr(data-label); font-family: var(--ff-title); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); text-align: left; }
  .rank td:empty { display: none; }
  .rank .r-pos, .rank .r-num { width: auto; }
}

/* --------------------------------------------------- CARTÃO SERRA ------ */
.climb { display: flex; flex-direction: column; }
.climb__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.climb__body { padding: 22px 24px 26px; display: grid; gap: 4px; }
.climb__name { font-family: var(--ff-title); font-weight: 800; text-transform: uppercase; font-size: 28px; color: var(--ink); line-height: 1; margin-top: 6px; }
.climb__ref { font-size: 13px; color: var(--muted); }
.climb__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; padding: 14px 0; border-block: 1px solid var(--line); }
.climb__stat b { font-family: var(--ff-title); font-size: 26px; color: var(--ink); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.climb__stat b small { font-size: .55em; color: var(--muted); margin-left: 1px; }
.climb__stat span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.climb__desc { font-size: 15px; color: var(--text); margin: 8px 0 0; }
.on-dark .climb__stat b, .feature .climb__stat b { color: #fff; }
.feature .climb__stat b small { color: rgba(255, 255, 255, .55); }

/* -------------------------------------------- EQUIPES / NOTÍCIAS ------- */
.team-badge { width: 46px; height: 46px; border-radius: var(--r-sm); flex: none; }
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-card__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.news-card__date { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--green-700); font-weight: 600; }
.news-card__title { font-family: var(--ff-title); font-weight: 700; text-transform: none; font-size: 23px; color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: 0; text-wrap: balance; }
.news-card__sum { font-size: 15px; color: var(--muted); margin: 0; }
.news-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.news-feature .news-card--lead .news-card__img { aspect-ratio: 16 / 11; }
.news-feature .news-card--lead .news-card__title { font-size: clamp(26px, 2.6vw, 34px); }
.news-stack { display: grid; gap: clamp(16px, 2vw, 24px); }
.news-stack .news-card { display: grid; grid-template-columns: 42% 1fr; }
.news-stack .news-card__img { aspect-ratio: auto; height: 100%; min-height: 160px; }
.news-stack .news-card__title { font-size: 20px; }
@media (max-width: 900px) { .news-feature { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .news-stack .news-card { grid-template-columns: 1fr; } .news-stack .news-card__img { aspect-ratio: 16 / 10; min-height: 0; } }

/* ------------------------------------------------- PATROCINADORES ----- */
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--ring); }
.sponsor { display: grid; place-items: center; text-align: center; min-height: 88px; padding: 16px; background: var(--white); font-family: var(--ff-title); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; color: var(--blue-700); line-height: 1.1; transition: background-color .2s, color .2s; }
.sponsor:hover { background: var(--off); color: var(--ink); }
.sponsor small { display: block; font-family: var(--ff-body); font-weight: 500; letter-spacing: .1em; font-size: 10px; color: var(--muted); margin-top: 6px; }

/* ------------------------------------------------- NOTA / AVISO -------- */
.demo-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; font-size: 14px; line-height: 1.55; color: var(--text); background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-1), inset 3px 0 0 var(--line-strong); }
.demo-note b { color: var(--ink); }
.demo-note--ok { box-shadow: var(--shadow-1), inset 3px 0 0 var(--green); }
.demo-note > span { flex: none; }

/* ---------------------------------- ORNAMENTO "284 CURVAS" (linha) ----- */
.serpentine { width: 100%; height: auto; display: block; overflow: visible; }
.serpentine path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.serpentine .ghost { stroke: rgba(255, 255, 255, .1); stroke-width: 12; }

/* -------------------------------------------------- FEATURE SERRA ----- */
.feature { position: relative; isolation: isolate; overflow: hidden; background: var(--blue-950); color: #fff; }
.feature__media { position: absolute; inset: 0; z-index: -2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 31, 40, .95) 0%, rgba(15, 31, 40, .82) 42%, rgba(15, 31, 40, .25) 100%); }
.feature__big { font-family: var(--ff-title); font-weight: 800; font-size: clamp(120px, 19vw, 260px); line-height: .78; letter-spacing: -.04em; color: var(--green); font-variant-numeric: tabular-nums; }
.feature__big small { display: block; font-size: .14em; letter-spacing: .2em; color: #fff; font-weight: 600; margin-top: 14px; }
.feature .climb__stats { border-color: rgba(255, 255, 255, .14); max-width: 520px; }
.feature .climb__stat span { color: rgba(255, 255, 255, .55); }

/* ------------------------------------------------- HISTÓRIA BAND ------ */
.champions-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.champions-row > div { padding: 18px 16px 4px 0; }
.champions-row > div + div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .1); }
.champions-row b { display: block; font-family: var(--ff-title); font-weight: 800; font-size: 34px; color: var(--green); line-height: 1; }
.champions-row span { display: block; font-family: var(--ff-title); font-weight: 700; text-transform: uppercase; font-size: 18px; color: #fff; margin-top: 6px; line-height: 1.05; }
.champions-row small { display: block; font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: 4px; }
@media (max-width: 860px) { .champions-row { grid-template-columns: repeat(2, 1fr); } .champions-row > div { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .08); padding-bottom: 14px; } }

/* --------------------------------------------------------- FOOTER ----- */
.site-footer { position: relative; isolation: isolate; background: var(--blue-950); color: rgba(255, 255, 255, .78); padding: clamp(56px, 7vw, 88px) 0 32px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--relevo-claro) 20% 80% / cover no-repeat; opacity: .06; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.site-footer img.f-logo { height: 96px; width: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-col h4 { font-size: 14px; color: var(--green); letter-spacing: .14em; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: rgba(255, 255, 255, .74); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; color: rgba(255, 255, 255, .8); transition: border-color .2s, color .2s, background-color .2s; }
.socials a:hover { border-color: var(--green); color: var(--green); }
.footer-phrase { font-family: var(--ff-title); text-transform: uppercase; font-weight: 800; font-size: clamp(30px, 5vw, 64px); line-height: .92; letter-spacing: -.01em; color: #fff; margin: clamp(48px, 6vw, 80px) 0 0; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(255, 255, 255, .1); text-wrap: balance; }
.footer-phrase .g { color: var(--green); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .45); margin-top: 28px; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 820px) { .site-footer__top { grid-template-columns: 1fr; } }

/* Voltar ao topo */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-totop); width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--blue); border: 0; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-2); transform: translateY(14px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.to-top.show { transform: none; opacity: 1; pointer-events: auto; }
.to-top:active { transform: scale(.94); }

/* ===================================================== MOVIMENTO ======= */
/* Entrada de seção: SÓ deslocamento (transform). Sem opacity: se a animação
   travar (aba em segundo plano, observador que não disparou), o conteúdo
   fica no máximo 24px deslocado — nunca invisível. */
.js-motion .reveal { transform: translateY(24px); transition: transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion .reveal.in { transform: none; }
.js-motion .rule.reveal { transform: scaleX(0); transition-duration: .9s; }
.js-motion .rule.reveal.in { transform: none; }

/* Linhas que se desenham (perfil, rota, curvas): o JS só arma o tracejado
   quando há movimento — sem JS a linha já nasce desenhada. */
.draw { transition: stroke-dashoffset 1.6s var(--ease-in-out); }

/* Transição entre páginas (View Transitions nativo, progressivo) */
@view-transition { navigation: auto; }
::view-transition-group(site-header) { animation: none; }
::view-transition-old(root) { animation: vt-out .18s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js-motion .reveal, .js-motion .rule.reveal { transform: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Impressão: tudo visível, sem fundo escuro */
@media print {
  .site-header, .to-top, .nav__toggle { display: none !important; }
  .reveal { transform: none !important; }
  body { background: #fff; }
}

/* ===== Mapa 3D da etapa ===== */
.map3d { position: relative; height: clamp(420px, 62vh, 640px); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: #E4E9DF; isolation: isolate; }
.map3d .map3d__canvas { position: absolute; inset: 0; } /* vence o .maplibregl-map { position: relative } */
.map3d__ui { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 70px); }
.map3d__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-family: var(--ff-title); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow-1); cursor: pointer; transition: transform .2s var(--ease-out), background-color .2s; }
.map3d__btn:hover { transform: translateY(-1px); }
.map3d__btn:active { transform: scale(.97); }
.map3d__btn--voo { background: var(--green); color: var(--blue-950, #0F1F28); }
.map3d__btn--voo.is-on { background: var(--blue); color: #fff; }
.map3d__ico { font-size: 11px; }
.map3d__nota { margin: 0; padding: 10px clamp(14px, 2.4vw, 26px) 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.map3d__nota a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.map3d__estado { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; background: linear-gradient(180deg, #E9EEE4, #DCE4D6); }
.map3d__estado[hidden] { display: none; }
.map3d.is-off { height: auto; min-height: 120px; }
.map3d .maplibregl-ctrl-group { border-radius: 10px; box-shadow: var(--shadow-1); }
.map3d .maplibregl-ctrl-attrib { font-size: 10.5px; }
.map3d-card { padding: 0 !important; overflow: hidden; }
.map3d-card__perfil { padding: clamp(14px, 2.4vw, 24px) clamp(14px, 2.4vw, 26px) 20px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .map3d { height: 440px; }
  .map3d__btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .map3d .maplibregl-ctrl-attrib.maplibregl-compact-show { max-width: calc(100% - 16px); }
}
/* marcadores */
.m3d { display: grid; justify-items: center; gap: 4px; pointer-events: none; font-family: var(--ff-title); }
.m3d__pill { display: inline-block; white-space: nowrap; padding: 4px 9px; border-radius: 6px; background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(15, 31, 40, .25); position: relative; }
.m3d__pill small { font-weight: 600; opacity: .7; margin-left: 4px; }
.m3d__pill::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.m3d__pill--verde { background: var(--green); color: #0F1F28; }
.m3d__pill--azul { background: var(--blue); color: #fff; }
.m3d__pill--mont { background: var(--mount); color: #fff; }
.m3d__gpm { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--mount); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 2px #fff; order: -1; }
.m3d__flag { width: 22px; height: 15px; border: 2px solid #fff; border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); background: repeating-conic-gradient(#0F1F28 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.m3d--meta .m3d__pill { font-size: 11.5px; padding: 3px 7px; }
.m3d__dot { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid var(--blue); box-shadow: 0 0 0 6px rgba(166, 198, 19, .35); }
@media (prefers-reduced-motion: no-preference) { .m3d__dot { animation: m3d-pulso 1.6s var(--ease-out) infinite; } }
@keyframes m3d-pulso { 0% { box-shadow: 0 0 0 0 rgba(166, 198, 19, .55); } 100% { box-shadow: 0 0 0 14px rgba(166, 198, 19, 0); } }
.m3d__selo { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); font-weight: 800; font-size: 12px; box-shadow: 0 0 0 2px var(--blue), 0 2px 6px rgba(15, 31, 40, .3); order: -1; }
.map3d.is-longe .m3d__det { display: none; }
.map3d.is-longe .m3d--gpm .m3d__gpm, .map3d.is-longe .m3d__selo { width: 22px; height: 22px; font-size: 11.5px; }
