/* 3L Multiservice
   Palette: carta fredda + inchiostro + un solo accento cobalto (il nastro da imballo).
   Forme: tutto ad angoli vivi (radius 0), come scatole ed etichette.
   Z-index: nav 20, dock 30, skip-link 40.
   Dove una regola ha due valori di fila, il primo è la riserva per Safari/iOS precedenti a 16.2 (senza color-mix).
   Nessuna risorsa esterna: font in /fonts, icone Phosphor (MIT) incorporate in index.html. */

/* Sottoinsieme "latin" (copre l'italiano, accenti e simbolo euro inclusi) */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap; src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap; src: url("fonts/archivo-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500;
  font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f1f1ee;
  --paper-2: #e6e6e1;
  --ink: #15171b;
  --ink-2: #4a4d55;
  --line: #15171b;
  --accent: #2f45d8;
  --accent-ink: #f4f5ff;
  --tape: #2f45d8;
  --tape-ink: #f4f5ff;
  --error: #b3261e;
  --ok: #1d6b3a;
  --shadow: 0 1px 0 rgba(21, 23, 27, .08), 0 18px 40px -24px rgba(21, 23, 27, .35);

  --f-sans: "Archivo", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121317;
    --paper-2: #1b1d22;
    --ink: #ecece8;
    --ink-2: #a3a6ae;
    --line: #3a3d45;
    --accent: #6577ff;
    --accent-ink: #0d0f1a;
    --tape: #3d52e6;
    --tape-ink: #f4f5ff;
    --error: #ff8a80;
    --ok: #7fd49b;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 18px 40px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121317; --paper-2: #1b1d22; --ink: #ecece8; --ink-2: #a3a6ae;
  --line: #3a3d45; --accent: #6577ff; --accent-ink: #0d0f1a; --tape: #3d52e6; --tape-ink: #f4f5ff;
  --error: #ff8a80; --ok: #7fd49b;
  color-scheme: dark;
}

/* Icone SVG dallo sprite locale */
.i { width: 1.2em; height: 1.2em; fill: currentColor; flex-shrink: 0; vertical-align: -.2em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 16%, transparent); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Il nastro sporge di proposito oltre i bordi: lo si ritaglia (clip, senza creare un contenitore di scorrimento) */
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 40;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a, button, input, select, textarea { touch-action: manipulation; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
/* Logo del cliente (immagine). Sui fondi scuri <picture> sceglie la versione "adesivo", con il bordo bianco */
.logo picture, .label__logo { display: block; flex-shrink: 0; }
.logo__img { display: block; width: auto; height: 56px; }
.footer .logo__img { height: 88px; }
/* nell'etichetta dei contatti il logo è un timbro, un po' storto */
.label__logo { transform: rotate(-4deg); }
.label__logo img { display: block; width: auto; height: 104px; }
@media (prefers-color-scheme: dark) {
  /* l'adesivo ha il bordo bianco attorno: un po' più grande, così il logo resta della stessa misura */
  .logo__img { height: 60px; }
  .footer .logo__img { height: 94px; }
  .label__logo img { height: 111px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  font: 700 1rem/1 var(--f-sans); font-stretch: 105%;
  text-decoration: none; white-space: nowrap;
  border: 2px solid var(--ink);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); min-height: 44px; padding: 0 18px; }
.btn--ink:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn .i { width: 1.25em; height: 1.25em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: color-mix(in srgb, var(--ink) 18%, transparent); }
/* quanta pagina si è vista: un nastro sottile sotto il menu (--progress lo aggiorna main.js) */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
  background: var(--tape) repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 9px);
  transform-origin: left; transform: scaleX(var(--progress, 0));
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-weight: 500; font-size: .98rem;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease);
}
.nav__links a:hover { background-size: 100% 2px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: center;
  min-height: calc(100dvh - var(--nav-h) - 40px);
  padding-top: clamp(24px, 5vh, 72px);
  padding-bottom: 72px;
}
.hero__text { grid-column: 1 / span 7; position: relative; z-index: 1; }
.hero__kicker {
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(3rem, min(6.1vw, 10.5vh), 6.25rem);
  font-weight: 900;
  font-stretch: 72%;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 15ch;
}
.hero__title em {
  position: relative; z-index: 0;
  font-style: italic; color: var(--tape);
  display: inline-block; padding-bottom: .06em; /* spazio per la discendente della p */
}
/* pezzo di nastro dietro "e molto altro.", con i bordi seghettati */
.hero__title em::before {
  content: ""; position: absolute; z-index: -1; inset: .03em -.16em .02em -.16em;
  background: var(--tape); transform: rotate(-1.6deg); transform-origin: left center;
  clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 20%, 100% 40%, calc(100% - 7px) 60%, 100% 80%, calc(100% - 7px) 100%, 0 100%, 7px 80%, 0 60%, 7px 40%, 0 20%);
}
/* copia chiara del testo sopra il nastro: i lettori di schermo leggono solo l'originale */
.hero__tape-text { position: absolute; inset: 0; padding: inherit; color: var(--tape-ink); }
.hero__sub {
  margin-top: 28px; max-width: 40ch;
  font-size: clamp(1.08rem, 1.3vw, 1.25rem); color: var(--ink-2); line-height: 1.5;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__media {
  grid-column: 8 / span 5;
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: calc(100dvh - var(--nav-h) - 120px);
  justify-self: end;
  width: 100%;
}
/* Assoluta: la foto riempie il riquadro senza deciderne l'altezza */
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* bordo "da etichetta" sfalsato dietro la foto */
.hero__media::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--ink); z-index: -1;
}
/* due lembi del colore della pagina che si aprono dal centro (animazione in fondo, sezione Motion) */
.hero__media::after {
  content: ""; position: absolute; inset: -1px; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--paper), var(--paper)) left / 0 100% no-repeat, linear-gradient(var(--paper), var(--paper)) right / 0 100% no-repeat;
}

