/* Fatturami: sito di presentazione e informativa privacy. Nessuna risorsa esterna: niente font, script o
   statistiche di terze parti, coerente con quello che dice l'informativa. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --alt: #eceae4;
  --ink: #1b1f27;
  --muted: #5a606b;
  --line: rgba(27, 31, 39, .13);
  --brand: #1f4e8c;
  --brand-ink: #ffffff;
  --brand-soft: #e3ebf6;
  --ok: #1d7a3e;
  --err: #b3261e;

  --wrap: 1200px;
  --gut: clamp(20px, 5vw, 80px);
  --r: 16px;
  --r-sm: 10px;

  --font: "Segoe UI Variable Text", "Segoe UI", "SF Pro Text", -apple-system, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "SF Pro Display", -apple-system, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --surface: #1a1e26;
    --alt: #1f242d;
    --ink: #eceef2;
    --muted: #a5abb6;
    --line: rgba(236, 238, 242, .14);
    --brand: #7fa8e0;
    --brand-ink: #0d1420;
    --brand-soft: #1c2a3f;
    --ok: #6fcf8f;
    --err: #ff8a80;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 600 20px/1 var(--font-display); letter-spacing: -.01em;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 12px calc(100% - 10px);
  transition: background-size .25s ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background-size: calc(100% - 24px) 1px; }
@media (max-width: 720px) {
  .nav__links .opt { display: none; }
  .nav__links a { padding: 0 8px; background-position: 8px calc(100% - 10px); }
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { box-shadow: 0 6px 18px -8px var(--brand); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { background: var(--surface); }
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
@media (max-width: 560px) { .btn-row .btn { flex: 1 1 100%; } }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); max-width: 36em; }
.label { font-size: 14px; font-weight: 500; color: var(--muted); }
p { margin: 0; }
.stack > * + * { margin-top: 16px; }

/* ---------- Sections ---------- */
section { padding-block: clamp(72px, 10vw, 128px); }
section + section { border-top: 0; }
.ground-alt { background: var(--alt); }
.ground-brand { background: var(--brand); color: var(--brand-ink); }
.ground-brand h2, .ground-brand h3 { color: var(--brand-ink); }
.ground-brand a { color: var(--brand-ink); }
.ground-brand .muted { color: color-mix(in srgb, var(--brand-ink) 78%, transparent); }
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.head p { margin-top: 16px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__text > * + * { margin-top: 24px; }
.hero__note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--brand);
  background: var(--brand-soft); padding: 6px 12px; border-radius: 999px;
}
.hero__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0;
  font-size: 15px; color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.8 8.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.8 8.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero__art { display: flex; justify-content: center; position: relative; }
.hero__art::before {
  content: ""; position: absolute; inset: 8% -4% 6% -4%; border-radius: 40px;
  background: var(--brand-soft); z-index: 0;
}

/* Hero entrance, once on load */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter .7s cubic-bezier(.2, .7, .2, 1) both; }
  .enter--2 { animation-delay: .08s; }
  .enter--3 { animation-delay: .16s; }
  .enter--4 { animation-delay: .24s; }
  .enter--art { animation: enter-art .9s cubic-bezier(.2, .7, .2, 1) .12s both; }
  @keyframes enter { from { opacity: 0; transform: translateY(14px); } }
  @keyframes enter-art { from { opacity: 0; transform: translateY(28px) scale(.97); } }
}

