/*
 * MyCountdown — sito facciata pubblico: design system (FR-WEB-1/2/4/5).
 *
 * Reimplementazione server-side (NO Vite, NO framer-motion) del design della
 * landing Next `web_landing_new`. I token e i @font-face stanno INLINE nel
 * layout (critical path / no-FOUC, niente CDN per GDPR); qui vivono background,
 * primitive, componenti e animazioni. Tutte le animazioni sono neutralizzate
 * sotto `prefers-reduced-motion: reduce`. `@supports` per le proprietà non
 * universali (backdrop-filter, background-clip:text, mask-composite).
 *
 * NB: `--glow`/`--glow-strong` sono COLORI (rgba), usati dentro box-shadow
 * esplicite; non sono shadow complete.
 */

/* ─────────────────────────────────────────────────────────────────────────
   Reset & base
   ───────────────────────────────────────────────────────────────────────── */
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

/* Sfondo brand: gradienti aurora morbidi + grana + griglia architettonica.
   Layer fissi, sotto al contenuto; non interattivi. */
body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(147, 51, 234, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 40%, rgba(217, 70, 239, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(99, 102, 241, 0.14), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* Grana fine (film grain premium) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Griglia sottile mascherata */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black, transparent 90%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black, transparent 90%);
}
/* Il contenuto sta sopra i layer di sfondo */
body > * { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────────────────────
   Layout container & sezioni
   ───────────────────────────────────────────────────────────────────────── */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
/* Contenitore "wide" per le sezioni della nuova landing */
.section { max-width: 1280px; margin: 0 auto; padding: 120px 32px; position: relative; }
section { padding: 56px 0; }
.soft-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); margin: 0 auto; max-width: 800px; }

/* ─────────────────────────────────────────────────────────────────────────
   Header / nav / footer
   ───────────────────────────────────────────────────────────────────────── */
header.site {
  background: rgba(7, 6, 13, 0.78);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site { background: rgba(7, 6, 13, 0.55); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-size: 18px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand img { height: 32px; width: 32px; border-radius: 8px; box-shadow: 0 4px 14px var(--glow); }
nav.site { display: flex; align-items: center; }
nav.site a { color: var(--muted); font-size: 14px; font-weight: 500; margin-left: 18px; transition: color 0.2s ease; }
nav.site a:hover { color: var(--ink); text-decoration: none; }

/* Switch lingua (it/en) */
.locale-switcher { display: inline-flex; align-items: center; gap: 2px; margin-left: 18px; padding: 3px; border: 1px solid var(--border-2); border-radius: 999px; }
.locale-switcher a { margin: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted-2); text-transform: uppercase; }
.locale-switcher a:hover { color: var(--ink); text-decoration: none; }
.locale-switcher a[aria-current="page"] { background: var(--soft); color: var(--accent-ink); }

footer.site { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 24px; }
footer.site .wrap { padding: 32px 20px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer.site nav { display: block; }
footer.site nav a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; margin-left: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   Tipografia
   ───────────────────────────────────────────────────────────────────────── */
h1 { font-family: var(--display); font-size: 46px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
h2 { font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 16px; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
p { color: var(--muted); margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 24px; max-width: 620px; }
.muted { color: var(--muted); }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.95; }
.display-italic { font-style: italic; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
.eyebrow { font-family: var(--sans); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-300); }

/* ─────────────────────────────────────────────────────────────────────────
   Bottoni
   ───────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff !important; font-weight: 600; font-size: 15px;
  text-decoration: none !important; border: none; cursor: pointer;
  box-shadow: 0 10px 30px var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(147, 51, 234, 0.55); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 -1px 0 rgba(0, 0, 0, 0.25) inset, 0 10px 30px rgba(147, 51, 234, 0.45);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 -1px 0 rgba(0, 0, 0, 0.25) inset, 0 14px 40px rgba(147, 51, 234, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-2); color: var(--ink) !important; }
@supports (backdrop-filter: blur(1px)) { .btn-ghost { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }

/* ─────────────────────────────────────────────────────────────────────────
   Card / glass / pill / grid
   ───────────────────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 22px; display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@supports (backdrop-filter: blur(1px)) { .card { -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); } }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--border-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--glow); }

/* Glass: card premium con bordo a gradiente (Next.js .glass) */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); border-radius: 24px;
  position: relative; overflow: hidden;
}
@supports (backdrop-filter: blur(1px)) { .glass { -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); } }
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .glass::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(147, 51, 234, 0.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
  }
}
.pill {
  display: inline-block; background: var(--soft); color: var(--accent-ink);
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(155, 97, 255, 0.3);
}

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; align-items: center; }
.store-badge { display: inline-block; transition: transform 0.2s ease; }
.store-badge:hover { transform: translateY(-2px); text-decoration: none; }
.store-badge img { height: 48px; width: auto; display: block; }

