/* Leo Machinery: tutto lo stile del sito in un solo file.
   Direzione grafica "cava e vetro": pietra scura (basalto), pietra chiara (calcare),
   un solo accento giallo segnaletico (il giallo delle macchine), vetro sfocato solo sopra le foto.
   Per cambiare colori o caratteri basta modificare le variabili qui sotto. */

@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 900; font-display: swap; src: url("/fonts/archivo-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Colori */
  --basalt: #161c20;       /* fondo scuro: pietra grigio-blu */
  --basalt-2: #1f272c;     /* superfici sul fondo scuro */
  --basalt-line: #2e383e;  /* linee sul fondo scuro */
  --limestone: #e7e9e6;    /* fondo chiaro: calcare */
  --chalk: #f6f7f5;        /* schede e campi sul fondo chiaro */
  --stone-line: #d3d7d3;   /* linee sul fondo chiaro */
  --text: #13191c;         /* testo su chiaro */
  --text-soft: #56636a;    /* testo secondario su chiaro */
  --on-dark: #eef1ef;      /* testo su scuro */
  --steel: #a3afb5;        /* testo secondario su scuro */
  --signal: #f2b705;       /* giallo macchina: pulsanti, punti, dettagli */
  --signal-hover: #ffc927;

  /* Vetro: solo sopra le foto */
  --glass-bg: rgba(22, 28, 32, .46);
  --glass-line: rgba(255, 255, 255, .16);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .14);
  --glass-blur: blur(18px) saturate(150%);

  /* Misure */
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header: 84px;          /* spazio occupato dalla barra in alto */
  --ease: cubic-bezier(.2, .7, .1, 1);

  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--basalt); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--signal); color: var(--basalt); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 720px; }

/* ---------- Titoli ---------- */
h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.7rem, 8.2vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); max-width: 20ch; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.dot { color: var(--signal); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--steel); max-width: 36em; margin-top: 22px; }
.eyebrow { font-size: .95rem; color: var(--text-soft); margin-bottom: 12px; }

/* ---------- Barra in alto: pillola di vetro sospesa ---------- */
.devbar { position: fixed; left: 12px; bottom: 12px; z-index: 60; background: var(--signal); color: var(--basalt); font-size: .75rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: 12px var(--gutter); pointer-events: none; }
.top-bar { pointer-events: auto; max-width: calc(var(--wrap) + 40px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 22px; border-radius: 999px; color: var(--on-dark);
  background: rgba(22, 28, 32, .8); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine), 0 12px 40px -18px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: background .35s var(--ease); }
.has-hero:not(.is-scrolled) .top-bar { background: var(--glass-bg); }
.logo { font-family: var(--display); font-weight: 900; font-size: 1.3rem; letter-spacing: -.01em; text-decoration: none; color: var(--on-dark); white-space: nowrap; }
.logo span { color: var(--signal); }
.logo small { font-family: var(--body); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-left: 4px; }
.top nav { display: flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--steel); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .07); }
.top nav .nav-cta { color: var(--basalt); background: var(--signal); font-weight: 600; padding: 9px 18px; margin-left: 6px; }
.top nav .nav-cta:hover { background: var(--signal-hover); color: var(--basalt); }

