/* =========================================================
   Il metodo locale — foglio di stile principale
   Tema scuro, tipografia oversized, un solo colore d'accento.
   ========================================================= */

/* ---------- Token ---------- */
:root {
  /* Colori */
  --bg:            #0A0A0B;
  --surface:       #121214;
  --surface-2:     #17171A;
  --border:        rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:          #FAFAFA;
  --text-muted:    #CACAD2;
  --text-dim:      #A9A9B3;

  --accent:        #22C55E;
  --accent-soft:   #4ADE80;
  --accent-wash:   rgba(34, 197, 94, 0.12);
  --accent-glow:   rgba(34, 197, 94, 0.16);
  --on-accent:     #052E16;

  /* Tipografia */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body:    "Rubik", system-ui, sans-serif;

  --type-hero:    clamp(2.5rem, 5.2vw, 5rem);
  --type-h2:      clamp(2rem, 4.2vw, 3.75rem);
  --type-h3:      clamp(1.125rem, 1.6vw, 1.375rem);
  --type-lead:    clamp(1.0625rem, 1.4vw, 1.25rem);

  /* Spazi (scala ampia) */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  --radius:    20px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Icone SVG (nessuna emoji come icona) */
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Accessibilità ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section { padding-block: var(--space-2xl); }
.section-alt { background: var(--surface); }

.section-head { max-width: 760px; margin-bottom: var(--space-xl); }
.section-title { font-size: var(--type-h2); }
.section-lead {
  margin-top: var(--space-md);
  color: var(--text-muted);
  font-size: var(--type-lead);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.accent { color: var(--accent); }

/* Seconda riga di un titolo, più piccola e in grigio */
.title-sub {
  display: block;
  margin-top: var(--space-sm);
  font-size: clamp(1.25rem, 2.2vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease),
              color 220ms var(--ease), transform 220ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-soft); }

.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { min-height: 42px; padding: 10px 20px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms var(--ease), background-color 250ms var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 11, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 76px;
}

/* ----- Logo: "il metodo" piccolo sopra, "locale" grande sotto,
   con la "o" sostituita dallo spillo. Tutto in em: per ingrandirlo
   basta cambiare --logo-size (nel footer è più grande).          */
.logo { --logo-size: 1.875rem; display: inline-flex; }
.logo-lg { --logo-size: 2.625rem; }
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  font-size: var(--logo-size);
  line-height: 1;
}
.bl-small {
  font-family: var(--font-display);
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.12em 0.08em;
}
.bl-big {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--text);
}

/* ----- Logo: il segnaposto col grafico in crescita -----
   Il disegno e le sue animazioni stanno dentro al componente #simbolo-logo
   (in index.html): qui si comandano da fuori con le variabili, perché le
   variabili CSS entrano anche dentro al componente.
   All'apertura il segnaposto cade e rimbalza, le barre crescono una dopo
   l'altra e la freccia arriva per ultima; a riposo parte un'onda sotto.
   Passando col mouse barre e freccia ripartono.                        */
/* il segnaposto prende il posto della "o": la parte tonda sta all'altezza
   delle minuscole, la punta scende sotto la riga come una gamba */
.logo-pin {
  width: 0.74em;
  height: 0.814em;
  margin: 0.24em 0 -0.25em 0.01em;
  flex: none;
  overflow: visible;
  stroke: none;
  transition: transform 300ms var(--ease);
}
.logo:hover .logo-pin { transform: translateY(-2px) rotate(-6deg); }

/* finita l'entrata (classi messe dal JS) il disegno resta fermo;
   al passaggio del mouse barre e freccia ripartono una dopo l'altra */
.logo-pin.is-ready { --pin-bar-anim: none; --pin-arrow-anim: none; }
.logo-pin.is-ready.is-bouncing {
  --pin-bar-anim: bar-grow-again;
  --pin-bar-dur: 520ms;
  --pin-d1: 0ms;
  --pin-d2: 70ms;
  --pin-d3: 140ms;
  --pin-arrow-anim: arrow-in;
  --pin-da: 200ms;
}