/* Pagine legali */
.legal { background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 32px; margin: 32px 0; }
.legal h2 { margin-top: 24px; }
.legal ul, .legal ol { margin: 0 0 14px 22px; color: var(--muted); }

/* ─────────────────────────────────────────────────────────────────────────
   Countdown flip-clock (digit card) — primitiva per la sezione countdown della
   home (P4) e per il restyle eventi/share (P8). Definita qui come foundation.
   ───────────────────────────────────────────────────────────────────────── */
.digit-card {
  position: relative; min-width: 96px; padding: 20px 12px 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); text-align: center; overflow: hidden;
}
.digit-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent); pointer-events: none; }
.digit-value { font-family: var(--display); font-size: clamp(40px, 8vw, 72px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); position: relative; z-index: 1; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .digit-value { background: linear-gradient(180deg, #ffffff 0%, var(--ink-2) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
.digit-label { font-family: var(--sans); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-3); margin-top: 8px; position: relative; z-index: 1; }
/* Riga del countdown della home + messaggio "è oggi" (mostrato a zero da facade.js) */
.countdown-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.countdown-elapsed { display: none; color: var(--accent-300); font-weight: 600; }
[data-countdown][data-elapsed="true"] ~ .countdown-elapsed { display: block; }

/* ─────────────────────────────────────────────────────────────────────────
   Effetti decorativi (aurora, glow, shimmer, starfield) — opt-in via classi
   ───────────────────────────────────────────────────────────────────────── */
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; pointer-events: none; z-index: 0; }
.phone-glow { position: absolute; inset: 10% 5%; background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.5), transparent 65%); filter: blur(40px); z-index: 0; pointer-events: none; }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); animation: shimmer-sweep 4.5s ease-in-out infinite; animation-delay: var(--shimmer-delay, 0s); pointer-events: none; }
.star { position: absolute; border-radius: 50%; background: #fff; pointer-events: none; animation: twinkle var(--twinkle-duration, 3s) ease-in-out var(--twinkle-delay, 0s) infinite; }

/* Marquee (testimonials, P6) */
.marquee-wrap { position: relative; overflow: hidden; }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee-scroll 60s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

@keyframes shimmer-sweep { 0% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(220%) skewX(-20deg); } }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes aurora-drift-1 { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(80px,60px) scale(1.1); } 50% { transform: translate(-40px,120px) scale(0.95); } }
@keyframes aurora-drift-2 { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(-60px,80px) scale(0.9); } 50% { transform: translate(40px,-40px) scale(1.15); } }
@keyframes aurora-drift-3 { 0%,100% { transform: translate(0,0) scale(1); } 25% { transform: translate(50px,-40px) scale(1.05); } 50% { transform: translate(-30px,30px) scale(0.95); } }
.aurora-1 { animation: aurora-drift-1 20s ease-in-out infinite; }
.aurora-2 { animation: aurora-drift-2 24s ease-in-out infinite; animation-delay: 2s; }
.aurora-3 { animation: aurora-drift-3 28s ease-in-out infinite; animation-delay: 4s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Scroll-reveal CSS-only (entrata allo scroll). Opt-in SICURO: il contenuto è
   visibile di default; l'effetto si attiva SOLO se il browser supporta le
   scroll-driven animations E l'utente non ha chiesto meno movimento. Niente JS
   → nessun rischio di contenuto invisibile senza JS o su browser datati. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      animation: fade-up 0.8s ease forwards;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    /* Ritardi a cascata per gli elementi in griglia */
    .reveal-2 { animation-delay: 0.05s; }
    .reveal-3 { animation-delay: 0.1s; }
    .reveal-4 { animation-delay: 0.15s; }
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Sezioni home (P3): hero, features bento, how-it-works
   ───────────────────────────────────────────────────────────────────────── */
/* Hero editorial: testo a sinistra, telefono a destra (1col su mobile) */
.hero { position: relative; padding-top: 140px; padding-bottom: 100px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero-copy { max-width: 540px; }
.hero h1 { font-size: clamp(48px, 8vw, 104px); line-height: 0.92; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--accent-300); }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 460px; margin-bottom: 32px; line-height: 1.6; }
.hero-phone { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.hero-phone img { width: 100%; max-width: 380px; height: auto; position: relative; z-index: 1; border-radius: min(7.5%, 34px); box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 70px rgba(0,0,0,0.6), 0 0 80px rgba(155,97,255,0.22); }
/* Leggera fluttuazione del telefono (come nel design Next). Solo se l'utente
   non ha chiesto meno movimento; la regola universale reduced-motion la disattiva. */
@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-phone img { animation: phone-float 7s ease-in-out infinite; }
}