/* ---------- Selettore lingua: bandierina rotonda ---------- */
.flag { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.flag svg { display: block; width: 100%; height: 100%; }
.top .lang { position: relative; margin-left: 4px; border: 0; padding: 0; }
.top .lang summary { list-style: none; display: block; width: 34px; height: 34px; padding: 2px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px var(--glass-line); transition: box-shadow .2s; }
.top .lang summary::-webkit-details-marker { display: none; }
.top .lang summary::after { content: none; }
.top .lang summary:hover, .top .lang[open] summary { box-shadow: 0 0 0 2px var(--signal); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 14px); min-width: 180px; display: grid; gap: 2px; padding: 6px; border-radius: var(--radius); background: rgba(22, 28, 32, .9); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine), 0 24px 50px -20px rgba(0, 0, 0, .8); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.top nav .lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
.lang-menu .flag { width: 22px; height: 22px; flex: none; }
.top nav .lang-menu a[aria-current] { background: rgba(255, 255, 255, .08); color: var(--on-dark); }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--signal); color: var(--basalt); box-shadow: 0 10px 30px -12px rgba(242, 183, 5, .7); }
.btn-accent:hover { background: var(--signal-hover); }
.btn-glass { color: var(--on-dark); background: rgba(255, 255, 255, .08); border-color: var(--glass-line); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shine); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-ghost { border-color: var(--basalt-line); color: var(--on-dark); }
.btn-dark { background: var(--basalt); color: var(--on-dark); }
.btn-dark:hover { background: var(--basalt-2); }
.btn-line { border-color: var(--stone-line); color: var(--text); background: var(--chalk); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.link { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; background: linear-gradient(var(--signal), var(--signal)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease); }
.link:hover { background-size: 100% 100%; color: var(--basalt); }

/* ---------- Apertura della home: foto a tutto schermo ---------- */
.hero { position: relative; color: var(--on-dark); background: var(--basalt); }
.hero-photo { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--header) + 40px) 0 28px; }
.hero:not(.hero-photo) { padding: calc(var(--header) + 80px) 0 60px; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(22, 28, 32, .92) 0%, rgba(22, 28, 32, .35) 45%, rgba(22, 28, 32, .05) 70%),
    linear-gradient(90deg, rgba(22, 28, 32, .7) 0%, rgba(22, 28, 32, .2) 55%, rgba(22, 28, 32, 0) 80%); }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
