/* ════════════════════════════════════════════════════════════════
   MARKETIPO — sistema di crescita
   Un solo blu. Tracking stretto. Numeri vivi.
   ════════════════════════════════════════════════════════════════ */

:root {
  --blue: #2447FF;
  --blue-hover: #1B36DB;
  --blue-soft: #EDF0FF;
  --blue-on-dark: #6E8BFF;
  --ink: #0A0B14;
  --body: #4A4F5E;
  --muted: #666E85; /* 5.08:1 su bianco, AA anche per testo piccolo */
  --hairline: #E7E9F2;
  --hairline-soft: #F0F2F8;
  --bg: #FFFFFF;
  --bg-soft: #F6F7FB;
  --dark: #070A16;
  --dark-card: #0D1226;
  --dark-elev: #131A33;
  --dark-border: rgba(255, 255, 255, .09);
  --dark-text: #FFFFFF;
  --dark-muted: #8A91A8;
  --green: #17C980;
  --gold: #F5B301;
  --r-card: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(.22, .8, .28, 1);
  --ease-spring: cubic-bezier(.34, 1.3, .4, 1);
  --shadow-product: 0 24px 64px -20px rgba(10, 14, 40, .32);
  --shadow-card: 0 10px 34px -14px rgba(10, 14, 40, .14);
  --container: 1200px;
}

/* ── Base ─────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss03";
}

h1, h2, h3, legend {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
svg { display: block; }
::selection { background: var(--blue); color: #fff; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

[hidden] { display: none !important; }

.accent { color: var(--blue); }
.accent-dark { color: var(--blue-on-dark); }
.up-text { color: var(--green); }

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

/* ── Eyebrow ──────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow .dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* anello che pulsa: transform+opacity, compositato, niente repaint */
.eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  animation: pulse 2.4s var(--ease-out) infinite;
}

.eyebrow-dark { color: var(--blue-on-dark); }

@keyframes pulse {
  0%   { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

/* ── Bottoni ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out),
              border-color .2s var(--ease-out), transform .15s var(--ease-out);
}

.btn:active { transform: scale(.96); }
.btn svg { transition: transform .2s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-lg { padding: 16px 30px; font-size: 16px; }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #23263A; }

.btn-ghost { color: var(--ink); border: 1px solid var(--hairline); background: var(--bg); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:hover svg { transform: translateY(3px); }

.btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ── Nav ──────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease-out);
}

.nav.is-scrolled { border-bottom-color: var(--hairline); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-inline: auto;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  transition: color .18s var(--ease-out), background-color .18s var(--ease-out);
}

.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }

.nav-cta { padding: 11px 20px; font-size: 14px; }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s var(--ease-out), opacity .2s;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 24px;
  border-bottom: 1px solid var(--hairline);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}

.nav-mobile a:not(.btn) {
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile .btn { margin-top: 14px; }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero { overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-top: clamp(48px, 8vh, 88px);
  padding-bottom: clamp(56px, 9vh, 104px);
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  margin-top: 22px;
}

.hero-lead {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(16px, 1.35vw, 18px);
  color: var(--body);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--blue); flex-shrink: 0; }

/* Composizione visual */

.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a { width: min(120%, 620px); aspect-ratio: 1; }
.orbit-b { width: min(88%, 470px); aspect-ratio: 1; opacity: .7; }

.orbit-dot {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.od-1 { top: 9%; left: 16%; background: var(--blue); }
.od-2 { top: 4%; right: 24%; width: 6px; height: 6px; }
.od-3 { bottom: 12%; left: 6%; width: 6px; height: 6px; }
.od-4 { bottom: 6%; right: 14%; background: var(--blue); }

.laptop {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  filter: drop-shadow(0 32px 48px rgba(10, 14, 40, .28));
}

.laptop-screen {
  background: #05070F;
  border: 2px solid #1A1E31;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 12px;
}

.laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #E4E6EE, #B9BDCC);
  border-radius: 0 0 14px 14px;
  margin-inline: -5%;
  position: relative;
}

.laptop-base::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 5px;
  background: #A9AEBF;
  border-radius: 0 0 8px 8px;
}

/* Dashboard dentro il laptop */

.dash {
  background: var(--dark);
  border-radius: 10px;
  padding: 16px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dash-title { font-size: 12px; font-weight: 600; color: var(--dark-text); letter-spacing: -.01em; }

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--dark-muted);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-pill);
  padding: 4px 9px;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.kpi {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.kpi-label {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-text);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.kpi-delta {
  align-self: flex-start;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: var(--r-pill);
}

.kpi-delta.up { color: var(--green); background: rgba(23, 201, 128, .12); }

.dash-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: 7px;
}