/* ---------- Tape (marquee zone) ---------- */
.tape {
  position: relative; z-index: 2;
  background: var(--tape);
  color: var(--tape-ink);
  transform: rotate(-1.6deg);
  margin: -28px -20px 0;
  padding: 14px 0;
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(20, 30, 120, .55);
}
/* texture leggera del nastro */
.tape::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px);
}
.tape__track { display: flex; width: max-content; animation: tape 48s linear infinite; }
.tape__list { display: flex; margin: 0; padding: 0; list-style: none; }
.tape__list li {
  display: flex; align-items: center; gap: 22px; padding-right: 22px;
  font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em;
  white-space: nowrap;
}
.tape__list li::after {
  content: "3L"; font-weight: 900; font-size: .72rem;
  border: 1.5px solid currentColor; padding: 2px 5px; opacity: .85;
}
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Titoli di sezione ---------- */
.h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 850; font-stretch: 78%;
  line-height: 1; letter-spacing: -.015em; text-transform: uppercase;
}
.lead { margin-top: 18px; max-width: 46ch; color: var(--ink-2); font-size: 1.15rem; }

/* ---------- Servizi (bento) ---------- */
.services { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(72px, 9vw, 128px); }
.services .h2 { margin-bottom: 48px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 16px;
}
.cell {
  position: relative; overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  display: flex; flex-direction: column;
}
.cell h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-stretch: 85%; text-transform: uppercase; line-height: 1; }
.cell p { margin-top: 12px; color: var(--ink-2); max-width: 44ch; }
.cell__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.cell__link {
  margin-top: auto; padding-top: 22px;
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor;
}
.cell__link .i { transition: transform .3s var(--ease); }
.cell__link:hover .i { transform: translate(3px, -3px); }
.cell img { width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cell:hover img { transform: scale(1.035); }

.cell--move { grid-column: 1 / span 7; grid-row: span 2; }
.cell--move img { aspect-ratio: 16 / 10; border-bottom: 2px solid var(--ink); }

.cell--clean {
  grid-column: 8 / span 5; flex-direction: row;
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}
.cell--clean .cell__body { padding: 24px; }
.cell--clean img { width: 42%; object-position: 55% center; }
.cell--clean p { color: var(--accent-ink) !important; opacity: .92; }

.cell--lift { grid-column: 8 / span 5; flex-direction: row; }
.cell--lift img { width: 42%; aspect-ratio: auto; border-right: 2px solid var(--ink); }
.cell--lift .cell__body { padding: 24px; }

.cell--van {
  grid-column: 1 / -1;
  flex-direction: row; align-items: stretch;
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.cell--van p { color: var(--paper); color: color-mix(in srgb, var(--paper) 78%, transparent); }
.cell--van .cell__body { padding: clamp(28px, 4vw, 48px); flex: 1 1 45%; justify-content: center; }
.cell--van img { flex: 1 1 55%; width: 55%; max-height: 380px; }

.cell--half { grid-column: span 6; padding: 28px; }

.services__more {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--ink);
  font-size: 1.15rem; color: var(--ink-2);
}
.services__more .cell__link { margin-top: 0; padding-top: 0; color: var(--ink); }

/* ---------- Come lavoriamo ---------- */
.method {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 2px solid var(--ink);
}
.method__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.method__list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; position: relative; }
/* linea che unisce i passi: la misura main.js (is-linked); --line-p va da 0 a 1 mentre si scorre */
.method__list.is-linked { isolation: isolate; }
.method__list.is-linked::before, .method__list.is-linked::after {
  content: ""; position: absolute; z-index: -1; width: 3px;
  left: calc(var(--line-x) - 1.5px); top: var(--line-top); height: var(--line-h);
}
.method__list.is-linked::before { background: var(--ink); opacity: .15; }
.method__list.is-linked::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--line-p, 1)); }
.method__list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; }
.method__icon {
  width: 64px; height: 64px; display: grid; place-items: center;
  border: 2px solid var(--ink); background: var(--paper-2);
}
.method__icon .i { width: 30px; height: 30px; }
.method__icon { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.method__icon.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.method__list h3 { font-size: 1.6rem; font-stretch: 90%; line-height: 1.1; margin-top: 4px; }
.method__list p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; }

