/*
 * DuelHub — sito promozionale.
 * Design system allineato all'app (web/src/index.css): stessi token colore in
 * canali RGB, stesse font self-hosted (Rajdhani display, Orbitron numerali),
 * stesso alone "arena" e stessi 8 temi del calcolatore LP, così i mockup in
 * pagina sono fedeli a quello che l'utente troverà nell'app.
 */

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/rajdhani-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/rajdhani-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/orbitron-var.woff2') format('woff2');
}

:root {
  --c-bg: 9 9 15;
  --c-surface: 21 21 32;
  --c-surface2: 32 32 47;
  --c-edge: 62 62 84;
  --c-ink: 237 237 245;
  --c-dim: 150 150 170;
  --c-gold: 222 184 64;
  --c-azure: 86 144 245;
  --c-danger: 242 90 86;
  --c-ok: 80 184 116;

  --font-display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-numeral: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --container: 1160px;
  --nav-h: 72px;
}

/* ===== Temi del calcolatore LP (copiati dall'app) ===== */
.lp-theme-classic {
  --c-bg: 9 9 15;
  --c-surface: 21 21 32;
  --c-surface2: 32 32 47;
  --c-edge: 62 62 84;
  --c-ink: 237 237 245;
  --c-dim: 150 150 170;
  --c-gold: 222 184 64;
  --c-azure: 86 144 245;
  --c-danger: 242 90 86;
  --lp-gradient: radial-gradient(120% 70% at 50% -10%, rgb(34 30 52), rgb(9 9 15) 70%);
  --font-display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-numeral: 'Orbitron', sans-serif;
}
.lp-theme-darkmagician {
  --c-bg: 21 11 38;
  --c-surface: 35 21 58;
  --c-surface2: 50 32 80;
  --c-edge: 98 68 148;
  --c-ink: 241 233 252;
  --c-dim: 176 156 204;
  --c-gold: 192 122 255;
  --c-azure: 136 96 245;
  --c-danger: 244 92 96;
  --lp-gradient: radial-gradient(120% 70% at 50% -10%, rgb(64 32 104), rgb(21 11 38) 70%);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-numeral: 'Orbitron', sans-serif;
}
.lp-theme-blueeyes {
  --c-bg: 12 21 38;
  --c-surface: 20 32 54;
  --c-surface2: 28 44 72;
  --c-edge: 74 104 152;
  --c-ink: 232 240 250;
  --c-dim: 148 170 200;
  --c-gold: 140 190 255;
  --c-azure: 96 150 235;
  --c-danger: 244 92 88;
  --lp-gradient: radial-gradient(120% 70% at 50% -10%, rgb(28 52 92), rgb(12 21 38) 70%);
  --font-display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-numeral: 'Orbitron', sans-serif;
}
.lp-theme-cyber {
  --c-bg: 6 12 14;
  --c-surface: 12 22 26;
  --c-surface2: 18 32 38;
  --c-edge: 42 78 88;
  --c-ink: 226 244 246;
  --c-dim: 132 162 170;
  --c-gold: 64 224 208;
  --c-azure: 80 170 255;
  --c-danger: 255 92 82;
  --lp-gradient: radial-gradient(120% 70% at 50% -10%, rgb(10 40 46), rgb(6 12 14) 70%);
  --font-display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-numeral: 'Orbitron', sans-serif;
}
.lp-theme-redeyes {
  --c-bg: 15 7 7;
  --c-surface: 29 13 13;
  --c-surface2: 46 19 19;
  --c-edge: 100 40 40;
  --c-ink: 249 235 235;
  --c-dim: 180 142 142;
  --c-gold: 236 70 58;
  --c-azure: 255 126 92;
  --c-danger: 240 70 110;
  --lp-gradient: radial-gradient(120% 70% at 50% -10%, rgb(66 16 16), rgb(15 7 7) 70%);
  --font-display: 'Arial Black', Impact, sans-serif;
  --font-numeral: 'Orbitron', sans-serif;
}
.lp-theme-egyptian {
  --c-bg: 27 19 5;
  --c-surface: 44 33 11;
  --c-surface2: 63 48 17;
  --c-edge: 126 98 44;
  --c-ink: 250 241 215;
  --c-dim: 198 176 130;
  --c-gold: 244 196 62;
  --c-azure: 66 182 172;
  --c-danger: 235 78 74;
  --lp-gradient: radial-gradient(120% 70% at 50% -10%, rgb(82 62 20), rgb(27 19 5) 70%);
  --font-display: 'Palatino Linotype', Palatino, Georgia, serif;
  --font-numeral: 'Orbitron', sans-serif;
}
.lp-theme-steampunk {
  --c-bg: 22 15 10;
  --c-surface: 38 26 17;
  --c-surface2: 54 37 24;
  --c-edge: 116 78 46;
  --c-ink: 246 234 214;
  --c-dim: 186 156 122;
  --c-gold: 214 126 44;
  --c-azure: 176 148 92;
  --c-danger: 236 72 96;
  --lp-gradient: radial-gradient(120% 70% at 50% -10%, rgb(74 46 24), rgb(22 15 10) 70%);
  --font-display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-numeral: 'Orbitron', sans-serif;
}
.lp-theme-minimal {
  --c-bg: 13 13 13;
  --c-surface: 23 23 23;
  --c-surface2: 35 35 35;
  --c-edge: 66 66 66;
  --c-ink: 241 241 241;
  --c-dim: 152 152 152;
  --c-gold: 241 241 241;
  --c-azure: 165 165 165;
  --c-danger: 242 90 86;
  --lp-gradient: none;
  --font-display: Consolas, 'Courier New', monospace;
  --font-numeral: Consolas, 'Courier New', monospace;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: rgb(var(--c-bg));
  color: rgb(var(--c-ink));
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Alone "arena": oro in alto a destra, blu in basso a sinistra (come nell'app). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 36% at 85% -8%, rgb(var(--c-gold) / 0.1), transparent 65%),
    radial-gradient(52% 32% at 8% 108%, rgb(var(--c-azure) / 0.09), transparent 65%),
    rgb(var(--c-bg));
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
:focus-visible {
  outline: 2px solid rgb(var(--c-gold));
  outline-offset: 3px;
  border-radius: 6px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--c-edge)) transparent;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.section__head {
  max-width: 780px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section__head h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-top: 0.7rem;
}
.section__head p {
  color: rgb(var(--c-dim));
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 62ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: rgb(var(--c-gold));
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.8;
}
.grad {
  background: linear-gradient(92deg, rgb(var(--c-gold)) 0%, #f5e2a0 45%, rgb(var(--c-gold)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-number {
  font-family: var(--font-numeral);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 0 22px color-mix(in srgb, currentColor 38%, transparent);
}

/* Icone SVG a tratto (sprite <symbol> in fondo alla pagina) */
.ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ===== Bottoni e chip (stessa grammatica dell'app) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.7rem 1.4rem;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn-solid {
  color: #15120a;
  background: linear-gradient(180deg, #f3d77a, rgb(var(--c-gold)));
  box-shadow: 0 12px 34px -14px rgb(var(--c-gold) / 0.8);
}
.btn-solid:hover {
  box-shadow: 0 14px 40px -12px rgb(var(--c-gold) / 0.95);
  filter: brightness(1.05);
}
.btn-gold {
  color: rgb(var(--c-gold));
  border-color: rgb(var(--c-gold) / 0.4);
  background: linear-gradient(180deg, rgb(var(--c-gold) / 0.22), rgb(var(--c-gold) / 0.08));
}
.btn-gold:hover {
  border-color: rgb(var(--c-gold) / 0.75);
  box-shadow: 0 0 30px -8px rgb(var(--c-gold) / 0.6);
}
.btn-azure {
  color: rgb(var(--c-azure));
  border-color: rgb(var(--c-azure) / 0.4);
  background: linear-gradient(180deg, rgb(var(--c-azure) / 0.22), rgb(var(--c-azure) / 0.08));
}
.btn-azure:hover {
  border-color: rgb(var(--c-azure) / 0.75);
  box-shadow: 0 0 30px -8px rgb(var(--c-azure) / 0.6);
}
.btn-ghost {
  color: rgb(var(--c-ink));
  border-color: rgb(var(--c-edge) / 0.6);
  background: rgb(var(--c-surface2) / 0.7);
}
.btn-ghost:hover {
  background: rgb(var(--c-edge) / 0.4);
}
.btn.is-soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--c-edge) / 0.5);
  background: rgb(var(--c-surface2) / 0.7);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: rgb(var(--c-dim));
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.chip-active {
  border-color: rgb(var(--c-gold) / 0.6);
  background: rgb(var(--c-gold) / 0.15);
  color: rgb(var(--c-gold));
  box-shadow: 0 0 18px -8px rgb(var(--c-gold) / 0.6);
}
.chip-azure {
  border-color: rgb(var(--c-azure) / 0.5);
  background: rgb(var(--c-azure) / 0.12);
  color: rgb(var(--c-azure));
}
.chip-danger {
  border-color: rgb(var(--c-danger) / 0.5);
  background: rgb(var(--c-danger) / 0.12);
  color: rgb(var(--c-danger));
}
.chip-ok {
  border-color: rgb(var(--c-ok) / 0.5);
  background: rgb(var(--c-ok) / 0.12);
  color: rgb(var(--c-ok));
}

/* Pannello "card-panel" dell'app */
.panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgb(var(--c-edge) / 0.5);
  background: rgb(var(--c-surface) / 0.8);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.045),
    0 8px 24px -16px rgb(0 0 0 / 0.8);
}