.dash-chart, .dash-donut {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 9px;
  padding: 10px 12px;
  min-width: 0;
}

.dash-sub {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--dark-muted);
  margin-bottom: 8px;
}

.chart-line { width: 100%; height: 92px; }

.chart-x {
  display: flex;
  justify-content: space-between;
  font-size: 7.5px;
  color: var(--dark-muted);
  margin-top: 5px;
}

.dash-donut { display: flex; flex-direction: column; }

/* Donut e legenda stanno incolonnati a sinistra: il telefono flottante entra
   ~88px dentro questa card, e tutto ciò che sta a destra finirebbe sotto. */
.donut { width: 64px; height: 64px; transform: rotate(-90deg); margin: 2px 0 10px; }

.donut-legend {
  display: grid;
  grid-template-columns: max-content;
  justify-content: start;
  gap: 4px;
  font-size: 8.5px;
  color: var(--dark-muted);
  min-width: 0;
}

.donut-legend li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.donut-legend i { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }

/* Telefono flottante */

.phone {
  position: absolute;
  z-index: 2;
  right: -10px;
  bottom: -12%;
  width: 128px;
  background: var(--dark);
  border: 2px solid #1A1E31;
  border-radius: 22px;
  padding: 20px 14px 14px;
  box-shadow: var(--shadow-product);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-feature-settings: "tnum";
  animation: floaty 5.5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.phone-notch {
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 5px;
  border-radius: var(--r-pill);
  background: #1A1E31;
}

.phone-label { font-size: 9.5px; font-weight: 500; color: var(--dark-muted); margin-top: 4px; }
.phone-value { font-size: 25px; font-weight: 700; color: var(--dark-text); letter-spacing: -.03em; }
.phone-spark { width: 100%; height: 30px; margin-top: 6px; }

/* ── Recensioni ───────────────────────────────────────────────── */

.reviews { padding-block: 8px 0; }

.reviews-card {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.5vw, 48px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.5vw, 40px);
  background: var(--bg);
  box-shadow: var(--shadow-card);
}

.reviews-score {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-right: clamp(24px, 3.5vw, 48px);
  border-right: 1px solid var(--hairline);
}

.reviews-rating { font-size: 15px; color: var(--body); }
.reviews-rating strong { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }

.stars { display: flex; gap: 2px; margin-block: 4px 2px; }
.stars svg { width: 15px; height: 15px; fill: #F7B500; }

.reviews-count { font-size: 12.5px; color: var(--muted); }

.reviews-track {
  display: flex;
  gap: clamp(20px, 2.6vw, 36px);
  flex: 1;
  min-width: 0;
}

.review {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.review p { font-size: 14px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.review cite { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--muted); }

.avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.av-1 { background: linear-gradient(135deg, #2447FF, #6E8BFF); }
.av-2 { background: linear-gradient(135deg, #0A0B14, #3A4160); }
.av-3 { background: linear-gradient(135deg, #4A1FD1, #8A6BFF); }

.reviews-dots { display: none; }

/* ── Competenze ───────────────────────────────────────────────── */

.skills { padding-top: clamp(80px, 11vh, 128px); }

.section-title {
  font-size: clamp(30px, 3.4vw, 44px);
  text-align: center;
  margin-bottom: clamp(36px, 5vh, 56px);
}

.skills-rail-wrap {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.rail-arrow {
  align-self: center;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s, background-color .2s, color .2s, opacity .2s, transform .15s var(--ease-out);
}

.rail-arrow:hover { border-color: var(--ink); }
.rail-arrow:active { transform: scale(.94); }
.rail-arrow[disabled] { opacity: .3; pointer-events: none; }

.skills-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 14px 6px; /* sopra: spazio per il badge Novità (top:-9px) */
  flex: 1;
  min-width: 0;
}

.skills-rail::-webkit-scrollbar { display: none; }
.skills-rail li { scroll-snap-align: start; flex-shrink: 0; }

.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  width: 132px;
  min-height: 128px;
  padding: 18px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color .22s var(--ease-out), background-color .22s var(--ease-out),
              color .22s var(--ease-out), transform .22s var(--ease-out), box-shadow .22s var(--ease-out);
}

.skill-card svg { width: 26px; height: 26px; color: var(--blue); transition: color .22s; }

.skill-num { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); transition: color .22s; }

.skill-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.skill-card.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -14px rgba(36, 71, 255, .55);
}

.skill-card.is-active svg { color: #fff; }
.skill-card.is-active .skill-num { color: rgba(255,255,255,.7); }

/* hover solo dove esiste davvero: su touch resterebbe "appiccicato" */
@media (hover: hover) {
  .skill-card:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -14px rgba(36, 71, 255, .55);
  }
  .skill-card:hover svg { color: #fff; }
  .skill-card:hover .skill-num { color: rgba(255,255,255,.7); }
}

.badge-new {
  position: absolute;
  top: -9px; right: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  border-radius: var(--r-pill);
  padding: 3px 8px;
}

.service-label .badge-new { position: static; margin-left: 8px; vertical-align: 2px; }

.rail-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.rail-dots i {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--hairline);
  transition: background-color .25s, width .25s var(--ease-out);
}

.rail-dots i.is-on { background: var(--blue); width: 20px; }

/* ── Servizi ──────────────────────────────────────────────────── */

.services { padding-block: clamp(56px, 8vh, 88px) clamp(72px, 10vh, 112px); }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(28px, 4vh, 40px);
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 96px;
}

.service:last-child { border-bottom: 1px solid var(--hairline); }

.service-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 28px);
}

.service-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 7px 13px;
  flex-shrink: 0;
  font-feature-settings: "tnum";
}

.service-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.service h3 {
  font-size: clamp(19px, 1.85vw, 24px);
  letter-spacing: -.025em;
  line-height: 1.22;
  max-width: 20ch;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
}

.service-list li { display: flex; align-items: center; gap: 10px; }

.service-list svg {
  width: 18px; height: 18px;
  padding: 3px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-visual { min-width: 0; }

.vis {
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.service:hover .vis { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.service-go {
  width: 52px; height: 52px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  flex-shrink: 0;
  transition: background-color .22s var(--ease-out), color .22s var(--ease-out),
              border-color .22s var(--ease-out), transform .22s var(--ease-out);
}

.service:hover .service-go, .service-go:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: rotate(-45deg);
}

/* Visual 01 — sito */

.vis-web {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  padding: 18px 18px 0 18px;
  display: flex;
  justify-content: center;
}

.mini-browser {
  width: 78%;
  background: var(--dark-card);
  border-radius: 10px 10px 0 0;
  padding: 10px 12px 14px;
}

.mb-bar { display: flex; gap: 4px; margin-bottom: 10px; }
.mb-bar i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.25); }

.mb-hero { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }

.mb-line { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }
.w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; }
.w-60 { width: 60%; } .w-70 { width: 70%; }

.mb-btn { width: 34px; height: 11px; border-radius: var(--r-pill); background: var(--blue); }