/* ---------- Chi siamo ---------- */
.about { background: var(--paper-2); }
.about__inner {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center;
  padding-block: clamp(80px, 10vw, 140px);
}
.about__text { grid-column: 1 / span 6; }
.about__title {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 900; font-stretch: 75%;
  line-height: .98; text-transform: uppercase; letter-spacing: -.015em; margin-bottom: 32px;
}
.about__text p:not(.about__title) { max-width: 48ch; color: var(--ink-2); font-size: 1.15rem; }
.about__text p + p { margin-top: 16px; }
.about__media { grid-column: 8 / span 5; margin: 0; position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 45%; }
/* pezzo di nastro che "fissa" la foto */
.about__media::after {
  content: ""; position: absolute; top: -14px; left: 50%; width: 140px; height: 30px;
  background: var(--tape); opacity: .92; transform: translateX(-50%) rotate(-4deg);
}

/* ---------- Contatti (etichetta) ---------- */
.contact { padding-block: clamp(88px, 11vw, 150px); }
.label {
  margin-top: 48px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  max-width: 1040px;
}
.label__head {
  display: grid; grid-template-columns: 1fr 2fr auto; gap: 24px; align-items: start;
  padding: 24px 28px; border-bottom: 3px solid var(--ink);
}
.label__k {
  display: block; font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-2); margin-bottom: 6px;
}
.label__v { font-weight: 700; font-size: 1.1rem; line-height: 1.35; }

