/* ==========================================================================
   Web del Futuro — styles.css
   Chiaro, arioso, amichevole: bianco + blu, bordi sottili, angoli morbidi.
   Nessun framework, nessuna dipendenza. Tutti i token in :root.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Blu di marca */
  --blue-50:  #eff4ff;
  --blue-100: #dde8ff;
  --blue-200: #c3d6ff;
  --blue-400: #5b8cff;
  --blue-500: #2f6bff;
  --blue-600: #1553f0;
  --blue-700: #0f3fc4;
  --navy-900: #08183a;

  /* Neutri caldi-freddi */
  --ink:      #0c1b33;
  --ink-2:    #3d4f6e;
  --muted:    #6b7d9c;
  --line:     #e6ecf7;
  --line-2:   #f0f4fc;
  --bg:       #ffffff;
  --bg-soft:  #f4f7ff;
  --card:     #ffffff;

  /* Accento caldo, usato con parsimonia (stelle, dettagli) */
  --amber:    #f5b301;

  /* Globo */
  --globe-line: var(--blue-600);
  --globe-hi:   #b6cfff;
  --globe-lo:   #1553f0;

  /* Forma */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 2px 4px rgba(12, 27, 51, .04);
  --shadow-md: 0 12px 28px -16px rgba(12, 27, 51, .16);
  --shadow-lg: 0 30px 60px -34px rgba(12, 27, 51, .26);

  /* Layout */
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1160px;
  --nav-h: 70px;

  --ease: cubic-bezier(.22, .68, 0, 1);
}

/* ── Reset essenziale ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(16px, .4vw + 15px, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 3.85rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.09rem; font-weight: 700; letter-spacing: -.02em; }
p  { text-wrap: pretty; }

em { font-style: normal; color: var(--blue-600); font-weight: 600; }

/* Evidenziatore: friendly, resta nella palette blu */
.mark {
  color: var(--blue-600);
  background: linear-gradient(transparent 58%, var(--blue-100) 58%, var(--blue-100) 94%, transparent 94%);
  padding-inline: .06em;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; translate: -50% -200%;
  z-index: 100; background: var(--blue-600); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: translate .2s var(--ease);
}
.skip-link:focus { translate: -50% 0; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 780px; }

.section { padding-block: clamp(60px, 8vw, 108px); }
.section--soft {
  background: var(--bg-soft);
}