.nav { display: flex; align-items: center; gap: var(--space-md); }
.nav > a:not(.btn) {
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 8px 2px;
  transition: color 200ms var(--ease);
}
.nav > a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--space-lg); position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-title { font-size: var(--type-hero); font-weight: 900; }

/* Il nome del brand dentro il titolo: verde, con una sottolineatura
   che si disegna dopo l'entrata delle parole */
.brand-name {
  color: var(--accent);
  background: linear-gradient(rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.28)) no-repeat 0 90% / 0% 0.2em;
  transition: background-size 900ms var(--ease) 450ms;
}
.hero-title.is-visible .brand-name { background-size: 100% 0.2em; }

.hero-lead {
  margin-top: var(--space-md);
  max-width: 54ch;
  font-size: var(--type-lead);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ---------- Sfondo in movimento della hero ----------
   3 file di foto dei settori, inclinate di -6°, che scorrono all'infinito
   (file alternate in direzioni opposte). Ogni fila contiene le sue foto
   due volte: scorrendo di metà larghezza il giro si richiude senza stacchi.
   Sopra, un velo scuro (più scuro a sinistra, dietro al testo).           */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.bg-rows {
  position: absolute;
  inset: -7% -12%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: rotate(-6deg);
}
.bg-row { flex: 1; min-height: 0; }
.bg-track {
  display: flex;
  gap: 18px;
  width: max-content;
  height: 100%;
  animation: bg-scroll 80s linear infinite;
  will-change: transform;
}
.bg-row--2 .bg-track { animation-name: bg-scroll-reverse; animation-duration: 95s; }
.bg-row--3 .bg-track { animation-duration: 88s; }

.bg-card {
  position: relative;
  height: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-2);
}
.bg-card img { width: 100%; height: 100%; object-fit: cover; }
.bg-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.72);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.bg-card figcaption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.96) 0%, rgba(10, 10, 11, 0.9) 40%, rgba(10, 10, 11, 0.72) 68%, rgba(10, 10, 11, 0.78) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.5), transparent 25%, transparent 75%, rgba(10, 10, 11, 0.9));
}

@keyframes bg-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes bg-scroll-reverse {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* ---------- Il telefono del titolare (solo computer) ----------
   Misure in em: la dimensione del carattere del telefono segue la sua
   larghezza, così tutto scala insieme. Livelli separati per non far
   litigare le animazioni: .phone-float fluttua, .phone-tilt inclina in 3D,
   .phone vibra. Si animano solo transform e opacity.                     */
.hero-phone {
  --pw: clamp(200px, 19vw, 250px);   /* larghezza del telefono */
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 24px;
  perspective: 1200px;
}
.phone-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--pw) * 2.2);
  aspect-ratio: 1;
  margin: calc(var(--pw) * -1.1) 0 0 calc(var(--pw) * -1.1);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.34), rgba(34, 197, 94, 0.1) 55%, transparent);
  opacity: 0.55;
  pointer-events: none;
}
.phone-glow.is-pulsing { animation: glow-pulse 1100ms ease-out; }