.mb-cards { display: flex; gap: 7px; }
.mb-cards i { flex: 1; height: 26px; border-radius: 5px; background: rgba(255,255,255,.08); }

.mini-phone {
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 17%;
  min-width: 44px;
  background: var(--dark);
  border: 1px solid #262B44;
  border-radius: 8px 8px 0 0;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-phone .mb-btn { height: 8px; width: 26px; }

/* Visual 02 — shop */

.vis-shop {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  padding: 18px;
  display: flex;
  justify-content: center;
}

.shop-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  width: 64%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sneaker { width: 88%; margin: 0 auto 8px; }
.shop-name { font-size: 12px; font-weight: 600; }
.shop-price { font-size: 13px; font-weight: 700; color: var(--blue); font-feature-settings: "tnum"; }

.shop-metric {
  position: absolute;
  right: 10px;
  bottom: 14px;
  background: var(--dark-card);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-card);
}

.shop-metric-label { font-size: 8.5px; font-weight: 500; color: var(--dark-muted); }
.shop-metric-value { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -.02em; font-feature-settings: "tnum"; }

/* Visual 03 — CRM */

.vis-crm {
  display: flex;
  gap: 10px;
  background: var(--dark-card);
  border: 1px solid var(--hairline);
  padding: 14px;
}

.crm-side { display: flex; flex-direction: column; gap: 7px; width: 18%; }
.crm-side i { height: 7px; border-radius: 3px; background: rgba(255,255,255,.14); }
.crm-side i:first-child { background: var(--blue); }

.crm-main { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.crm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crm-row .mb-line { background: rgba(255,255,255,.16); }
.crm-pill { width: 38px; height: 10px; border-radius: var(--r-pill); background: rgba(23,201,128,.4); }

.crm-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 52px;
}

.crm-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--blue), #5B7CFF);
  opacity: .9;
}

/* Visual 04 — ads vs business */

.vis-ads {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  padding: 14px;
}

.ads-panel {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 12px;
  font-feature-settings: "tnum";
}

.ads-panel-biz { border-color: rgba(36, 71, 255, .35); background: var(--blue-soft); }

.ads-title {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.ads-panel-biz .ads-title { color: var(--blue); }

.ads-row {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  padding-block: 3.5px;
  color: var(--muted);
}

.ads-row strong { color: var(--ink); font-weight: 700; }

.ads-vs {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 3px solid var(--bg-soft);
}

/* Visual 05 — strategia */

.vis-strategy { background: var(--bg-soft); border: 1px solid var(--hairline); padding: 8px; }
.vis-strategy svg { width: 100%; height: auto; }

/* Visual 06 — billboard */

.vis-city {
  position: relative;
  aspect-ratio: 2 / 1.05;
  background: linear-gradient(180deg, #0A0F26 0%, #101736 55%, #1A1F3E 100%);
  border: 1px solid var(--hairline);
}

.city-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(110, 139, 255, .22), transparent 42%),
    radial-gradient(circle at 15% 30%, rgba(245, 179, 1, .1), transparent 38%);
}

.city-buildings {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  display: flex;
  align-items: flex-end;
  gap: 4%;
  padding-inline: 5%;
}

.city-buildings i {
  flex: 1;
  background: #060A1B;
  border-radius: 3px 3px 0 0;
  background-image: repeating-linear-gradient(0deg, rgba(245,196,61,.28) 0 2px, transparent 2px 7px);
  background-size: 45% 100%;
  background-repeat: no-repeat;
  background-position: 55% 0;
}

.city-buildings i:nth-child(1) { height: 68%; }
.city-buildings i:nth-child(2) { height: 92%; }
.city-buildings i:nth-child(3) { height: 58%; }
.city-buildings i:nth-child(4) { height: 84%; }
.city-buildings i:nth-child(5) { height: 66%; }