.section__head { max-width: 660px; margin-bottom: clamp(34px, 4.5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__sub { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-size: .79rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--blue-600);
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  margin-top: .5em;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
.eyebrow--light { color: #a9c6ff; }
@keyframes pulse { 50% { opacity: .35; } }

.grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.mt { margin-top: clamp(22px, 3vw, 34px); }

/* ── Bottoni ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; letter-spacing: -.01em;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue-600); color: #fff;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--blue-600) 80%, transparent);
}
.btn--primary:hover { background: var(--blue-700); }

.btn--ghost {
  background: #fff; color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--blue-200); background: var(--blue-50); }

.btn--sm  { padding: 9px 18px; font-size: .93rem; }
.btn--lg  { padding: 15px 30px; font-size: 1.02rem; }
.btn--full { width: 100%; }

/* ── Logo / globo rotante ───────────────────────────────────────────────── */
/* Globo 3D vero: i meridiani sono cerchi ruotati su rotateY dentro un
   contenitore preserve-3d che gira. L'animazione sta sul compositore e
   nessuna geometria degenera, quindi non sfarfalla mai. */
.globe {
  --gw: 1.5px;                 /* spessore linee */
  --gc: var(--globe-line);     /* colore linee */
  position: relative;
  display: block;
  flex: none;
  aspect-ratio: 1;
}
.globe::before {               /* silhouette della sfera */
  content: "";
  position: absolute; inset: 0;
  border: var(--gw) solid var(--gc);
  border-radius: 50%;
}
.globe__lat, .globe__spin { position: absolute; inset: 0; }

/* Paralleli: ellissi statiche, stesse proporzioni della versione precedente */
.globe__lat i {
  position: absolute; left: 50%;
  translate: -50% 0;
  border: var(--gw) solid var(--gc);
  border-radius: 50%;
}
.globe__lat i:nth-child(1) { width: 100%; height: 35%; top: 32.5%; }
.globe__lat i:nth-child(2) { width: 86%;  height: 27%; top: 15.25%; }
.globe__lat i:nth-child(3) { width: 86%;  height: 27%; top: 57.75%; }

/* Meridiani */
.globe__spin {
  transform-style: preserve-3d;
  animation: globe-spin 14s linear infinite;
  will-change: transform;
}
.globe__spin i {
  position: absolute; inset: 0;
  border: var(--gw) solid var(--gc);
  border-radius: 50%;
}
.globe__spin i:nth-child(1) { transform: rotateY(0deg); }
.globe__spin i:nth-child(2) { transform: rotateY(45deg); }
.globe__spin i:nth-child(3) { transform: rotateY(90deg); }
.globe__spin i:nth-child(4) { transform: rotateY(135deg); }

@keyframes globe-spin { to { transform: rotateY(1turn); } }

/* Versione piccola (logo): due meridiani che scorrono a velocità costante.
   Perché non la rotazione 3D come nella hero: in proiezione ortografica la
   larghezza di un meridiano segue cos(θ), quindi vicino ai bordi rallenta fino
   a sembrare fermo, e periodicamente due meridiani hanno la stessa larghezza e
   si sovrappongono (da tre se ne vedono due). A 30px si nota, e i bordi quasi di
   taglio sfarfallano per l'antialiasing.
   Qui invece un'unica ellisse: i suoi due fianchi SONO i due meridiani stondati,
   sempre presenti e sempre simmetrici, quindi non possono né sovrapporsi né
   ridursi a uno. Animiamo la larghezza in modo lineare (non con un coseno): gli
   archi convergono verso il centro e tornano al lembo a velocità costante, e
   l'inversione ai due estremi è istantanea — nessuna pausa percepibile.
   La larghezza oscilla fra 92% e 22% e non arriva ai limiti: a 100% l'ellisse
   coinciderebbe con la silhouette (archi invisibili), sotto il 15% i due bordi si
   toccherebbero facendo sfarfallare l'antialiasing. Restando dentro quei margini
   il tratto è sempre 2px pieni. */
.globe--sm { width: 30px; --gw: 2px; }
.globe--sm .globe__lat i:nth-child(2),
.globe--sm .globe__lat i:nth-child(3),
.globe--sm .globe__spin i + i { display: none; }

.globe--sm .globe__spin { animation: none; transform-style: flat; }
.globe--sm .globe__spin i {
  inset: 0 auto;
  left: 50%;
  height: 100%;
  translate: -50% 0;
  transform: none;
  animation: mer-breathe 6s linear infinite;
}

@keyframes mer-breathe {
  0%   { width: 92%; }
  50%  { width: 22%; }
  100% { width: 92%; }
}

.globe--xl {
  width: 100%; height: 100%;
  --gc: rgba(255, 255, 255, .45);
  --gw: 1.4px;
}
.globe--xl::before { border-color: rgba(255, 255, 255, .8); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--ink); letter-spacing: -.035em;
  font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand__accent { color: var(--blue-600); }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background-color .25s;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .94);
}
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links > a:not(.btn) {
  color: var(--ink-2); font-size: .95rem; font-weight: 500;
  padding: 8px 13px; border-radius: 999px;
  transition: color .18s, background-color .18s;
}
.nav__links > a:not(.btn):hover {
  color: var(--blue-600); background: var(--blue-50); text-decoration: none;
}
.nav__links > .btn { margin-left: 10px; }

/* Burger: stessa grammatica delle pillole del sito (tondo, bordo 1px, ombra soft) */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer;
  box-shadow: var(--shadow-sm);
  padding: 14px 13px;
  flex-direction: column; justify-content: space-between;
  transition: border-color .2s, background-color .2s, transform .18s var(--ease);
}
.nav__toggle:hover { border-color: var(--blue-200); background: var(--blue-50); }
.nav__toggle:active { transform: scale(.96); }
.nav__toggle[aria-expanded="true"] {
  border-color: var(--blue-200); background: var(--blue-50);
}
.nav__toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--blue-600);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle span:nth-child(2) { width: 72%; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 26px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; translate: 0 -10px;
    transition: opacity .22s var(--ease), translate .22s var(--ease), visibility .22s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; translate: 0 0; }
  .nav__links > a:not(.btn) { padding: 13px 12px; font-size: 1.02rem; }
  .nav__links > .btn { margin: 10px 0 0; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(44px, 6vw, 72px);
  background:
    radial-gradient(90% 70% at 82% 8%, var(--blue-50), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.hero__copy { max-width: 600px; }
.hero .lead {
  font-size: clamp(1.05rem, .5vw + .96rem, 1.18rem);
  color: var(--muted);
  margin-top: 20px;
  max-width: 500px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Chip informative sotto la hero */
.chips {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chips li {
  display: flex; align-items: center; gap: 7px;
  font-size: .86rem; font-weight: 600; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px 7px 11px;
  box-shadow: var(--shadow-sm);
}
.chips li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--blue-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%231553f0' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}

/* Visual: globo + card della risposta AI */
.hero__visual {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
}
.orb {
  width: clamp(260px, 32vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, var(--globe-hi), var(--globe-lo) 70%);
  box-shadow:
    0 44px 90px -34px color-mix(in srgb, var(--blue-600) 50%, transparent),
    inset 0 0 60px -10px rgba(255, 255, 255, .3);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(-7px); }
  50%      { transform: translateY(9px); }
}

.chatcard {
  position: absolute;
  left: -8%; bottom: 4%;
  width: min(320px, 84%);
  padding: 16px 18px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  animation: float 9s ease-in-out infinite reverse;
}
.chatcard__head {
  display: flex; align-items: center; gap: 8px;
  font-size: .71rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 10px;
}
.chatcard__ai {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 8px;
  background: var(--blue-600); color: #fff;
  font-size: .62rem; letter-spacing: 0;
}
.chatcard__q { font-size: .92rem; font-weight: 700; color: var(--ink); }
.chatcard__a { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.chatcard__a mark {
  background: var(--blue-100);
  color: var(--ink); font-weight: 700; border-radius: 5px; padding: 0 4px;
}
.chatcard__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-2);
}
.chatcard__src { font-size: .74rem; color: var(--muted); }
.pill {
  font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-700);
}
.pill--ok { background: #e6f6ec; color: #0d7a3d; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.45rem);
  font-weight: 800; letter-spacing: -.045em;
  color: var(--blue-600);
  line-height: 1;
}
.stat span { display: block; margin-top: 8px; font-size: .93rem; color: var(--muted); }

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; order: 2; margin-top: 10px; }
  .hero .lead, .hero__copy { max-width: none; }
  .chatcard { left: 0; }
}