.phone-float { animation: phone-float 6s ease-in-out infinite alternate; }
.phone-tilt {
  transform: rotateY(-14deg) rotateX(5deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
}
.phone {
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 18.5;
  font-size: calc(var(--pw) / 18.5);
  padding: 0.55em;
  border-radius: 2.9em;
  background: linear-gradient(145deg, #2a2a2e, #0c0c0e 40%, #18181b);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 50px 90px -30px rgba(0, 0, 0, 0.9);
}
.phone.is-buzzing { animation: phone-buzz 360ms linear; }

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.4em;
  /* "sfondo sfocato" fatto con sfumature: niente filtri da ricalcolare */
  background:
    radial-gradient(circle at 20% 18%, rgba(251, 146, 60, 0.55), transparent 42%),
    radial-gradient(circle at 85% 40%, rgba(34, 197, 94, 0.45), transparent 45%),
    radial-gradient(circle at 30% 85%, rgba(239, 68, 68, 0.4), transparent 45%),
    linear-gradient(180deg, #1c1917, #0c0a09);
  color: #fff;
}
.phone-notch {
  position: absolute;
  top: 0.7em;
  left: 50%;
  width: 5.6em;
  height: 1.55em;
  margin-left: -2.8em;
  border-radius: 999px;
  background: #000;
}
.phone-home {
  position: absolute;
  bottom: 0.6em;
  left: 50%;
  width: 7em;
  height: 0.28em;
  margin-left: -3.5em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}
.phone-lock { padding-top: 3.4em; text-align: center; }
.phone-lock-icon { width: 1.1em; height: 1.1em; stroke-width: 2.2; opacity: 0.85; }
.phone-date {
  margin-top: 0.35em;
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.phone-time {
  font-family: var(--font-display);
  font-size: 4.6em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
/* livello delle notifiche: sopra lo schermo ma fuori dal suo ritaglio */
.phone-notifs {
  position: absolute;
  top: 12.2em;
  left: 0.8em;
  right: 0.8em;
}

/* ---------- Notifiche (stesse su computer e telefono) ----------
   .notif porta i movimenti (transform/opacity), .notif-card lo sfondo:
   così l'alone verde (::before) può stare dietro la card.            */
/* la notifica è disegnata alla dimensione che ha quando esce dal telefono
   (qui 1,15 volte la larghezza dello schermo del telefono); nella pila il
   JS la rimpicciolisce. Così il testo resta sempre nitido. */
.notif {
  position: absolute;
  top: 0;
  left: 0;
  width: 115%;
  font-size: 1.15em;
  opacity: 0;
  transform-origin: 50% 50%;
  /* niente will-change: così, finito l'ingrandimento, il browser ridisegna
     il testo alla nuova scala e resta nitido */
}
.notif::before {
  content: "";
  position: absolute;
  inset: -18px -10px;
  border-radius: 28px;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.5), transparent);
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}
.notif.is-fresh::before { opacity: 1; }
.notif.is-popped { z-index: 3; }
.notif-card {
  position: relative;
  display: flex;
  gap: 0.65em;
  padding: 0.7em 0.8em;
  border-radius: 1.2em;
  background: rgba(34, 34, 38, 0.92);
  box-shadow: 0 0.8em 1.8em -0.8em rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 0.82em;
  line-height: 1.3;
  color: #fff;
}
.notif-icon {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  flex: none;
  border-radius: 0.65em;
  color: #fff;
}
.notif-icon svg { width: 1.4em; height: 1.4em; stroke-width: 2; }
.notif-icon--wa { background: #25D366; }
.notif-icon--book { background: #F97316; }
.notif-icon--google { background: #fff; color: #FBBC04; }
.notif-icon--google svg { fill: currentColor; stroke: none; }
.notif-icon--card { background: #A855F7; }
.notif-main { flex: 1; min-width: 0; }
.notif-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.notif-title, .notif-text { display: block; }
.notif-title { font-weight: 600; margin-top: 0.1em; }
.notif-text { color: rgba(255, 255, 255, 0.85); }

/* WhatsApp: prima "sta scrivendo…", poi il messaggio (stessa cella) */
.notif-swap { display: grid; }
.notif-swap > * { grid-area: 1 / 1; }
.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: #25D366;
  animation: fade-out 200ms ease 650ms both;
}
.typing i {
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: currentColor;
  animation: typing-dot 700ms ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: 120ms; }
.typing i:nth-child(3) { animation-delay: 240ms; }
.notif-swap .notif-text { animation: fade-in 250ms ease 750ms both; }

/* Recensione: le stelle si riempiono in rapida sequenza, poi arriva il testo */
.stars { display: inline-flex; gap: 0.1em; margin-left: 0.3em; }
.stars b {
  font-weight: 400;
  color: #FBBC04;
  animation: star-fill 260ms var(--ease) both;
  animation-delay: calc(var(--s) * 90ms + 150ms);
}
.notif-text.after-stars { animation: fade-in 250ms ease 650ms both; }

@keyframes phone-float {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -12px, 0); }
}
@keyframes phone-buzz {
  0%, 100% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-3px, 0, 0) rotate(-0.4deg); }
  30% { transform: translate3d(3px, 0, 0) rotate(0.4deg); }
  45% { transform: translate3d(-2px, 0, 0); }
  60% { transform: translate3d(2px, 0, 0); }
  75% { transform: translate3d(-1px, 0, 0); }
}
@keyframes glow-pulse {
  0%   { opacity: 0.55; transform: scale(1); }
  30%  { opacity: 1;    transform: scale(1.08); }
  100% { opacity: 0.55; transform: scale(1); }
}
@keyframes typing-dot {
  0%, 60%, 100% { transform: translate3d(0, 0, 0); opacity: 0.5; }
  30% { transform: translate3d(0, -0.3em, 0); opacity: 1; }
}
@keyframes star-fill {
  from { opacity: 0.2; transform: scale(0.5); }
  60%  { transform: scale(1.35); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

/* hero fuori dallo schermo: tutte le animazioni ferme */
.hero.is-paused *,
.hero.is-paused *::before,
.hero.is-paused *::after { animation-play-state: paused; }

/* Marquee */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--bg);
  margin-top: var(--space-2xl);
  padding-block: var(--space-md);
  border-block: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span:not(.dot) {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Problema ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.problem-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.problem-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.problem-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.problem-card h3 { font-size: var(--type-h3); margin: var(--space-sm) 0 10px; }
.problem-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Settori: scene immersive ----------
   Senza JS (o con "riduci animazioni") ogni scena è un semplice
   riquadro con la foto a tutto schermo e il testo sopra.
   Il JS aggiunge .immersive su <html> e accende il 3D.          */
.scenes-intro { padding-bottom: var(--space-lg); }

.scene { position: relative; }

.scene-sticky {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: var(--bg);
}
.scene-stage, .scene-world { position: absolute; inset: 0; }
.scene-stage { z-index: -2; }

.layer { display: none; }
.layer-bg { display: block; position: absolute; inset: 0; }
.layer-bg img { width: 100%; height: 100%; object-fit: cover; }

.scene-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.94) 6%, rgba(10, 10, 11, 0.45) 45%, rgba(10, 10, 11, 0.05) 80%);
}