.channels { list-style: none; margin: 0; padding: 0; }
.channels li + li { border-top: 1px dashed var(--ink-2); border-top: 1px dashed color-mix(in srgb, var(--ink) 45%, transparent); }
.channel {
  display: grid; grid-template-columns: 56px 150px 1fr 40px; align-items: center; gap: 16px;
  padding: 26px 28px; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.channel__icon { width: 32px; height: 32px; }
.channel > * { transition: color .3s var(--ease), transform .3s var(--ease); }
.channel__k { font-family: var(--f-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.channel__v { font-size: clamp(1.25rem, 2.6vw, 2.1rem); font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; overflow-wrap: anywhere; }
.channel__arrow { width: 26px; height: 26px; justify-self: end; transition: transform .3s var(--ease); }
.channel:hover { background: var(--ink); color: var(--paper); }
.channel:hover .channel__k { color: var(--paper); color: color-mix(in srgb, var(--paper) 70%, transparent); }
.channel:hover .channel__arrow { transform: translate(4px, -4px); }
.channel--wa:hover { background: var(--accent); color: var(--accent-ink); }
.channel--wa:hover .channel__icon { color: var(--accent-ink); }
.channel--wa:hover .channel__k { color: var(--accent-ink); color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }

.label__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 28px; border-top: 3px solid var(--ink);
}
.label__foot p { font-weight: 600; }
/* Safari va a capo anche dopo un trattino seguito da spazio non divisibile: le righe degli orari restano intere */
.nowrap { white-space: nowrap; }
.label__foot .label__k { display: inline; margin-right: 10px; }
.barcode {
  position: relative; overflow: hidden;
  width: 180px; height: 44px; flex-shrink: 0;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px,
    var(--ink) 16px 17px, transparent 17px 19px, var(--ink) 19px 22px, transparent 22px 25px);
}

/* ---------- Modulo (secondo foglio pinzato sotto l'etichetta) ---------- */
.sheet {
  position: relative;
  max-width: 1040px; margin-top: 28px;
  border: 2px solid var(--ink); background: var(--paper-2);
  padding: clamp(24px, 3.5vw, 40px);
}
/* graffetta */
.sheet::before {
  content: ""; position: absolute; top: -16px; left: 48px; width: 64px; height: 26px;
  border: 3px solid var(--ink-2); border-bottom: 0; border-radius: 4px 4px 0 0;
}
.sheet__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-stretch: 85%; text-transform: uppercase; line-height: 1.05; }
.sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 28px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--f-sans); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); }
.field__help { font-size: .88rem; color: var(--ink-2); }
.field__err { font-size: .88rem; font-weight: 600; color: var(--error); min-height: 0; }
.field__err:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--error); }

