/* Pace3 · Scroll Cinema
   Tokens extraídos do design system Pace3 + camada cinema (cenas escuras). */

:root {
  /* Cor (design system Pace3) */
  --pace-red: #dd3333;
  --pace-red-deep: #b82525;
  --white: #ffffff;
  --paper: #fbfbfb;
  --tint: #eeeeee;
  --line: #d9d9d9;
  --muted: #6f6f6f;
  --heading: #4a4a4a;
  --text: #333333;
  --ink: #222222;
  --black: #000000;

  /* Camada cinema */
  --night: #0b0b0c;
  --night-2: #151517;
  --on-night: #f4f4f2;
  --on-night-muted: #b9b9b6;
  --veil: rgba(0, 0, 0, 0.55);
  --veil-soft: rgba(0, 0, 0, 0.25);
  --glass: rgba(11, 11, 12, 0.72);
  --glass-line: rgba(255, 255, 255, 0.14);

  /* Tipografia: escala fixa */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-48: 3rem;
  --fs-display: clamp(2rem, 6.2vw, 6.5rem);
  --fs-mega: clamp(5rem, 22vw, 20rem);

  /* Espaço: grade de 8px */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --s-12: 96px;
  --s-16: 128px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --wrap: 1200px;
  --gutter: 24px;

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
  --dur-fast: 240ms;
  --stagger: 90ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--pace-red); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-14); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--pace-red); color: var(--white); }
.btn--red:hover { background: var(--pace-red-deep); }
.btn--ghost { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1px var(--glass-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--on-night); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--night); color: var(--on-night);
  transition: opacity 600ms var(--ease), visibility 600ms;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; gap: var(--s-3); justify-items: center; }
.loader__logo { width: 160px; height: auto; }
.loader__track { width: 200px; height: 2px; background: var(--glass-line); overflow: hidden; border-radius: var(--radius-pill); }
.loader__bar { height: 100%; width: 0; background: var(--pace-red); transition: width 300ms linear; }
.loader__label { font-size: var(--fs-12); letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-night-muted); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.header.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: 72px; }
.header__logo img { height: 40px; width: auto; }
.header .logo-dark { display: none; }
.header.is-solid .logo-dark { display: block; }
.header.is-solid .logo-light { display: none; }
.nav { display: flex; gap: var(--s-4); }
.nav a {
  font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--on-night);
}
.header.is-solid .nav a { color: var(--ink); }
.nav a:hover { color: var(--pace-red); }
.header .btn { padding: var(--s-1) var(--s-3); }
.menu-btn { display: none; background: none; border: 0; color: var(--on-night); padding: var(--s-1); cursor: pointer; }
.header.is-solid .menu-btn { color: var(--ink); }

/* ---------- Odômetro ---------- */
.odo {
  position: fixed; right: var(--s-3); bottom: var(--s-3); z-index: 60;
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1);
  background: var(--glass); color: var(--on-night);
  border: 1px solid var(--glass-line); border-radius: var(--radius-pill);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform var(--dur) var(--ease);
}
.odo.is-milestone { transform: scale(1.12); }
.odo__ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.odo__ring circle { fill: none; stroke-width: 4; }
.odo__track { stroke: var(--glass-line); }
.odo__fill { stroke: var(--pace-red); stroke-linecap: round; }
.odo__mark { stroke: var(--on-night); stroke-width: 6; }
.odo__read { display: grid; line-height: 1; }
.odo__value { display: flex; align-items: baseline; font-weight: 600; font-size: var(--fs-24); font-variant-numeric: tabular-nums; }
.odo__digit { display: inline-block; width: 0.64em; height: 1em; overflow: hidden; text-align: center; }
.odo__strip { display: block; transition: transform 320ms var(--ease); }
.odo__strip span { display: block; height: 1em; }
.odo__strip--live { transition: none; }
.odo__sep { width: 0.3em; text-align: center; }
.odo__unit { font-size: var(--fs-14); font-weight: 500; margin-left: var(--s-1); color: var(--on-night-muted); }
.odo__label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-night-muted); margin-top: 6px; }