/* ===== Navigazione ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition:
    background-color 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgb(var(--c-bg) / 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: rgb(var(--c-edge) / 0.4);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.brand svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgb(var(--c-gold) / 0.35));
}
.brand small {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--c-gold));
  border: 1px solid rgb(var(--c-gold) / 0.5);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.2rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
}
.nav__links a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: rgb(var(--c-dim));
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover {
  color: rgb(var(--c-ink));
}
.nav__links .btn {
  min-height: 42px;
  padding: 0.45rem 1.1rem;
  font-size: 0.98rem;
}
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgb(var(--c-edge) / 0.6);
  background: rgb(var(--c-surface2) / 0.7);
  color: rgb(var(--c-ink));
  cursor: pointer;
  place-items: center;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger span {
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav__burger span::before {
  top: -6px;
}
.nav__burger span::after {
  top: 6px;
}
.nav.is-open .nav__burger span {
  background: transparent;
}
.nav.is-open .nav__burger span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav.is-open .nav__burger span::after {
  transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 900px) {
  .nav__burger {
    display: grid;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 1.25rem 1.4rem;
    background: rgb(var(--c-bg) / 0.97);
    border-bottom: 1px solid rgb(var(--c-edge) / 0.4);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8);
  }
  .nav.is-open .nav__links {
    display: flex;
  }
  .nav__links a:not(.btn) {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1.15rem;
    border-bottom: 1px solid rgb(var(--c-edge) / 0.25);
  }
  .nav__links li:last-child {
    margin-top: 0.8rem;
  }
  .nav__links .btn {
    width: 100%;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--c-gold) / 0.35);
  background: rgb(var(--c-gold) / 0.08);
  padding: 0.35rem 0.9rem 0.35rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgb(var(--c-dim));
}
.hero__badge b {
  color: rgb(var(--c-gold));
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgb(var(--c-gold) / 0.18);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  line-height: 0.98;
  margin-top: 1.3rem;
}
.hero h1 .grad {
  display: block;
}
.hero__lead {
  color: rgb(var(--c-dim));
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 58ch;
  margin-top: 1.5rem;
}
.hero__lead strong {
  color: rgb(var(--c-ink));
  font-weight: 600;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}
.hero__note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgb(var(--c-dim));
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 1.4rem 2.4rem;
  margin-top: 2.8rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgb(var(--c-edge) / 0.4);
}
.stat b {
  display: block;
  font-family: var(--font-numeral);
  font-weight: 700;
  font-size: 1.55rem;
  color: rgb(var(--c-gold));
  text-shadow: 0 0 22px rgb(var(--c-gold) / 0.35);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.stat span {
  font-size: 0.85rem;
  color: rgb(var(--c-dim));
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}
.hero__mark {
  position: absolute;
  width: min(620px, 110%);
  aspect-ratio: 1;
  opacity: 0.16;
  filter: blur(0.4px);
  pointer-events: none;
  animation: spin 90s linear infinite;
}
.hero__mark svg {
  width: 100%;
  height: 100%;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
.hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--c-gold) / 0.28), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
}
.hero .phone {
  transform: perspective(1400px) rotateY(-10deg) rotateX(3deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  50% {
    translate: 0 -12px;
  }
}
.phone__caption {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: rgb(var(--c-dim));
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.phone__caption b {
  color: rgb(var(--c-gold));
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    margin-top: 1.5rem;
    min-height: 0;
  }
  .hero .phone {
    transform: none;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Mockup telefono ===== */
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 19.2;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2b2b3c, #0d0d15 60%, #1a1a26);
  box-shadow:
    0 50px 90px -30px rgb(0 0 0 / 0.95),
    0 0 0 1px rgb(255 255 255 / 0.07),
    inset 0 0 0 2px rgb(255 255 255 / 0.04);
  z-index: 1;
}
.phone::after {
  /* pulsanti laterali */
  content: '';
  position: absolute;
  right: -3px;
  top: 150px;
  width: 3px;
  height: 70px;
  border-radius: 2px;
  background: #33334a;
}
.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 14px;
  background: #07070c;
  z-index: 3;
}
.phone__screen {
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 54px 10px 12px;
  background: var(--lp-gradient, rgb(var(--c-bg)));
  color: rgb(var(--c-ink));
  font-family: var(--font-display);
  transition: background 0.6s;
}
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 8px;
}
.app-top__title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.app-timer {
  font-size: 13px;
  font-weight: 700;
  color: rgb(var(--c-dim));
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgb(var(--c-edge) / 0.5);
  background: rgb(var(--c-surface2) / 0.7);
}
.lpp {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 3px 0;
  padding: 10px 10px 12px;
  border-radius: 20px;
  border: 1px solid rgb(var(--c-edge) / 0.5);
  background: rgb(var(--c-surface) / 0.82);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.045);
  text-align: center;
  transition: background-color 0.6s, border-color 0.6s;
}
.lpp__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--c-dim));
}
.lpp__val {
  font-family: var(--font-numeral);
  font-variant-numeric: tabular-nums;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgb(var(--c-gold));
  text-shadow: 0 0 22px rgb(var(--c-gold) / 0.38);
  transition: color 0.25s;
}
.lpp--b .lpp__val {
  color: rgb(var(--c-azure));
  text-shadow: 0 0 22px rgb(var(--c-azure) / 0.38);
}
.lpp__val.is-dmg {
  color: rgb(var(--c-danger));
  text-shadow: 0 0 22px rgb(var(--c-danger) / 0.5);
}
.lpp__presets {
  display: flex;
  gap: 5px;
  width: 100%;
  margin-top: 6px;
}
.lpp__presets span {
  flex: 1;
  padding: 7px 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgb(var(--c-ink));
  background: rgb(var(--c-surface2) / 0.85);
  border: 1px solid rgb(var(--c-edge) / 0.5);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.lpp__presets span.is-hit {
  color: rgb(var(--c-gold));
  border-color: rgb(var(--c-gold) / 0.65);
  background: rgb(var(--c-gold) / 0.2);
  box-shadow: 0 0 18px -6px rgb(var(--c-gold) / 0.7);
}
.lpp--b .lpp__presets span.is-hit {
  color: rgb(var(--c-azure));
  border-color: rgb(var(--c-azure) / 0.65);
  background: rgb(var(--c-azure) / 0.2);
  box-shadow: 0 0 18px -6px rgb(var(--c-azure) / 0.7);
}
.lp-tools {
  display: flex;
  gap: 5px;
  margin: 6px 0 8px;
}
.lp-tools span {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgb(var(--c-dim));
  background: rgb(var(--c-surface) / 0.8);
  border: 1px solid rgb(var(--c-edge) / 0.5);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.lp-tools span.is-hit {
  color: rgb(var(--c-gold));
  border-color: rgb(var(--c-gold) / 0.65);
  background: rgb(var(--c-gold) / 0.2);
}
.lp-tools .ico {
  width: 13px;
  height: 13px;
}
.pnav {
  display: flex;
  justify-content: space-around;
  padding: 7px 6px;
  border-radius: 999px;
  border: 1px solid rgb(var(--c-edge) / 0.5);
  background: rgb(var(--c-surface) / 0.92);
  backdrop-filter: blur(8px);
}
.pnav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgb(var(--c-dim));
}
.pnav span.is-active {
  color: rgb(var(--c-gold));
}
.pnav .ico {
  width: 16px;
  height: 16px;
}

/* ===== Funzioni (bento) ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}
.feature {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--c-gold) / 0.4);
}
.feature--7 {
  grid-column: span 7;
}
.feature--5 {
  grid-column: span 5;
}
.feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: rgb(var(--c-gold));
  background: rgb(var(--c-gold) / 0.12);
  border: 1px solid rgb(var(--c-gold) / 0.3);
}
.feature__icon--azure {
  color: rgb(var(--c-azure));
  background: rgb(var(--c-azure) / 0.12);
  border-color: rgb(var(--c-azure) / 0.3);
}
.feature h3 {
  font-size: 1.4rem;
}
.feature p {
  color: rgb(var(--c-dim));
  font-size: 0.98rem;
}
.feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.4rem;
}
.feature--split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 1.4rem;
}
.feature--split .feature__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.feature--split .mini {
  align-self: end;
}
@media (max-width: 1000px) {
  .feature,
  .feature--7,
  .feature--5 {
    grid-column: span 6;
  }
}
@media (max-width: 640px) {
  .feature,
  .feature--7,
  .feature--5 {
    grid-column: span 12;
  }
  .feature--split {
    grid-template-columns: 1fr;
  }
}

/* Mini-visual dentro le card funzioni */
.mini {
  border-radius: 16px;
  border: 1px solid rgb(var(--c-edge) / 0.5);
  background: rgb(var(--c-bg) / 0.7);
  padding: 0.85rem;
  font-family: var(--font-display);
}
.mini-lp {
  width: 200px;
  text-align: center;
}
.mini-lp__val {
  font-family: var(--font-numeral);
  font-size: 2.1rem;
  font-weight: 700;
  color: rgb(var(--c-gold));
  text-shadow: 0 0 22px rgb(var(--c-gold) / 0.38);
  line-height: 1.1;
}
.mini-lp__row {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.6rem;
}
.mini-lp__row span {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0;
  border-radius: 8px;
  background: rgb(var(--c-surface2) / 0.9);
  border: 1px solid rgb(var(--c-edge) / 0.5);
}
.mini-lp__row span.hot {
  color: rgb(var(--c-gold));
  border-color: rgb(var(--c-gold) / 0.6);
  background: rgb(var(--c-gold) / 0.15);
}
.mini-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgb(var(--c-gold) / 0.5);
  background: rgb(var(--c-surface2) / 0.8);
  font-size: 0.85rem;
  color: rgb(var(--c-ink));
  box-shadow: 0 0 0 3px rgb(var(--c-gold) / 0.12);
}
.mini-search .ico {
  width: 15px;
  height: 15px;
  color: rgb(var(--c-gold));
}
.mini-search em {
  font-style: normal;
  color: rgb(var(--c-dim));
  margin-left: auto;
  font-size: 0.75rem;
}
.mini-rows {
  list-style: none;
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
}
.mini-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgb(var(--c-surface) / 0.9);
  border: 1px solid rgb(var(--c-edge) / 0.4);
  font-size: 0.85rem;
}
.mini-rows li span {
  color: rgb(var(--c-dim));
  font-size: 0.75rem;
}
.mini-rows .chip {
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
}
.mini-prob {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
.mini-prob b {
  font-family: var(--font-numeral);
  font-size: 1.9rem;
  color: rgb(var(--c-azure));
  text-shadow: 0 0 22px rgb(var(--c-azure) / 0.38);
}
.mini-prob span {
  font-size: 0.8rem;
  color: rgb(var(--c-dim));
  line-height: 1.35;
}
.mini-deck {
  display: flex;
  gap: 0.4rem;
}
.mini-deck span {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0;
  border-radius: 10px;
  border: 1px solid rgb(var(--c-edge) / 0.5);
  background: rgb(var(--c-surface2) / 0.8);
  font-size: 0.72rem;
  color: rgb(var(--c-dim));
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mini-deck span b {
  display: block;
  font-family: var(--font-numeral);
  font-size: 1rem;
  color: rgb(var(--c-ink));
  letter-spacing: 0;
}
.mini-deck span.bad b {
  color: rgb(var(--c-danger));
}

/* ===== Formati storici ===== */
.timeline {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding-top: 1.7rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: calc(1.7rem + 7px);
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgb(var(--c-gold) / 0),
    rgb(var(--c-gold) / 0.7) 10%,
    rgb(var(--c-azure) / 0.7) 90%,
    rgb(var(--c-azure) / 0)
  );
}
.timeline li {
  position: relative;
  padding-top: 1.5rem;
  padding-right: 0.5rem;
}
.timeline li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(var(--c-bg));
  border: 3px solid rgb(var(--c-gold));
  box-shadow: 0 0 16px rgb(var(--c-gold) / 0.55);
}
.timeline li.is-now::before {
  border-color: rgb(var(--c-azure));
  box-shadow: 0 0 16px rgb(var(--c-azure) / 0.55);
}
.tl__year {
  font-family: var(--font-numeral);
  font-size: 0.85rem;
  color: rgb(var(--c-dim));
  letter-spacing: 0.04em;
}
.timeline b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  margin-top: 0.1rem;
}
.timeline li.is-now b {
  color: rgb(var(--c-azure));
}
.timeline small {
  display: block;
  color: rgb(var(--c-dim));
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 0.35rem;
}
@media (max-width: 860px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-top: 0;
    padding-left: 1.8rem;
  }
  .timeline::before {
    top: 4px;
    bottom: 4px;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgb(var(--c-gold) / 0.7), rgb(var(--c-azure) / 0.7));
  }
  .timeline li {
    padding-top: 0;
  }
  .timeline li::before {
    left: -1.8rem;
    top: 4px;
  }
}

