/* ===== Grandiosa – Lavanderia Self-Service =====
   Mobile-first: gli stili base sono per il telefono,
   le media query (min-width) aggiungono il layout per schermi grandi. */

:root {
  --sky: #7cc6ea;          /* azzurro del logo (solo decorativo) */
  --sky-2: #a9dcf4;
  --sky-soft: #eaf6fc;
  --blue: #0b5a84;         /* testo e pulsanti: contrasto AA su bianco */
  --blue-2: #1f73a3;       /* fine gradiente titolo: ≥ 4,5:1 su bianco */
  --blue-deep: #083f5e;
  --silver: #a7afb7;       /* argento della corona (solo decorativo) */
  --ink: #23272b;
  --muted: #4f5964;
  --bg: #ffffff;
  --tint: #f3f9fd;
  --line: #dce6ee;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(8, 63, 94, .10);
  --shadow-lg: 0 24px 60px rgba(8, 63, 94, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  --bar-space: calc(88px + env(safe-area-inset-bottom)); /* spazio riservato alla barra azioni */
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-padding-bottom: var(--bar-space);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  padding-bottom: var(--bar-space);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .55em; color: var(--blue-deep); }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 6.5vw, 2.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small-text { font-size: .92rem; margin-top: 12px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .site-footer :focus-visible, .marquee :focus-visible { outline-color: #fff; }

/* Segnaposto della bozza */
mark.ph { background: #fff1a8; color: #5e4a00; padding: 0 .3em; border-radius: 4px; }

/* Barra di avanzamento lettura */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ===== Pulsanti ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.5em; border-radius: 999px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 2px solid var(--blue);
  transition: background .25s, color .25s, transform .14s var(--ease), box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-glow { box-shadow: 0 10px 24px rgba(11, 90, 132, .28); }
.btn-ghost { background: rgba(255, 255, 255, .75); color: var(--blue); }
.btn-light { background: #fff; color: var(--blue-deep); border-color: #fff; }
.btn-small { min-height: 44px; padding: .5em 1.2em; font-size: .92rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; transform: translateY(-2px); }
  .btn-ghost:hover { background: var(--sky-soft); border-color: var(--blue); color: var(--blue-deep); }
  .btn-light:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--blue-deep); }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* Sfocatura su uno pseudo-elemento: un backdrop-filter sull'header
   renderebbe il menu fixed relativo all'header invece che allo schermo */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(8, 63, 94, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 110; }
/* Logo (versione "colori corretti", scontornata) */
.brand picture, .loyalty-card picture, .footer-inner picture { display: contents; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-sub {
  font-size: .66rem; line-height: 1.2; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px;
}

.nav-toggle {
  position: relative; z-index: 110;
  width: 48px; height: 48px; display: grid; place-content: center; gap: 5px;
  background: var(--sky-soft); border: 0; border-radius: 14px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--blue-deep); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu a tutto schermo su telefono (scorrevole se il testo è ingrandito) */
.nav {
  position: fixed; inset: 0; z-index: 105; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 2px;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + 28px) 28px calc(32px + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, #ffffff 0%, var(--sky-soft) 100%);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}
.nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.nav a:not(.btn) {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 600; color: var(--blue-deep);
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.nav.open a:not(.btn) { opacity: 1; transform: none; }
.nav.open a:nth-child(2) { transition-delay: .04s; }
.nav.open a:nth-child(3) { transition-delay: .08s; }
.nav.open a:nth-child(4) { transition-delay: .12s; }
.nav.open a:nth-child(5) { transition-delay: .16s; }
.nav .nav-cta { margin-top: 24px; align-self: stretch; min-height: 54px; font-size: 1.05rem; }
.nav:focus { outline: none; }
body.menu-open { overflow: hidden; }

/* Senza JavaScript: niente hamburger, il menu diventa una riga scorrevole sotto il logo */
@media (max-width: 899px) {
  html:not(.js-ready) .nav-toggle { display: none; }
  html:not(.js-ready) .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0 0; gap: 6px; }
  html:not(.js-ready) .nav {
    position: static; height: auto; width: 100%; flex-direction: row; gap: 18px; overflow-x: auto;
    padding: 4px 0 10px; background: none; visibility: visible; opacity: 1; transform: none;
  }
  html:not(.js-ready) .nav a:not(.btn) { font-family: var(--sans); font-size: .95rem; opacity: 1; transform: none; border: 0; white-space: nowrap; padding: 8px 0; }
  html:not(.js-ready) .nav .nav-cta { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 24px 0 96px;
  background:
    radial-gradient(600px 400px at 90% 0%, var(--sky-soft), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, #f0f8fd, transparent 70%),
    #fff;
}
.hero-inner { position: relative; z-index: 2; display: grid; gap: 28px; }
.hero-text { text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  box-shadow: 0 4px 14px rgba(8, 63, 94, .06);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 0 rgba(31, 115, 163, .5); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(31, 115, 163, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 115, 163, 0); } }

.hero h1 { font-size: clamp(2.5rem, 11vw, 4.6rem); margin-bottom: .35em; }
/* Colore pieno (niente background-clip: text): con il gradiente ritagliato sul testo
   la gamba della "g" usciva dal riquadro dello sfondo e diventava invisibile */
.hero h1 em { font-style: italic; color: #16679a; white-space: nowrap; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 32em; margin-inline: auto; }

.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--blue-deep);
}
.chips svg { width: 17px; height: 17px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }

/* Titolo: parole che entrano una alla volta (breve, poi tutto è leggibile) */
/* Spazio extra sotto e ai lati (compensato dai margini negativi) perché la maschera
   non tagli le lettere che scendono sotto la riga (g) né quelle corsive inclinate */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .12em .3em; margin: 0 -.12em -.3em; }
.split-words .w > span { display: inline-block; }
.js-ready .split-words .w > span { transform: translateY(105%); animation: wordUp .45s var(--ease) forwards; animation-delay: calc(.05s + var(--i) * .05s); }
@keyframes wordUp { to { transform: none; } }

/* Bollicine */
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubbles span {
  position: absolute; bottom: -40px; width: var(--s, 14px); height: var(--s, 14px); border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95), rgba(124, 198, 234, .35) 60%, rgba(124, 198, 234, .15));
  border: 1px solid rgba(124, 198, 234, .45);
  animation: rise var(--t, 12s) linear infinite; animation-delay: var(--dl, 0s);
}
.bubbles span:nth-child(1) { left: 6%;  --s: 18px; --t: 14s; }
.bubbles span:nth-child(2) { left: 24%; --s: 10px; --t: 11s; --dl: -4s; }
.bubbles span:nth-child(3) { left: 44%; --s: 22px; --t: 17s; --dl: -9s; }
.bubbles span:nth-child(4) { left: 64%; --s: 12px; --t: 12s; --dl: -2s; }
.bubbles span:nth-child(5) { left: 82%; --s: 18px; --t: 15s; --dl: -7s; }
.bubbles span:nth-child(6) { left: 94%; --s: 10px; --t: 10s; --dl: -5s; }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate3d(12px, -50vh, 0); }
  100% { transform: translate3d(-8px, -105vh, 0); opacity: 0; }
}
.hero.paused .bubbles span, .hero.paused .washer, .hero.paused .washer *, .hero.paused .hero-waves { animation-play-state: paused; }