/* Sotto i 560px la card coprirebbe il globo: la mettiamo sotto, in colonna. */
@media (max-width: 560px) {
  .hero__visual { min-height: 0; align-items: start; gap: 0; }
  .orb { width: min(220px, 58vw); align-self: start; }
  .chatcard {
    position: static;
    width: 100%;
    margin-top: -40px;
    animation: none;
  }
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); }
.card__icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-50);
  margin-bottom: 16px;
}
.card__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--blue-600);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Infografica: ieri (lista di link) vs oggi (risposta AI) ─────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(14px, 2vw, 26px);
}
.split__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex; flex-direction: column;
}
.split__panel--new {
  border-color: var(--blue-200);
  background: linear-gradient(170deg, var(--blue-50), #fff 62%);
  box-shadow: var(--shadow-md);
}
.split__label {
  display: flex; align-items: center; gap: 9px;
  font-size: .88rem; font-weight: 600; color: var(--muted);
  margin-bottom: 18px;
}
.split__tag {
  font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: #eef1f7; color: var(--muted);
  padding: 4px 10px; border-radius: 999px;
}
.split__tag--now { background: var(--blue-600); color: #fff; }
.split__foot {
  font-size: .89rem; color: var(--muted);
  margin-top: auto; padding-top: 18px;
}
.split__panel--new .split__foot { color: var(--ink); font-weight: 600; }

.split__arrow { display: grid; place-items: center; }
.split__arrow svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--blue-400);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Finta lista di risultati */
.serp { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.serp li { display: grid; gap: 7px; }
.serp i {
  display: block; height: 8px; width: var(--w);
  border-radius: 99px; background: #e9edf5;
}
.serp i:first-child { height: 10px; background: #dbe2ee; }
/* La riga "tu": barre a sinistra, etichetta accanto — mai sovrapposta */
.serp li.serp__you { display: flex; align-items: center; gap: 12px; }
.serp__bars { flex: 1; min-width: 0; display: grid; gap: 7px; }
.serp__you i { background: var(--blue-100); }
.serp__you i:first-child { background: var(--blue-400); }
.serp__badge {
  flex: none;
  font-size: .64rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  color: var(--blue-700); background: var(--blue-50);
  border-radius: 999px; padding: 3px 9px;
}

/* Risposta generativa */
.answer {
  background: #fff;
  border: 1px solid var(--blue-100);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.answer__q { font-size: .92rem; font-weight: 700; color: var(--ink); }
.answer__a { font-size: .95rem; color: var(--ink-2); margin-top: 10px; }
.answer__a b {
  background: var(--blue-100); color: var(--ink);
  border-radius: 6px; padding: 1px 6px;
}
.answer__a span { color: var(--muted); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__arrow { rotate: 90deg; padding-block: 4px; }
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
}
.step__n {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-600); color: #fff;
  font-weight: 800; font-size: 1.02rem;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px -10px color-mix(in srgb, var(--blue-600) 85%, transparent);
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--muted); }
.step p strong { color: var(--ink); }

/* ── Griglia "cosa include" ─────────────────────────────────────────────── */
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.feat {
  background: #fff;
  padding: 22px 20px;
  transition: background-color .22s;
}
.feat:hover { background: var(--blue-50); }
.feat h3 {
  font-size: .99rem; margin-bottom: 5px;
  padding-left: 26px; position: relative;
}
.feat h3::before {
  content: ""; position: absolute; left: 0; top: .08em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%231553f0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.feat p { font-size: .9rem; color: var(--muted); padding-left: 26px; }

/* ── Liste con spunta ───────────────────────────────────────────────────── */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li {
  position: relative; padding-left: 30px;
  font-size: .94rem; color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background-color: #e6f6ec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%230d7a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.ticks--x li { color: var(--muted); }
.ticks--x li::before {
  background-color: #fdecea;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23c2331f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 11px;
}

/* ── Prezzo ─────────────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: clamp(22px, 3vw, 44px);
  align-items: stretch;
}
.price {
  position: relative;
  background: #fff;
  border: 1px solid var(--blue-200);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.price__badge {
  display: inline-block;
  font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-50);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.price__amount {
  display: flex; align-items: baseline; gap: 3px;
  font-size: clamp(3rem, 6vw, 4rem); font-weight: 800;
  letter-spacing: -.05em; color: var(--ink); line-height: 1;
}
.price__cur { font-size: .5em; font-weight: 700; color: var(--muted); }
.price__per {
  font-size: .26em; font-weight: 600; letter-spacing: -.01em;
  color: var(--muted); margin-left: 3px;
}
.price__per small { font-weight: 500; opacity: .8; }
.price__note { font-size: .9rem; color: var(--muted); margin: 12px 0 22px; }
.price .ticks { margin-bottom: 26px; }
.price__mini { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 13px; }

/* Una sola card di confronto: la nostra colonna è parte del paragone,
   non una seconda offerta. */
.cmp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.cmp h3 { font-size: 1.16rem; margin-bottom: 20px; }
.cmp__table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp__table th,
.cmp__table td {
  text-align: left;
  padding: 14px 16px;
  font-size: .93rem;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.cmp__table thead th,
.cmp__table thead td {
  padding-block: 11px;
  font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 0;
}
.cmp__table tbody th { color: var(--ink); font-weight: 600; padding-left: 0; }
.cmp__table tbody tr:last-child th,
.cmp__table tbody tr:last-child td { border-bottom: 0; }
.cmp__table small { display: block; font-size: .78rem; opacity: .8; margin-top: 3px; }
.cmp__table b { color: var(--blue-700); font-weight: 700; }

/* Colonna "noi": fascia azzurra continua, arrotondata alle estremità */
.cmp__us { background: var(--blue-50); color: var(--ink-2); }
.cmp__table thead .cmp__us {
  color: var(--blue-700);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.cmp__table tbody tr:last-child .cmp__us { border-radius: 0 0 var(--r-md) var(--r-md); }
.cmp__note {
  font-size: .89rem; color: var(--muted);
  margin-top: auto; padding-top: 22px;
}

@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 430px) {
  .cmp__table th, .cmp__table td { padding: 12px 10px; font-size: .88rem; }
  .cmp__table tbody th { padding-left: 0; }
}

/* ── Recensioni ─────────────────────────────────────────────────────────── */
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 26px);
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, transform .25s var(--ease);
}
.quote:hover { border-color: var(--blue-200); transform: translateY(-2px); }
.stars { color: var(--amber); font-size: .95rem; letter-spacing: .12em; }
.quote blockquote { margin: 0; font-size: .97rem; color: var(--ink); flex: 1; }
.quote figcaption {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line-2);
}
.quote figcaption b { display: block; font-size: .91rem; color: var(--ink); }
.quote figcaption small { display: block; font-size: .8rem; color: var(--muted); }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; font-size: .8rem; font-weight: 700;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.qa { border-bottom: 1px solid var(--line-2); }
.qa:last-child { border-bottom: 0; }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(18px, 2.4vw, 24px);
  cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); font-size: 1rem;
  transition: color .2s, background-color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--blue-600); background: var(--blue-50); }