.billboard {
  position: absolute;
  top: 12%; left: 50%;
  transform: translateX(-50%);
  width: 66%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #04060F;
  border: 1px solid rgba(110, 139, 255, .5);
  border-radius: 7px;
  padding: 10px 14px;
  box-shadow: 0 0 32px rgba(91, 124, 255, .35);
}

.billboard::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 26px;
  background: #060A1B;
}

.billboard p {
  font-family: var(--font-display);
  font-size: clamp(10px, 1.05vw, 13px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
}

.qr {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  grid-auto-rows: 6px;
  gap: 2px;
  padding: 5px;
  background: #fff;
  border-radius: 3px;
}

.qr i { background: #04060F; border-radius: 1px; }
.qr i:nth-child(5) { background: transparent; }

/* Visual 07 — deep data */

.vis-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  padding: 12px;
}

.data-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-feature-settings: "tnum";
}

.data-label { font-size: 8.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.data-value {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.data-value em { font-style: normal; font-size: 9px; font-weight: 700; }
.data-card svg { width: 100%; height: 26px; margin-top: 4px; }

/* Visual 08 — AI */

.vis-ai svg { width: 100%; height: auto; display: block; }

/* ── Risultati ────────────────────────────────────────────────── */

.results { background: var(--dark); color: var(--dark-text); }

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  padding-block: clamp(64px, 9vh, 104px);
}

.results-title { font-size: clamp(28px, 3vw, 40px); }

.results-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.6vw, 44px);
}

.case {
  display: block;
  border-left: 1px solid var(--dark-border);
  padding-left: clamp(16px, 1.8vw, 28px);
  color: inherit;
  text-decoration: none;
  transition: border-color .25s ease, transform .25s ease;
}

a.case:hover {
  border-left-color: var(--blue-on-dark);
  transform: translateY(-2px);
}

a.case:hover .case-site { text-decoration: underline; }

.case-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.case-logo.inverti { filter: brightness(0) invert(1); opacity: .92; }

.case-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  color: var(--dark-text);
}

.case-mark span:last-child {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-site {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-on-dark);
  margin-top: 10px;
}

.case-client {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.case-client svg { color: var(--blue-on-dark); }

.case-value {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 14px;
  font-feature-settings: "tnum";
  color: var(--dark-text);
}

.case-value.up-text { color: var(--green); }

.case-what { font-size: 13px; line-height: 1.55; color: var(--dark-muted); margin-top: 14px; }

.results-cta { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }

/* ── Guida + Quiz ─────────────────────────────────────────────── */

.closing { padding-block: clamp(72px, 10vh, 120px); background: var(--bg-soft); }

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}

.guide-card, .quiz-card {
  border-radius: var(--r-card);
  padding: clamp(28px, 3.4vw, 48px);
}

.guide-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "eyebrow eyebrow" "title book" "text book" "cta book";
  align-items: start;
  column-gap: 24px;
}

.guide-card .eyebrow { grid-area: eyebrow; }
.guide-card h2 { grid-area: title; font-size: clamp(24px, 2.4vw, 32px); margin-top: 18px; }
.guide-text { grid-area: text; margin-top: 14px; color: var(--body); font-size: 15px; max-width: 44ch; }
.guide-card .btn { grid-area: cta; justify-self: start; align-self: end; margin-top: 26px; }

.book {
  grid-area: book;
  align-self: center;
  position: relative;
  margin: 12px auto;
  width: 168px;
  aspect-ratio: 5 / 7;
  transform: rotate(4deg);
  transition: transform .4s var(--ease-spring);
}

.guide-card:hover .book { transform: rotate(0deg) translateY(-6px); }

.book-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, #10142A 0%, #070A16 70%);
  border-radius: 6px 12px 12px 6px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-product);
  border-left: 5px solid #1E2542;
}

.book-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.book-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #fff;
}

.book-title::first-line { color: var(--blue-on-dark); }