/* Lavatrice animata */
.hero-visual { display: grid; place-items: center; }
.washer {
  --w: min(64vw, 280px);
  position: relative; width: var(--w); aspect-ratio: .86;
  border-radius: calc(var(--w) * .09);
  background: linear-gradient(160deg, #ffffff 0%, #eef3f7 60%, #dfe7ee 100%);
  box-shadow: var(--shadow-lg), inset 0 -6px 0 rgba(8, 63, 94, .06), inset 0 2px 0 #fff;
  padding: calc(var(--w) * .07);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.washer-panel { display: flex; align-items: center; gap: 10px; height: 14%; padding-bottom: 6%; border-bottom: 2px solid #e2e9ef; }
.washer-screen { font: 700 calc(var(--w) * .045)/1 var(--sans); color: var(--sky); background: var(--blue-deep); padding: 6px 10px; border-radius: 6px; letter-spacing: .04em; }
.washer-led { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; margin-left: auto; }
.washer-knob { width: calc(var(--w) * .1); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--silver)); box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .15); }
.washer-door {
  margin: 9% auto 0; width: 82%; aspect-ratio: 1; border-radius: 50%; padding: 7%;
  background: radial-gradient(circle at 30% 25%, #ffffff, #c5ced6 55%, #8f9aa4 100%);
  box-shadow: 0 8px 18px rgba(8, 63, 94, .2), inset 0 2px 3px rgba(255, 255, 255, .8);
}
.washer-drum {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #f4fbff, #cfeaf8);
  box-shadow: inset 0 6px 18px rgba(8, 63, 94, .35);
  isolation: isolate;
}
.wave { position: absolute; left: 50%; width: 220%; aspect-ratio: 1; margin-left: -110%; }
.wave-1 { top: 48%; border-radius: 42%; background: rgba(124, 198, 234, .75); animation: spin 7s linear infinite; }
.wave-2 { top: 52%; border-radius: 40%; background: rgba(11, 90, 132, .55); animation: spin 11s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.clothes { position: absolute; inset: 14%; animation: spin 3.2s cubic-bezier(.45, .05, .55, .95) infinite; }
.clothes i { position: absolute; width: 30%; height: 18%; border-radius: 40% 60% 50% 45%; opacity: .9; }
.clothes i:nth-child(1) { top: 8%; left: 30%; background: #f6c26b; }
.clothes i:nth-child(2) { top: 40%; left: 4%; background: #ffffff; transform: rotate(60deg); }
.clothes i:nth-child(3) { bottom: 10%; left: 40%; background: #f28b9b; transform: rotate(-20deg); }
.clothes i:nth-child(4) { top: 38%; right: 2%; background: #8fd3b6; transform: rotate(100deg); }
.glass { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 38%); z-index: 3; }
.washer-badge {
  position: absolute; right: -14px; bottom: 14%;
  width: calc(var(--w) * .26); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  font: 800 calc(var(--w) * .085)/1 var(--sans); color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 10px 24px rgba(11, 90, 132, .35);
}
.washer-badge small { font-size: .45em; font-weight: 600; letter-spacing: .05em; }

/* Onde in fondo all'hero */
.hero-waves { position: absolute; left: 0; bottom: -1px; width: 200%; height: 70px; z-index: 1; animation: waveSlide 16s linear infinite; }
.hero-waves .w1 { fill: rgba(124, 198, 234, .35); }
.hero-waves .w2 { fill: var(--blue-deep); }
@keyframes waveSlide { to { transform: translateX(-50%); } }

/* ===== Striscia scorrevole + pulsante "Pausa animazioni" ===== */
.marquee { position: relative; background: var(--blue-deep); color: #e3f2fa; overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }
.motion-toggle {
  position: absolute; z-index: 2; left: 0; top: 0; bottom: 0;
  display: none; align-items: center; gap: 6px; padding: 0 16px 0 14px; min-width: 48px;
  border: 0; background: linear-gradient(90deg, var(--blue-deep) 75%, rgba(8, 63, 94, 0));
  color: #fff; font: 600 .78rem var(--sans); cursor: pointer;
}
.js-ready .motion-toggle { display: inline-flex; }
.motion-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.motion-toggle .i-play { display: none; fill: currentColor; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
/* Etichetta visibile solo su schermi larghi; su telefono resta per lettori di schermo */
.motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Animazioni in pausa su richiesta dell'utente */
.anim-paused *, .anim-paused *::before, .anim-paused *::after { animation-play-state: paused !important; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { white-space: nowrap; font-weight: 600; font-size: .92rem; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.marquee li::after { content: "✦"; color: var(--sky); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sezioni ===== */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 100%); color: #e5f2f9; position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; width: 480px; aspect-ratio: 1; border-radius: 50%; right: -200px; top: -200px; background: radial-gradient(circle, rgba(124, 198, 234, .28), transparent 70%); pointer-events: none; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--sky-2); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .8em; }

/* Schede: su telefono icona + titolo in riga, testo a tutta larghezza sotto */
.cards { display: grid; gap: 14px; }
.cards > div { display: grid; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 10px; align-items: center;
  transition: translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card h3 { margin: 0; }
.card p { grid-column: 1 / -1; color: var(--muted); margin: 0; font-size: 1rem; }
.icon-wrap { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-soft); transition: transform .4s var(--ease), background .4s; }
.icon { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill { fill: var(--blue); stroke: none; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { translate: 0 -4px; box-shadow: var(--shadow); border-color: transparent; }
  .card:hover .icon-wrap { transform: rotate(-8deg) scale(1.08); background: #d8effa; }
}

/* ===== Lavatrici: carosello a scorrimento su telefono ===== */
.size-picker { display: none; gap: 8px; margin-bottom: 8px; }
.js-ready .size-picker { display: flex; }
.size-picker button {
  flex: 1; min-height: 48px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font: 700 1rem var(--sans); color: var(--blue-deep); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .14s;
}
.size-picker button:active { transform: scale(.97); }
.size-picker button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.machines {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  padding: 12px 16px 22px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.machines::-webkit-scrollbar { display: none; }
.machines > div { scroll-snap-align: start; display: grid; }
.machine {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px;
  box-shadow: var(--shadow); transition: translate .4s var(--ease), box-shadow .4s;
}
.machine.featured { border: 2px solid var(--sky); }
/* Livello dell'acqua: il contenitore trasla (riempimento), l'onda interna ruota */
.machine-drum {
  width: 76px; aspect-ratio: 1; border-radius: 50%; margin-bottom: 16px; position: relative; overflow: hidden;
  border: 6px solid #dfe6ec; background: var(--sky-soft);
}
.machine-drum span {
  position: absolute; left: -50%; top: 0; width: 200%; aspect-ratio: 1;
  transform: translateY(calc((1 - var(--fill)) * 50%));
}
.machine-drum span::before { content: ""; position: absolute; inset: 0; border-radius: 42%; background: var(--sky); animation: spin 6s linear infinite; }
.js-ready .machine-drum span { transform: translateY(50%); transition: transform 1.2s var(--ease) .25s; }
.js-ready .visible .machine-drum span { transform: translateY(calc((1 - var(--fill)) * 50%)); }
.kg { font-family: var(--serif); font-size: 3.4rem; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 10px; }
.kg span { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.machine ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 1rem; }
.machine li { padding-left: 22px; position: relative; }
.machine li + li { margin-top: 6px; }
.machine li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }

.dryer { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); margin-top: 8px; }
.dryer h3 { margin-bottom: .3em; }
.dryer p { margin: 0; color: var(--muted); }
.dryer-icon { flex: none; width: 64px; aspect-ratio: 1; border-radius: 50%; border: 6px solid #dfe6ec; background: #fff7ec; display: grid; place-items: center; }
.dryer-icon span { width: 60%; aspect-ratio: 1; border-radius: 50%; border: 3px dashed #d9862b; animation: spin 2.6s linear infinite; }

.note { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.note.small-text { margin-top: 0; }
.note-light { color: #d6ebf6; position: relative; }

/* ===== Come funziona ===== */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--sky), var(--line)); }
.timeline li { display: flex; gap: 18px; align-items: flex-start; position: relative; }
.step-n {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 6px #fff;
}
.timeline h3 { margin: 10px 0 .3em; }
.timeline p { margin: 0; color: var(--muted); }

/* ===== Split layout ===== */
.split { display: grid; gap: 32px; align-items: center; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { padding: 16px 18px 16px 58px; border-radius: 16px; background: #fff; border: 1px solid var(--line); position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.js-ready .checklist li.reveal::before { transform: scale(0); transition: transform .4s var(--ease) .2s; }
.js-ready .checklist li.visible::before { transform: scale(1); }
.checklist strong { display: block; color: var(--blue-deep); }
.checklist span { color: var(--muted); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 70px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--blue-deep);
  display: grid; place-items: center; font-weight: 800;
}
.steps strong { display: block; color: #fff; }
.steps span { color: #d6ebf6; }
.section-dark .btn-light { margin-top: 8px; }

/* ===== Card fedeltà ===== */
.card-stage { perspective: 1000px; display: grid; place-items: center; padding: 10px 0; }
.loyalty-card {
  position: relative; overflow: hidden;
  aspect-ratio: 1.586; width: min(100%, 420px);
  border-radius: 22px; padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, var(--sky-soft) 50%, #c9e8f7 100%);
  box-shadow: var(--shadow-lg); border: 1px solid #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -6deg));
  transition: transform .6s var(--ease);
}
.js-ready .card-stage.reveal .loyalty-card { transform: rotateX(14deg) rotateY(-22deg) scale(.94); }
.js-ready .card-stage.visible .loyalty-card { transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -6deg)); transition: transform 1s var(--ease) .1s; }
.lc-shine { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%); transform: translateX(-70%); pointer-events: none; }
.visible .lc-shine { animation: shine .8s ease-out .7s forwards; }
@keyframes shine { to { transform: translateX(70%); } }
.lc-logo { width: 46%; height: auto; display: block; }
.loyalty-card p { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue); }
.lc-meter { display: flex; align-items: center; gap: 10px; }
.lc-bar { flex: 1; height: 12px; border-radius: 999px; background: rgba(8, 63, 94, .1); overflow: hidden; }
.lc-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sky), var(--blue)); transform-origin: left; transform: scaleX(.7); }
.js-ready .card-stage.reveal .lc-bar span { transform: scaleX(0); }
.js-ready .card-stage.visible .lc-bar span { transform: scaleX(.7); transition: transform 1.4s var(--ease) .5s; }
.lc-gift { font-size: 1.4rem; }
.visible .lc-gift { animation: pop .5s var(--ease) 1.8s both; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.35) rotate(-12deg); } 100% { transform: scale(1); } }

.mini-steps { list-style: none; counter-reset: ms; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.mini-steps li { counter-increment: ms; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.mini-steps li::before {
  content: counter(ms); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-soft); color: var(--blue); font-weight: 800;
}
.mini-steps b { color: var(--blue-deep); }

/* ===== Orari e contatti ===== */
.split-top { align-items: start; }
.week { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week li {
  aspect-ratio: 1; max-width: 56px; width: 100%; display: grid; place-items: center; border-radius: 50%;
  background: var(--tint); border: 1px solid var(--line); font-weight: 800; font-size: 1rem; color: var(--blue-deep);
}
.week li.today { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(11, 90, 132, .25); }
.contact { font-style: normal; background: var(--tint); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.contact p { display: flex; flex-direction: column; margin-bottom: 16px; }
.label { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.map-placeholder {
  margin-top: 8px; border: 2px dashed var(--line); border-radius: 16px; min-height: 160px;
  display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); background: #fff;
}

/* ===== Footer ===== */
.site-footer { background: var(--blue-deep); color: #d6ebf6; padding: 48px 0 40px; text-align: center; }
.footer-logo { display: block; width: 200px; height: auto; margin: 0 auto 18px; background: #fff; border-radius: 16px; padding: 12px 16px; box-sizing: content-box; }
.site-footer p { margin: 0 0 6px; }
.small { font-size: .88rem; }
.draft-note { margin-top: 14px !important; }

/* ===== Barra azioni fissa (telefono) ===== */
.action-bar {
  position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 6px; padding: 6px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 40px rgba(8, 63, 94, .22);
  transform: translateY(160%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.action-bar.show { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.action-bar a {
  min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--blue-deep); font-size: .76rem; font-weight: 700; border-radius: 16px;
  transition: background .2s, transform .14s;
}
.action-bar a:active { background: var(--sky-soft); transform: scale(.97); }
.action-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-bar a.primary { background: var(--blue); color: #fff; flex-direction: row; gap: 8px; font-size: .88rem; padding: 0 8px; }
.action-bar a.primary:active { background: var(--blue-deep); }

/* ===== Animazioni allo scorrimento (solo dopo l'avvio dello script) ===== */
.js-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: var(--stagger, 0s); }
.js-ready .reveal.visible { opacity: 1; transform: none; }

/* ===== Tablet e desktop ===== */
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { display: block; padding: 28px 24px; }
  .card .icon-wrap { margin-bottom: 18px; }
  .card h3 { margin-bottom: .4em; }
  .machines { grid-auto-columns: 46%; }
  .size-picker { max-width: 420px; }
}

@media (min-width: 900px) {
  :root { --header-h: 78px; --bar-space: 0px; }
  .action-bar { display: none; }
  .brand-logo { height: 54px; }
  .brand-sub { font-size: .72rem; }

  .nav-toggle { display: none; }
  .motion-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .motion-toggle { padding-right: 56px; background: linear-gradient(90deg, var(--blue-deep) calc(100% - 48px), rgba(8, 63, 94, 0)); }
  .nav {
    position: static; inset: auto; height: auto; flex-direction: row; align-items: center; gap: 28px; overflow: visible;
    padding: 0; background: none; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav a:not(.btn) {
    font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--ink); border: 0;
    padding: 6px 0; opacity: 1; transform: none; position: relative;
  }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav a:not(.btn):hover::after { transform: scaleX(1); }
  .nav .nav-cta { margin: 0; min-height: 44px; align-self: auto; font-size: .92rem; }

  .hero { padding: 72px 0 140px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
  .hero-text { text-align: left; }
  .lead { margin-inline: 0; font-size: 1.18rem; }
  .chips { justify-content: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .washer { --w: 340px; }
  .hero-waves { height: 110px; }

  .section { padding: 112px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }

  .size-picker, .js-ready .size-picker { display: none; }
  .machines {
    width: min(1120px, 100% - 32px); margin-inline: auto; padding: 20px 0 24px;
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 24px;
  }
  .machine { padding: 34px 30px; }
  .machine.featured { translate: 0 -12px; }
  .machine:hover { translate: 0 -6px; box-shadow: var(--shadow-lg); }
  .machine.featured:hover { translate: 0 -18px; }

  .timeline { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .timeline::before { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--sky), var(--line)); }
  .timeline li { flex-direction: column; }
  .timeline h3 { margin-top: 0; }

  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* ===== Movimento ridotto: tutto fermo e visibile ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js-ready .reveal { opacity: 1; transform: none; }
  .js-ready .split-words .w > span { transform: none; }
  .js-ready .machine-drum span, .js-ready .reveal .machine-drum span { transform: translateY(calc((1 - var(--fill)) * 50%)); }
  .js-ready .checklist li.reveal::before { transform: none; }
  .js-ready .card-stage.reveal .loyalty-card { transform: rotateX(4deg) rotateY(-6deg); }
  .js-ready .card-stage.reveal .lc-bar span { transform: scaleX(.7); }
  .bubbles { display: none; }
  .js-ready .motion-toggle { display: none; }
  .marquee-track { width: auto; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .marquee ul.dup { display: none; }
}