.scene-copy { position: relative; padding-block: var(--space-2xl); }
.scene-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.scene-title {
  font-size: clamp(3rem, 9vw, 8.5rem);
  font-weight: 900;
  margin: 6px 0 var(--space-sm);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.scene-copy p {
  max-width: 46ch;
  font-size: var(--type-lead);
  color: rgba(250, 250, 250, 0.92);
}

.scene-intro, .scene-progress, .particle { display: none; }

/* ----- Modalità immersiva ----- */
.immersive .scene { height: 320vh; }

.immersive .scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  background:
    radial-gradient(ellipse at 50% 50%, var(--tint, transparent), transparent 62%),
    var(--bg);
}

.immersive .scene-stage {
  perspective: 1000px;
  perspective-origin: 50% 50%;
}
.immersive .scene-world {
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 700ms var(--ease);
}

.immersive .layer {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  opacity: var(--o, 0);
  transform:
    translate3d(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)), var(--z, 0px))
    rotateZ(calc(var(--rz, 0deg) + var(--spin, 0deg)));
  will-change: transform, opacity;
}
.immersive .layer:not(.layer-bg):not(.particle) img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Lo sfondo parte come una "finestra" lontana e diventa tutto lo schermo */
.immersive .layer-bg {
  right: auto;
  bottom: auto;
  width: 100vw;
  height: 100vh;
  height: 100svh;
}
.immersive .layer-bg img {
  border-radius: calc((1 - var(--cam, 0)) * 44px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 60px 160px -30px rgba(0, 0, 0, 0.95);
}

.immersive .scene-veil { opacity: var(--copy, 0); }

.immersive .scene-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: var(--copy, 0);
  transform: translateY(calc((1 - var(--copy, 0)) * 56px));
  filter: blur(calc((1 - var(--copy, 0)) * 10px));
}

