/* Natale FitUP – landing lead. Mobile first: le regole sopra 900px portano il layout desktop. */

:root {
  --verde: #0a4b2a;
  --verde-scuro: #06331c;
  --lime: #94c424;
  --rosso: #c8171d;
  --rosso-scuro: #a50e14;
  --ink: #141414;
  --grigio: #333;
  --bianco: #fff;
  --raggio: 22px;
  --display: "Kenyan Coffee FitUP", "Anton", "Arial Narrow", Impact, sans-serif;
  --testo: "Freight Sans FitUP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--testo); color: var(--ink); background: var(--bianco); line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 16px 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 var(--testo); letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: transform .15s ease, background-color .2s ease;
}
.btn:active { transform: scale(.985); }
.btn-lime { background: var(--lime); color: #111; box-shadow: 0 10px 24px rgba(0,0,0,.3); margin-top: 6px; }
.btn-lime:hover { background: #a6d63a; }
.btn-verde { background: var(--verde); color: #fff; border-radius: 14px; }
.btn-verde:hover { background: var(--verde-scuro); }
.btn-pieno { width: 100%; margin-top: 22px; border-radius: 14px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--verde); font: 600 15px var(--testo); text-decoration: underline; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background-color: var(--verde);
  background-image: radial-gradient(circle at 85% 10%, rgba(148,196,36,.18), transparent 40%),
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cg fill='none' stroke='%2306331c' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M11 20h18M11 14v12M29 14v12M7 16v8M33 16v8' transform='rotate(30 20 20)'/%3E%3Cpath d='M49 30h18M49 24v12M67 24v12M45 26v8M71 26v8' transform='rotate(-40 58 30)'/%3E%3C/g%3E%3C/svg%3E");
  padding: 28px 0 64px;
}
.hero-grid { display: grid; gap: 40px; align-items: start; }
.promo-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #111; }
.logo { width: 150px; height: auto; margin-bottom: 28px; }
.eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 2.5px; color: var(--lime); }
.titolo-hero {
  margin-top: 16px; font: 700 clamp(46px, 12vw, 112px)/.95 var(--display);
  letter-spacing: 1px; text-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.evid { font-style: italic; color: var(--lime); }
.sottotitolo { margin-top: 20px; max-width: 560px; font-size: clamp(18px, 4.2vw, 23px); line-height: 1.4; color: rgba(255,255,255,.92); }

.vetro {
  margin-top: 28px; max-width: 560px; padding: 18px 20px 20px; border-radius: var(--raggio);
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.38);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 14px 34px rgba(0,0,0,.28);
  display: flex; flex-direction: column; gap: 10px;
}
.etichetta-vetro { font-weight: 700; font-size: 13px; letter-spacing: 3px; color: rgba(255,255,255,.85); }
.campo-vetro {
  display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 58px; border-radius: 14px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
}
.icona-pin { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.campo-vetro input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  color: #fff; font: 400 18px var(--testo);
}
.campo-vetro input::placeholder { color: rgba(255,255,255,.7); }
.risultato:empty { display: none; }
.risultato {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.92); color: var(--ink);
}
.risultato strong { display: block; font-size: 17px; }
.risultato span { font-size: 14px; color: #555; }
.risultato.errore-r { background: rgba(200,23,29,.92); color: #fff; }
.risultato.errore-r span { color: #fff; }

.hero-video {
  position: relative; width: 100%; max-width: 340px; margin: 28px auto 0;
  aspect-ratio: 4 / 5; border: 6px solid #fff; border-radius: 28px; overflow: hidden;
  background: #111; box-shadow: 0 24px 48px rgba(0,0,0,.4);
}
  position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* ---------- COUNTDOWN ---------- */
.countdown {
  position: relative; overflow: hidden; color: #fff; padding: 56px 0 60px;
  background: linear-gradient(180deg, var(--rosso), var(--rosso-scuro));
}
.countdown::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Cg fill='none' stroke='%238a0a0f' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M11 20h18M11 14v12M29 14v12M7 16v8M33 16v8' transform='rotate(30 20 20)'/%3E%3C/g%3E%3C/svg%3E");
}
.countdown-grid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.countdown h2 { font: 700 clamp(44px, 9vw, 76px)/1 var(--display); }
.etichetta-count { margin-top: 12px; font-weight: 700; font-size: 15px; letter-spacing: 3px; color: rgba(255,255,255,.92); }
.timer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; width: 100%; max-width: 380px; }
.cella {
  position: relative; overflow: hidden; background: #fff; color: var(--ink); border-radius: 18px;
  padding: 34px 10px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
}
.cella::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 10px; background: var(--lime); opacity: .9; }
.cella span { font: 700 clamp(56px, 13vw, 84px)/1 var(--display); color: var(--rosso); }
.cella small { font-weight: 700; font-size: 14px; letter-spacing: 4px; }