.book-pages {
  position: absolute;
  inset: 3px -5px 3px auto;
  width: 10px;
  background: repeating-linear-gradient(90deg, #E8E9F0 0 1.5px, #fff 1.5px 3px);
  border-radius: 0 3px 3px 0;
}

/* Quiz */

.quiz-card {
  background: var(--dark);
  color: var(--dark-text);
  scroll-margin-top: 84px;
  overflow: hidden;
}

.quiz-heading { font-size: clamp(24px, 2.4vw, 32px); margin-top: 18px; max-width: 20ch; }

.quiz-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-block: 26px 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--dark-border);
}

.quiz-trust li { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--dark-muted); }
.quiz-trust svg { color: var(--blue-on-dark); margin-bottom: 6px; }
.quiz-trust strong { font-size: 13px; color: var(--dark-text); font-weight: 600; }

.quiz { position: relative; }

.quiz-stepper {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.quiz-stepper li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--dark-muted);
  transition: color .3s;
  white-space: nowrap;
  min-width: 0;
}

.quiz-stepper li i {
  font-style: normal;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 700;
  border: 1px solid var(--dark-border);
  flex-shrink: 0;
  transition: background-color .3s, border-color .3s, color .3s;
  font-feature-settings: "tnum";
}

.quiz-stepper li.is-active { color: var(--dark-text); }
.quiz-stepper li.is-active i { background: var(--blue); border-color: var(--blue); color: #fff; }
.quiz-stepper li.is-done i { border-color: var(--green); color: var(--green); }

.quiz-progress {
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--dark-border);
  margin-bottom: 26px;
  overflow: hidden;
}

.quiz-progress i {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: var(--r-pill);
  background: var(--blue);
  transition: width .45s var(--ease-out);
}

.quiz-step { animation: stepIn .4s var(--ease-out); }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz-count {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--dark-muted);
  margin-bottom: 10px;
  font-feature-settings: "tnum";
}

.quiz-step legend { font-size: clamp(20px, 1.9vw, 25px); letter-spacing: -.025em; color: var(--dark-text); }

.quiz-sub { margin-top: 8px; margin-bottom: 20px; font-size: 14px; color: var(--dark-muted); }

.quiz-options { display: flex; flex-direction: column; gap: 9px; }

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  background: var(--dark-card);
  color: var(--dark-text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), transform .15s var(--ease-out);
}

.quiz-opt::after {
  content: "";
  margin-left: auto;
  width: 7px; height: 7px;
  border-top: 1.8px solid var(--dark-muted);
  border-right: 1.8px solid var(--dark-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: border-color .2s;
}

.quiz-opt:hover { border-color: var(--blue-on-dark); background: var(--dark-elev); }
.quiz-opt:active { transform: scale(.98); }
.quiz-opt.is-picked { border-color: var(--blue); background: rgba(36, 71, 255, .16); }
.quiz-opt.is-picked::after { border-color: var(--blue-on-dark); }

.quiz-opt > svg { width: 22px; height: 22px; color: var(--blue-on-dark); flex-shrink: 0; }

.quiz-opt small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--dark-muted); }

.quiz-options-budget { position: relative; padding-right: 128px; }
.quiz-options-budget .quiz-opt { font-feature-settings: "tnum"; }

.coins {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 112px;
  height: auto;
}

.quiz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.quiz-fields label { display: block; }

/* label visivamente nascoste ma presenti nell'albero di accessibilità */
.quiz-fields label span {
  position: absolute;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.quiz-fields input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 14.5px;
  color: var(--dark-text);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--r-sm);
  transition: border-color .2s;
}

.quiz-fields input::placeholder { color: var(--dark-muted); }
.quiz-fields input:focus { border-color: var(--blue-on-dark); }
.quiz-fields input:focus:not(:focus-visible) { outline: none; }
.quiz-fields input:focus-visible { outline: 2px solid var(--blue-on-dark); outline-offset: 2px; }
.quiz-fields input.is-invalid { border-color: #FF6B6B; }

.quiz-step:focus, .quiz-done:focus { outline: none; }

.quiz-noscript {
  padding: 14px 18px;
  border: 1px solid var(--dark-border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--dark-muted);
  margin-bottom: 16px;
}

.quiz-error { margin-top: 12px; font-size: 13px; color: #FF8585; }

.quiz-submit { width: 100%; margin-top: 16px; }

.quiz-fineprint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--dark-muted);
}