.immersive .scene-intro {
  display: flex;
  position: absolute;
  top: 112px;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: var(--intro, 1);
  pointer-events: none;
}
.scene-count {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
  color: var(--accent);
}
.scene-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.scene-hint .icon { width: 16px; height: 16px; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

.immersive .scene-progress {
  display: block;
  position: absolute;
  right: var(--space-md);
  top: 50%;
  width: 2px;
  height: 32vh;
  background: var(--border);
  transform: translateY(-50%);
}
.scene-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleY(var(--p, 0));
  transform-origin: top;
}

/* Particelle d'atmosfera: farina, scintille, bollicine, pulviscolo */
.immersive .particle { display: block; width: auto; }
.particle span {
  display: block;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  animation: float-dot var(--d) ease-in-out var(--dl) infinite alternate;
}
.particle--flour span   { background: rgba(255, 255, 255, 0.85); filter: blur(1px); }
.particle--sparks span  { background: #FDBA74; box-shadow: 0 0 14px 4px rgba(251, 146, 60, 0.65); }
.particle--dust span    { background: rgba(226, 232, 240, 0.55); filter: blur(0.6px); }
.particle--bubbles span {
  border: 1.5px solid rgba(254, 240, 190, 0.6);
  background: radial-gradient(circle at 30% 30%, rgba(255, 250, 230, 0.5), transparent 60%);
  animation-name: rise;
}
@keyframes float-dot {
  from { transform: translate(-12px, 12px); }
  to   { transform: translate(14px, -18px); }
}
@keyframes rise {
  from { transform: translateY(50px); }
  to   { transform: translateY(-90px); }
}

/* ---------- Servizi ---------- */
/* Tre gruppi (trovare, scegliere, tornare) separati da una riga sottile */
.service-group + .service-group {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
}
.service-group-head { max-width: 760px; margin-bottom: var(--space-lg); }
.service-group-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.service-group-title {
  margin-top: 6px;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 800;
}
.service-group-lead {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: var(--type-lead);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.service-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
  color: var(--accent);
  transition: background-color 250ms var(--ease), transform 350ms var(--ease);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--on-accent);
  transform: rotate(-6deg) scale(1.06);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h4 { font-size: var(--type-h3); margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Fascia CTA "consulenza gratuita" ----------
   Compatta: una call to action tra Servizi e Metodo, non una sezione.
   Su desktop titolo a sinistra e pulsante a destra.                   */
.cta-band {
  padding-block: var(--space-lg);
  border-block: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 140% at 50% 0%, rgba(34, 197, 94, 0.14), transparent 70%),
    linear-gradient(180deg, #0B1510, #0A0D0B);
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) var(--space-lg);
}
.cta-band-title {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 800;
}
.cta-band-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: none;
}
.cta-band-note {
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ---------- Metodo ---------- */
.steps {
  list-style: none;
  margin: 0 0 var(--space-2xl);
  padding: 0;
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  transition: -webkit-text-stroke-color 300ms var(--ease);
}
.step:hover .step-num { -webkit-text-stroke-color: var(--accent); }
.step-body h3 { font-size: var(--type-h3); margin-bottom: 10px; }
.step-body p { color: var(--text-muted); max-width: 60ch; }

.method-banner {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.method-banner img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.method-banner figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: linear-gradient(to top, rgba(10, 10, 11, 0.96), transparent);
}
.method-banner figcaption p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.4vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 40ch;
}

