/* ============================================================
   FantaRivolta — site.css
   Design system statico, nessuna dipendenza esterna.
   Sezioni: tokens · base · header · bottoni · hero · ribbon ·
   sezioni home · screens rail · open (dark) · private · tools ·
   supporter · footer · pagine legali · responsive
   ============================================================ */

:root {
  /* palette */
  --navy-950: #040e24;
  --navy-900: #061d3b;
  --navy-800: #0a2c55;
  --navy-700: #0b3562;
  --ink: #0b1f38;
  --body-text: #42506b;
  --muted: #5d6878;
  --azure: #1f8fd6;
  --azure-strong: #0b65a3;
  --azure-bright: #5fc0ff;
  --sky: #e8f4ff;
  --paper: #f6f9fe;
  --white: #ffffff;
  --line: #dce7f5;
  --mint: #5fe0c8;
  --mint-deep: #0e6d5c;
  --gold: #ffd247;
  --gold-soft: #fff3cc;
  --gold-deep: #6e5502;

  /* geometria */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-full: 999px;

  /* ombre */
  --shadow-lg: 0 32px 80px -22px rgba(6, 29, 59, 0.38);
  --shadow-md: 0 16px 44px -14px rgba(6, 29, 59, 0.2);
  --shadow-sm: 0 6px 18px -6px rgba(6, 29, 59, 0.14);

  /* layout */
  --shell-max: 1180px;
  --shell-gutter: 20px;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--azure-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(31, 143, 214, 0.24);
}