/* ---------- Cenas (scroll cinema) ---------- */
.scene { position: relative; background: var(--night); color: var(--on-night); }
.scene--hero { height: 480vh; }
.scene--mid { height: 340vh; background: var(--white); }
.scene--podium { height: 460vh; }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--veil) 0%, var(--veil-soft) 40%, var(--veil-soft) 60%, var(--veil) 100%);
}
.scene__content {
  position: absolute; inset: 0; display: grid; align-content: end;
  padding: var(--s-12) var(--gutter) var(--s-16);
  width: min(var(--wrap), 100%); margin-inline: auto;
}
.kicker {
  display: inline-flex; align-items: center; gap: var(--s-1);
  font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pace-red);
}
.kicker::before { content: ""; width: 24px; height: 2px; background: var(--pace-red); }
.scene .kicker { color: var(--on-night); }
.scene__title {
  margin-top: var(--s-2);
  font-size: var(--fs-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em;
  white-space: nowrap;
}
.scene__title em { font-style: normal; color: var(--pace-red); }
.scene__lead { margin-top: var(--s-3); max-width: 560px; font-size: var(--fs-20); color: var(--on-night-muted); }
.scene__cta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.scene__fade { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.scene__fade.is-on { opacity: 1; transform: none; }

.scroll-hint {
  position: absolute; left: 50%; bottom: var(--s-4); transform: translateX(-50%);
  font-size: var(--fs-12); letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-night-muted);
  display: grid; justify-items: center; gap: var(--s-1);
  transition: opacity var(--dur-fast);
}
.scroll-hint::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--on-night), transparent); animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Cena contida (5 km) */
.scene--mid .scene__sticky { display: grid; place-items: center; padding: var(--s-10) var(--gutter) var(--s-4); }
.box {
  position: relative; width: min(1280px, 100%); aspect-ratio: 16 / 9; max-height: calc(100svh - 120px);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--night);
  container-type: size;
  transform: scale(var(--box-scale, 0.86));
  transition: transform 120ms linear;
}
.box .scene__video { object-fit: cover; }
.box__mega {
  position: absolute; left: 4cqw; bottom: 3cqh;
  font-size: 26cqw; font-weight: 600; line-height: 0.8; letter-spacing: -0.04em;
  color: var(--white); white-space: nowrap; text-shadow: 0 4px 40px var(--veil);
}
.box__mega small { font-size: 0.32em; letter-spacing: 0; margin-left: 1cqw; }
.box__quote {
  position: absolute; right: 4cqw; top: 6cqh; max-width: 44cqw; text-align: right;
  font-size: 3.6cqw; font-weight: 600; line-height: 1.15; color: var(--white);
}
.box__quote span { display: block; color: var(--on-night-muted); font-weight: 400; font-size: 0.6em; margin-top: 1.2cqw; }
.box__tag {
  position: absolute; left: 4cqw; top: 6cqh;
  display: inline-flex; align-items: center; gap: 1cqw;
  font-size: max(11px, 1.1cqw); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-night);
}
.box__tag::before { content: ""; width: 3cqw; min-width: 16px; height: 2px; background: var(--pace-red); }

/* Fallback quando o vídeo do pódio ainda não existe */
.scene--podium.is-missing .scene__sticky { background: radial-gradient(120% 90% at 50% 100%, var(--pace-red-deep), var(--night) 60%); }

/* ---------- Seções de conteúdo ---------- */
.section { padding: var(--s-16) 0; }
.section--paper { background: var(--paper); }
.section--night { background: var(--night); color: var(--on-night); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-8); }
.section__title { font-size: var(--fs-48); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -0.01em; }
.section--night .section__title { color: var(--on-night); }
.section__title em { font-style: normal; color: var(--pace-red); }
.section__lead { max-width: 520px; color: var(--muted); }
.section--night .section__lead { color: var(--on-night-muted); }

/* Próximos eventos: trilho horizontal guiado pelo scroll vertical.
   O JS dá altura à seção (100vh + sobra do trilho) e liga .is-pinned. */