/* ---------- Chi siamo ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
/* allinea il testo al titolo, non all'etichetta "Chi siamo" */
.about-copy { padding-top: 2.4rem; }
.about-copy p {
  color: var(--text-muted);
  font-size: var(--type-lead);
}
.about-copy p + p { margin-top: var(--space-md); }
.about-copy .about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}
.about-copy .about-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
}
.about-note .icon { color: var(--accent); margin-top: 3px; }

/* ---------- Garanzia ---------- */
.guarantee {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(ellipse at 100% 0%, var(--accent-wash), transparent 55%),
    var(--surface);
}
.guarantee-copy .section-title { margin-bottom: var(--space-lg); }
.guarantee-copy p:not(.eyebrow) {
  margin-top: var(--space-md);
  max-width: 58ch;
  color: var(--text-muted);
  font-size: var(--type-lead);
}
.guarantee-copy strong { color: var(--text); font-weight: 600; }
.guarantee-copy p.guarantee-lead {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* "gratis!": grande, verde, con una sottolineatura che si disegna */
.guarantee-copy .free {
  position: relative;
  display: inline-block;
  font-size: 1.9em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent);
  transform: rotate(-3deg);
}
.free::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.22em;
  z-index: -1;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 800ms var(--ease) 500ms;
}
.guarantee-copy.is-visible .free::after { transform: scaleX(1); }
.guarantee-copy { position: relative; z-index: 0; }

/* La vostra foto, piccola e inclinata, che fluttua */
.guarantee-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 280px);
  margin: 0;
}
.guarantee-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-strong);
  transform: rotate(-4deg);
  transition: transform 450ms var(--ease);
  animation: bob 5s ease-in-out infinite alternate;
}
.guarantee-photo:hover .guarantee-frame { transform: rotate(0deg) scale(1.03); }
.guarantee-frame .photo-placeholder { border: 0; border-radius: 0; }
.guarantee-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

@keyframes bob {
  from { translate: 0 0; }
  to   { translate: 0 -12px; }
}

.guarantee-badge {
  position: absolute;
  right: -34px;
  bottom: -30px;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 16px 40px -12px rgba(34, 197, 94, 0.55);
}
.guarantee-badge > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
}
.guarantee-badge text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guarantee-badge-core .icon { width: 30px; height: 30px; stroke-width: 2.6; }

@keyframes spin { to { transform: rotate(360deg); } }

.photo-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-dim);
  text-align: center;
  padding: var(--space-md);
}
.photo-icon { width: 46px; height: 46px; stroke-width: 1.4; margin-bottom: 6px; }
.photo-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-muted);
}
.photo-hint { font-size: 0.8125rem; font-family: var(--font-body); }
/* ---------- Contatti ---------- */
.section-cta { background: var(--surface); }
.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  text-align: center;
}
.cta-lead {
  margin-top: var(--space-md);
  max-width: 48ch;
  color: var(--text-muted);
  font-size: var(--type-lead);
}
.btn-whatsapp {
  margin-top: var(--space-lg);
  min-height: 58px;
  padding: 16px 34px;
  font-size: 1.0625rem;
}
.btn-whatsapp .icon { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-xl) var(--space-md);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.footer-brand p { margin-top: 10px; color: var(--text-dim); font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; transition: color 200ms var(--ease); }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8125rem;
}
.footer-bottom a { border-bottom: 1px solid transparent; }
.footer-bottom a:hover { border-bottom-color: var(--accent); }

/* =========================================================
   ANIMAZIONI
   Tutto quello che segue viene disattivato automaticamente
   se il sistema chiede meno movimento (vedi in fondo).
   ========================================================= */

