/* ItaliaZap — landing /italiazap. Tema unico scuro, nessuna dipendenza esterna. */

:root {
  --bg: #050505;
  --surface: #0d0d0f;
  --surface-2: #141417;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #a0a0a0;
  --red: #ff1e2d;
  --red-soft: rgba(255, 30, 45, 0.14);
  --red-glow: rgba(255, 30, 45, 0.35);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.ico {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 18px; height: 18px; }

.eyebrow {
  color: var(--red);
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 14px;
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 30px -8px var(--red-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--red-glow); }
.btn--ghost { border-color: var(--line-strong); color: #fff; background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.05); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn--large { min-height: 54px; padding: 0 28px; }
.btn--xl { min-height: 60px; padding: 0 34px; font-size: 16px; }

.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--surface-2); color: #fff; border: 1px solid var(--line-strong);
  cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.icon-btn:hover { border-color: var(--red); }
.icon-btn:disabled { opacity: 0.35; cursor: default; border-color: var(--line); }

/* ---------- Barra superiore ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__word { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand__word span { color: var(--red); }
.topnav { display: flex; gap: 28px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.topnav a:hover { color: #fff; }
.topbar .btn { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(255, 30, 45, 0.22), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(255, 30, 45, 0.08), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
.hero__brand {
  display: block; margin-bottom: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; color: var(--red);
}
.hero__line {
  display: block;
  font-size: clamp(52px, 8.4vw, 104px); font-weight: 900; letter-spacing: -0.045em; line-height: 0.95;
  text-transform: uppercase;
}
.hero__line + .hero__line { color: var(--red); }
.hero__sub { margin-top: 28px; max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); color: #d6d6d6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__store { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
.store-badge img { width: 170px; height: auto; }
.hero__note { font-size: 14px; font-weight: 600; line-height: 1.5; }
.hero__note span { color: var(--muted); font-weight: 400; }

.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }

.phone {
  position: relative;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(160deg, #26262b 0%, #0b0b0d 45%, #1a1a1e 100%);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 90px -20px var(--red-glow);
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); z-index: 2;
}
.phone img { border-radius: 36px; width: 100%; height: auto; }
.phone--front { width: 300px; z-index: 2; transform: translateX(46px); animation: float 7s ease-in-out infinite; }
.phone--back {
  position: absolute; width: 250px; z-index: 1;
  transform: translateX(-120px) rotate(-7deg); opacity: 0.55;
  filter: saturate(0.85);
}
.phone--solo { width: 300px; margin: 0 auto; }

@keyframes float {
  0%, 100% { transform: translateX(46px) translateY(0); }
  50% { transform: translateX(46px) translateY(-8px); }
}

/* ---------- Sezioni ---------- */
.section { padding: var(--section-y) 0; }
.section--tint { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__intro { margin-top: 16px; color: var(--muted); font-size: 18px; }
.lead { margin-top: 20px; color: #d0d0d0; font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(40px, 7vw, 96px); }
.split--reverse { grid-template-columns: 1.1fr 0.9fr; }
.split__media { display: flex; justify-content: center; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips li {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  font-size: 14px; color: #e6e6e6;
}

/* ---------- Card funzioni ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 30, 45, 0.45); box-shadow: 0 18px 40px -24px var(--red-glow); }
.card .ico {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  color: var(--red); background: var(--red-soft);
}
.card h3 { margin-top: 20px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Dispositivi ---------- */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.device {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
}
.device .ico { width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.device h3 { font-size: 17px; font-weight: 700; }
.device p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.poster {
  width: 340px; max-width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 90px -30px var(--red-glow);
  transition: transform 0.4s ease;
}
.poster:hover { transform: translateY(-4px); }

/* ---------- Galleria screenshot ---------- */
.gallery__nav { display: flex; gap: 10px; }
.gallery {
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 28px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: #333 transparent;
}
.gallery:focus-visible { outline-offset: -2px; }
.shot { flex: 0 0 auto; width: 260px; scroll-snap-align: start; }
.shot img {
  border-radius: 22px; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shot:hover img { transform: translateY(-4px); box-shadow: 0 30px 60px -28px var(--red-glow); }
.shot figcaption { margin-top: 14px; font-size: 15px; font-weight: 600; color: #e6e6e6; }

/* ---------- Passi ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.step { padding: 28px 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.step__num {
  display: block; font-size: 44px; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--red);
}
.step h3 { margin-top: 20px; font-size: 19px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.disclaimer {
  margin-top: 32px; padding: 18px 22px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  color: var(--muted); font-size: 14px; max-width: 820px;
}

/* ---------- Trasparenza ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.fact .ico { color: #fff; opacity: 0.85; }
.fact h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
.fact p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.privacy-note { margin-top: 28px; color: var(--muted); font-size: 15px; }
.privacy-note a { color: #fff; text-underline-offset: 3px; }
.privacy-note a:hover { color: var(--red); }

/* ---------- CTA Google Play ---------- */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 40px;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 32px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 30, 45, 0.28), transparent 60%),
    linear-gradient(160deg, #141417 0%, #0a0a0b 100%);
  border: 1px solid rgba(255, 30, 45, 0.25);
}
.cta__mark { width: 64px; height: 64px; margin-bottom: 20px; }
.cta h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -0.035em; }
.cta p { margin-top: 14px; color: #d0d0d0; font-size: 19px; }
.cta .btn { margin-top: 32px; }
.cta__qr { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.qr { width: 170px; text-align: center; }
.qr img { width: 170px; height: 170px; padding: 10px; background: #fff; border-radius: 18px; }
.qr figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 0; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin-top: 32px; color: #6f6f6f; font-size: 13px; }

/* ---------- Pagina privacy ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.doc .doc__date { margin-top: 12px; color: var(--muted); font-size: 14px; }
.doc h2 { margin-top: 44px; font-size: 24px; font-weight: 700; }
.doc p, .doc li { color: #d0d0d0; }
.doc p { margin-top: 16px; }
.doc ul { margin-top: 16px; display: grid; gap: 14px; }
.doc li { padding-left: 18px; position: relative; }
.doc li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.doc strong { color: #fff; }
.doc a { color: #fff; text-underline-offset: 3px; }
.doc__back { display: inline-flex; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 15px; }
.doc__back:hover { color: #fff; }

/* ---------- Comparsa (solo con JS attivo, mai contenuto nascosto senza JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps, .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 959px) {
  .topnav { display: none; }
  .topbar .btn { margin-left: auto; }
  /* Mobile: il telefono sale subito sotto i pulsanti, il badge Play scende dopo. */
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { display: contents; }
  .hero__visual { order: 2; min-height: 0; margin-top: 48px; }
  .hero__store { order: 3; margin-top: 44px; }
  .phone--front { width: min(300px, 64vw); transform: translateX(8%); }
  .phone--back { width: min(250px, 46vw); transform: translateX(-42%) rotate(-7deg); }
  @keyframes float {
    0%, 100% { transform: translateX(8%) translateY(0); }
    50% { transform: translateX(8%) translateY(-8px); }
  }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta__mark { margin-left: auto; margin-right: auto; }
  .gallery__nav { display: none; }
  .shot { width: 62vw; max-width: 280px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__store { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cards, .steps, .facts, .devices { grid-template-columns: 1fr; }
  .card { padding: 22px 20px; }
  .phone { border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
  .btn--xl { width: 100%; }
  .footer__inner { flex-direction: column; }
}

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