/* GENZ.SPORTS — landing.css
   Brand kit: nero #0B0B0B/#000, bianco #F7F7F7, lime #D1F43E (testo nero sopra). Montserrat, titoli 800 corsivo.
   Pattern: composizione marketing "home" (hero -> prova -> funzioni -> per chi -> come funziona -> banner -> CTA).
   Pesi: 400 / 600 / 800. Il 800 e' riservato ai titoli display (come il wordmark del brand kit: eccezione voluta alla regola "<= 700").
   Spaziatura: 4/8/12/16/24/32/48/64/96. Breakpoint: base (narrow), 768 (medium), 1280 (wide). Motion: 100/150/200/300 ms, ease-out, solo transform/opacity. */

:root {
  --bg: #000;
  --ink: #0b0b0b;
  --s1: #121212;          /* L1: pannelli e tabelle */
  --s2: #1a1a1a;
  --hair: rgba(247, 247, 247, .14);
  --hair-2: rgba(247, 247, 247, .28);
  --text: #f7f7f7;
  --text-2: #a8a8a8;      /* >= 8:1 su nero */
  --lime: #d1f43e;
  --lime-hi: #e2fb6e;
  --light: #f7f7f7;
  --light-2: #4b4b4b;     /* >= 7:1 su #f7f7f7 */

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;
  --gutter: 16px;
  --vp-wide: 1280px;

  --m-100: 100ms; --m-150: 150ms; --m-200: 200ms; --m-300: 300ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: 16px; background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 1rem/1.55 var(--font); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* focus: anello lime con filo nero interno (leggibile anche sulla sezione chiara) */
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; box-shadow: 0 0 0 3px var(--ink); border-radius: 4px; }
.btn:focus-visible, .seg button:focus-visible { border-radius: 999px; }

.skip { position: absolute; left: var(--sp-4); top: -80px; z-index: 100; padding: var(--sp-3) var(--sp-4); background: var(--lime); color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 8px; }
.skip:focus { top: var(--sp-3); }

.wrap { width: 100%; max-width: var(--vp-wide); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- tipografia ---------- */
.wordmark, .wm, .h2, .h3, .banner-t, .step-n, .feat-n { font-family: var(--font); font-style: italic; font-weight: 800; text-transform: uppercase; }
.wordmark b, .wm b { color: var(--lime); font-weight: inherit; }

.eyebrow {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: .75rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--lime);
}
.eyebrow::before { content: ""; flex: none; width: 24px; height: 4px; background: currentColor; transform: skewX(-24deg); }

.h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); line-height: 1.1; letter-spacing: -.02em; }
.h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.sec-lede { font-size: 1rem; color: var(--text-2); max-width: 56ch; }
.tagline { font-size: .75rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .28em; color: var(--text); }

.arr { display: inline-block; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-6); border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-sm { min-height: 44px; padding: 0 var(--sp-4); font-size: .875rem; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-hi); }
.btn-line { border-color: rgba(247, 247, 247, .55); color: var(--text); }
.btn-line:hover { border-color: var(--text); background: rgba(247, 247, 247, .08); }
.btn-ink { background: var(--ink); color: var(--text); }
.btn-ink:hover { background: #262626; }
.btn .arr { transition: transform var(--m-150) var(--ease-out); }
@media (hover: hover) { .btn:hover .arr, .more:hover .arr { transform: translateX(4px); } }

.cta-row { display: grid; gap: var(--sp-3); }
.cta-row .btn { width: 100%; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--hair); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; min-height: 44px; }
.brand-mark { width: 44px; height: 28px; color: var(--text); flex: none; }
.brand .wordmark { font-size: 1rem; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.head-nav { display: none; }
.head-admin { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); }
.pitch { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(247, 247, 247, .08); pointer-events: none; }
.hero-in { position: relative; padding-block: var(--sp-12) var(--sp-12); }
.hero .eyebrow { max-width: calc(100% - 96px); }

.wm { margin-top: var(--sp-6); font-size: min(21vw, 8.5rem); line-height: 1.1; letter-spacing: -.02em; padding-right: .06em; }
.wm-a, .wm-b { display: block; }
.hero .tagline { margin-top: var(--sp-4); }