.upcoming { position: relative; background: var(--white); }
.upcoming__pin { padding: var(--s-16) 0 var(--s-10); overflow: hidden; }
.upcoming.is-pinned .upcoming__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 0 var(--s-4);
}
.upcoming__head { margin-bottom: var(--s-5); }
.upcoming__viewport { overflow: hidden; }
.upcoming__track {
  display: flex; gap: var(--s-3); width: max-content;
  padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
  will-change: transform;
}
.upcoming.is-native .upcoming__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
.upcoming.is-native .upcoming__track > * { scroll-snap-align: start; }
.upcoming__track .event { width: clamp(280px, 30vw, 400px); flex: none; }
.upcoming__foot { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.upcoming__progress { flex: 1; height: 2px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.upcoming__progress span { display: block; height: 100%; width: 100%; background: var(--pace-red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.upcoming__hint { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.upcoming:not(.is-pinned) .upcoming__foot { display: none; }
.event.event--more {
  display: grid; place-content: center; gap: var(--s-2); padding: var(--s-5); text-align: left;
  background: var(--night); border-color: var(--night); color: var(--on-night);
}
.event--more strong { font-size: var(--fs-24); line-height: 1.2; }
.event--more strong em { font-style: normal; color: var(--pace-red); }
.event.event--empty { display: grid; align-content: center; gap: var(--s-1); padding: var(--s-5); color: var(--muted); }
.event--empty strong { color: var(--ink); font-size: var(--fs-20); }
.event {
  display: grid; grid-template-rows: auto 1fr; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.event:hover { transform: translateY(-4px); border-color: var(--pace-red); }
.event__img { aspect-ratio: 952 / 579; width: 100%; height: auto; object-fit: cover; background: var(--tint); }
.event__body { display: grid; gap: var(--s-1); padding: var(--s-3); align-content: start; }
.event__date { display: flex; align-items: baseline; gap: var(--s-1); color: var(--pace-red); font-weight: 600; }
.event__day { font-size: var(--fs-32); line-height: 1; }
.event__month { font-size: var(--fs-12); letter-spacing: 0.12em; text-transform: uppercase; }
.event__name { font-size: var(--fs-16); font-weight: 600; line-height: 1.3; color: var(--ink); }
.event__place { font-size: var(--fs-14); color: var(--muted); }
.event__go { margin-top: var(--s-1); font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pace-red); }

/* Números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.stat { padding: var(--s-4) 0; border-top: 2px solid var(--pace-red); }
.stat__num { font-size: clamp(2rem, 3.6vw, 3.25rem); white-space: nowrap; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-night); }
.stat__label { margin-top: var(--s-1); font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night-muted); }

/* Por que a Pace3 */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: center; }
.why__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--night); }
.why__media img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--para, 0)) scale(1.12); }
.why__badge {
  position: absolute; left: var(--s-3); bottom: var(--s-3); padding: var(--s-2) var(--s-3);
  background: var(--glass); color: var(--on-night); border-radius: var(--radius-md); font-size: var(--fs-14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.why__badge strong { display: block; font-size: var(--fs-24); color: var(--white); }
.why__list { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.why__item { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-2); }
.why__icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--tint); color: var(--pace-red); }
.why__icon svg { width: 24px; height: 24px; }
.why__item h3 { font-size: var(--fs-16); font-weight: 600; color: var(--ink); }
.why__item p { font-size: var(--fs-14); color: var(--muted); }

/* Depoimentos */
.reviews__score { display: block; margin-top: var(--s-1); color: var(--ink); }
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--s-3)) / 3); gap: var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: var(--s-1);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-3); }
.carousel__btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.carousel__btn:hover { border-color: var(--pace-red); color: var(--pace-red); }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__dots { display: flex; gap: var(--s-1); }
.carousel__dots button { width: 24px; height: 4px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--line); cursor: pointer; transition: background var(--dur-fast), width var(--dur-fast) var(--ease); }
.carousel__dots button[aria-selected="true"] { width: 40px; background: var(--pace-red); }
.review { margin: 0; padding: var(--s-5); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: grid; gap: var(--s-3); align-content: space-between; }
.review--rating .review__text { font-size: var(--fs-16); color: var(--muted); font-weight: 400; }
.review__stars { color: var(--pace-red); letter-spacing: 0.15em; }
.review__text { margin: 0; font-size: var(--fs-20); line-height: 1.5; color: var(--ink); font-weight: 500; }
.review__who { display: flex; align-items: center; gap: var(--s-2); }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); font-weight: 600; }
.review__name { font-weight: 600; color: var(--ink); line-height: 1.2; }
.review__src { font-size: var(--fs-12); color: var(--muted); }
.reviews__more { margin-top: var(--s-4); }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--s-2); }
.gallery a { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--tint); text-decoration: none; }
.gallery a:nth-child(10n+1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(10n+6) { grid-column: span 2; }
.gallery figure { margin: 0; height: 100%; }
.gallery figcaption small { display: block; font-weight: 500; opacity: 0.8; letter-spacing: 0.08em; text-transform: uppercase; }
.gallery .is-new { animation: rise var(--dur) var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.gallery__more { margin-top: var(--s-4); display: flex; justify-content: center; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--s-3) var(--s-2) var(--s-2);
  background: linear-gradient(transparent, var(--veil)); color: var(--white);
  font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.04em;
}

/* Associação: fundo com paralaxe, seção na proporção da imagem (1920x801) */
.assoc-sec {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vw * 801 / 1920);
  display: grid; align-items: center;
}
.assoc__bg {
  position: absolute; inset: -15% 0; z-index: -1;
  background: var(--night) url("../assets/img/bg-associacao-p3.png") center / cover no-repeat;
  transform: translate3d(0, var(--bgpara, 0), 0);
  will-change: transform;
}
.assoc__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 12, 0.55), rgba(11, 11, 12, 0.15)); }
.assoc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.assoc p { color: var(--on-night-muted); }
.assoc p + p { margin-top: var(--s-2); }
.assoc .btn { margin-top: var(--s-4); }
.assoc__quote { font-size: var(--fs-32); font-weight: 600; line-height: 1.2; color: var(--on-night); }
.assoc__quote em { font-style: normal; color: var(--pace-red); }