/* ---------- MODULO ---------- */
.modulo { padding: 72px 0 80px; background: #fff; }
.modulo-wrap { max-width: 760px; }
.modulo-intro { margin-bottom: 26px; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 4px; color: var(--rosso); }
.kicker.rosso { color: var(--rosso); }
.modulo-intro h2, .manifesto-testa h2 { margin-top: 10px; font: 700 clamp(40px, 8vw, 64px)/1 var(--display); color: var(--verde); }
.modulo-intro p:last-child { margin-top: 12px; font-size: 18px; color: var(--grigio); }

.scheda { border: 1px solid #e3e3e3; border-radius: 22px; padding: 22px; background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.07); }
.passi { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.barra { flex: 1; height: 5px; border-radius: 3px; background: #e5e5e5; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--verde); transition: width .5s ease; }
.barra i.on { width: 100%; }
.contatore { font-size: 13px; font-weight: 700; color: #666; white-space: nowrap; font-variant-numeric: tabular-nums; }
.passo { border: 0; padding: 0; margin: 0; min-width: 0; }
.passo h3 { margin-top: 18px; font: 700 26px/1.1 var(--display); color: var(--verde); }
.piccolo { margin-top: 6px; font-size: 15px; color: #666; }
.etichetta { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 700; color: #333; }
.input {
  width: 100%; height: 52px; padding: 0 14px; border: 1px solid #cfcfcf; border-radius: 12px;
  font: 400 17px var(--testo); color: var(--ink); background: #fff; outline: none;
}
.input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(10,75,42,.15); }
.input[aria-invalid="true"] { border-color: var(--rosso); }
.nota { margin-top: 6px; font-size: 13px; color: #6b6b6b; }
.nota.centro { text-align: center; margin-top: 12px; }
.errore { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--rosso); }
.errore-generale { margin-top: 14px; text-align: center; }

.club-scelta { margin-top: 14px; display: grid; gap: 8px; }
.club-scelta p { font-size: 14px; color: #555; }
.club-opzione {
  width: 100%; text-align: left; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 12px;
  background: #fff; font: 600 15px var(--testo); cursor: pointer;
}
.club-opzione span { display: block; font-weight: 400; font-size: 13px; color: #666; }
.club-opzione:hover { border-color: var(--verde); }

.club-trovato {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  padding: 14px 16px; border-radius: 14px; background: #f1f7ec; border: 1px solid #d8e9c0;
}
.club-trovato strong { font-size: 17px; color: var(--verde); flex: 1 1 auto; }

.griglia-campi { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.consenso { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: #444; cursor: pointer; }
.consenso input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--verde); }
.consenso a { color: var(--verde); }
.esca { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.conferma {
  margin-top: 16px; padding: 28px; border-radius: 22px; background: var(--verde); color: #fff; text-align: center;
  outline: none;
}
.spunta { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; background: var(--lime); }
.spunta svg { width: 26px; height: 26px; fill: none; stroke: #111; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.conferma h3 { margin-top: 14px; font: 700 34px/1 var(--display); }
.conferma p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.92); }

/* ---------- MANIFESTO ---------- */
.manifesto { position: relative; padding: 96px 0 80px; background: #f4f6f1; }
.manifesto-testa { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 36px; }
.manifesto-testa h2 { color: var(--verde); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.card {
  position: relative; overflow: hidden; background: #fff; border-radius: 22px; padding: 40px 26px 30px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.08);
}
.barra-top { position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--lime); }
.card-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cerchio { width: 72px; height: 72px; border-radius: 50%; background: var(--verde); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cerchio svg { width: 40px; height: 40px; fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 700 34px/1 var(--display); color: var(--verde); }
.card p { font-size: 18px; line-height: 1.45; color: var(--grigio); }
/* Foto del mockup: sostituire con gli scatti reali dei Club (vedi assets/README.md). */
.foto-card { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(135deg, #1d6b3e, #06331c); }
.foto-card.f2 { background: linear-gradient(135deg, #2a2a2a, #111); }
.foto-card.f3 { background: linear-gradient(135deg, #7a1216, #3a0708); }

/* ---------- FOOTER ---------- */
.footer { padding: 48px 0 56px; background: var(--verde); color: #fff; }
.footer-wrap { display: flex; flex-direction: column; gap: 22px; }
.footer img { width: 130px; height: auto; }
.footer p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.88); }
.footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sep { opacity: .5; }
.legale { display: inline-block; margin-top: 8px; opacity: .8; font-size: 13px; }

/* ---------- MOBILE (sotto 900px) ---------- */
.hero .titolo-hero { font-size: clamp(44px, 13vw, 64px); }
.hero .sottotitolo { font-size: 18px; }
.hero .logo { width: 128px; margin-bottom: 22px; }

/* Il campo città del modulo e il bottone: 16px per non far zoomare iOS. */
.input, .campo-vetro input { font-size: 16px; }

/* ---------- DESKTOP (da 900px) ---------- */
@media (min-width: 900px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .hero-video { max-width: 600px; margin: 44px 0 0; justify-self: center; }
  .logo { width: 170px; margin-bottom: 36px; }
  .hero .titolo-hero { font-size: clamp(64px, 7.4vw, 112px); }
  .hero .sottotitolo { font-size: 23px; }
  .eyebrow { font-size: 16px; letter-spacing: 3px; }

  .countdown-grid { flex-direction: row; justify-content: space-between; text-align: left; }
  .countdown-titolo { flex: 0 1 380px; }
  .timer { grid-template-columns: repeat(4, 1fr); max-width: 640px; flex: 1 1 560px; }
  .cella { padding: 36px 12px 22px; }

  .modulo { padding: 96px 0 110px; }
  .scheda { padding: 40px; }
  .griglia-campi { grid-template-columns: 1fr 1fr; }
  .passo h3 { font-size: 34px; }

  .manifesto { padding: 120px 0 110px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { padding: 46px 30px 34px; }
  .card-head { flex-direction: column; }

  .footer-wrap { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer p { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
