/* =========================================================
   AGL Home Revolution – Christmas Edition 2026
   ========================================================= */
:root {
  --night-0: #070c22;
  --night-1: #0d1534;
  --night-2: #18234b;
  --agl: #3b4a78;
  --agl-2: #4a5a8a;
  --snow: #fbf8f2;
  --cream: #f6efe2;
  --cream-2: #efe5d3;
  --paper: #fffaf2;
  --ink: #20253d;
  --ink-soft: #565c78;
  --gold: #f4c77a;
  --gold-2: #e8a94a;
  --berry: #c23b2e;
  --berry-2: #9e2a20;
  --pine: #1e4a3f;
  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(13, 21, 52, .35);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--berry);
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.6em; border-radius: 999px; border: 0;
  background: var(--bg); color: #fff;
  font: 700 .95rem/1 var(--font-body); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(194, 59, 46, .7), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(194, 59, 46, .8); }
.btn:hover::after { transform: translateX(120%); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--ghost { --bg: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--navy { --bg: var(--night-2); box-shadow: 0 10px 30px -12px rgba(13,21,52,.6); }
.btn--sm { padding: .75em 1.2em; font-size: .85rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: max(640px, 100svh);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(92, 120, 200, .35), transparent 60%),
    radial-gradient(900px 500px at 15% 30%, rgba(60, 170, 170, .12), transparent 60%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 35%, #1f2d5e 70%, #3a4f8c 100%);
  isolation: isolate;
}
.hero__stars { position: absolute; inset: 0 0 30% 0; z-index: 0; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle var(--t, 4s) ease-in-out infinite; animation-delay: var(--d, 0s); opacity: .7; }
@keyframes twinkle { 0%,100% { opacity: .15; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.aurora {
  position: absolute; inset: -10% -20% auto; height: 60%; z-index: 0;
  background: conic-gradient(from 200deg at 50% 60%, transparent 0deg, rgba(120, 220, 200, .10) 40deg, rgba(150, 120, 255, .12) 80deg, transparent 130deg);
  filter: blur(40px); animation: aurora 18s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes aurora { from { transform: translateX(-6%) rotate(-3deg); } to { transform: translateX(6%) rotate(3deg); } }
.moon {
  position: absolute; z-index: 1; top: 11%; left: 8%;
  width: clamp(54px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffef6, #f3ecd6 60%, #dcd2b4);
  box-shadow: 0 0 40px 10px rgba(255, 246, 210, .35), 0 0 120px 40px rgba(255, 246, 210, .12);
}
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(190, 178, 140, .25); }
.moon::before { width: 22%; height: 22%; top: 30%; left: 52%; }
.moon::after { width: 14%; height: 14%; top: 58%; left: 30%; }

.snow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#snowBack { z-index: 2; }
#snowFront { z-index: 6; }

.scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 62%; pointer-events: none; }
.scene svg { width: 100%; height: 100%; display: block; }
.layer { will-change: transform; transition: transform .6s cubic-bezier(.2,.8,.2,1); }

.win { fill: #ffd27a; filter: url(#glow); animation: flicker var(--f, 6s) ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 50% { opacity: .95; } 52% { opacity: .7; } 60% { opacity: 1; } }
.win--off { fill: #9fb0d6; filter: none; animation: none; opacity: .55; }
.smoke { filter: blur(3px); }
.smoke circle { fill: rgba(220, 228, 245, .45); animation: smoke 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: .55; } 100% { transform: translate(28px, -110px) scale(2.4); opacity: 0; } }
.bulb { animation: bulb 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); filter: url(#glow); }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.agl-door { animation: doorglow 3.5s ease-in-out infinite; }
@keyframes doorglow { 0%, 100% { opacity: .95; } 50% { opacity: .7; } }

.hero__content {
  position: relative; z-index: 7;
  min-height: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center;
  padding: clamp(84px, 13vh, 150px) 16px 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 .75rem/1 var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
  font-weight: 600;
  margin: .25em 0 .1em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  text-shadow: 0 6px 40px rgba(10, 16, 45, .6);
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; font-weight: 500; font-size: clamp(.95rem, 1.6vw, 1.1rem); color: #e4e9fb; }
.hero__meta span { display: inline-flex; align-items: center; gap: .45em; }
.hero__meta svg { width: 1.1em; height: 1.1em; color: var(--gold); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.6rem; }
.seats-pill {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .55em;
  padding: .5em 1em; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(10, 16, 45, .45); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.seats-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #6be19a; box-shadow: 0 0 0 0 rgba(107,225,154,.6); animation: ping 2s infinite; }
.seats-pill.is-low .dot { background: var(--gold); }
.seats-pill.is-full .dot { background: var(--berry); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(107,225,154,.6); } 100% { box-shadow: 0 0 0 10px rgba(107,225,154,0); } }

.hero__reveal > * { opacity: 0; transform: translateY(18px); animation: rise 1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero__reveal > *:nth-child(1) { animation-delay: .2s; }
.hero__reveal > *:nth-child(2) { animation-delay: .35s; }
.hero__reveal > *:nth-child(3) { animation-delay: .55s; }
.hero__reveal > *:nth-child(4) { animation-delay: .7s; }
.hero__reveal > *:nth-child(5) { animation-delay: .85s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; z-index: 8; bottom: 6px; left: 50%; transform: translateX(-50%); color: var(--night-2); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .8; }
.scroll-cue svg { width: 18px; height: 18px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }


/* =========================================================
   GARLAND DIVIDER
   ========================================================= */
.garland { display: block; width: 100%; height: 70px; margin-top: -1px; }
.garland .wire { fill: none; stroke: #2a3a2f; stroke-width: 2; }
.garland .b { transition: transform .3s; transform-box: fill-box; transform-origin: top center; animation: bulb 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.garland:hover .b { animation-duration: .9s; }

/* =========================================================
   SECTIONS
   ========================================================= */
section { position: relative; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.kicker { font: 700 .75rem/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--berry); display: inline-flex; align-items: center; gap: .6em; }
.kicker svg { width: 14px; height: 14px; }
.title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: .4em 0 .45em; color: var(--night-2); }
.title em { font-style: italic; font-weight: 400; color: var(--berry); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-soft); max-width: 62ch; }

.paper {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.7), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(232, 169, 74, .08), transparent 40%),
    var(--cream);
}

/* intro */
.intro__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__text p { margin: 0 0 1em; color: var(--ink-soft); font-size: 1.05rem; }
.intro__text p strong { color: var(--ink); }
.intro__sign { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--night-2); margin-top: 1.2em; }

.countdown-card {
  position: relative; border-radius: 28px; padding: 34px 28px 30px; color: #fff; overflow: hidden;
  background: radial-gradient(400px 200px at 80% 0%, rgba(244,199,122,.25), transparent 70%), linear-gradient(160deg, var(--night-2), var(--night-0));
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.countdown-card::before {
  content: ""; position: absolute; inset: 10px; border-radius: 20px; border: 1px dashed rgba(244,199,122,.35); pointer-events: none;
}
.countdown-card h3 { font-size: 1.5rem; margin-bottom: .2em; }
.countdown-card p { margin: 0 0 1.2em; color: #c9d1ee; font-size: .92rem; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd { background: rgba(255,255,255,.07); border-radius: 14px; padding: 14px 4px 10px; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.cd b { display: block; font: 600 clamp(1.7rem, 3.4vw, 2.4rem)/1 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.cd span { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #aeb8de; }
.cd b.tick { animation: tick .45s ease; }
@keyframes tick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.countdown-card .mini { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.countdown-card .mini a { font-size: .8rem; color: #fff; opacity: .85; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; padding: .5em .9em; border-radius: 999px; background: rgba(255,255,255,.08); }
.countdown-card .mini a:hover { opacity: 1; background: rgba(255,255,255,.16); }
.countdown-card .mini svg { width: 1em; height: 1em; }

/* features */
.features { background: var(--paper); }
.features__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.features__head .lead { margin-inline: auto; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px 24px 26px; border-radius: var(--radius);
  background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 18px 40px -26px rgba(13,21,52,.35);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  transform-style: preserve-3d; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(244,199,122,.22), transparent 60%);
}
.card:hover { box-shadow: 0 30px 60px -30px rgba(13,21,52,.5); }
.card:hover::after { opacity: 1; }
.card__icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; background: var(--c, var(--berry)); color: #fff; box-shadow: 0 10px 22px -10px var(--c, var(--berry)); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.35rem; color: var(--night-2); margin-bottom: .5em; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* program */
.program { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.timeline { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 4%; right: 4%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-2) 0 10px, transparent 10px 18px); }
.timeline li { position: relative; padding-top: 70px; text-align: center; }
.timeline .flame {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-2); color: var(--gold); box-shadow: 0 0 0 6px var(--cream), 0 10px 24px -8px rgba(13,21,52,.6);
}
.timeline .flame svg { width: 24px; height: 24px; animation: flame 1.6s ease-in-out infinite alternate; transform-origin: bottom center; }
@keyframes flame { from { transform: scale(.94) rotate(-3deg); } to { transform: scale(1.06) rotate(3deg); } }
.timeline time { display: block; font: 600 1.6rem/1 var(--font-display); color: var(--berry); margin-bottom: .3em; }
.timeline h3 { font-size: 1.15rem; color: var(--night-2); margin-bottom: .35em; font-family: var(--font-body); font-weight: 700; }
.timeline p { margin: 0 auto; color: var(--ink-soft); font-size: .92rem; max-width: 28ch; }
.note-small { text-align: center; color: var(--ink-soft); font-size: .8rem; margin-top: 30px; opacity: .8; }

/* location */
.location { background: var(--night-1); color: #fff; overflow: hidden; }
.location .title { color: #fff; }
.location .title em { color: var(--gold); }
.location .kicker { color: var(--gold); }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.location__visual { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); aspect-ratio: 5 / 4; background: #1b2550; }
.location__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location__visual svg { width: 100%; height: 100%; display: block; }
.location__badge { position: absolute; left: 18px; bottom: 18px; padding: .6em 1em; border-radius: 14px; background: rgba(255,250,242,.94); color: var(--night-2); font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: .5em; }
.location__badge svg { width: 16px; height: 16px; color: var(--berry); }
.location p { color: #c9d1ee; }
.facts { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: #e4e9fb; font-size: .97rem; }
.facts svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.location__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.map-wrap { margin-top: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.map { border-radius: 24px; overflow: hidden; min-height: 320px; background: #222c58; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(.85) contrast(1.05); }
.travel { display: grid; gap: 14px; }
.travel__item { display: flex; gap: 16px; padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.travel__item .ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(244,199,122,.14); color: var(--gold); display: grid; place-items: center; flex: none; }
.travel__item .ic svg { width: 22px; height: 22px; }
.travel__item h4 { margin: 0 0 2px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.travel__item p { margin: 0; font-size: .93rem; color: #dfe5fa; }

/* =========================================================
   REGISTRATION
   ========================================================= */
.signup {
  color: #fff; overflow: hidden;
  background:
    radial-gradient(700px 400px at 10% 20%, rgba(194,59,46,.25), transparent 70%),
    radial-gradient(700px 500px at 90% 80%, rgba(244,199,122,.15), transparent 70%),
    linear-gradient(180deg, var(--night-1), var(--night-0));
}
#snowSignup { z-index: 0; }
.signup .container { position: relative; z-index: 1; }
.signup__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.signup .kicker { color: var(--gold); }
.signup .title { color: #fff; }
.signup .title em { color: var(--gold); }
.signup .lead { color: #c9d1ee; }
.perks { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; color: #e4e9fb; }
.perks svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

.meter { margin-top: 28px; padding: 20px 22px; border-radius: 20px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.meter__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: .9rem; color: #c9d1ee; }
.meter__top strong { font: 600 1.8rem/1 var(--font-display); color: #fff; }
.meter__bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter__fill {
  height: 100%; width: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--berry) 0 10px, #fff 10px 20px);
  background-size: 28px 28px; animation: candy 1.2s linear infinite;
  transition: width 1.6s cubic-bezier(.2,.8,.2,1);
}
@keyframes candy { to { background-position: 28px 0; } }

.form-card {
  position: relative; background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.form-card::before {
  content: ""; position: absolute; top: -18px; right: 28px; width: 70px; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 34c-8-10-22-12-26-6s8 12 26 6zm0 0c8-10 22-12 26-6s-8 12-26 6z' fill='%23c23b2e'/%3E%3Cpath d='M30 34l-10 26 7-3 4 6 1-29zm4 0l10 26-7-3-4 6-1-29z' fill='%239e2a20'/%3E%3Ccircle cx='32' cy='34' r='5' fill='%23e04b3c'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.25));
}
.form-card h3 { font-size: 1.6rem; color: var(--night-2); margin-bottom: .2em; }
.form-card .sub { color: var(--ink-soft); font-size: .9rem; margin: 0 0 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--berry); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #e2d8c6; background: #fff;
  font: 500 1rem var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b4a78' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--agl); box-shadow: 0 0 0 4px rgba(59,74,120,.15); }
.field.has-error input, .field.has-error select { border-color: var(--berry); box-shadow: 0 0 0 4px rgba(194,59,46,.12); }
.field .err { display: none; color: var(--berry); font-size: .78rem; margin-top: 5px; font-weight: 600; }
.field.has-error .err { display: block; }

.diet { border: 0; padding: 0; margin: 6px 0 18px; }
.diet legend { font-size: .82rem; font-weight: 600; margin-bottom: 10px; padding: 0; }
.diet legend .hint { font-weight: 500; color: var(--ink-soft); margin-left: .4em; }
.diet-other { margin: 14px 0 0; }
.diet-other[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: .45em; padding: .6em 1em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #e2d8c6; background: #fff; font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  transition: all .2s; user-select: none;
}
.chip span svg { width: 16px; height: 16px; }
.chip:hover span { border-color: var(--agl-2); color: var(--ink); }
.chip input:checked + span { background: var(--night-2); border-color: var(--night-2); color: #fff; box-shadow: 0 8px 18px -10px rgba(13,21,52,.7); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--berry); flex: none; }
.check a { color: var(--agl); }
.check.has-error { color: var(--berry); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { display: none; padding: 12px 16px; border-radius: 14px; font-size: .88rem; font-weight: 600; margin-bottom: 18px; background: #fdecea; color: var(--berry-2); }
.form-alert.show { display: block; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.submit { width: 100%; justify-content: center; font-size: 1rem; padding: 1.15em; }
.submit[disabled] { opacity: .75; cursor: progress; }
.submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.submit.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-foot { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: 14px 0 0; }

.closed-card { text-align: center; padding: 40px 28px; }
.closed-card .big { font-size: 3rem; line-height: 1; margin-bottom: 10px; }

/* FAQ */
.faq { background: var(--cream); }
.faq__list { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; padding: 0 22px; box-shadow: 0 10px 30px -24px rgba(13,21,52,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; color: var(--night-2); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; flex: none; transition: transform .3s, background .3s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--berry); color: #fff; }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); }

/* footer */
.footer { background: var(--night-0); color: #9aa5cf; text-align: center; padding: 46px 16px 40px; font-size: .82rem; }
.footer .logo { width: 64px; margin: 0 auto 14px; color: #fff; }
.footer a { color: #c9d1ee; }

/* sticky mobile CTA */
.sticky-cta { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translate(-50%, 140%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.sticky-cta.show { transform: translate(-50%, 0); }
@media (min-width: 900px) { .sticky-cta { left: auto; right: 24px; transform: translate(0, 140%); } .sticky-cta.show { transform: none; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* burst (click in hero) */
.spark { position: absolute; z-index: 9; pointer-events: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; color: var(--gold); }
.spark svg { width: 100%; height: 100%; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .intro__grid, .location__grid, .signup__grid, .map-wrap { grid-template-columns: 1fr; }
  .countdown-card { transform: none; }
  .timeline { grid-template-columns: 1fr; gap: 26px; }
  .timeline::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold-2) 0 10px, transparent 10px 18px); }
  .timeline li { padding: 0 0 0 82px; text-align: left; min-height: 56px; }
  .timeline .flame { left: 0; transform: none; }
  .timeline p { margin: 0; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .countdown { gap: 6px; }
  .scene { height: 52%; }
  .hero__content { padding-top: 92px; }
  .moon { top: 8%; left: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 560px) {
  .moon { top: 22px; left: auto; right: 20px; width: 44px; }
}

/* ---------- gallery Locanda ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 190px; gap: 12px; margin-top: clamp(36px, 5vw, 60px); }
.gallery__item { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: #1b2550; }
.gallery__item:first-child { grid-row: span 2; }
.gallery__btn { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s; filter: saturate(.95); }
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: .82rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(7,12,34,.75)); pointer-events: none; }

/* ---------- come arrivare ---------- */
.directions { margin-top: clamp(48px, 7vw, 84px); }
.directions__head { margin-bottom: 20px; }
.directions__head h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-top: .5em; color: #fff; }
.map { position: relative; min-height: 380px; }
.map iframe { position: absolute; inset: 0; z-index: 1; height: 100%; min-height: 0; }
.map__fallback {
  position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; text-decoration: none; color: var(--night-2); padding: 20px;
  background:
    linear-gradient(90deg, rgba(59,74,120,.08) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(59,74,120,.08) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 30% 70%, #cfe3c4 0 18%, transparent 19%),
    radial-gradient(circle at 75% 25%, #cfe3c4 0 14%, transparent 15%),
    linear-gradient(160deg, transparent 46%, #fff 46% 49%, transparent 49%),
    linear-gradient(35deg, transparent 58%, #fff 58% 60%, transparent 60%),
    #e9eef5;
}
.map__pin { width: 46px; height: 46px; border-radius: 50%; background: var(--berry); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(194,59,46,.8); margin-bottom: 6px; }
.map__pin svg { width: 24px; height: 24px; }
.map__fallback strong { font-size: 1.1rem; }
.map__fallback span { font-size: .9rem; }
.map__open { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--berry); }
.map__open svg { width: 14px; height: 14px; }
.travel__cta { justify-content: center; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 9, 26, .92); display: grid; place-items: center; padding: 60px 16px; backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 14px; box-shadow: 0 30px 80px -20px #000; }
.lightbox figcaption { color: #dfe5fa; margin-top: 12px; font-size: .9rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav.next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 880px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
  .map { min-height: 300px; }
}
.directions .map-wrap { margin-top: 0; }
.sticky-cta { white-space: nowrap; }