.quiz-fineprint li { display: inline-flex; align-items: center; gap: 6px; }

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-muted);
  transition: color .2s;
}

.quiz-back:hover { color: var(--dark-text); }

.quiz-done { text-align: center; padding-block: 26px; }
.quiz-done svg { margin: 0 auto 18px; }
.quiz-done h3 { font-size: 24px; color: var(--dark-text); }
.quiz-done p { margin: 12px auto 0; max-width: 38ch; font-size: 14.5px; color: var(--dark-muted); }

/* ── Footer ───────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--hairline); background: var(--bg); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 3.5vw, 56px);
  padding-block: clamp(48px, 7vh, 72px);
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  color: var(--body);
  max-width: 30ch;
}

.footer-social { display: flex; gap: 10px; margin-top: 22px; }

.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--body);
  transition: border-color .2s, color .2s, transform .15s var(--ease-out);
}

.footer-social a:hover { border-color: var(--ink); color: var(--ink); }
.footer-social a:active { transform: scale(.94); }
.footer-social a.is-placeholder { cursor: default; opacity: .55; }
.footer-social a.is-placeholder:hover { border-color: var(--hairline); color: var(--body); }

.footer-head {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }

.footer-col a {
  font-size: 14.5px;
  color: var(--body);
  transition: color .18s;
}

.footer-col a:hover { color: var(--blue); }

.footer-news-text { font-size: 14px; color: var(--body); margin-bottom: 16px; max-width: 26ch; }

.newsletter {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 18px;
  transition: border-color .2s;
}

.newsletter:focus-within { border-color: var(--blue); }

.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  font: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
}

.newsletter input:focus:not(:focus-visible) { outline: none; }
.newsletter input:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--r-pill); }
.newsletter input::placeholder { color: var(--muted); }

.newsletter button {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color .2s, transform .15s var(--ease-out);
}

.newsletter button:hover { background: var(--blue-hover); }
.newsletter button:active { transform: scale(.94); }

.newsletter-msg { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}

.footer-legal a { margin-left: 22px; transition: color .18s; }
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { color: var(--ink); }

/* ── Reveal on scroll ─────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-in { opacity: 1; transform: none; }

/* Chart draw */

.chart-stroke {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  transition: stroke-dashoffset 1.6s var(--ease-out) .3s;
}

.chart-area {
  opacity: 0;
  transition: opacity .9s var(--ease-out) 1.2s;
}

.is-in .chart-stroke, .dash.is-live .chart-stroke { stroke-dashoffset: 0; }
.is-in .chart-area, .dash.is-live .chart-area { opacity: 1; }

/* donut: parte a zero e "spazza" quando la sezione entra in vista */
.donut-seg { stroke-dasharray: 0 214; transition: stroke-dasharray 1.1s var(--ease-out) .5s; }
.is-in .seg-1 { stroke-dasharray: 90 124; }
.is-in .seg-2 { stroke-dasharray: 58 156; }
.is-in .seg-3 { stroke-dasharray: 34 180; }
.is-in .seg-4 { stroke-dasharray: 32 182; }

