/* Duel Album – pagina dell'app. Tema scuro come l'app e le immagini promozionali.
   Dopo ogni modifica cambia VERSIONE in script/genera-pagine.js e rigenera le pagine. */

:root {
  --bg: #070b1c;
  --bg-2: #0d1330;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f5fb;
  --muted: #b9bdd6;
  --gold: #e2b14a;
  --accent: #7c5cff;
  --green: #30d158;
  --radius: 22px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(42, 36, 112, 0.75), transparent 70%),
    radial-gradient(900px 600px at -10% 10%, rgba(20, 36, 77, 0.8), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #f3cc74; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
strong { color: #fff; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #0b1024; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 28, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(226, 177, 74, 0.5); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: #fff; }
.lang { color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.lang:hover { border-color: var(--gold); color: var(--gold); }
.btn { background: var(--gold); color: #0b1024; text-decoration: none; font-weight: 800; font-size: 15px; padding: 9px 18px; border-radius: 999px; }
.btn:hover { background: #f3cc74; color: #0b1024; }
@media (max-width: 860px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------------------------------------------------------------- testi comuni */
.kicker {
  display: inline-block; color: var(--gold); border: 1.5px solid rgba(226, 177, 74, 0.6);
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
h1, h2 { letter-spacing: -0.025em; line-height: 1.12; margin: 16px 0 14px; }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 850; }
h1 span { color: var(--gold); }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
p { margin: 0 0 14px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

.checks, .points { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li, .points li { position: relative; padding-left: 32px; margin-bottom: 10px; color: var(--text); }
.checks li::before, .points li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(124, 92, 255, 0.22); color: #b9a8ff; font-weight: 900; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------------------------------------------------------- telefoni */
.phone {
  width: 260px; padding: 9px; border-radius: 44px;
  background: linear-gradient(145deg, #4a4f6a, #11131f);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1305; border-radius: 35px; background: #000; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.lead { font-size: 19px; color: #d5d8ec; max-width: 600px; }
.points li { font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.store { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.15s ease; }
.store:hover { transform: translateY(-2px); }
.store img { height: 50px; width: auto; }
.note { font-size: 14px; margin-top: 12px; }

.hero-phones { position: relative; height: 610px; }
.hero-phones .phone { position: absolute; top: 40px; }
.hero-phones .center { left: 50%; top: 0; width: 280px; margin-left: -140px; z-index: 3; }
.hero-phones .left { left: 0; transform: rotate(-8deg); z-index: 1; width: 240px; }
.hero-phones .right { right: 0; transform: rotate(8deg); z-index: 2; width: 240px; }
.hero-phones::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%; border: 2px solid rgba(226, 177, 74, 0.22);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.25), transparent 65%);
}

/* ---------------------------------------------------------------- numeri */
.stats { padding: 10px 0 30px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-align: center; }
.stat strong { display: block; font-size: 30px; color: var(--gold); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- funzioni */
.feature { padding: 70px 0; scroll-margin-top: 64px; }
.feature + .feature { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.feature-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.rev .copy { order: 2; }
.feature .copy { max-width: 560px; }
.phones { position: relative; display: flex; justify-content: center; min-height: 600px; align-items: center; }
.phones.two .front { position: relative; z-index: 2; transform: rotate(-4deg) translateX(-60px); }
.phones.two .back { position: absolute; z-index: 1; transform: rotate(5deg) translateX(110px) translateY(30px); width: 240px; opacity: 0.96; }

/* ---------------------------------------------------------------- Edison */
.edison {
  margin-block: 20px 40px; padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(226, 177, 74, 0.13), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(226, 177, 74, 0.35);
}
.edison h2 { font-size: 24px; margin: 0 0 8px; }
.edison p { margin: 0; }

/* ---------------------------------------------------------------- PRO */
.pro { padding: 70px 0; scroll-margin-top: 64px; text-align: center; }
.pro .intro { max-width: 700px; margin: 0 auto 26px; }
.table-wrap { overflow-x: auto; max-width: 820px; margin: 0 auto 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
thead th:last-child { color: var(--gold); }
tbody th { font-weight: 600; color: var(--text); }
.c { text-align: center; width: 90px; }
.yes { color: var(--green); font-weight: 900; font-size: 19px; }
.no { color: #6b6f86; font-weight: 900; font-size: 19px; }

/* ---------------------------------------------------------------- FAQ */
.faq { padding: 60px 0; scroll-margin-top: 64px; }
.faq h2 { text-align: center; margin-bottom: 26px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; padding: 0 20px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--gold); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 6px; }

/* ---------------------------------------------------------------- download finale */
.final { padding: 70px 0 90px; text-align: center; scroll-margin-top: 64px; }
.final-logo { border-radius: 22px; box-shadow: 0 0 0 2px rgba(226, 177, 74, 0.55), 0 20px 50px rgba(0, 0, 0, 0.6); }
.final .stores { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 13.5px; }
.foot p { font-size: 13.5px; max-width: 900px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.foot-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--gold); }

.notfound { padding: 90px 0; }
.notfound h1 { font-size: 80px; color: var(--gold); }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-in, .feature-in { grid-template-columns: 1fr; gap: 30px; }
  .feature.rev .copy { order: 0; }
  .hero-phones { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-phones .center { width: 240px; margin-left: -120px; }
  .hero-phones .left, .hero-phones .right { width: 200px; }
  .hero-phones::before { width: 480px; height: 480px; margin: -240px 0 0 -240px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 50px 0; }
  .phones { min-height: 0; }
  .phones .phone { width: 230px; }
  .phones.two .front { transform: rotate(-4deg) translateX(-50px); }
  .phones.two .back { width: 210px; transform: rotate(5deg) translateX(80px) translateY(24px); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-phones { height: 430px; }
  .hero-phones .center { width: 200px; margin-left: -100px; }
  .hero-phones .left, .hero-phones .right { width: 160px; top: 50px; }
  .hero-phones::before { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .phones .phone { width: 200px; border-radius: 36px; padding: 7px; }
  .phones .phone img { border-radius: 29px; }
  .phones.two .front { transform: rotate(-4deg) translateX(-40px); }
  .phones.two .back { width: 180px; transform: rotate(5deg) translateX(60px) translateY(20px); }
  .stat strong { font-size: 25px; }
  th, td { padding: 11px 12px; }
  .c { width: 64px; }
  .store img { height: 46px; }
}