.shell {
  width: min(var(--shell-max), calc(100% - var(--shell-gutter) * 2));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  border-radius: var(--r-full);
  padding: 10px 18px;
  background: var(--white);
  color: var(--azure-strong);
  font-weight: 800;
  box-shadow: var(--shadow-md);
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 14px;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 231, 244, 0.9);
  background: rgba(248, 251, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home .site-header {
  position: absolute;
  inset: 0 0 auto;
  border-bottom: 0;
  background: linear-gradient(rgba(4, 14, 36, 0.55), rgba(4, 14, 36, 0));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-shell {
  width: min(var(--shell-max), calc(100% - var(--shell-gutter) * 2));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.brand img {
  width: 210px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  padding: 8px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.site-nav a:hover {
  background: rgba(31, 143, 214, 0.1);
  text-decoration: none;
}

.home .site-nav a {
  color: rgba(255, 255, 255, 0.92);
}

.home .site-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-nav .nav-cta {
  padding-inline: 18px;
  background: var(--gold);
  color: #33270a;
  box-shadow: 0 10px 26px -8px rgba(255, 210, 71, 0.55);
}

.site-nav .nav-cta:hover {
  background: #ffdc6b;
}

.home .site-nav .nav-cta {
  color: #33270a;
}

/* ------------------------------------------------------------
   Bottoni
   ------------------------------------------------------------ */

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  padding: 13px 24px;
  font-weight: 850;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.button svg {
  flex: none;
}

.button.primary {
  background: linear-gradient(135deg, #ffdf76, var(--gold));
  color: #33270a;
  box-shadow: 0 16px 40px -12px rgba(255, 210, 71, 0.55);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button.ghost-dark {
  border-color: rgba(11, 31, 56, 0.2);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button.subtle {
  border-color: var(--line);
  background: var(--white);
  color: var(--azure-strong);
  box-shadow: none;
}

/* ------------------------------------------------------------
   Eyebrow (condiviso: home scura + pagine chiare)
   ------------------------------------------------------------ */

.eyebrow {
  margin: 0 0 16px;
  color: var(--azure-strong);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-dark .eyebrow {
  color: var(--mint);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: clip;
  color: var(--white);
  background:
    radial-gradient(1100px 620px at 88% -12%, rgba(31, 143, 214, 0.55), transparent 62%),
    radial-gradient(800px 520px at -12% 108%, rgba(95, 224, 200, 0.16), transparent 60%),
    linear-gradient(158deg, #082450 0%, var(--navy-950) 52%, #072047 100%);
}

/* linee campo: tocco sport-tech, molto tenue */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 220px at 50% 118%, transparent 218px, rgba(255, 255, 255, 0.05) 219px, rgba(255, 255, 255, 0.05) 222px, transparent 223px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(255, 255, 255, 0.035) 119px 120px);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(var(--shell-max), calc(100% - var(--shell-gutter) * 2));
  margin: 0 auto;
  padding: 158px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.hero-kicker li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-full);
  padding: 7px 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.hero-kicker .dot.gold {
  background: var(--gold);
}

.hero-kicker .dot.azure {
  background: var(--azure-bright);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 78px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

.hero h1 .grad {
  background: linear-gradient(92deg, var(--azure-bright) 8%, var(--mint) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
}

.store-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  font-weight: 650;
}

/* --- mockup telefoni --- */

.hero-media {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 560px;
}

.phone {
  margin: 0;
  width: min(258px, 100%);
}

.phone-frame {
  position: relative;
  border-radius: 42px;
  padding: 8px;
  background: linear-gradient(165deg, #24406b, #0a1830 55%, #1c3357);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    var(--shadow-lg);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 900 / 1956;
  border-radius: 34px;
  background: #eef4fd;
}

/* Screenshot reali dell'app: niente crop e niente notch finto. */
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-tag {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-dark .phone-tag {
  color: rgba(255, 255, 255, 0.72);
}

/* composizione hero: due phone sovrapposti + chip flottanti */

.hero-media .phone.lead {
  position: relative;
  z-index: 2;
  width: min(276px, 68vw);
  transform: rotate(-2.5deg);
}

.hero-media .phone.back {
  position: absolute;
  right: 0;
  top: 72px;
  z-index: 1;
  width: min(226px, 52vw);
  transform: rotate(4deg);
  opacity: 0.88;
}

.hero-media .phone.back .phone-frame {
  box-shadow: var(--shadow-md);
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-full);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 850;
  box-shadow: var(--shadow-md);
}

.float-chip.gold {
  left: 0;
  top: 18px;
  background: linear-gradient(135deg, #ffe28a, var(--gold));
  color: #33270a;
}

.float-chip.mint {
  right: 0;
  bottom: 54px;
  background: #0c3b33;
  border: 1px solid rgba(95, 224, 200, 0.5);
  color: var(--mint);
}

.float-chip .arrow {
  font-size: 15px;
  line-height: 1;
}

/* --- ribbon ranked in fondo al hero --- */

.hero-ribbon {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 14, 36, 0.45);
}

.hero-ribbon ul {
  width: min(var(--shell-max), calc(100% - var(--shell-gutter) * 2));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  list-style: none;
}

.hero-ribbon li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-ribbon li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azure-bright);
  opacity: 0.85;
}

.hero-ribbon li:nth-child(odd)::before {
  background: var(--mint);
}

/* ------------------------------------------------------------
   Sezioni home
   ------------------------------------------------------------ */

.section {
  padding: 96px 0;
}

.section.compact {
  padding: 64px 0;
}

.band-white {
  background: var(--white);
}

.band-tint {
  background: linear-gradient(180deg, var(--paper), #edf5ff);
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(900px 480px at 110% 0%, rgba(31, 143, 214, 0.4), transparent 62%),
    radial-gradient(700px 400px at -10% 100%, rgba(95, 224, 200, 0.12), transparent 55%),
    linear-gradient(150deg, #08234c, var(--navy-950) 58%);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

/* anchor sotto header sticky/assoluto */
#open,
#private,
#screens {
  scroll-margin-top: 90px;
}

/* ------------------------------------------------------------
   Screens rail
   ------------------------------------------------------------ */

.screens-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  justify-items: center;
}

.screens-rail .phone {
  width: min(224px, 100%);
}

.screens-rail .phone:nth-child(even) {
  transform: translateY(24px);
}

/* ------------------------------------------------------------
   Sezione Open (dark, signature)
   ------------------------------------------------------------ */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 64px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.split-section .section-heading {
  margin-bottom: 0;
}

.bullet-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.bullet-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--body-text);
  font-size: 16.5px;
  line-height: 1.55;
}

.bullet-list li::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-top: 6px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: var(--azure);
  box-shadow: 0 0 0 5px rgba(31, 143, 214, 0.14);
}

.section-dark .bullet-list li {
  color: rgba(255, 255, 255, 0.82);
}

.section-dark .bullet-list li::before {
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(95, 224, 200, 0.14);
}

.bullet-list.accent-gold li::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(255, 210, 71, 0.2);
}

/* --- ladder ranked (CSS puro) --- */

.ladder {
  margin-top: 36px;
  display: grid;
  gap: 10px;
  max-width: 470px;
}

.ladder-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ladder-row.top {
  border-color: rgba(255, 210, 71, 0.55);
  background: linear-gradient(95deg, rgba(255, 210, 71, 0.16), rgba(255, 210, 71, 0.05));
}

.ladder-serie {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ladder-row.top .ladder-serie {
  color: var(--gold);
}

.ladder-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 650;
}

.ladder-move {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-full);
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ladder-move.up {
  color: #0c3b33;
  background: var(--mint);
}

.ladder-move.down {
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ladder-row.ghost {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 750;
  justify-items: start;
}

/* media della sezione open */

.open-media {
  position: relative;
  display: grid;
  justify-items: center;
}

.open-media .float-chip.gold {
  left: auto;
  right: 0;
  top: 16px;
}

/* ------------------------------------------------------------
   Private / media stack
   ------------------------------------------------------------ */

.media-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  justify-items: center;
}

.media-stack .phone {
  width: min(238px, 100%);
}

.media-stack .phone:first-child {
  margin-top: 34px;
}

/* ------------------------------------------------------------
   Tools / feature tiles
   ------------------------------------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 26px;
  width: 54px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--azure);
}

.feature-card.mint::before {
  background: var(--mint);
}

.feature-card.gold::before {
  background: var(--gold);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.feature-card .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--sky), #d6ecff);
  color: var(--azure-strong);
}

.feature-card.mint .icon {
  background: linear-gradient(140deg, #dcfaf3, #b7f2e5);
  color: var(--mint-deep);
}

.feature-card.gold .icon {
  background: linear-gradient(140deg, #fff3cc, #ffe999);
  color: var(--gold-deep);
}

/* ------------------------------------------------------------
   Supporter
   ------------------------------------------------------------ */

.supporter-band {
  position: relative;
  overflow: clip;
  border: 1px solid rgba(255, 210, 71, 0.5);
  border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 56px);
  background:
    radial-gradient(560px 300px at 90% -20%, rgba(255, 210, 71, 0.35), transparent 60%),
    linear-gradient(140deg, #fffdf4, var(--gold-soft));
}

.supporter-band h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.supporter-band p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #5d5335;
  font-size: 17.5px;
  line-height: 1.65;
}

.supporter-band .store-row {
  margin-top: 30px;
}

.supporter-band .button.primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 16px 40px -12px rgba(6, 29, 59, 0.4);
}

.supporter-band .button.ghost-dark {
  border-color: rgba(110, 85, 2, 0.3);
  color: #5d5335;
}

.supporter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border-radius: var(--r-full);
  padding: 8px 14px;
  background: var(--gold);
  color: #33270a;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(170deg, var(--navy-900), var(--navy-950) 70%);
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}

.footer-logo {
  width: 200px;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
}

.footer a:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-links h3 {
  margin: 0 0 12px;
  color: var(--azure-bright);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  font-weight: 650;
}

.footer .fine-print {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer .fine-print:first-of-type {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.fine-print {
  color: #7b8491;
  font-size: 13px;
}

/* ------------------------------------------------------------
   Pagine interne (legali/regolamento) — sobrie
   ------------------------------------------------------------ */

.page-hero {
  padding: 84px 0 44px;
  background:
    radial-gradient(680px 300px at 92% -30%, rgba(31, 143, 214, 0.12), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 98px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-nav a {
  display: block;
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--muted);
  font-weight: 700;
}

.legal-nav a:hover,
.legal-nav a.active {
  background: var(--sky);
  color: var(--azure-strong);
  text-decoration: none;
}

.prose {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 5vw, 46px);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 20px;
}

.prose p,
.prose li {
  color: #465363;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose .updated {
  color: #7b8491;
  font-size: 14px;
}

.doc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.doc-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.doc-link:hover {
  border-color: var(--azure-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.doc-link strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.doc-link span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.redirect-body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}

.redirect-box {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1020px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 64px;
    padding-top: 148px;
    padding-bottom: 72px;
  }

  .hero-media {
    min-height: 0;
    justify-items: center;
  }

  .hero-media .phone.back {
    right: 6%;
  }

  .float-chip.gold {
    left: 4%;
  }

  .screens-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(238px, 66vw);
    overflow-x: auto;
    padding: 8px 4px 26px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .screens-rail .phone {
    scroll-snap-align: center;
  }

  .screens-rail .phone:nth-child(even) {
    transform: none;
  }

  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split-section.reverse .split-media {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }

  .legal-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  :root {
    --shell-gutter: 16px;
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand img {
    width: 170px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .site-nav a[href="/regolamento/"],
  .site-nav a[href="#screens"] {
    display: none;
  }

  .hero-shell {
    padding-top: 128px;
    gap: 52px;
  }

  .hero h1 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .store-row .button {
    width: 100%;
  }

  .hero-media .phone.back {
    display: none;
  }

  .hero-media .phone.lead {
    transform: rotate(-2deg);
  }

  .float-chip {
    font-size: 13px;
    padding: 8px 13px;
  }

  .float-chip.gold {
    left: 0;
    top: 10px;
  }

  .float-chip.mint {
    right: 0;
    bottom: 34px;
  }

  .hero-ribbon ul {
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .section {
    padding: 72px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .media-stack {
    gap: 14px;
  }

  .media-stack .phone:first-child {
    margin-top: 28px;
  }

  .ladder {
    max-width: none;
  }

  .ladder-row {
    grid-template-columns: 1fr auto;
  }

  .ladder-note {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