/* ---------- Comparsa degli elementi ----------
   --i è l'indice assegnato via JS: sfalsa l'entrata
   degli elementi vicini, così arrivano "a onda".      */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Le card entrano anche con una piccola scala */
.problem-card.reveal {
  transform: translateY(34px) scale(0.96);
}
.problem-card.reveal.is-visible {
  transform: none;
  transition-timing-function: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Le card dei servizi: solo dissolvenza e un leggero movimento verso l'alto,
   una dopo l'altra dentro ogni gruppo (--i riparte da 0 per ogni griglia) */
.service-card.reveal {
  transform: translateY(20px);
  transition-duration: 600ms;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.service-card.reveal.is-visible { transform: none; }

/* ---------- Titoli parola per parola ---------- */
.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) rotate(3deg);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: calc(var(--wi, 0) * 55ms);
  will-change: transform, opacity;
}
.is-visible .word { opacity: 1; transform: none; }

/* ---------- Riga d'accento sotto le intestazioni ---------- */
.section-head::after,
.hero-copy .eyebrow::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms var(--ease) 260ms;
}
.section-head::after { width: 180px; margin-top: var(--space-lg); }
.hero-copy .eyebrow::after { width: 92px; margin-top: 14px; }
.section-head.is-visible::after,
.hero-copy .eyebrow.is-visible::after { transform: scaleX(1); }

/* Un titolo diviso in parole non si anima anche come blocco:
   altrimenti sfuma in due tempi. Animano solo le parole.       */
.reveal.is-split { opacity: 1; transform: none; transition: none; }

/* ---------- Barra di avanzamento della lettura ---------- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    transform: scaleX(0);
    animation: progress-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- Alone verde d'ambiente ---------- */
.hero::before,
.section-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(680px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::before { top: -14%; right: -10%; }
.section-cta::before { bottom: -22%; left: -14%; animation-duration: 21s; }

/* clip (non hidden): taglia l'alone ai bordi senza creare un contenitore di scorrimento */
.hero, .section-cta { position: relative; isolation: isolate; overflow: clip; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.14); }
}

/* ---------- Parallasse legata allo scroll ----------
   Usa le animazioni native guidate dallo scroll dove
   il browser le supporta; altrove resta tutto fermo.  */
/* Le immagini stanno dentro contenitori con overflow: hidden, che sono
   a loro volta contenitori di scorrimento: lì le timeline CSS legate
   alla vista non si attivano. Lo spostamento lo calcola quindi il JS
   e lo passa qui dentro come --py (resta 0 se il JS non gira).       */
.method-banner img,
.guarantee-frame img {
  transform: translateY(var(--py, 0px)) scale(var(--pz, 1.1));
  will-change: transform;
}
.method-banner img { --pz: 1.14; }

/* I numeri dei passaggi si accendono mentre scorrono.
   Qui view() funziona: nessun contenitore ritaglia .step */
@supports (animation-timeline: view()) {
  .step-num {
    animation: num-ignite linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 42%;
  }
}
@keyframes num-ignite {
  from { -webkit-text-stroke-color: var(--border-strong); }
  to   { -webkit-text-stroke-color: var(--accent); }
}

/* ---------- Rifiniture al passaggio del mouse ---------- */
.btn-primary { box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 10px 34px -8px var(--accent-glow); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .about-grid, .guarantee { grid-template-columns: 1fr; gap: var(--space-xl); }
  .about-copy { padding-top: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
}

/* Sotto i 900 px il menu diventa quello a tendina (tre barrette) */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-sm) var(--space-md) var(--space-lg);
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 240ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
    color: var(--text);
  }
  .nav-cta { margin-top: var(--space-md); }
  .nav-toggle { display: inline-flex; }
}

/* Telefono (sotto i 768 px): testo in alto e subito sotto il telefono,
   tutto dentro la hero. Il telefono è alto al massimo circa metà schermo;
   le notifiche che escono si allargano fino a ~90% dello schermo (JS).  */