.formati__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: stretch;
}
@media (max-width: 900px) {
  .formati__grid {
    grid-template-columns: 1fr;
  }
}
.diff {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.diff__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.diff__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.diff__title .ico {
  color: rgb(var(--c-gold));
  width: 18px;
  height: 18px;
}
.diff__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) {
  .diff__cols {
    grid-template-columns: 1fr;
  }
}
.diff__col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.diff__col--ban h4 {
  color: rgb(var(--c-danger));
}
.diff__col--lim h4 {
  color: rgb(var(--c-gold));
}
.diff__col ul {
  list-style: none;
  display: grid;
  gap: 0.3rem;
}
.diff__col li {
  font-size: 0.9rem;
  padding: 0.42rem 0.65rem;
  border-radius: 9px;
  background: rgb(var(--c-bg) / 0.6);
  border: 1px solid rgb(var(--c-edge) / 0.35);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.diff__col li i {
  flex: none;
  white-space: nowrap;
  font-style: normal;
  font-family: var(--font-numeral);
  font-size: 0.75rem;
  color: rgb(var(--c-dim));
}
.diff__col--ban li i {
  color: rgb(var(--c-danger));
}
.diff__col--lim li i {
  color: rgb(var(--c-gold));
}
.diff__foot {
  font-size: 0.82rem;
  color: rgb(var(--c-dim));
}

.bullets {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}
.bullets li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 0.8rem;
  align-items: start;
}
.bullets .ico {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 9px;
  color: rgb(var(--c-ok));
  background: rgb(var(--c-ok) / 0.12);
  border: 1px solid rgb(var(--c-ok) / 0.35);
  stroke-width: 2.2;
}
.bullets b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}
.bullets span {
  color: rgb(var(--c-dim));
  font-size: 0.95rem;
}
.aside {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.aside h3 {
  font-size: 1.5rem;
}

/* ===== Tornei ===== */
.tornei {
  position: relative;
  overflow: hidden;
}
.bg-art {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(55% 50% at 50% 50%, #000 25%, transparent 78%);
  mask-image: radial-gradient(55% 50% at 50% 50%, #000 25%, transparent 78%);
}
.tornei__bg {
  right: -3%;
  top: 50%;
  translate: 0 -50%;
  width: auto;
  height: min(112%, 1150px);
  opacity: 0.5;
}
@media (max-width: 1500px) {
  .tornei__bg {
    right: -14%;
    opacity: 0.35;
  }
}
@media (max-width: 900px) {
  .tornei__bg,
  .faq__bg {
    display: none;
  }
}
.split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split--rev {
  grid-template-columns: 1.05fr 0.95fr;
}
.split > * {
  min-width: 0;
}
@media (max-width: 900px) {
  .split,
  .split--rev {
    grid-template-columns: 1fr;
  }
}
.split .section__head {
  margin-bottom: 1.8rem;
}
.standings {
  padding: 1.2rem 1.2rem 1rem;
}
.standings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.2rem 0.2rem 0.9rem;
}
.standings__head b {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.standings__chips {
  display: flex;
  gap: 0.4rem;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
@media (max-width: 520px) {
  .table {
    font-size: 0.84rem;
  }
  .table th,
  .table td {
    padding-inline: 0.35rem;
  }
  .table th {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }
  .table td.num {
    font-size: 0.74rem;
  }
  .table td b {
    font-size: 0.92rem;
  }
  .table .col-ogw {
    display: none;
  }
}
.table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--c-dim));
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgb(var(--c-edge) / 0.5);
}
.table td {
  padding: 0.62rem 0.6rem;
  border-bottom: 1px solid rgb(var(--c-edge) / 0.25);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td.num,
.table th.num {
  text-align: right;
  font-family: var(--font-numeral);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.table td.pos {
  font-family: var(--font-numeral);
  color: rgb(var(--c-dim));
  width: 2.2rem;
}
.table tr.is-cut td.pos {
  color: rgb(var(--c-gold));
  text-shadow: 0 0 14px rgb(var(--c-gold) / 0.5);
}
.table tr.is-cut td:first-child {
  box-shadow: inset 3px 0 0 rgb(var(--c-gold) / 0.7);
}
.table td b {
  font-family: var(--font-display);
  font-size: 1rem;
}
.table td.pts {
  color: rgb(var(--c-ink));
  font-weight: 700;
}
.elo {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgb(var(--c-edge) / 0.4);
  background: rgb(var(--c-bg) / 0.6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  align-items: center;
}
.elo__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--c-dim));
}
.elo__val {
  font-family: var(--font-numeral);
  font-size: 1.35rem;
  color: rgb(var(--c-azure));
  text-shadow: 0 0 18px rgb(var(--c-azure) / 0.4);
  text-align: right;
}
.elo__val small {
  font-size: 0.72rem;
  color: rgb(var(--c-ok));
  margin-left: 0.3rem;
}
.elo svg {
  grid-column: 1 / -1;
  width: 100%;
  height: 56px;
}

/* ===== Temi ===== */
.themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .themes {
    grid-template-columns: repeat(2, 1fr);
  }
}
.theme {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 190px;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(var(--c-edge) / 0.65);
  background: var(--lp-gradient, rgb(var(--c-bg)));
  color: rgb(var(--c-ink));
  font-family: var(--font-display);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.theme:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgb(var(--c-gold) / 0.5);
}
.theme__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--c-dim));
}
.theme__top i {
  font-style: normal;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgb(var(--c-edge) / 0.6);
  background: rgb(var(--c-surface2) / 0.8);
  font-family: 'Orbitron', var(--font-numeral);
  letter-spacing: 0.02em;
}
.theme__lp {
  font-family: var(--font-numeral);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: rgb(var(--c-gold));
  text-shadow: 0 0 22px rgb(var(--c-gold) / 0.38);
  letter-spacing: 0.02em;
}
.theme__presets {
  display: flex;
  gap: 0.35rem;
}
.theme__presets i {
  flex: 1;
  font-style: normal;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0;
  border-radius: 8px;
  background: rgb(var(--c-surface2) / 0.85);
  border: 1px solid rgb(var(--c-edge) / 0.5);
}
.theme__presets i:last-child {
  color: rgb(var(--c-azure));
  border-color: rgb(var(--c-azure) / 0.5);
  background: rgb(var(--c-azure) / 0.15);
}
.theme h3 {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgb(var(--c-ink));
}
@media (max-width: 520px) {
  .theme {
    padding: 0.9rem;
    min-height: 160px;
  }
  .theme__lp {
    font-size: 2rem;
  }
  .theme__presets i {
    font-size: 0.66rem;
  }
  .theme__presets i:last-child {
    display: none;
  }
  .theme h3 {
    font-size: 1rem;
  }
}

