/* =========================================================
   Confraternização Ata 2026 — Convite interativo
   Paleta: amarelo Ata + azul bebê, com azul-marinho (das
   palmeiras do fundo) para contraste e legibilidade.
   ========================================================= */

:root {
  --yellow: #ffe414;
  --yellow-2: #f7c600;
  --yellow-soft: #fff6c2;
  --baby: #9fd8f5;
  --baby-2: #6cc1ec;
  --baby-soft: #e3f4fd;
  --navy: #0e3a63;
  --navy-2: #082a4a;
  --navy-3: #05192e;
  --cream: #fff9ea;
  --ink: #0c2740;
  --muted: #4b6378;
  --danger: #d6452f;
  --ok: #1d9a5b;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -18px rgba(8, 42, 74, .45);
  --shadow-sm: 0 8px 24px -12px rgba(8, 42, 74, .35);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Fundo aquarela (fixo, funciona no iOS) ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background: url("../image/background/background_landscape.jpeg") center / cover no-repeat;
}
@media (orientation: portrait), (max-width: 760px) {
  .bg { background-image: url("../image/background/bacground_portrait.jpeg"); }
}
#confetti {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 60;
}

/* ---------- Botões ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--baby-2); outline-offset: 3px; }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.08rem; }
.btn--block { width: 100%; }
.btn--yellow {
  --bg: var(--yellow); --fg: var(--navy-2);
  box-shadow: 0 10px 28px -10px rgba(247, 198, 0, .9), inset 0 -3px 0 rgba(0,0,0,.08);
}
.btn--yellow:hover { box-shadow: 0 14px 34px -10px rgba(247, 198, 0, 1), inset 0 -3px 0 rgba(0,0,0,.08); }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--ghost-dark { --bg: transparent; --fg: var(--navy); border-color: rgba(14,58,99,.3); }
.btn--ghost-dark:hover { background: var(--baby-soft); }
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px;
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
  transform: translateY(-110%);
}
.topbar.is-visible {
  transform: none;
  background: rgba(8, 42, 74, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -10px rgba(0,0,0,.4);
}
.topbar__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; font-weight: 700; font-size: .92rem; }
.topbar__brand img { height: 28px; width: auto; }
.topbar__nav { display: flex; gap: 1.4rem; margin-left: auto; }
.topbar__nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .92rem; }
.topbar__nav a:hover { color: var(--yellow); }
@media (max-width: 820px) {
  .topbar__nav { display: none; }
  .topbar__brand span { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  margin: 0 0 .6rem; font-weight: 700; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--yellow);
}
.eyebrow--dark { color: var(--baby-2); color: #1e7fb6; }

/* =========================================================
   HERO — "ingresso" azul-marinho sobre a aquarela
   ========================================================= */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(40px + env(safe-area-inset-top, 0px)) var(--gutter) 90px;
  position: relative;
}
.ticket {
  position: relative; width: min(860px, 100%);
  text-align: center; color: #fff;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 56px) clamp(28px, 4vw, 44px);
  border-radius: 34px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(159,216,245,.22), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(255,228,20,.12), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  box-shadow: 0 40px 90px -30px rgba(5,25,46,.7), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
/* moldura tracejada interna, estilo ingresso */
.ticket::before {
  content: ""; position: absolute; inset: 10px; border-radius: 26px;
  border: 1.5px dashed rgba(255,228,20,.28); pointer-events: none;
}

/* luzes do varal */
.ticket__lights { position: absolute; top: 0; left: 0; right: 0; height: 30px; display: flex; justify-content: space-around; pointer-events: none; }
.ticket__lights::before {
  content: ""; position: absolute; left: -5%; right: -5%; top: -24px; height: 40px;
  border-bottom: 2px solid rgba(255,255,255,.18); border-radius: 0 0 50% 50%;
}
.ticket__lights span {
  width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  margin-top: 12px; background: var(--yellow);
  box-shadow: 0 0 14px 3px rgba(255,228,20,.7);
  animation: twinkle 1.6s ease-in-out infinite;
}
.ticket__lights span:nth-child(even) { background: var(--baby); box-shadow: 0 0 14px 3px rgba(159,216,245,.7); margin-top: 16px; animation-delay: .8s; }
.ticket__lights span:nth-child(3n) { animation-delay: .4s; }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero__logo { margin: .2rem auto 0; }
.hero__logo img {
  width: clamp(200px, 46vw, 400px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 6px 30px rgba(255,228,20,.45));
  animation: logoIn 1.1s cubic-bezier(.2,.9,.3,1.3) both;
}
@keyframes logoIn { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: none; } }