@media (prefers-reduced-motion: reduce) {
  .seg-1 { stroke-dasharray: 90 124; }
  .seg-2 { stroke-dasharray: 58 156; }
  .seg-3 { stroke-dasharray: 34 180; }
  .seg-4 { stroke-dasharray: 32 182; }
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1080px) {

  .service {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    grid-template-areas: "head vis go" "list vis go";
    align-items: start;
    row-gap: 20px;
  }

  .service-head { grid-area: head; }
  .service-list { grid-area: list; }
  .service-go { grid-area: go; align-self: center; }
  .service-visual { grid-area: vis; align-self: center; }

  .results-grid { grid-template-columns: 1fr; }
  .results-cases { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 940px) {

  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.is-open { display: flex; }
  .nav-inner { height: 64px; justify-content: space-between; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 40px;
  }

  .hero-copy { text-align: center; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-lead { margin-inline: auto; }

  .hero-visual {
    min-height: 0;
    margin-inline: auto;
    width: min(100%, 560px);
    padding-bottom: 56px; /* respiro sotto il laptop: il telefono copre solo la cornice */
  }
  .phone { right: -4px; }

  .closing-grid { grid-template-columns: 1fr; }
  .quiz-fields { grid-template-columns: 1fr; }

  .guide-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "eyebrow" "title" "text" "book" "cta";
  }

  .guide-card .btn { justify-self: stretch; }
  .book { margin-block: 26px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {

  body { font-size: 16px; }

  .reviews-card {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .reviews-score {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding-right: 0;
    padding-bottom: 20px;
    justify-content: center;
  }

  /* carosello solo col JS attivo: senza, le recensioni restano impilate e leggibili */
  html.js .reviews-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow: hidden;
  }

  html:not(.js) .reviews-track { flex-direction: column; }

  .review {
    justify-content: center;
    text-align: left;
    transition: transform .5s var(--ease-out), opacity .4s;
  }

  .reviews-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
  }

  /* area toccabile 32px, pallino disegnato dentro */
  .reviews-dots button {
    position: relative;
    width: 32px; height: 32px;
    padding: 0;
  }

  .reviews-dots button::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 7px; height: 7px;
    border-radius: var(--r-pill);
    background: var(--hairline);
    transition: background-color .25s, width .25s var(--ease-out);
  }

  .reviews-dots button.is-on::after { background: var(--blue); width: 20px; }

  /* Competenze: griglia 2 colonne come nel mock mobile */
  .rail-arrow, .rail-dots { display: none; }

  .skills-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: visible;
    padding-block: 0;
  }

  .skill-card { width: 100%; min-height: 116px; }

  .service {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas: "head" "list" "vis";
    gap: 18px;
    padding-block: 30px;
  }

  .service h3 { max-width: none; }
  .service-head { padding-right: 56px; }

  .service-go {
    position: absolute;
    top: 30px; right: 0;
    width: 44px; height: 44px;
  }

  .results-cases { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .case { padding-left: 14px; }

  .quiz-trust { grid-template-columns: 1fr; gap: 16px; }
  .quiz-trust li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; }
  .quiz-trust svg { margin-bottom: 0; }
  .quiz-trust span { text-align: right; }

  .quiz-stepper li { font-size: 0; gap: 0; justify-content: center; }
  .quiz-stepper li i { font-size: 9.5px; }
  .quiz-stepper li.is-active { font-size: 10.5px; gap: 7px; }

  .quiz-options-budget { padding-right: 0; padding-bottom: 4px; }
  .coins { position: static; margin: 10px auto 0; display: block; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .laptop-screen { padding: 8px; }
  .dash { padding: 10px; }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
  .dash-kpis .kpi:nth-child(n+4) { display: none; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-donut { padding-right: 118px; }
  .phone { width: 112px; bottom: -4%; right: -6px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; }
}

/* ── Reduced motion ───────────────────────────────────────────── */

/* Senza JavaScript tutto è visibile da subito */

html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) .chart-stroke { stroke-dashoffset: 0; }
html:not(.js) .chart-area { opacity: 1; }
html:not(.js) .seg-1 { stroke-dasharray: 90 124; }
html:not(.js) .seg-2 { stroke-dasharray: 58 156; }
html:not(.js) .seg-3 { stroke-dasharray: 34 180; }
html:not(.js) .seg-4 { stroke-dasharray: 32 182; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .chart-stroke { stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
}