.battle {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 1.6rem;
}
@media (max-width: 700px) {
  .battle {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .battle .bullets li {
    text-align: left;
  }
}
.battle__phone {
  width: 150px;
  aspect-ratio: 9 / 18.5;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(160deg, #2b2b3c, #0d0d15 60%, #1a1a26);
  box-shadow:
    0 30px 60px -30px rgb(0 0 0 / 0.95),
    0 0 0 1px rgb(255 255 255 / 0.07);
}
.battle__screen {
  height: 100%;
  border-radius: 19px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--lp-gradient, rgb(var(--c-bg)));
}
.battle__half {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  font-family: var(--font-display);
}
.battle__half--top {
  rotate: 180deg;
  border-bottom: 1px dashed rgb(var(--c-edge) / 0.8);
}
.battle__half small {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--c-dim));
  font-weight: 700;
}
.battle__half b {
  font-family: var(--font-numeral);
  font-size: 24px;
  color: rgb(var(--c-gold));
  text-shadow: 0 0 18px rgb(var(--c-gold) / 0.4);
}
.battle__half--top b {
  color: rgb(var(--c-azure));
  text-shadow: 0 0 18px rgb(var(--c-azure) / 0.4);
}
.battle__keys {
  display: flex;
  gap: 3px;
}
.battle__keys i {
  font-style: normal;
  width: 26px;
  padding: 3px 0;
  border-radius: 6px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  background: rgb(var(--c-surface2) / 0.9);
  border: 1px solid rgb(var(--c-edge) / 0.5);
}
.battle h3 {
  font-size: 1.6rem;
}
.battle > div > p {
  color: rgb(var(--c-dim));
  margin: 0.7rem 0 1.2rem;
}