@media (max-width: 767px) {
  /* header (77px, bordo compreso) + spazio sopra + griglia = esattamente lo schermo visibile */
  .hero { --hero-top: 14px; padding-top: var(--hero-top); }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100svh - 77px - var(--hero-top));
  }
  .hero-copy .eyebrow { margin-bottom: 10px; }
  .hero-title { font-size: clamp(2.1rem, 9.6vw, 2.9rem); }
  .hero-lead { margin-top: 10px; }
  .hero-actions { margin-top: 16px; }

  /* il telefono prende lo spazio che resta sotto il pulsante e ci sta
     sempre intero; sopra e sotto restano 44px liberi per far uscire le
     notifiche (che il JS tiene lontane dal pulsante e dentro lo schermo) */
  .hero-phone {
    flex: 1;
    min-height: 0;
    container-type: size;
    align-items: center;
    padding: 0;
    --pw: min(calc((100cqh - 88px) / 2.06), 52vw, 215px);
  }
  .phone-float { animation-name: phone-float-small; }
  /* fuori dal telefono: larga circa 3/4 dello schermo, testo leggibile ma
     più piccolo del titolo */
  .phone-notifs .notif { width: min(76vw, 320px); font-size: 14.5px; }
  .phone-tilt { transform: rotateY(-9deg) rotateX(5deg) rotateZ(1deg); }
  /* velo più forte in alto dietro al testo, più leggero attorno al telefono */
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(10, 10, 11, 0.93) 0%, rgba(10, 10, 11, 0.88) 38%, rgba(10, 10, 11, 0.56) 62%, rgba(10, 10, 11, 0.48) 88%, rgba(10, 10, 11, 0.8) 100%);
  }
  .bg-rows { inset: -6% -30%; gap: 12px; }
  .bg-track { gap: 12px; }
  .bg-card { border-radius: 16px; }
  .bg-card figcaption { left: 8px; bottom: 8px; font-size: 0.6875rem; padding: 4px 8px; }
}
@keyframes phone-float-small {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -6px, 0); }
}

@media (max-width: 760px) {

  .section { padding-block: var(--space-xl); }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding-block: var(--space-lg); }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-action, .cta-band-btn { width: 100%; }

  .service-grid { grid-template-columns: 1fr; }

  .service-group + .service-group { margin-top: var(--space-xl); padding-top: var(--space-xl); }

  .guarantee { padding: var(--space-lg) var(--space-md) var(--space-xl); border-radius: var(--radius); }
  .guarantee-photo { width: min(72%, 240px); }
  .guarantee-badge { right: -22px; bottom: -24px; width: 100px; height: 100px; }
  .immersive .scene { height: 260vh; }
  .immersive .scene-progress { right: 10px; }
  .step { grid-template-columns: 1fr; gap: var(--space-sm); }
  .method-banner img { aspect-ratio: 4 / 3; }
  .footer-inner { flex-direction: column; }
}

/* ---------- Motion ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .problem-card.reveal,
  .service-card.reveal { opacity: 1; transform: none; }

  .word { opacity: 1; transform: none; }

  .section-head::after,
  .hero-copy .eyebrow::after { transform: scaleX(1); }

  .marquee-track { animation: none; }

  /* niente alone pulsante, niente parallasse */
  .hero::before, .section-cta::before { animation: none; }
  .step-num { animation: none; }
  .method-banner img, .guarantee-frame img {
    transform: scale(var(--pz, 1.1));
  }

  .btn:hover, .problem-card:hover, .service-card:hover { transform: none; }
  /* telefono: niente zoom, vibrazione né parallasse; il JS mostra
     tre notifiche già impilate e ferme */
  .bg-track, .phone-float, .phone-glow, .phone.is-buzzing, .typing i { animation: none; }
  .guarantee-frame, .guarantee-photo:hover .guarantee-frame { transform: none; animation: none; }
  .service-card:hover .service-icon { transform: none; }
}