/* ---------- Phone frame ---------- */
.phone {
  position: relative; z-index: 1;
  width: min(100%, 300px);
  padding: 10px; border-radius: 38px;
  background: #0f1217;
  box-shadow: 0 30px 60px -30px rgba(15, 18, 23, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img { border-radius: 29px; width: 100%; height: auto; aspect-ratio: 9 / 20; object-fit: cover; }
.phone--sm { width: min(100%, 240px); padding: 8px; border-radius: 32px; }
.phone--sm img { border-radius: 25px; }

/* ---------- Split ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.split__art { display: flex; justify-content: center; gap: 24px; }
.split__art .phone:nth-child(2) { margin-top: 64px; }

.list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; }
.list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.list strong { display: block; font-weight: 600; }
.list span { color: var(--muted); font-size: 16px; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -24px rgba(15, 18, 23, .35); }
.card__shot {
  background: var(--alt); border-radius: var(--r-sm); overflow: hidden;
  aspect-ratio: 4 / 5; margin: -8px -8px 8px;
}
.card__shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .4s ease;
}
.card:hover .card__shot img { transform: scale(1.03); }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Data band ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.pillar { border-top: 1px solid color-mix(in srgb, var(--brand-ink) 35%, transparent); padding-top: 20px; }
.pillar h3 { margin-bottom: 8px; }
.band-foot { margin-top: 48px; }
.ground-brand .btn--primary { background: var(--brand-ink); color: var(--brand); }
.ground-brand .btn--primary:hover { box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
@media (prefers-color-scheme: dark) {
  /* La fascia resta blu scuro anche nel tema scuro, non azzurro acceso. */
  .ground-brand { --brand: #1f4e8c; --brand-ink: #ffffff; background: #1a3f72; }
}

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.platform { padding: 32px; }
.platform .label { display: block; margin-bottom: 8px; }
.platform p { margin-top: 12px; color: var(--muted); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: 24px; }
.plan__options { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.plan__or { color: var(--muted); font-size: 16px; }
.plan { padding: 32px; gap: 8px; }
.plan .ticks { margin-top: 16px; }
.plan .ticks li:last-child { border-bottom: 0; }
.plan__price { color: var(--muted); font-size: 16px; }
.plan__price span {
  color: var(--ink); font: 600 44px/1.1 var(--font-display); letter-spacing: -.02em; margin-right: 4px;
}
.plan--best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan__note {
  margin-top: 8px; align-self: flex-start;
  font-size: 14px; font-weight: 500; color: var(--brand);
  background: var(--brand-soft); padding: 6px 12px; border-radius: 12px;
}

/* ---------- Two columns ---------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.ticks, .crosses { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li, .crosses li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.ticks li::before, .crosses li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 18px; height: 18px;
}
.ticks li::before {
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.8 8.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.8 8.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.crosses li::before {
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 3.2 8 6.9l3.7-3.7 1.1 1.1L9.1 8l3.7 3.7-1.1 1.1L8 9.1l-3.7 3.7-1.1-1.1L6.9 8 3.2 4.3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 3.2 8 6.9l3.7-3.7 1.1 1.1L9.1 8l3.7 3.7-1.1 1.1L8 9.1l-3.7 3.7-1.1-1.1L6.9 8 3.2 4.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.notice {
  grid-column: 1 / -1;
  padding: 24px 28px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
}
.notice h3 { margin-bottom: 8px; }
.notice p { color: var(--muted); font-size: 16px; max-width: 72em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px; font-size: 15px; color: var(--muted); }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; padding: 0; margin: 0; }
.footer__links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer .legal { grid-column: 1 / -1; font-size: 14px; }

/* ---------- Legal page ---------- */
.doc { padding-block: clamp(48px, 7vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 52px); }
.doc .updated { margin-top: 16px; color: var(--muted); font-size: 15px; }
.doc h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 56px; margin-bottom: 16px; }
.doc p, .doc li { font-size: 17px; }
.doc p + p { margin-top: 16px; }
.doc ul { padding-left: 22px; margin: 16px 0 0; }
.doc li + li { margin-top: 10px; }
.summary {
  margin-top: 40px; padding: 28px 32px; border-radius: var(--r);
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.summary h2 { margin-top: 0; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-size: 15px; color: var(--muted); }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan--life { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero .wrap, .split, .cols, .platforms, .plans { grid-template-columns: minmax(0, 1fr); }
  .hero__art { order: 2; }
  .split__art .phone:nth-child(2) { margin-top: 40px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card__shot { aspect-ratio: 4 / 3; }
  .phone { width: min(100%, 260px); }
  .split__art { gap: 12px; }
  .split__art .phone--sm { width: calc(50% - 6px); padding: 6px; border-radius: 26px; }
  .split__art .phone--sm img { border-radius: 20px; }
  .platform { padding: 24px; }
  .summary { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