.hero__title {
  margin: 1rem 0 .4rem;
  font-family: var(--f-display); font-weight: 500; line-height: 1;
  font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--baby);
}
.hero__title strong {
  display: inline-block; font-weight: 800; color: #fff; letter-spacing: -.02em;
  font-size: clamp(2.3rem, 8vw, 4.6rem);
}
.hero__lead { max-width: 52ch; margin: .8rem auto 1.6rem; color: rgba(255,255,255,.8); font-size: clamp(.98rem, 2vw, 1.08rem); }

.hero__facts {
  list-style: none; padding: 0; margin: 0 auto 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px;
}
.hero__facts li {
  display: flex; align-items: center; gap: .7rem; text-align: left;
  padding: .8rem .9rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
}
.fact__icon { font-size: 1.5rem; }
.hero__facts small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--baby); font-weight: 700; }
.hero__facts b { display: block; font-size: .98rem; line-height: 1.25; }
.hero__facts em { display: block; font-style: normal; font-size: .78rem; color: rgba(255,255,255,.65); }
@media (max-width: 680px) { .hero__facts { grid-template-columns: 1fr; } }

/* ---------- Countdown ---------- */
.countdown { margin: 0 auto 2rem; }
.countdown__label {
  margin: 0 0 .9rem; font-family: var(--f-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .3em; font-size: .85rem; color: var(--yellow);
}
.countdown__grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: clamp(8px, 1.6vw, 16px);
  max-width: 720px; margin: 0 auto;
}
.cd {
  position: relative; padding: clamp(12px, 2.4vw, 22px) 6px clamp(10px, 2vw, 16px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
}
.cd::after { /* linha de "flip" */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.25);
}
.cd--days {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-2) 100%);
  color: var(--navy-2); border: none;
  box-shadow: 0 0 0 4px rgba(255,228,20,.18), 0 18px 40px -12px rgba(255,228,20,.7);
  animation: pulseGlow 2.4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,228,20,.18), 0 18px 40px -12px rgba(255,228,20,.7); }
  50% { box-shadow: 0 0 0 10px rgba(255,228,20,.08), 0 18px 60px -8px rgba(255,228,20,.9); }
}
.cd__num {
  display: block; font-family: var(--f-display); font-weight: 800; line-height: 1;
  font-size: clamp(2.4rem, 9vw, 5.2rem); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.cd--days .cd__num { font-size: clamp(3rem, 12vw, 6.6rem); }
.cd__num.tick { animation: flip .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes flip {
  0% { transform: translateY(-30%) scale(.9); opacity: .2; }
  100% { transform: none; opacity: 1; }
}
.cd__unit { display: block; margin-top: .35rem; font-size: clamp(.68rem, 1.6vw, .85rem); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.countdown__msg {
  margin: 0; font-family: var(--f-display); font-weight: 800; color: var(--yellow);
  font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.05;
}
@media (max-width: 480px) {
  .countdown__grid { grid-template-columns: repeat(3, 1fr); }
  .cd--days { grid-column: 1 / -1; }
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__confirmed { margin: 1rem 0 0; color: var(--baby); font-weight: 600; font-size: .92rem; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid var(--navy); border-radius: 20px; opacity: .6;
}
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--navy); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* =========================================================
   PARCEIROS — marquee de logos
   ========================================================= */
.partners {
  background: var(--navy-2); color: #fff; padding: 34px 0 30px; text-align: center;
  box-shadow: 0 -20px 40px -30px rgba(0,0,0,.4);
}
.partners__title { margin: 0 var(--gutter) 22px; font-size: clamp(.95rem, 2vw, 1.1rem); color: var(--baby); }
.partners__title b { color: var(--yellow); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(40px, 6vw, 80px); width: max-content; animation: marquee 40s linear infinite; }
.marquee__track img { height: clamp(34px, 5vw, 48px); width: auto; max-width: 180px; object-fit: contain; opacity: .9; transition: opacity .2s, transform .2s; }
.marquee__track img:hover { opacity: 1; transform: scale(1.08); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 110px) var(--gutter) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 70px); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section__head h2 {
  margin: 0 0 .4rem; font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(2.1rem, 5.6vw, 3.4rem); line-height: 1.02; color: var(--navy);
}
.section__head p:last-child { margin: 0; color: var(--muted); }

/* ---------- Cards de atrações ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(14,58,99,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--media { cursor: pointer; }
.card--media:focus-visible { outline: 3px solid var(--baby-2); outline-offset: 3px; }

.card__visual { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.card__emoji { font-size: clamp(3.6rem, 8vw, 4.6rem); filter: drop-shadow(0 8px 14px rgba(0,0,0,.2)); transition: transform .4s cubic-bezier(.3,1.6,.5,1); position: relative; }
.card:hover .card__emoji { transform: scale(1.12) rotate(-6deg); }
.card__visual--yellow { background: radial-gradient(circle at 30% 30%, #fff6b0, var(--yellow) 55%, var(--yellow-2)); }
.card__visual--blue { background: radial-gradient(circle at 70% 30%, #f2fbff, var(--baby) 55%, var(--baby-2)); }
.card__visual--lights { background: radial-gradient(circle at 50% 120%, #1b5a8f, var(--navy-3) 70%); }
.beam { position: absolute; bottom: -10%; left: 50%; width: 40%; height: 130%; transform-origin: 50% 100%; opacity: .55; filter: blur(2px); mix-blend-mode: screen; }
.beam.b1 { background: linear-gradient(to top, var(--yellow), transparent 80%); clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0); animation: sweep 3.2s ease-in-out infinite alternate; }
.beam.b2 { background: linear-gradient(to top, var(--baby), transparent 80%); clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0); animation: sweep 2.6s ease-in-out infinite alternate-reverse; }
.beam.b3 { background: linear-gradient(to top, #ff7ad9, transparent 80%); clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0); animation: sweep 4s ease-in-out infinite alternate; animation-delay: -1s; }
@keyframes sweep { from { transform: translateX(-50%) rotate(-38deg); } to { transform: translateX(-50%) rotate(38deg); } }

.card__visual--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__visual--photo img { transform: scale(1.06); }
.card__badge {
  position: absolute; left: 12px; bottom: 12px; padding: .38em .8em; border-radius: 999px;
  background: rgba(8,42,74,.85); color: #fff; font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(4px);
}
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__body h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; color: var(--navy); letter-spacing: -.01em; }
.card__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: .3em .7em; border-radius: 999px; background: var(--baby-soft); color: var(--navy); font-size: .8rem; font-weight: 600; }
.note { padding: .65em .8em; border-radius: 12px; font-size: .9rem !important; color: var(--ink) !important; }
.note--yellow { background: var(--yellow-soft); border: 1px solid #f3dd5a; }
.note--warn { background: #fff0e8; border: 1px solid #f6b9a3; }
.note a { color: var(--danger); font-weight: 700; }

/* ---------- Aviso piscina ---------- */
.warning {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 28px; background: #fff; box-shadow: var(--shadow);
  border: 2px solid #f6b9a3; position: relative; overflow: hidden;
}
.warning::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--navy-2) 16px 32px);
}
.warning__tag { display: inline-block; margin: 0 0 .6rem; padding: .35em .8em; border-radius: 999px; background: #ffe4d9; color: #a8321f; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.warning h2 { margin: 0 0 .5rem; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4.4vw, 2.6rem); color: var(--navy); line-height: 1.05; }
.warning p { margin: 0 0 1rem; font-size: 1.05rem; }
.warning b { color: #a8321f; }
.warning ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.warning li { margin: .3rem 0; }
@media (max-width: 760px) { .warning { grid-template-columns: 1fr; } }

.depth { margin: 0; }
.depth__pool {
  position: relative; height: 220px; border-radius: 0 0 18px 18px;
  border: 6px solid #d9cbb0; border-top: none; background: #f4ecdc;
  overflow: hidden;
}
/* fundo inclinado: 1,40m (esq.) -> 3,00m (dir.)  — escala 3,2m = 100% */
.depth__water {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #7fd3f3, #1f8fc8 70%, #156d9d);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 44%);
}
.depth__wave { position: absolute; top: -6px; left: 0; width: 200%; height: 14px; background: radial-gradient(circle at 10px -2px, transparent 10px, rgba(255,255,255,.6) 11px) 0 0 / 20px 14px repeat-x; animation: wave 4s linear infinite; }
@keyframes wave { to { transform: translateX(-50%); } }
.depth__mark { position: absolute; font-family: var(--f-display); font-weight: 800; color: #fff; font-size: 1.05rem; text-shadow: 0 2px 6px rgba(0,0,0,.35); padding-top: 8px; }
.depth__mark::before { content: ""; position: absolute; left: 50%; top: 0; height: 100%; border-left: 2px dashed rgba(255,255,255,.8); }
.depth__mark--a { left: 14px; top: 0; height: 44%; display: flex; align-items: flex-end; }
.depth__mark--b { right: 14px; top: 0; height: 94%; display: flex; align-items: flex-end; }
.depth__mark--a::before, .depth__mark--b::before { left: auto; right: -8px; }
.depth__person { position: absolute; left: 50%; top: 0; transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; }
.depth__person svg { width: auto; height: calc(220px * 1.7 / 3.2); fill: var(--navy-2); opacity: .85; }
.depth__person small { font-size: .7rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.depth figcaption { margin-top: .5rem; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- Galeria ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.filters button {
  padding: .6em 1.15em; border-radius: 999px; border: 2px solid rgba(14,58,99,.18);
  background: rgba(255,255,255,.85); color: var(--navy); font-weight: 700; font-size: .92rem;
  transition: all .2s ease;
}
.filters button:hover { border-color: var(--navy); }
.filters button[aria-selected="true"] { background: var(--navy); color: var(--yellow); border-color: var(--navy); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 10px; grid-auto-flow: dense; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }
.g-item {
  position: relative; border: 0; padding: 0; border-radius: 16px; overflow: hidden;
  background: var(--baby-soft); box-shadow: var(--shadow-sm);
  animation: gIn .45s ease both;
}
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.07); }
.g-item:focus-visible { outline: 3px solid var(--baby-2); outline-offset: 2px; }
.g-item__play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,228,20,.95); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s;
}
.g-item__play::before { content: ""; margin-left: 5px; border-left: 18px solid var(--navy-2); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.g-item:hover .g-item__play { transform: scale(1.12); }
.g-item__tag { position: absolute; left: 8px; top: 8px; padding: .25em .6em; border-radius: 999px; background: rgba(8,42,74,.8); color: #fff; font-size: .72rem; font-weight: 700; }
@keyframes gIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- Local ---------- */
.location {
  display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden;
  border-radius: 28px; background: #fff; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } }
.location__map { min-height: 380px; background: var(--baby-soft); }
.location__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.location__info { padding: clamp(22px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 1rem; }
.location__addr { display: flex; gap: .8rem; margin: 0; font-size: 1.08rem; line-height: 1.4; }
.location__addr > span:first-child { font-size: 1.8rem; line-height: 1; }
.location__addr b { color: var(--navy); }
.location__when { margin: 0; padding: .5em .9em; align-self: flex-start; border-radius: 999px; background: var(--yellow-soft); font-weight: 700; color: var(--navy); font-size: .92rem; }
.location__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .location__actions { grid-template-columns: 1fr; } }
.btn--nav { border-radius: 14px; padding: .85em 1em; font-size: .92rem; justify-content: flex-start; }
.btn--waze { --bg: #33ccff; --fg: #04223a; }
.btn--gmaps { --bg: #fff; --fg: var(--navy); border-color: rgba(14,58,99,.2); }
.btn--wpp { --bg: #25d366; --fg: #053b1d; }
.btn--copy { --bg: var(--baby-soft); --fg: var(--navy); }
.btn--copy.is-done { --bg: var(--ok); --fg: #fff; }
.calendar { margin-top: auto; padding-top: 1rem; border-top: 1px dashed rgba(14,58,99,.2); }
.calendar p { margin: 0 0 .6rem; font-weight: 600; color: var(--muted); font-size: .92rem; }
.calendar__btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- CTA final ---------- */
.final {
  max-width: 760px; margin: clamp(64px, 9vw, 110px) auto 0; padding: clamp(32px, 5vw, 56px) var(--gutter);
  text-align: center; color: #fff;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--navy), var(--navy-3));
  box-shadow: var(--shadow);
  width: calc(100% - 2 * var(--gutter));
}
.final__logo { width: 140px; margin: 0 auto 1rem; height: auto; }
.final h2 { margin: 0 0 .4rem; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.final p { margin: 0 auto 1.6rem; color: rgba(255,255,255,.8); max-width: 44ch; }

/* ---------- Contato ---------- */
.contact { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px dashed rgba(255,255,255,.2); }
.contact__title { margin: 0 auto 1rem !important; max-width: none !important; color: var(--baby) !important; font-weight: 700; }
.contact__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .contact__list { grid-template-columns: 1fr; } }
.contact__item {
  display: flex; align-items: center; gap: .8rem; text-align: left; text-decoration: none;
  padding: .85rem 1rem; border-radius: 16px; min-width: 0;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  transition: background .2s, transform .2s;
}
.contact__item:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.contact__item:focus-visible { outline: 3px solid var(--baby-2); outline-offset: 2px; }
.contact__item > span:last-child { min-width: 0; }
.contact__item small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--baby); font-weight: 700; }
.contact__item b { display: block; color: #fff; font-size: 1rem; overflow-wrap: anywhere; }
.contact__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); }
.contact__icon--wpp { background: #25d366; }
.contact__icon svg { width: 22px; height: 22px; fill: var(--navy-2); }

.footer { text-align: center; padding: 48px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--navy); font-size: .88rem; font-weight: 600; }
.footer p { display: inline-block; margin: 0; padding: .5em 1em; border-radius: 999px; background: rgba(255,255,255,.75); }

/* =========================================================
   MODAL RSVP
   ========================================================= */
dialog { border: 0; padding: 0; }
.modal {
  width: min(540px, calc(100% - 24px)); max-height: calc(100svh - 24px);
  border-radius: 28px; background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.5);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(5,25,46,.7); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .35s cubic-bezier(.2,.9,.3,1.2); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.modal__step { padding: clamp(24px, 5vw, 38px); }
.modal__step h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--navy); line-height: 1.05; }
.modal__sub { margin: .3rem 0 1.4rem; color: var(--muted); }
.modal__close {
  position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--baby-soft); color: var(--navy); font-size: 1.6rem; line-height: 1;
}
.modal__close:hover { background: var(--baby); }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field input, .field select {
  width: 100%; padding: .85em 1em; border-radius: 14px;
  border: 2px solid #d5e4ee; background: #f8fbfd; color: var(--ink);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4em; }
.field input:focus, .field select:focus { outline: none; border-color: var(--baby-2); box-shadow: 0 0 0 4px rgba(108,193,236,.25); background: #fff; }
.field__err { display: none; color: var(--danger); font-size: .82rem; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); }
.field.is-invalid .field__err { display: block; }
.field__hint { color: var(--muted); font-size: .78rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.stepper { display: flex; align-items: stretch; border: 2px solid #d5e4ee; border-radius: 14px; overflow: hidden; background: #f8fbfd; }
.stepper button { width: 46px; border: 0; background: var(--baby-soft); color: var(--navy); font-size: 1.4rem; font-weight: 700; }
.stepper button:hover { background: var(--baby); }
.stepper input { border: 0 !important; border-radius: 0; text-align: center; font-weight: 800; font-size: 1.15rem; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; padding: .7em 0; min-width: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.switch { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; margin: .4rem 0 1.2rem; border-radius: 16px; background: var(--yellow-soft); border: 2px solid #f3dd5a; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; background: #cdd9e2; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.switch input:checked + .switch__ui { background: var(--navy); }
.switch input:checked + .switch__ui::after { transform: translateX(22px); background: var(--yellow); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--baby-2); outline-offset: 2px; }
.switch__text b { display: block; color: var(--navy); }
.switch__text small { color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { margin: 0 0 1rem; padding: .7em 1em; border-radius: 12px; background: #fde8e4; color: #9a2c1b; font-weight: 600; font-size: .9rem; }

.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(8,42,74,.25); border-top-color: var(--navy-2); animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn__label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

.modal__success { text-align: center; padding-top: 48px; }
.success__icon { font-size: 4.5rem; animation: pop .7s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.modal__success p { color: var(--muted); margin: .6rem 0 1.6rem; }
.success__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  width: 100vw; height: 100svh; max-width: 100vw; max-height: 100svh; margin: 0;
  background: rgba(3, 15, 28, .96); color: #fff;
  display: none; grid-template-rows: 1fr auto auto; padding: calc(12px + env(safe-area-inset-top, 0px)) 0 calc(12px + env(safe-area-inset-bottom, 0px));
}
.lightbox[open] { display: grid; animation: fadeIn .25s ease; }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 48px 64px 8px; touch-action: pan-y; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: fadeIn .3s ease; }
.lightbox__stage video { background: #000; }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; }
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,228,20,.9); color: var(--navy-2); font-size: 2rem; line-height: 1; font-weight: 700; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__bar { display: flex; justify-content: space-between; gap: 1rem; padding: 10px 20px 6px; font-size: .9rem; color: rgba(255,255,255,.8); }
.lightbox__bar #lbCaption { font-weight: 700; color: var(--yellow); }
.lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px; scrollbar-width: thin; }
.lightbox__thumbs button { flex: none; position: relative; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .55; background: #123; transition: opacity .2s, border-color .2s; }
.lightbox__thumbs button.is-active { opacity: 1; border-color: var(--yellow); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumbs .is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 4px #000; }
@media (max-width: 600px) {
  .lightbox__stage { padding: 56px 8px 8px; }
  .lightbox__nav { top: auto; bottom: 110px; transform: none; width: 44px; height: 44px; }
}

/* ---------- Reveal ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(5) { transition-delay: .08s; }
.cards .reveal:nth-child(6) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
