:root {
  --gold: #ffb020;
  --gold-dark: #e89a0c;
  --night: #26215c;
  --blue: #3b4cca;
  --violet: #8e44d6;
  --ink: #1b1a2e;
  --muted: #5b5d72;
  --bg: #f7f6fc;
  --bg-2: #efeef8;
  --card: #ffffff;
  --line: #e2e1ee;
  --shadow: 0 10px 30px rgba(38, 33, 92, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 10, 60, 0.45);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f0fa;
    --muted: #b9b8cc;
    --bg: #14122b;
    --bg-2: #1a1735;
    --card: #1e1b3d;
    --line: #2f2b57;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
@media (prefers-color-scheme: dark) { a { color: #aab3ff; } }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- testata */
header.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  padding: 28px 0 72px;
}
/* Aloni chiari e una griglia leggera: profondità senza immagini. */
header.hero::before, header.hero::after {
  content: ""; position: absolute; pointer-events: none; border-radius: 50%;
}
header.hero::before {
  width: 640px; height: 640px; right: -160px; top: -260px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}
header.hero::after {
  width: 520px; height: 520px; left: -200px; bottom: -300px;
  background: radial-gradient(closest-side, rgba(255, 176, 32, 0.28), rgba(255, 176, 32, 0));
}
header.hero .wrap { position: relative; z-index: 1; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
.langs { display: flex; gap: 6px; }
.langs button {
  background: rgba(255, 255, 255, 0.15); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.langs button:hover { background: rgba(255, 255, 255, 0.28); }
.langs button[aria-pressed="true"] { background: #fff; color: var(--blue); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; margin-top: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 19px; opacity: 0.92; margin: 0 0 28px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; border-radius: 14px; padding: 13px 22px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: var(--night); box-shadow: 0 10px 24px rgba(255, 176, 32, 0.35); }
.btn.gold:hover { background: #ffc24a; box-shadow: 0 14px 28px rgba(255, 176, 32, 0.45); }
.btn.ghost { border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.platforms li {
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
}
.platforms li.soon { opacity: 0.75; font-weight: 500; }
.note { font-size: 13px; opacity: 0.75; margin: 12px 0 0; }
.phone-wrap { position: relative; justify-self: center; }
.phone-wrap::before {
  content: ""; position: absolute; inset: 10% -10% -5%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 176, 32, 0.35), rgba(255, 176, 32, 0));
  filter: blur(10px);
}
.phone {
  position: relative; z-index: 1; display: block; width: min(300px, 80vw); border-radius: 36px; border: 8px solid var(--night);
  box-shadow: var(--shadow-lg); transform: rotate(-2deg); transition: transform 0.4s;
}
.phone-wrap:hover .phone { transform: rotate(0deg) translateY(-4px); }

/* ---------------------------------------------------------------- numeri */
.stats { position: relative; z-index: 2; margin-top: -36px; }
.stats ul {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stats li { padding: 18px 20px; text-align: center; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; background: linear-gradient(135deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .stats b { background: linear-gradient(135deg, #aab3ff, #d2a8ff); -webkit-background-clip: text; background-clip: text; } }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- sezioni */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); }
h2 { font-size: clamp(26px, 3.5vw, 34px); margin: 0 0 8px; letter-spacing: -0.02em; line-height: 1.15; }
.sub { color: var(--muted); margin: 0 0 36px; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature i {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px;
  font-style: normal; font-size: 22px; background: linear-gradient(135deg, rgba(59, 76, 202, 0.14), rgba(142, 68, 214, 0.14));
}
.feature b { display: block; font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature span { color: var(--muted); font-size: 15px; }

/* Come funziona: tre passi numerati, in fila sul computer e in colonna sul telefono. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-weight: 800; font-size: 18px;
}
.step b { display: block; font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.step span { color: var(--muted); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.shots figure { margin: 0; text-align: center; }
.shots img {
  width: 100%; border-radius: 24px; border: 6px solid var(--night); box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.shots figure:hover img { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(38, 33, 92, 0.25); }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; font-weight: 600; }

/* Invito finale: stesso gradiente della testata. */
.cta-band { padding: 0 0 72px; }
.cta-band .inner {
  position: relative; overflow: hidden; border-radius: 28px; padding: 44px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: var(--shadow-lg);
}
.cta-band .inner::before {
  content: ""; position: absolute; width: 480px; height: 480px; right: -120px; top: -240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
}
.cta-band h2 { position: relative; margin-bottom: 10px; }
.cta-band p { position: relative; margin: 0 0 24px; opacity: 0.9; font-size: 17px; }
.cta-band .cta { position: relative; justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 0 0 14px; }
footer .links .brand { color: var(--ink); font-size: 16px; margin-right: auto; }
footer .links .brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: none; }
footer p { margin: 8px 0; }

/* ---------------------------------------------------------------- pagine di testo (privacy) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 64px; }
.doc h1 { font-size: 34px; margin-bottom: 4px; letter-spacing: -0.02em; }
.doc h2 { font-size: 21px; margin-top: 32px; }
.doc .date { color: var(--muted); }
.topbar { background: linear-gradient(135deg, var(--blue), var(--violet)); padding: 16px 0; }

[data-lang="en"] [lang="it"], [data-lang="it"] [lang="en"] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature, .shots img, .phone { transition: none; }
}
@media (max-width: 900px) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  header.hero { padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 32px; gap: 32px; }
  .phone { width: min(260px, 72vw); transform: none; }
  section { padding: 48px 0; }
  .cta-band .inner { padding: 36px 20px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
}