.qa summary::after {
  content: ""; flex: none;
  width: 20px; height: 20px;
  background: var(--blue-600);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: rotate .28s var(--ease);
}
.qa[open] summary { color: var(--blue-600); }
.qa[open] summary::after { rotate: 135deg; }
.qa__body {
  padding: 0 clamp(18px, 2.4vw, 24px) 20px;
  font-size: .96rem; color: var(--muted);
  max-width: 64ch;
}
.qa[open] .qa__body { animation: fade-up .3s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; translate: 0 -6px; } }

/* ── CTA / form ─────────────────────────────────────────────────────────── */
.cta {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: linear-gradient(140deg, var(--navy-900), var(--blue-700) 135%);
  border-radius: clamp(24px, 3vw, 34px);
  padding: clamp(26px, 4vw, 54px);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; z-index: 0;
  width: 500px; height: 500px; right: -170px; top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 140, 255, .36), transparent 62%);
  pointer-events: none;
}
.cta__copy { position: relative; z-index: 1; }
.cta__copy h2 { color: #fff; }
.cta__copy > p { color: #bfd0ec; margin-top: 16px; font-size: 1.03rem; max-width: 40ch; }
.cta__copy > p strong { color: #fff; }
.cta__list {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 9px; font-size: .93rem; color: #d3e0f5;
}
.cta__list li { display: flex; align-items: flex-start; gap: 10px; }
.cta__list li::before {
  content: ""; flex: none; margin-top: .26em;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}
.cta__direct { margin-top: 24px; font-size: .92rem; color: #9db4d8; }
.cta__direct a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.form {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.4vw, 28px);
  display: grid; gap: 14px;
  box-shadow: var(--shadow-lg);
}
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field label span[aria-hidden] { color: var(--blue-600); }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: .96rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fdfeff;
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input::placeholder, .field textarea::placeholder { color: #a9b6cc; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-500) 16%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ef5f4c; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .85rem; color: var(--muted);
}
.check input { margin-top: .2em; width: 17px; height: 17px; accent-color: var(--blue-600); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.form__status { font-size: .87rem; text-align: center; min-height: 1.2em; }
.form__status.is-error { color: #c2331f; }
.form__status.is-ok { color: #0d7a3d; }

@media (max-width: 880px) { .cta { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-top: clamp(40px, 5vw, 60px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(26px, 4vw, 52px);
  padding-bottom: clamp(30px, 4vw, 46px);
}
.footer__brand p { font-size: .92rem; color: var(--muted); margin-top: 14px; max-width: 36ch; }
.footer__col { display: grid; gap: 9px; align-content: start; }
.footer__col h2 {
  font-size: .77rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 800; margin-bottom: 4px;
}
.footer__col a { font-size: .92rem; color: var(--ink-2); }
.footer__col a:hover { color: var(--blue-600); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 18px 24px;
  font-size: .83rem; color: var(--muted);
}
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__inner { grid-template-columns: 1fr; } }

/* ── Pagine di testo (privacy, cancellazione) ───────────────────────────── */
.page { padding-block: clamp(44px, 6vw, 76px); }
.page h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 10px; }
.page .page__meta { color: var(--muted); font-size: .89rem; margin-bottom: 32px; }
.page h2 { font-size: 1.28rem; margin: 34px 0 10px; }
.page h3 { margin: 22px 0 8px; }
.page p, .page li { color: var(--ink-2); font-size: .98rem; }
.page ul, .page ol { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.page p + p { margin-top: 12px; }
.page .notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-600);
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 24px 0;
}

/* ── Reveal on scroll ───────────────────────────────────────────────────── */
/* Nascondiamo gli elementi solo se il JS è attivo: senza JS restano visibili. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .6s var(--ease), translate .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; translate: 0 0; }

/* ── Riduzione movimento ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal], [data-reveal] { opacity: 1; translate: 0 0; }
  .globe__spin { animation: none; }
  .globe--xl .globe__spin { transform: rotateY(18deg); }
  .globe--sm .globe__spin i { width: 55%; }   /* fermo, ma i due archi si vedono */
}

/* ── Stampa ─────────────────────────────────────────────────────────────── */
@media print {
  .nav, .hero__visual, .form, .footer__col { display: none; }
  body { color: #000; background: #fff; }
}