.hero-foot { margin-top: var(--sp-12); display: grid; gap: var(--sp-8); }
.lede { font-size: 1.125rem; line-height: 1.55; max-width: 52ch; margin-bottom: var(--sp-8); }
.hero-mark { position: absolute; top: var(--sp-12); right: var(--gutter); width: 72px; color: var(--text); }

/* ---------- striscia funzioni ---------- */
.strip { border-bottom: 1px solid var(--hair); background: var(--ink); }
.strip-in { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-4); padding-block: var(--sp-4); font-size: .875rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.strip-in li { display: flex; gap: var(--sp-3); }

/* ---------- sezioni ---------- */
.sec { padding-block: var(--sp-16); }
.sec-head { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-12); }
.sec-head .eyebrow { margin-bottom: var(--sp-2); }

/* ---------- anteprima viva ---------- */
.pv { background: var(--s1); border: 1px solid var(--hair-2); border-radius: 24px; overflow: hidden; }
.pv-bar { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-bottom: 1px solid var(--hair); background: var(--bg); }
.pv-mark { width: 40px; height: 25px; color: var(--text); flex: none; }
.pv-title { font-weight: 800; font-style: italic; font-size: 1.25rem; line-height: 1.2; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-3); }
.pv-sub { font-size: .875rem; font-weight: 400; font-style: normal; color: var(--text-2); }
.pv-live { display: flex; align-items: center; gap: var(--sp-2); font-size: .75rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); flex: none; }
.pv-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); }
.pv-live.on { color: var(--lime); }
.pv-live.on .dot { background: var(--lime); }
.pv-body { display: flex; flex-direction: column; gap: var(--sp-6); padding: var(--sp-4); }
.pv-col-a { display: contents; }
#pv-match { order: 1; }
.pv-col-b { order: 2; }
.pv-scorers { order: 3; }
abbr[title] { text-decoration: none; }
.pv-col { min-width: 0; }
.pv-h { font-size: 1.25rem; line-height: 1.2; font-weight: 800; font-style: italic; }

.mc { border: 1px solid rgba(209, 244, 62, .35); border-radius: 20px; padding: var(--sp-6) var(--sp-4); background: linear-gradient(135deg, rgba(209, 244, 62, .22), var(--ink) 62%); }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.mc-lbl { font-size: .875rem; line-height: 1.4; color: rgba(247, 247, 247, .86); }
.mc-tag { font-size: .75rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); white-space: nowrap; }
.mc-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: var(--sp-2); text-align: center; }
.mc-team { display: grid; justify-items: center; gap: var(--sp-3); font-size: .875rem; line-height: 1.3; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.mc-mid { display: grid; gap: var(--sp-1); justify-items: center; padding-top: var(--sp-3); }
.mc-day { font-size: .875rem; line-height: 1.4; color: rgba(247, 247, 247, .86); }
.mc-time { font-size: clamp(1.75rem, 8vw, 2.75rem); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
.mc-date { font-size: .875rem; line-height: 1.4; color: rgba(247, 247, 247, .86); }
.mc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); font-size: .875rem; line-height: 1.4; color: rgba(247, 247, 247, .86); }
.mc-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lime); font-weight: 600; }
.crest { width: 48px; height: 55px; }

.pv-scorers { margin-top: 0; }
.sc-list { margin-top: var(--sp-3); border: 1px solid var(--hair); border-radius: 16px; background: var(--ink); }
.sc { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); min-height: 56px; }
.sc + .sc { border-top: 1px solid var(--hair); }
.sc-r { font-size: .875rem; color: var(--text-2); }
.sc-n { font-size: .875rem; line-height: 1.3; font-weight: 600; }
.sc-t { display: block; font-size: .75rem; line-height: 1.4; font-weight: 400; color: var(--text-2); }
.sc-g { font-size: 1.25rem; font-weight: 600; }
.sc-1 .sc-r { color: var(--lime); font-weight: 600; }

.pv-st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.seg { display: flex; gap: var(--sp-2); }
.seg button {
  min-height: 44px; padding: 0 var(--sp-4); border-radius: 999px; border: 1.5px solid var(--hair-2); background: transparent; color: var(--text);
  font: 600 .875rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
}
.seg button:hover { border-color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }

.tbl-wrap { border: 1px solid var(--hair); border-radius: 16px; background: var(--ink); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.3; }
.tbl th { padding: var(--sp-3) var(--sp-2); text-align: right; font-size: .75rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); border-bottom: 1px solid var(--hair); }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: var(--sp-4); width: 32px; }
.tbl th.t-team { text-align: left; }
.tbl td { padding: var(--sp-3) var(--sp-2); text-align: right; border-top: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl td:last-child, .tbl th:last-child { padding-right: var(--sp-4); }
.tbl .t-team { text-align: left; }
.tbl .nm { display: flex; align-items: center; gap: var(--sp-3); font-weight: 600; min-width: 0; }
.tbl .nm .crest { width: 22px; height: 25px; flex: none; }
.tbl .rk { color: var(--text-2); }
.tbl tbody tr:first-child .rk { color: var(--lime); font-weight: 600; }
.tbl .pt { font-weight: 600; font-size: 1rem; }
.tbl-empty { padding: var(--sp-6) var(--sp-4); color: var(--text-2); }

/* ---------- funzioni ---------- */
.feat-grid { display: grid; gap: var(--sp-8); }
.feat-list { border-bottom: 1px solid var(--hair); }
.feat { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-4); padding-block: var(--sp-8); border-top: 1px solid var(--hair); }
.feat-n { font-size: 1.5rem; line-height: 1.1; color: var(--lime); }
.feat .h3 { margin-bottom: var(--sp-3); }
.feat p { color: var(--text-2); max-width: 56ch; }

/* ---------- telefono e computer ---------- */
.sec-dev { background: var(--ink); border-block: 1px solid var(--hair); }
.dev-grid { display: grid; gap: var(--sp-8); align-items: end; }
.shot { display: grid; gap: var(--sp-3); }
.shot img { width: 100%; height: auto; border: 1px solid var(--hair-2); border-radius: 16px; background: var(--s1); }
.shot figcaption { font-size: .75rem; line-height: 1.4; color: var(--text-2); }
.shot-phone { max-width: 280px; }
.shot-phone img { border-radius: 24px; }

/* ---------- per chi ---------- */
.who { display: grid; gap: var(--sp-12); }
.who-col { position: relative; padding-top: var(--sp-6); border-top: 1px solid var(--hair-2); display: grid; align-content: start; gap: var(--sp-4); }
.who-col::before { content: ""; position: absolute; left: 0; top: -3px; width: 48px; height: 5px; background: var(--lime); transform: skewX(-24deg); transform-origin: left top; }
.who-col p { color: var(--text-2); max-width: 44ch; }
.more { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-weight: 600; color: var(--lime); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- come funziona (sezione chiara) ---------- */
.sec-light { background: var(--light); color: var(--ink); }
.sec-light .eyebrow { color: var(--ink); }
.sec-light .sec-lede { color: var(--light-2); }
.steps { display: grid; gap: var(--sp-12); counter-reset: s; }
.step { display: grid; align-content: start; gap: var(--sp-3); }
.step-n { position: relative; isolation: isolate; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--sp-3); font-size: 2rem; line-height: 1.1; color: var(--ink); }
.step-n::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: skewX(-12deg); }
.step p { color: var(--light-2); max-width: 36ch; }
.steps-cta { margin-top: var(--sp-12); }
.sec-light :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 3px var(--lime); }

/* ---------- banner ---------- */
.banner { padding-block: var(--sp-24); border-bottom: 1px solid var(--hair); overflow: hidden; }
.banner-t { font-size: min(14vw, 9rem); line-height: 1.1; letter-spacing: -.02em; padding-right: .06em; }
.banner-t span, .banner-t em { display: block; }
.banner-t em { color: var(--lime); font-style: italic; }
.banner-bar { display: block; width: 160px; height: 12px; margin: var(--sp-8) 0 var(--sp-6) var(--sp-2); background: var(--lime); transform: skewX(-24deg); }
.banner-p { font-size: 1.125rem; line-height: 1.55; color: var(--text-2); max-width: 52ch; }