/* ===== Offline / installazione ===== */
.offline__grid {
  display: grid;
  gap: 1.1rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.step__n {
  font-family: var(--font-numeral);
  font-size: 2rem;
  font-weight: 700;
  color: rgb(var(--c-gold));
  text-shadow: 0 0 22px rgb(var(--c-gold) / 0.4);
  line-height: 1;
}
.step h3 {
  font-size: 1.3rem;
}
.step p {
  color: rgb(var(--c-dim));
  font-size: 0.95rem;
}
.privacy {
  padding: 1.5rem 1.7rem;
  display: grid;
  grid-template-columns: auto 1fr 1.25fr;
  align-items: center;
  gap: 1rem 1.8rem;
  border-color: rgb(var(--c-azure) / 0.35);
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(var(--c-azure) / 0.14), transparent 55%),
    rgb(var(--c-surface) / 0.8);
}
.privacy h3 {
  font-size: 1.4rem;
}
.privacy h3 + p {
  margin-top: 0.35rem;
}
.privacy p,
.privacy li {
  color: rgb(var(--c-dim));
  font-size: 0.95rem;
}
.privacy ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
@media (max-width: 900px) {
  .privacy {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}
.privacy li {
  display: flex;
  gap: 0.5rem;
  align-items: start;
}
.privacy li .ico {
  width: 18px;
  height: 18px;
  color: rgb(var(--c-azure));
  margin-top: 0.2rem;
  stroke-width: 2.2;
}

/* ===== Download ===== */
.download {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(2.2rem, 6vw, 4.5rem);
  border: 1px solid rgb(var(--c-gold) / 0.35);
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(var(--c-gold) / 0.14), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgb(var(--c-azure) / 0.12), transparent 55%),
    rgb(var(--c-surface) / 0.88);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 40px 80px -40px rgb(var(--c-gold) / 0.35);
}
.download-section {
  position: relative;
  overflow: hidden;
}
.download-section .container {
  position: relative;
  z-index: 1;
}
/* The Ring sits behind the panel and peeks out on its right side */
.download__bg {
  right: calc((100% - var(--container)) / 2 - 300px);
  top: 50%;
  translate: 0 -50%;
  width: min(520px, 40vw);
  opacity: 0.55;
}
@media (max-width: 1400px) {
  .download__bg {
    right: -4%;
  }
}
@media (max-width: 900px) {
  .download__bg {
    display: none;
  }
}
.download__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 900px) {
  .download__inner {
    grid-template-columns: 1fr;
  }
}
.download h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  margin-top: 0.7rem;
}
.download p.lead {
  color: rgb(var(--c-dim));
  font-size: 1.08rem;
  margin-top: 1rem;
  max-width: 50ch;
}
.dl-cards {
  display: grid;
  gap: 0.9rem;
}
.dl-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.3rem;
  border-radius: 18px;
  border: 1px solid rgb(var(--c-edge) / 0.5);
  background: rgb(var(--c-bg) / 0.82);
  backdrop-filter: blur(6px);
}
.dl-card__info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.dl-card h3 {
  font-size: 1.15rem;
}
.dl-card p {
  color: rgb(var(--c-dim));
  font-size: 0.86rem;
  margin-top: 0.15rem;
}
.dl-card .btn {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  font-size: 0.98rem;
}
.download__fine {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: rgb(var(--c-dim));
  line-height: 1.5;
}