/* FAQ + agenda */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
.faq { display: grid; gap: var(--s-1); }
.faq p a { color: var(--pace-red); }
.agenda { display: grid; gap: var(--s-2); position: sticky; top: 96px; }
.cal { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.cal__head { margin-bottom: var(--s-3); }
.cal__title { margin-top: var(--s-1); font-size: var(--fs-24); font-weight: 600; color: var(--ink); line-height: 1.2; }
.cal__title span { color: var(--pace-red); }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__week span { font-size: var(--fs-12); font-weight: 600; color: var(--muted); padding-bottom: var(--s-1); }
.cal__day {
  position: relative; height: 40px; display: grid; place-items: center; border-radius: var(--radius-md);
  font-size: var(--fs-14); color: var(--text); text-decoration: none;
}
.cal__day.is-past { color: #b0b0b0; }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.cal__day.has-event { background: var(--pace-red); color: var(--white); font-weight: 600; }
.cal__day.has-event.is-past { background: var(--tint); color: var(--ink); }
a.cal__day.has-event:hover { background: var(--pace-red-deep); color: var(--white); }
.cal__list { list-style: none; margin: var(--s-3) 0 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.cal__list a { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-2); align-items: center; text-decoration: none; }
.cal__list a:hover .cal__name { color: var(--pace-red); }
.cal__badge { display: grid; place-items: center; height: 48px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); line-height: 1; font-weight: 600; color: var(--pace-red); font-size: var(--fs-20); }
.cal__badge small { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cal__name { font-size: var(--fs-14); font-weight: 600; color: var(--ink); line-height: 1.3; }
.cal__meta { display: block; font-size: var(--fs-12); color: var(--muted); font-weight: 400; }
.cal__empty { font-size: var(--fs-14); color: var(--muted); }
.follow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.follow__cta {
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--white);
  transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.follow__cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.follow__cta svg { width: 32px; height: 32px; flex: none; }
.follow__cta span { font-size: var(--fs-12); line-height: 1.4; opacity: 0.92; }
.follow__cta strong { display: block; font-size: var(--fs-16); opacity: 1; }
.follow__cta--yt { background: #c4302b; }
.follow__cta--ig { background: linear-gradient(135deg, #833ab4, #e1306c 55%, #f77737); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-3) 0; font-weight: 600; color: var(--ink); font-size: var(--fs-16);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pace-red); font-size: var(--fs-24); line-height: 1; transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: var(--s-3); color: var(--muted); }

/* Contato e mapa */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-6); align-items: stretch; }
.contact__list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.contact__item { display: grid; gap: 2px; }
.contact__item span { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact__item a, .contact__item strong { font-size: var(--fs-20); font-weight: 600; color: var(--ink); text-decoration: none; }
.contact__item a:hover { color: var(--pace-red); }
.socials { display: flex; gap: var(--s-1); margin-top: var(--s-4); flex-wrap: wrap; }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; background: var(--tint); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Página de ranking */
.ranking { padding: calc(72px + var(--s-8)) 0 var(--s-10); background: var(--paper); }
.ranking__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.ranking__head .section__title { margin-top: var(--s-1); }
.ranking__frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.ranking__frame iframe { display: block; width: 100%; height: calc(100vh - 72px - var(--s-8)); height: calc(100svh - 72px - var(--s-8)); min-height: 640px; border: 0; }
.ranking__note { margin-top: var(--s-2); font-size: var(--fs-12); color: var(--muted); }
.nav a[aria-current="page"] { color: var(--pace-red); }

/* Footer */
.footer { background: var(--night); color: var(--on-night-muted); padding: var(--s-8) 0 var(--s-4); font-size: var(--fs-14); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); }
.footer__logo { height: 72px; width: auto; margin-bottom: var(--s-2); }
.footer h3 { color: var(--on-night); font-size: var(--fs-12); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--s-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__base { margin-top: var(--s-16); padding-top: var(--s-3); border-top: 1px solid var(--glass-line); display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; font-size: var(--fs-12); }

/* WhatsApp flutuante */
.wa {
  position: fixed; left: var(--s-3); bottom: var(--s-3); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pace-red); color: var(--white);
  transition: transform var(--dur-fast) var(--ease);
}
.wa:hover { transform: scale(1.08); }
/* Flutuantes sobem quando a base do rodapé entra na tela (js: --float-lift).
   `translate` compõe com o `transform` do hover e do pulso do odômetro. */
.wa, .odo { translate: 0 calc(-1 * var(--float-lift, 0px)); }
.wa svg { width: 26px; height: 26px; }

/* ---------- Kit de movimento ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Mantém a altura das cenas: o scroll continua dirigindo o vídeo. Corta só o que anda sozinho. */
  .reveal, .scene__fade { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
  .odo__strip, .odo, .box { transition: none; }
  .why__media img { transform: scale(1.12); }
  .assoc__bg { inset: 0; transform: none; }
  .gallery .is-new { animation: none; }
  .carousel__track { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .nav { gap: var(--s-3); }
  .header .btn--red { display: none; }
}
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - var(--s-3)) / 2); }
  .faq-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .agenda { position: static; }
  .why, .assoc, .contact { grid-template-columns: 1fr; }
  .why__media { aspect-ratio: 16 / 10; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --fs-display: 7.2vw; --fs-48: 2rem; }
  .section { padding: var(--s-10) 0; }
  .nav, .header .btn { display: none; }
  .menu-btn { display: block; }
  .header.is-open { background: var(--white); }
  .header.is-open .nav { display: grid; position: absolute; top: 72px; left: 0; right: 0; padding: var(--s-2) var(--gutter) var(--s-3); background: var(--white); gap: var(--s-2); box-shadow: 0 1px 0 var(--line); }
  .header.is-open .nav a { color: var(--ink); font-size: var(--fs-14); }
  .header.is-open .logo-dark { display: block; }
  .header.is-open .logo-light { display: none; }
  .header.is-open .menu-btn { color: var(--ink); }
  .scene__content { padding-bottom: var(--s-16); }
  .scene__lead { font-size: var(--fs-16); }
  .carousel__track { grid-auto-columns: 88%; gap: var(--s-2); }
  .review { padding: var(--s-4); }
  .upcoming__pin { padding-top: var(--s-10); }
  .upcoming__track .event { width: 78vw; }
  .follow { grid-template-columns: 1fr; }
  .cal { padding: var(--s-3); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .footer__grid { grid-template-columns: 1fr; }
  .scene--mid .scene__sticky { padding: var(--s-10) var(--s-1) var(--s-2); }
  .box { aspect-ratio: 9 / 14; }
  .box__quote { left: 6cqw; right: 6cqw; max-width: none; text-align: left; top: 14cqh; font-size: 6.4cqw; }
  .box__mega { font-size: 40cqw; }
  .box__tag { left: 6cqw; top: 6cqh; }
  /* odômetro compacto, longe do WhatsApp e do CTA */
  .odo { right: var(--s-2); bottom: var(--s-2); padding: 4px var(--s-2) 4px 4px; gap: var(--s-1); }
  .footer__base { margin-top: var(--s-12); flex-direction: column; align-items: center; text-align: center; gap: var(--s-1); }
  .odo__ring { width: 40px; height: 40px; }
  .odo__value { font-size: var(--fs-16); }
  .odo__label { display: none; }
  .wa { left: var(--s-2); bottom: var(--s-2); width: 48px; height: 48px; }
}