/* ---------- cta finale ---------- */
.final { padding-block: var(--sp-24); }
.final-in { display: grid; gap: var(--sp-8); }
.final-t { font-size: clamp(2rem, 1rem + 4.4vw, 4.5rem); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--hair); background: var(--ink); }
.foot-in { display: grid; gap: var(--sp-8); padding-block: var(--sp-12); }
.foot-brand { display: grid; gap: var(--sp-3); justify-items: start; }
.tagline-sm { color: var(--text-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 var(--sp-6); }
.foot-nav a, .foot-credit a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.foot-nav a:hover, .foot-credit a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-credit { font-size: .875rem; color: var(--text-2); }
.foot-credit a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- reveal (solo con JS) ---------- */
.js .rv { opacity: 0; transform: translateY(8px); transition: opacity var(--m-300) var(--ease-out), transform var(--m-300) var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ================= MEDIUM >= 768 ================= */
@media (min-width: 768px) {
  :root { --gutter: 32px; --head-h: 72px; }
  .brand .wordmark { font-size: 1.25rem; }
  .brand-mark { width: 52px; height: 33px; }
  .head-in { gap: var(--sp-6); }
  .head-admin { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-weight: 600; font-size: .875rem; text-decoration: none; }
  .head-admin:hover { text-decoration: underline; text-underline-offset: 4px; }
  .head-in .btn-sm { min-height: 48px; padding: 0 var(--sp-6); font-size: 1rem; }

  .tagline { font-size: .875rem; letter-spacing: .32em; }
  .cta-row { display: flex; flex-wrap: wrap; }
  .cta-row .btn { width: auto; }
  .strip-in { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
  .strip-in li + li::before { content: "/"; color: var(--lime); }
  .hero-in { padding-block: var(--sp-16) var(--sp-16); }
  .hero .eyebrow { max-width: none; font-size: .875rem; }
  .wm { font-size: min(12.2vw, 10rem); }
  .wm-a, .wm-b { display: inline; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: end; gap: var(--sp-12); margin-top: var(--sp-16); }
  .lede { font-size: 1.25rem; margin-bottom: var(--sp-8); }
  .hero-mark { position: static; width: clamp(220px, 28vw, 340px); }

  .sec { padding-block: var(--sp-24); }
  .sec-head-row { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--sp-12); }

  .pv-bar { padding: var(--sp-4) var(--sp-6); }
  .pv-body { display: grid; grid-template-columns: 5fr 7fr; gap: var(--sp-8); padding: var(--sp-8); align-items: start; }
  .pv-col-a { display: block; }
  .pv-scorers { margin-top: var(--sp-8); }
  .mc { padding: var(--sp-8); }
  .mc-team { font-size: 1rem; }
  .crest { width: 64px; height: 74px; }

  .feat-grid { grid-template-columns: 5fr 7fr; gap: var(--sp-16); align-items: start; }
  .feat-head { position: sticky; top: calc(var(--head-h) + var(--sp-8)); margin-bottom: 0; }
  .feat { grid-template-columns: 72px 1fr; }
  .feat-n { font-size: 2rem; }
  .h3 { font-size: 1.5rem; }

  .dev-grid { grid-template-columns: 8fr 3fr; gap: var(--sp-12); }
  .shot-phone { max-width: none; }

  .who { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
  .step-n { width: 80px; height: 80px; font-size: 2.5rem; }

  .banner-t span:nth-child(2), .banner-t em { display: inline; }
  .banner-t { font-size: min(13.6vw, 12rem); }

  .final-in { grid-template-columns: 1fr auto; align-items: end; gap: var(--sp-12); }

  .foot-in { grid-template-columns: 1fr auto; align-items: start; }
  .foot-nav { grid-column: 1 / -1; order: 3; }
  .foot-credit { align-self: center; }
}

/* ================= WIDE >= 1280 ================= */
@media (min-width: 1280px) {
  :root { --gutter: 48px; }
  .head-nav { display: flex; gap: var(--sp-2); margin-left: auto; }
  .head-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3); font-size: .875rem; font-weight: 600; text-decoration: none; }
  .head-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .head-admin { margin-left: 0; }
  .wm { font-size: 10rem; }
  .banner-t { font-size: 12rem; }
  .foot-in { grid-template-columns: 1fr auto auto; align-items: center; }
  .foot-nav { grid-column: auto; order: 0; }
}

/* ================= MOVIMENTO RIDOTTO ================= */
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn .arr { transition: none; }
  .btn:hover .arr, .more:hover .arr { transform: none; }
}