/* Scorrimento: la foto nuova entra da destra, quella vecchia esce a sinistra */
.hero-slide { position: absolute; inset: 0; background: 70% 50% / cover no-repeat; transform: translateX(100%); transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.hero-slide.is-on { transform: translateX(0); }
.hero-slide.is-out { transform: translateX(-100%); }
.hero-kicker { font-size: 1rem; font-weight: 500; color: var(--steel); margin-bottom: 18px; }
.hero-photo > .wrap { width: 100%; }
.hero-title { font-size: clamp(2.6rem, 6.6vw, 6rem); max-width: 16ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero .lead { color: #d3dadd; }

.hero-bar { margin-top: clamp(40px, 7vh, 72px); }
.glass { background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine), 0 20px 50px -24px rgba(0, 0, 0, .7); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.hero-glass { border-radius: var(--radius-lg); padding: 22px 26px; display: flex; align-items: center; gap: 28px; }
.hero-facts { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: .9rem; color: var(--steel); }
.hero-facts li { padding-left: 14px; border-left: 2px solid var(--signal); }
.hero-facts strong { display: block; color: var(--on-dark); font-family: var(--display); font-weight: 800; font-size: 1rem; margin-bottom: 2px; }
/* Avanzamento del carosello: una barretta per foto, quella attiva si riempie */
.hero-progress { display: flex; gap: 6px; flex: none; }
.hero-progress i { display: block; width: 30px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hero-progress b { display: block; height: 100%; width: 0; background: var(--on-dark); }
.hero-progress i.is-done b { width: 100%; }
.hero-progress i.is-on b { animation: hero-fill var(--slide-ms, 4000ms) linear forwards; }
@keyframes hero-fill { from { width: 0; } to { width: 100%; } }

/* Ingresso della home: il titolo sale riga per riga, poi compare il vetro */
.hero-title .line > span, .hero-kicker, .hero .lead, .hero .actions, .hero-glass { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.js .is-loading .hero-title .line > span { transform: translateY(105%); }
.js .is-loading .hero-kicker, .js .is-loading .hero .lead, .js .is-loading .hero .actions { opacity: 0; transform: translateY(14px); }
.js .is-loading .hero-glass { opacity: 0; transform: translateY(24px); }
.hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.hero .lead { transition-delay: .22s; }
.hero .actions { transition-delay: .3s; }
.hero-glass { transition-delay: .42s; }

.page-head { color: var(--on-dark); padding: calc(var(--header) + clamp(56px, 9vw, 110px)) 0 clamp(40px, 6vw, 64px); background: radial-gradient(1000px 420px at 85% -10%, rgba(242, 183, 5, .1), transparent 60%), var(--basalt); }
.page-head h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 16ch; hyphens: auto; } /* parole tedesche lunghe: qui sì, vanno a capo con il trattino */
.page-head .btn { margin-top: 28px; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.light { background: var(--limestone); color: var(--text); }
.section.dark { background: var(--basalt); color: var(--on-dark); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section > .wrap > h2 { margin-bottom: 44px; }
.empty { font-size: 1.1rem; color: var(--text-soft); }
.empty a { text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Titoli che compaiono scorrendo (solo i titoli: il resto resta fermo) */
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }

/* ---------- Schede macchina ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { display: block; background: var(--chalk); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: 0 1px 0 var(--stone-line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(22, 28, 32, .55); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--basalt-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.045); }
.glass-chip { position: absolute; left: 12px; top: 12px; font-size: .78rem; font-weight: 600; color: var(--on-dark); padding: 7px 12px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.badge { position: absolute; top: 12px; right: 12px; background: var(--signal); color: var(--basalt); font-size: .75rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.card-body { padding: 20px 22px 22px; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 1.4rem; }
.ref { font-size: .8rem; font-weight: 500; color: var(--text-soft); white-space: nowrap; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card-facts span { font-size: .8rem; font-weight: 500; background: var(--limestone); border-radius: 999px; padding: 4px 11px; }
.card-price { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--stone-line); font-family: var(--display); font-weight: 900; font-size: 1.55rem; }
.card-price small { font-family: var(--body); font-weight: 500; font-size: .75rem; color: var(--text-soft); }
.card-price .por { font-size: 1.15rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { font: 600 .85rem var(--body); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--stone-line); background: var(--chalk); color: var(--text); cursor: pointer; transition: background .2s, color .2s; }
.chip.is-on { background: var(--basalt); border-color: var(--basalt); color: var(--on-dark); }

/* ---------- Tre passi (è una sequenza: i numeri hanno senso) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--basalt-line); }
.steps li { padding: 32px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--basalt-line); }
.steps span { font-family: var(--display); font-weight: 900; font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--signal); }
.steps h3 { margin: 20px 0 10px; font-size: 1.3rem; }
.steps p { color: var(--steel); max-width: 30em; }

/* ---------- Perché noi ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why div { border-top: 3px solid var(--text); padding-top: 20px; }
.why h3 { margin-bottom: 8px; font-size: 1.25rem; }
.why p { color: var(--text-soft); }

/* ---------- Domande ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.faq h2 { max-width: 10ch; }
details { border-top: 1px solid var(--basalt-line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--basalt-line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--basalt-line); color: var(--signal); font-weight: 500; font-size: 1.2rem; line-height: 1; transition: transform .3s var(--ease), background .2s; }
details[open] summary::after { transform: rotate(45deg); background: var(--basalt-2); }
details p { color: var(--steel); margin-top: 12px; max-width: 40em; }

/* ---------- Invito finale ---------- */
.cta { background: var(--signal); color: var(--basalt); padding: clamp(64px, 9vw, 112px) 0; }
.cta h2 { max-width: 14ch; }
.cta p { font-size: 1.15rem; margin: 18px 0 30px; max-width: 32em; }

/* ---------- Pagina macchina ---------- */
.machine { padding-top: calc(var(--header) + 48px); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--text-soft); text-decoration: none; margin-bottom: 26px; }
.back::before { content: "←"; transition: transform .25s var(--ease); }
.back:hover { color: var(--text); }
.back:hover::before { transform: translateX(-4px); }
.machine-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.gallery #main-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--basalt-2); cursor: zoom-in; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 16px; }
.thumbs button { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; opacity: .62; outline-offset: 2px; transition: opacity .2s, box-shadow .2s; }
.thumbs button:hover { opacity: .9; }
.thumbs button.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--signal); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.machine-info { position: sticky; top: calc(var(--header) + 16px); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pill { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--chalk); border: 1px solid var(--stone-line); }
.pill-ref { font-weight: 500; color: var(--text-soft); }
.pill-reserved { background: var(--signal); border-color: var(--signal); color: var(--basalt); }
.machine-info h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.keyfacts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 16px 0 0; color: var(--text-soft); font-size: 1.05rem; }
.keyfacts strong { color: var(--text); font-weight: 600; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .82rem; font-weight: 500; border: 1px solid var(--stone-line); background: var(--chalk); border-radius: 999px; padding: 5px 12px; }
.price-box { background: var(--basalt); color: var(--on-dark); border-radius: var(--radius-lg); padding: 26px; margin: 26px 0; display: grid; gap: 10px; }
.price { font-family: var(--display); font-weight: 900; font-size: 2.7rem; line-height: 1; }
.price.por { font-size: 2rem; }
.price-note { font-size: .88rem; color: var(--steel); margin-bottom: 10px; }
.price-box .btn-line { background: transparent; color: var(--on-dark); border-color: var(--basalt-line); }
.price-box .btn-line:hover { border-color: var(--steel); }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--stone-line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--text-soft); width: 45%; }
.specs td { font-weight: 600; overflow-wrap: anywhere; }
.machine-info > h3 { margin: 28px 0 10px; }
.condition { margin: 0; padding-left: 18px; color: var(--text-soft); }
.reserved { color: var(--text); font-weight: 600; }

/* ---------- Foto a schermo intero ---------- */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(12, 16, 18, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-img { max-width: calc(100vw - 170px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: var(--radius); user-select: none; -webkit-user-drag: none; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--on-dark); font: 400 2rem/1 var(--body); cursor: pointer; background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shine); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: background .2s, color .2s; }
.lb-btn:hover { background: var(--signal); border-color: var(--signal); color: var(--basalt); }
.lb-close { top: 18px; right: 18px; font-size: 1.15rem; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: var(--steel); font-size: .9rem; font-weight: 500; letter-spacing: .06em; }

/* ---------- Modulo e testo ---------- */
form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; }
input, textarea { font: 400 1rem var(--body); padding: 14px 16px; border: 1px solid var(--stone-line); border-radius: var(--radius-sm); background: var(--chalk); color: var(--text); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(242, 183, 5, .35); }
form .actions { margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--text-soft); }
.prose p { margin-bottom: 16px; }
.prose h2 { font-family: var(--display); font-weight: 800; text-transform: none; font-size: 1.2rem; line-height: 1.25; letter-spacing: 0; max-width: none; margin: 38px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a, .form-note a, .legal a { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose .specs { margin-bottom: 8px; }

/* ---------- Piè di pagina ---------- */
.foot { background: var(--basalt); color: var(--steel); border-top: 1px solid var(--basalt-line); padding: 64px 0 104px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot h4 { font-size: .85rem; font-weight: 600; color: var(--on-dark); margin-bottom: 12px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--on-dark); }
.foot .logo { display: inline-block; margin-bottom: 10px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--basalt-line); font-size: .78rem; }
.legal p + p { margin-top: 8px; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; background: #1fa855; color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; padding: 13px 20px; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6); transition: transform .25s var(--ease); }
.wa-float::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b9f5cf; box-shadow: 0 0 0 4px rgba(185, 245, 207, .25); }
.wa-float:hover { transform: translateY(-2px); }

/* ---------- Puntatore: alone bianco che segue il mouse (solo computer) ---------- */
.cursor-halo, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor-halo, .js .cursor-ring { display: block; position: fixed; left: 0; top: 0; pointer-events: none; z-index: 90; will-change: transform; opacity: 0; transition: opacity .3s; }
  .js.has-pointer .cursor-halo, .js.has-pointer .cursor-ring { opacity: 1; }
  .cursor-halo { width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, 0) 65%); mix-blend-mode: screen; }
  .cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid #fff; mix-blend-mode: difference; transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; }
  .cursor-ring.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
}