/* campo trappola: fuori schermo per le persone, visibile ai bot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.sheet__note { font-size: .9rem; color: var(--ink-2); max-width: 52ch; }
.sheet__note a { color: var(--ink); font-weight: 600; }
.sheet__status { margin-top: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sheet__status:empty { display: none; }
.sheet__status.is-ok { color: var(--ok); }
.sheet__status.is-err { color: var(--error); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.btn.is-loading .i { animation: fly 1s var(--ease) infinite; }
@keyframes fly { 50% { transform: translate(3px, -3px); } }

/* ---------- Footer ---------- */
.footer { border-top: 2px solid var(--ink); padding-block: 40px 48px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.footer__legal { font-size: .9rem; font-style: normal; color: var(--ink-2); line-height: 1.6; }
.footer__legal strong { color: var(--ink); }
.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.footer__meta a { color: var(--ink); }

/* ---------- Pagine legali ---------- */
.legal-top { border-bottom: 2px solid var(--ink); }
.legal-top .wrap { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-top a:not(.logo) { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.legal { max-width: 780px; padding-block: clamp(48px, 7vw, 96px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 850; font-stretch: 78%; text-transform: uppercase; line-height: 1; }
.legal__date { margin-top: 14px; color: var(--ink-2); font-size: .95rem; }
.legal h2 { font-size: 1.35rem; font-stretch: 92%; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ink-2); border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.legal strong { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--ink-2); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.legal th { background: var(--paper-2); color: var(--ink); }
.legal td { color: var(--ink-2); }
.legal__box { margin-top: 20px; padding: 18px 20px; border: 2px solid var(--ink); background: var(--paper-2); }
.legal__box p:first-child { margin-top: 0; }

/* ---------- Dock mobile ---------- */
.dock { display: none; }

/* ---------- Motion ---------- */
/* righe dei titoli: le crea main.js a partire dai <br> */
.title-line { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .load { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 80ms); }
  .hero__media.load { transform: translateY(24px) rotate(1.2deg); }
  /* il titolo sale senza dissolvenza: è visibile da subito, e il browser lo conta come primo contenuto grande */
  .hero__title.load { opacity: 1; animation-name: slide-up; }
  /* .js la aggiunge main.js: senza lo script le sezioni restano visibili */
  .js .reveal { opacity: 0; transform: translateY(26px); }
  .js .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

  /* nastro sul titolo: si srotola da sinistra e il testo diventa chiaro mentre passa */
  .hero__title em::before { animation: tape-roll .8s cubic-bezier(.65, 0, .25, 1) 1.1s both; }
  .hero__tape-text { animation: tape-text .8s cubic-bezier(.65, 0, .25, 1) 1.1s both; }

  /* foto: si aprono dal centro, come i lembi di una scatola */
  .hero__media::after { animation: hero-flaps 1s cubic-bezier(.7, 0, .2, 1) .3s both; }
  .js .reveal img { clip-path: inset(0 50%); scale: 1.14; }
  .js .reveal.is-in img { clip-path: inset(0); scale: 1; transition: clip-path 1s cubic-bezier(.7, 0, .2, 1) .12s, scale 1.4s var(--ease) .12s, transform .8s var(--ease); }

  /* titoli: non sfumano, salgono le righe una dopo l'altra */
  .js .h2.reveal, .js .about__title.reveal { opacity: 1; transform: none; }
  .title-line { overflow: hidden; padding: .16em .08em .08em; margin: -.16em -.08em -.08em; }
  .title-line > span { display: block; transform: translateY(115%); transition: transform .9s var(--ease); transition-delay: calc(var(--line, 0) * 110ms + 60ms); }
  .is-in .title-line > span { transform: none; }

  /* nastro dei servizi: se lo guida main.js (scroll), l'animazione CSS si ferma */
  .tape.is-driven .tape__track { animation: none; }

  /* passi di "Come lavoriamo": scattano quando la linea li raggiunge */
  .method__icon.is-on { animation: step-on .45s var(--ease); }

  /* etichetta: il marchio arriva come un timbro, poi il codice a barre viene letto due volte */
  .js .label .label__logo { opacity: 0; }
  .js .label.is-in .label__logo { animation: stamp .55s cubic-bezier(.3, 1.5, .5, 1) .55s forwards; }
  .barcode::after {
    content: ""; position: absolute; inset: -2px 0; opacity: 0;
    background: linear-gradient(90deg, transparent calc(100% - 14px), color-mix(in srgb, var(--accent) 35%, transparent) calc(100% - 4px), var(--accent) calc(100% - 3px));
    transform: translateX(-100%);
  }
  .js .label.is-in .barcode::after { animation: scan 1s ease-in-out 1.2s 2 alternate; }
}
/* schede dei servizi: col mouse si alzano, con l'ombra netta dei bottoni */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bento .cell, .js .bento .cell { transition: translate .3s var(--ease), box-shadow .3s var(--ease), opacity .8s var(--ease), transform .8s var(--ease); }
  .bento .cell:hover { translate: -5px -5px; box-shadow: 7px 7px 0 var(--ink); }
  .bento .cell--van:hover { box-shadow: 7px 7px 0 var(--accent); }
}
@keyframes tape-roll { from { transform: rotate(-1.6deg) scaleX(0); } }
@keyframes tape-text { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes hero-flaps { from { background-size: 51% 100%, 51% 100%; } }
@keyframes step-on { 40% { scale: 1.14; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-16deg); } 55% { opacity: 1; transform: scale(.93) rotate(-3deg); } 100% { opacity: 1; transform: rotate(-4deg); } }
@keyframes scan { from { opacity: 1; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes slide-up { to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Nastro fermo: le voci vanno a capo, così si leggono tutte senza scorrere */
  .tape__track { animation: none; width: auto; }
  .tape__list { flex-wrap: wrap; justify-content: center; row-gap: 6px; padding-inline: 24px; }
  .tape__list[aria-hidden="true"] { display: none; }
  .btn.is-loading .i { animation: none; }
  .btn--accent:hover, .btn:active { transform: none; }
  .cell:hover img, .cell__link:hover .i, .channel:hover .channel__arrow { transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1024px) and (max-width: 1239px) {
  .cell--clean img, .cell--lift img { width: 34%; }
  .cell--clean .cell__body, .cell--lift .cell__body { padding: 20px; }
}

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .hero__text { grid-column: 1 / span 7; }
  .hero__media { grid-column: 8 / span 5; }
  .cell--move, .cell--clean, .cell--lift, .cell--half { grid-column: 1 / -1; grid-row: auto; }
  .method__head { grid-column: 1 / -1; position: static; margin-bottom: 48px; }
  .method__list { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  body { padding-bottom: 72px; }
  html { scroll-padding-bottom: 84px; }
  .nav__cta { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 28px; padding-bottom: 64px; gap: 40px; }
  .hero__title { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .hero__media { max-height: none; aspect-ratio: 4 / 3; width: calc(100% - 14px); justify-self: start; }
  .tape { margin-top: -20px; }
  .tape__list li { font-size: .92rem; }
  .bento { gap: 12px; }
  .cell__body, .cell--clean .cell__body, .cell--half { padding: 22px; }
  .cell--lift, .cell--van, .cell--clean { flex-direction: column; }
  .cell--lift img { width: 100%; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 2px solid var(--ink); }
  .cell--van img { width: 100%; order: -1; max-height: 260px; }
  .cell--clean img { width: 100%; order: -1; aspect-ratio: 16 / 10; object-position: center 58%; }
  .method__list { gap: 40px; }
  .method__list li { grid-template-columns: 52px 1fr; gap: 16px; }
  .method__icon { width: 52px; height: 52px; }
  .method__icon .i { width: 24px; height: 24px; }
  .about__inner { display: flex; flex-direction: column-reverse; gap: 48px; align-items: stretch; }
  .about__media img { aspect-ratio: 4 / 3; }
  .label__head { grid-template-columns: 1fr auto; padding: 20px; }
  .label__head > div:first-child { display: none; }
  .logo__img { height: 48px; }
  .label__logo img { height: 80px; }
  .channel { grid-template-columns: 36px 1fr 28px; padding: 20px; gap: 6px 14px; }
  .channel__icon { grid-row: span 2; width: 26px; height: 26px; }
  .channel__arrow { width: 22px; height: 22px; }
  .channel__k { grid-column: 2; }
  .channel__v { grid-column: 2; font-size: 1.2rem; }
  .channel__arrow { grid-column: 3; grid-row: 1 / span 2; }
  .label__foot { padding: 18px 20px; flex-direction: column; align-items: flex-start; }
  .barcode { width: 140px; height: 34px; }
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
  .footer__meta { align-items: flex-start; gap: 0; }
  .footer__meta a { display: inline-flex; align-items: center; min-height: 44px; }
  .services__more .cell__link { padding-block: 12px 6px; }
  .sheet__grid { grid-template-columns: 1fr; gap: 18px; }
  .sheet__foot .btn { width: 100%; justify-content: center; }
  .sheet::before { left: 28px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { border: 1px solid var(--ink-2); border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); margin-top: 12px; }
  .legal td { border: 0; padding: 8px 12px; }
  .legal td::before { content: attr(data-th); display: block; font-weight: 700; color: var(--ink); }
  body:has(.legal) { padding-bottom: 0; }

  .dock {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--ink); border-top: 2px solid var(--ink);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 60px; color: var(--paper); text-decoration: none; font-weight: 700; font-size: .95rem;
  }
  .dock a + a { border-left: 1px solid var(--ink-2); border-left: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
  .dock .i { width: 1.3rem; height: 1.3rem; }
  .dock__wa { background: var(--accent); color: var(--accent-ink) !important; }
}

/* Telefoni molto stretti: logo e link "Torna al sito" restano sulla stessa riga */
@media (max-width: 359px) {
  .legal-top a:not(.logo) { white-space: nowrap; }
}

/* ---------- Stampa ---------- */
@media print {
  .js .reveal, .js .bento .cell { opacity: 1; transform: none; transition: none; }
  .js .reveal img { clip-path: none; scale: none; transition: none; }
  .title-line > span { transform: none; transition: none; }
  .js .label .label__logo { opacity: 1; animation: none; }
  .dock, .nav::after { display: none; }
}