/* ===== FAQ ===== */
.faq-section {
  position: relative;
  overflow: hidden;
}
.faq__bg {
  right: -14%;
  top: -4%;
  width: min(470px, 40vw);
  opacity: 0.55;
}
.faq-section .container {
  position: relative;
}
.faq,
.faq-section .section__head {
  position: relative;
  z-index: 1;
}
.faq {
  max-width: 840px;
}
.faq details {
  border: 1px solid rgb(var(--c-edge) / 0.5);
  border-radius: 16px;
  background: rgb(var(--c-surface) / 0.7);
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: rgb(var(--c-gold) / 0.45);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--font-numeral);
  color: rgb(var(--c-gold));
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.25s;
  flex: none;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 1.3rem 1.2rem;
  color: rgb(var(--c-dim));
}
.faq details a {
  color: rgb(var(--c-gold));
  text-decoration: underline;
  text-decoration-color: rgb(var(--c-gold) / 0.4);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgb(var(--c-edge) / 0.4);
  padding: 3.2rem 0 2rem;
  color: rgb(var(--c-dim));
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgb(var(--c-ink));
  margin-bottom: 0.9rem;
}
.footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.footer a:hover {
  color: rgb(var(--c-ink));
}
.footer .brand {
  color: rgb(var(--c-ink));
  margin-bottom: 0.9rem;
}
.disclaimer {
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 46ch;
}
.footer__bottom {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgb(var(--c-edge) / 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
}

/* ===== Animazioni di ingresso ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .reveal[data-delay='1'] {
  transition-delay: 0.08s;
}
.js .reveal[data-delay='2'] {
  transition-delay: 0.16s;
}
.js .reveal[data-delay='3'] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