/* Bento features */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { grid-column: span 2; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.feature-card.span-2 { grid-column: span 2; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(147,51,234,0.15); border: 1px solid rgba(147,51,234,0.3); display: flex; align-items: center; justify-content: center; color: var(--accent-300); }
.feature-icon.accent { background: linear-gradient(135deg, var(--accent-400), var(--accent-600)); border-color: rgba(255,255,255,0.2); color: #fff; box-shadow: 0 10px 24px rgba(147,51,234,0.45); }
.feature-card h3 { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: -0.02em; margin: 18px 0 8px; }
.feature-card p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* How it works (3 step) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 32px; text-align: center; }
.step-n { font-family: var(--display); font-style: italic; font-size: 64px; line-height: 1; background: linear-gradient(180deg, var(--accent-300), transparent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.step-phone { position: relative; max-width: 180px; margin: 0 auto 28px; }
.step-phone img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); position: relative; z-index: 1; }
.step h3 { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* Widget showcase — sequenza di stage (phone + caption) alternati */
.showcase-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1000px; margin: 0 auto 96px; }
.showcase-stage:last-child { margin-bottom: 0; }
.showcase-stage:nth-child(even) .showcase-phone { order: 2; }
.showcase-phone { position: relative; display: flex; justify-content: center; }
.showcase-phone img { width: 100%; max-width: 300px; height: auto; border-radius: 28px; box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 70px rgba(155,97,255,0.18); position: relative; z-index: 1; }
.showcase-caption h3 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin: 12px 0; }
.showcase-caption p { color: var(--ink-2); font-size: 17px; max-width: 420px; }
@media (max-width: 900px) {
  .showcase-stage { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .showcase-stage:nth-child(even) .showcase-phone { order: 0; }
  .showcase-phone img { max-width: 240px; }
}

/* Rating: griglia di "stat" oneste */
.rating-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; padding: 56px 40px; }
.rating-stat .rating-value { font-family: var(--display); font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.rating-stat .rating-label { font-size: 14px; color: var(--ink-2); font-weight: 500; margin-top: 8px; }
.rating-stat .rating-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 720px) { .rating-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px 20px; } }

/* Testimonials: marquee (riusa .marquee-wrap/.marquee-track) + card + pausa */
.testimonial-card { width: 360px; flex-shrink: 0; padding: 26px; }
.testimonial-card p { font-style: italic; color: var(--ink); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.testimonial-meta { display: flex; align-items: center; gap: 12px; }
.testimonial-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-2); }
.testimonial-name { font-weight: 600; font-size: 14px; }
.testimonial-role { font-size: 12px; color: var(--ink-3); }
.marquee-fade { position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee-fade.left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-fade.right { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-pause { position: absolute; right: 16px; bottom: -8px; z-index: 3; font-size: 12px; color: var(--ink-3); background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 14px; }
.marquee-pause:hover { color: var(--ink); }
.marquee-wrap.is-paused .marquee-track { animation-play-state: paused; }

/* FAQ accordion (native <details>/<summary>) */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--display); font-size: 21px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chev { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; transition: transform 0.25s ease, background 0.25s ease; }
.faq-item[open] summary .faq-chev { transform: rotate(45deg); background: var(--accent-500); border-color: var(--accent-400); }
.faq-item .faq-answer { padding: 0 24px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 640px; }

/* Galleria eventi — barra filtri */
.events-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 20px; margin: 24px 0 8px; }
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.filter-field select, .filter-field input { background: rgba(255,255,255,0.04); border: 1px solid var(--border-2); color: var(--ink); border-radius: 10px; padding: 10px 14px; font: inherit; min-width: 160px; }
.filter-search { flex: 1; min-width: 200px; }
.filter-search input { width: 100%; }
.filter-actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 600px) {
  .events-filters { flex-direction: column; align-items: stretch; }
  .filter-field select, .filter-field input { min-width: 0; width: 100%; }
}

/* Final CTA */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta .stores { justify-content: center; }

/* Section header centrato (eyebrow + titolo + sottotitolo) */
.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; position: relative; z-index: 1; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 16px; }
.section-head h2 em { font-style: italic; color: var(--accent-300); }
.section-head p { font-size: 17px; color: var(--ink-2); max-width: 600px; margin: 0 auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone { order: 2; min-height: 380px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card.span-2 { grid-column: span 1; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Accessibilità: focus visibile
   ───────────────────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, .btn:focus-visible, .locale-switcher a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 3px; }

/* ─────────────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) { .section { padding: 80px 20px; } }
@media (max-width: 560px) {
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  nav.site a { margin-left: 12px; }
  .store-badge img { height: 44px; }
  .locale-switcher { margin-left: 12px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   prefers-reduced-motion: niente movimento (vestibolare). Si conservano solo
   transizioni di colore/opacità istantanee; nessun drift/twinkle/marquee/scale.
   ───────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .aurora-1, .aurora-2, .aurora-3, .star, .shimmer::after, .marquee-track { animation: none !important; }
  .btn:hover, a.card:hover, .store-badge:hover { transform: none !important; }
}
