/* Tags — sito. Nessuna risorsa esterna: font di sistema, niente cookie né tracciamento. */
:root {
  --primary: #5b4fe9;
  --primary-2: #7a6bff;
  --primary-3: #3f31c8;
  --text: #15151f;
  --muted: #5d5d70;
  --bg: #ffffff;
  --surface: #f4f3fb;
  --card: #ffffff;
  --border: #e6e4f2;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(40, 25, 140, 0.18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f1f0fa;
    --muted: #a9a7c2;
    --bg: #0d0c16;
    --surface: #16142a;
    --card: #1b1932;
    --border: #2a2748;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
a:focus-visible, summary:focus-visible, .store:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 3px; border-radius: 10px; }
img { max-width: 100%; height: auto; }

/* intestazione */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.brand--small { font-size: 1rem; }
.brand--small img { border-radius: 6px; }
.top nav { display: flex; gap: clamp(10px, 2.4vw, 26px); flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--primary); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px);
  padding: clamp(32px, 6vw, 84px) clamp(16px, 6vw, 88px);
  background:
    radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--primary-2) 26%, transparent), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--primary-3) 22%, transparent), transparent 60%);
}
.kicker { margin: 0 0 10px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.hero h1 { margin: 0; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -0.035em; }
.lead { margin: 18px 0 26px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 0; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--primary); font-weight: 700; font-size: 0.9rem; }

/* pulsanti degli store */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores--center { justify-content: center; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 11px 20px 11px 16px; border-radius: 14px; min-height: 56px;
  background: #111018; color: #fff; border: 1px solid #2b2a38;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.store--primary { background: linear-gradient(135deg, var(--primary-2), var(--primary) 55%, var(--primary-3)); border-color: transparent; }
.store--secondary { padding: 4px 10px; min-height: 0; background: none; border: none; color: var(--primary); display: inline; }
.store--secondary .store__icon, .store--secondary small { display: none; }
.store--secondary strong { font-weight: 700; text-decoration: underline; }
.store--soon { opacity: 0.75; cursor: default; }
.store--soon:hover { transform: none; box-shadow: none; }
.store__icon { font-size: 1.2rem; line-height: 1; display: inline-flex; }
.store__text { display: flex; flex-direction: column; line-height: 1.1; }
.store__text small { font-size: 0.72rem; opacity: 0.85; }
.store__text strong { font-size: 1.15rem; letter-spacing: -0.01em; }
.store-other { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* telefoni con gli screenshot */
.hero__phones { position: relative; display: flex; justify-content: center; min-height: 420px; }
.phone {
  margin: 0; width: min(270px, 62vw); padding: 10px; border-radius: 40px;
  background: #101018; box-shadow: var(--shadow), inset 0 0 0 2px #2c2c3a;
}
.phone img { display: block; width: 100%; border-radius: 31px; }
.hero__phones .phone { position: relative; z-index: 2; }
.hero__phones .phone--back { position: absolute; z-index: 1; transform: translate(42%, 7%) rotate(7deg) scale(0.9); opacity: 0.92; }

/* sezioni */
.section { padding: clamp(48px, 7vw, 96px) clamp(16px, 6vw, 88px); }
.section--tint { background: var(--surface); }
.section h2 { margin: 0; text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
.section__lead { text-align: center; color: var(--muted); max-width: 42em; margin: 12px auto 0; font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 1.15rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }
.card__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3)); color: #fff; font-weight: 800; font-size: 1.25rem;
}
.gallery { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding: 0; margin: 40px 0 0; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.steps h3 { margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.faq { max-width: 760px; margin: 34px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.anchor { display: block; position: relative; top: -80px; }

/* pagine legali */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 5vw, 32px) 64px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em; margin: 0 0 6px; }
.doc h2 { font-size: 1.25rem; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc .note { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; }
.doc .steps-list li { margin: 6px 0; }

/* piè di pagina */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 28px clamp(16px, 6vw, 88px); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--primary); }
.foot p { margin: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero__phones { min-height: 0; margin-top: 8px; }
  .hero__phones .phone--back { display: none; }
  .top nav a:not(#lang-toggle) { display: none; }
}

/* pagina dei link nelle email (action.html): verifica email, nuova password, cambio email */
.auth-page { min-height: 100vh; display: flex; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--primary) 22%, var(--bg)) 0%, var(--bg) 65%); }
.auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 5vw, 48px); }
.auth__card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 6vw, 36px); text-align: center; }
.auth__brand { justify-content: center; margin-bottom: 22px; }
.auth__brand img { border-radius: 12px; }
.auth__card h1 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.02em; }
.auth__text { margin: 0 0 18px; color: var(--muted); overflow-wrap: anywhere; }
.auth__text strong { color: var(--text); }
.auth__field { display: block; text-align: left; margin: 0 0 14px; font-weight: 600; font-size: 0.92rem; }
.auth__field input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.auth__field input:focus { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); border-color: var(--primary); }
.auth__check { display: flex; align-items: center; gap: 8px; justify-content: flex-start; margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.auth__error { margin: 0 0 14px; color: #d93b4c; font-weight: 600; text-align: left; }
.auth__button { display: block; width: 100%; padding: 13px 18px; margin-top: 10px; font: inherit; font-weight: 700; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--primary-2), var(--primary) 55%, var(--primary-3)); border: 0; border-radius: 14px; cursor: pointer; }
.auth__button:disabled { opacity: 0.6; cursor: default; }
.auth__button--secondary { color: var(--primary); background: var(--surface); border: 1px solid var(--border); }
.auth__badge { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; font-size: 1.9rem; font-weight: 800; color: #fff; }
.auth__badge--ok { background: #1fa971; }
.auth__badge--bad { background: #d93b4c; }
.auth__spinner { width: 36px; height: 36px; margin: 8px auto 14px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: auth-spin 0.9s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth__spinner { animation: none; } }
[hidden] { display: none !important; }