/* ---------- Telefono ---------- */
@media (max-width: 860px) {
  :root { --header: 74px; }
  .top { padding: 10px 12px; }
  .top-bar { padding: 8px 8px 8px 16px; }
  .top nav a:not(.nav-cta) { display: none; }
  .top nav .lang-menu a { display: flex; }
  .hero-glass { flex-direction: column; align-items: stretch; gap: 18px; padding: 18px; }
  .hero-facts, .steps, .why, .faq, .machine-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 14px; }
  .hero-photo { min-height: auto; padding-top: calc(var(--header) + 56px); }
  .hero-progress { justify-content: flex-start; }
  .steps li, .steps li + li { padding: 26px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--basalt-line); }
  .faq { gap: 28px; }
  .section-head { flex-direction: column; align-items: start; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .machine-info { position: static; }
  .lb-img { max-width: 100vw; max-height: calc(100vh - 170px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
  .lb-count { bottom: 36px; }
}
/* Telefoni molto stretti (320-374 px) */
@media (max-width: 374px) {
  .top-bar { gap: 8px; padding-left: 14px; }
  .top nav .nav-cta { padding: 8px 12px; }
  .top .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .is-loading .hero-title .line > span, .js .is-loading .hero-kicker, .js .is-loading .hero .lead, .js .is-loading .hero .actions, .js .is-loading .hero-glass { opacity: 1; transform: none; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}
