/* ==========================================================================
   Emilio Pitture — foglio di stile
   Concept: "Nero su bianco, una passata di rosso".
   Bianco/nero ad alto contrasto come il logo, tipografia Archivo extra-larga
   (asse wdth 125) in maiuscolo, un solo accento rosso segnale.
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --ink: #0e0e0e;
  --ink-2: #1c1c1b;
  --paper: #fafaf7;
  --paper-2: #f0efea;
  --line: #d9d8d1;
  --muted: #5c5c58;        /* 6.4:1 su --paper */
  --muted-dark: #a3a39c;   /* 7.6:1 su --ink */
  --accent: #ff4a1c;       /* rosso segnale: solo come fondo con testo nero o su nero */
  --accent-ink: #c9281a;   /* variante per testo su chiaro (5.3:1) */

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.6vw, 5.6rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;    --space-10: 8rem;

  --wrap: 78rem;
  --radius: 2px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; } /* vale anche per i .btn (display: inline-flex) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Segnaposto da compilare: volutamente evidenti ---------- */
.ph {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 500;
  background: #fff1a8;
  color: #3b3200;
  padding: 0 0.3em;
  border: 1px dashed #8a7300;
  border-radius: 2px;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Tipografia di marca ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 0.5rem; background: var(--accent); }
.dark .eyebrow { color: var(--muted-dark); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: var(--space-5); color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }
.dark { background: var(--ink); color: var(--paper); }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section--tint .faq-list summary::after { background: var(--paper); }
.section--tint .faq-list summary:hover::after { background: var(--accent); }
.section--tint .faq-list details[open] summary::after { background: var(--ink); }
.dark .section-head p { color: var(--muted-dark); }

/* ---------- Bottoni ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.8em 1.4em;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--accent); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--accent { --bg: var(--accent); --fg: var(--ink); }
.btn--accent:hover { box-shadow: 4px 4px 0 var(--ink); }
.dark .btn--accent:hover { box-shadow: 4px 4px 0 var(--paper); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn--ghost { --fg: var(--paper); border-color: var(--paper); }
.dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 2.75rem; padding: 0.55em 1em; font-size: 0.82rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 0.75rem 1rem;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* fondo opaco: un backdrop-filter qui farebbe da contenitore al menu mobile "fixed" */
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--space-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 2.1rem; height: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 0.92; }
.brand-word b { font-size: 1.15rem; font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: 0.01em; }
.brand-word span { font-size: 0.72rem; font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: 0.16em; }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(0.8rem, 1.6vw, 1.6rem); }
.nav ul a {
  position: relative; display: inline-block; padding-block: 0.6rem;
  font-weight: 700; font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.3rem; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav ul a:hover::after, .nav ul a:focus-visible::after { transform: scaleX(1); }

/* Switch lingua IT/EN: sempre visibile */
.lang-switch { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; flex: none; }
.lang-switch a {
  display: grid; place-items: center; min-width: 2.75rem; min-height: 2.5rem; padding: 0 0.5rem;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang-switch a:not([aria-current="true"]):hover { background: var(--accent); color: var(--ink); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 1.25rem; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Menu mobile */
.nav.is-open {
  display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ink); color: var(--paper); padding: var(--space-6) 1.25rem; overflow-y: auto;
}
.nav.is-open ul { flex-direction: column; gap: 0; }
.nav.is-open ul a {
  display: block; padding: 0.9rem 0; border-bottom: 1px solid #2c2c2a;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.6rem;
}
.nav.is-open ul a::after { display: none; }
.nav .nav-extra { display: none; }
.nav.is-open .nav-extra { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.nav.is-open .nav-extra .btn--ghost { --fg: var(--paper); border-color: var(--paper); }
.nav.is-open .nav-extra .btn--ghost:hover { background: var(--paper); color: var(--ink); }

@media (min-width: 64em) {
  .nav, .nav.is-open { display: block; position: static; background: none; color: inherit; padding: 0; }
  .nav.is-open ul { flex-direction: row; }
  .nav-toggle { display: none; }
}
/* il bottone in header compare solo quando c'è spazio per menu, switch lingua e CTA su una riga */
@media (min-width: 80em) { .header-cta { display: inline-flex; white-space: nowrap; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 5vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--step-4); line-height: 0.95; }
.hero h1 .line { display: block; }
/* Segno distintivo: la "passata di rullo" rossa dietro una parola */
.stroke { position: relative; display: inline-block; z-index: 0; padding-inline: 0.08em; }
.stroke::before {
  content: ""; position: absolute; z-index: -1; left: -0.05em; right: -0.05em; top: 0.12em; bottom: 0.02em;
  background: var(--accent);
  transform-origin: left center;
  animation: roll 0.9s 0.35s var(--ease) both;
  /* bordo finale leggermente sfrangiato, come la fine di una passata di rullo */
  clip-path: polygon(0 0, 100% 4%, 98.5% 22%, 100% 40%, 98% 60%, 100% 78%, 98.8% 100%, 0 100%);
}
@keyframes roll { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-lead { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; margin-top: var(--space-6); color: #2b2b29; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-points { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-7); }
.hero-points li { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.hero-points svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--accent-ink); }

/* Il "muro": pannello con il logo, nastro carta e campioni colore */
.hero-wall {
  position: relative; justify-self: center; width: min(100%, 30rem);
  aspect-ratio: 4 / 4.6; background: var(--paper-2);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  box-shadow: 10px 10px 0 var(--ink);
  margin-right: 1.25rem; /* spazio per ombra e campioni su mobile */
}
.hero-wall::before { /* trama d'intonaco */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-wall picture { position: relative; width: 74%; }
.hero-wall img { width: 100%; height: auto; }
.tape {
  position: absolute; width: 7.5rem; height: 1.9rem; background: rgba(226, 214, 180, .92);
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.tape--tl { top: -0.9rem; left: -2rem; transform: rotate(-32deg); }
.tape--br { bottom: -0.8rem; right: -1.8rem; transform: rotate(-30deg); }
.swatches {
  position: absolute; right: -1rem; top: 14%; display: grid; gap: 0.35rem;
  background: var(--paper); border: 2px solid var(--ink); padding: 0.4rem;
}
.swatches span { display: block; width: 2.4rem; height: 1.6rem; }
.swatches span:nth-child(1) { background: var(--ink); }
.swatches span:nth-child(2) { background: #8a8982; }
.swatches span:nth-child(3) { background: var(--paper-2); outline: 1px solid var(--line); }
.swatches span:nth-child(4) { background: var(--accent); }
.wall-tag {
  position: absolute; left: -1px; bottom: -1px; transform: translateY(100%);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em;
  background: var(--ink); color: var(--paper); padding: 0.35rem 0.6rem;
}

@media (min-width: 56em) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .hero-wall { margin-right: 0; box-shadow: 14px 14px 0 var(--ink); }
}

/* ---------- Nastro servizi (marquee) ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker ul { list-style: none; display: flex; flex: none; }
.ticker li {
  display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0 1rem 1.5rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem);
}
.ticker li::after { content: ""; width: 0.6rem; height: 0.6rem; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Servizi: "mazzetta colori" ---------- */
.chips { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.chip {
  display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chip:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.chip-swatch {
  position: relative; height: 7.5rem; background: var(--sw, var(--ink)); border-bottom: 2px solid var(--ink);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0.6rem 0.75rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; color: var(--sw-fg, var(--paper));
}
.chip-swatch svg { position: absolute; top: 0.9rem; right: 0.9rem; width: 2.4rem; height: 2.4rem; }
.chip-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.chip h3 { font-size: var(--step-1); font-weight: 900; font-variation-settings: "wdth" 118; text-transform: uppercase; margin-bottom: var(--space-3); }
.chip p { color: #3a3a37; font-size: 0.98rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: var(--space-2); }
.tags li { font-size: 0.78rem; font-weight: 600; border: 1px solid var(--line); padding: 0.2rem 0.55rem; border-radius: 99px; background: var(--paper); }
@media (min-width: 64em) {
  .chips { grid-template-columns: repeat(6, 1fr); }
  .chip { grid-column: span 2; }
  .chip--wide { grid-column: span 3; }
  .chip--wide .chip-swatch { height: 10rem; }
}

/* ---------- Per chi lavoriamo ---------- */
.audience { display: grid; gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.audience > div { background: var(--paper); padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.audience h3 { font-size: var(--step-2); margin-bottom: var(--space-4); }
.audience ul { list-style: none; display: grid; gap: 0.5rem; margin-top: var(--space-4); }
.audience li { padding-left: 1.4rem; position: relative; }
.audience li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.6rem; height: 0.6rem; background: var(--accent); }
@media (min-width: 48em) { .audience { grid-template-columns: 1fr 1fr; } }

/* ---------- Perché sceglierci ---------- */
.why-grid { list-style: none; display: grid; gap: 0; border-top: 1px solid #333; }
.why-grid li { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--space-4); padding-block: var(--space-6); border-bottom: 1px solid #333; }
.why-num { font-family: var(--font-display); font-weight: 900; font-variation-settings: "wdth" 125; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.why-grid h3 { font-size: var(--step-1); font-weight: 800; font-variation-settings: "wdth" 115; text-transform: uppercase; margin-bottom: var(--space-2); }
.why-grid p { color: var(--muted-dark); margin: 0; max-width: 52ch; }
@media (min-width: 56em) {
  .why-grid { grid-template-columns: 1fr 1fr; column-gap: var(--space-8); }
}

/* ---------- Metodo (4 fasi) ---------- */
.steps { list-style: none; display: grid; gap: var(--space-6); counter-reset: step; }
.step { position: relative; padding-top: var(--space-6); border-top: 4px solid var(--ink); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -1.15rem; left: 0; background: var(--paper); padding-right: 0.6rem;
  font-family: var(--font-mono); font-weight: 500; font-size: 1.1rem; color: var(--accent-ink);
}
.step h3 { font-size: var(--step-1); font-weight: 900; font-variation-settings: "wdth" 120; text-transform: uppercase; margin-bottom: var(--space-3); }
.step p { color: #3a3a37; margin: 0; }
.step .step-note { display: inline-block; margin-top: var(--space-4); font-family: var(--font-mono); font-size: 0.8rem; background: var(--ink); color: var(--paper); padding: 0.2rem 0.5rem; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-6); row-gap: var(--space-8); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Lavori: prima/dopo affiancato (corridoio in cartongesso) ---------- */
.pair-feature { display: grid; gap: var(--space-6); align-items: center; }
.pair { margin: 0; border: 2px solid var(--ink); background: var(--ink); box-shadow: 10px 10px 0 var(--accent); }
.pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pair-img { position: relative; }
.pair-img img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.pair-label {
  position: absolute; top: 0.7rem; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 0.2rem 0.5rem;
}
.pair-label--before { left: 0.7rem; }
.pair-label--after { right: 0.7rem; background: var(--accent); color: var(--ink); }
.pair-text h3 { font-size: var(--step-2); margin-bottom: var(--space-4); overflow-wrap: break-word; }
.pair-text p { color: #3a3a37; max-width: 46ch; }
.pair-steps { list-style: none; counter-reset: ps; display: grid; gap: 0; margin-top: var(--space-5); border-top: 2px solid var(--ink); max-width: 26rem; }
.pair-steps li { counter-increment: ps; display: flex; gap: var(--space-4); align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.pair-steps li::before { content: "0" counter(ps); font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); }
@media (min-width: 56em) {
  .pair-feature { grid-template-columns: 1.15fr 1fr; gap: var(--space-9); }
  .pair { box-shadow: 14px 14px 0 var(--accent); }
  .pair-text h3 { font-size: var(--step-3); }
}

/* ---------- Lavori: gallery con filtri ---------- */
.works-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin: var(--space-9) 0 var(--space-5); }
.works-head h3 { font-size: var(--step-2); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  min-height: 2.75rem; padding: 0.4rem 1rem; border: 2px solid var(--ink); border-radius: 99px; background: transparent;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: background-color .15s, color .15s;
}
.filter:hover { background: var(--paper-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.works { list-style: none; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
.work[hidden] { display: none; }
.work figure { margin: 0; position: relative; height: 100%; display: flex; flex-direction: column; border: 2px solid var(--ink); background: #fff; }
.work img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s var(--ease); }
.work picture { display: block; overflow: hidden; border-bottom: 2px solid var(--ink); }
.work figure:hover img { transform: scale(1.03); }
.work figcaption { padding: 0.55rem 0.7rem; font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.work-badge {
  position: absolute; top: 0.5rem; left: 0.5rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .04em;
  background: var(--paper); border: 1px solid var(--ink); padding: 0.1rem 0.4rem; text-transform: uppercase;
}
@media (min-width: 40em) { .works { gap: var(--space-4); } .work figcaption { font-size: 0.95rem; padding: 0.65rem 0.85rem; } }
@media (min-width: 64em) { .works { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: var(--space-6); }
.faq-grid .section-head { margin-bottom: 0; } /* lo spazio lo dà già il gap della griglia */
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 2px solid var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: 1.15rem 0; font-weight: 800; font-size: var(--step-1); line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.4rem; border: 2px solid var(--ink); transition: transform .2s, background-color .2s;
}
.faq-list summary:hover::after { background: var(--accent); }
.faq-list details[open] summary::after { content: "\2013"; background: var(--ink); color: var(--paper); }
.faq-answer { padding: 0 0 1.4rem; max-width: 68ch; color: #2f2f2c; }
.faq-answer p:last-child { margin-bottom: 0; }
@media (min-width: 64em) { .faq-grid { grid-template-columns: 1fr 2fr; } .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }

/* ---------- Zone servite ---------- */
.zones { display: grid; gap: var(--space-7); }
.zone-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.zone-list li {
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 115; text-transform: uppercase;
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem); border: 2px solid var(--ink); padding: 0.45rem 0.8rem;
}
.zone-list li.is-home { background: var(--ink); color: var(--paper); }
.zone-list li.is-home::after { content: " \2022 Sede"; color: var(--accent); font-family: var(--font-mono); font-size: 0.75em; font-weight: 500; text-transform: none; }
html[lang="en"] .zone-list li.is-home::after { content: " \2022 Base"; }
.zone-group + .zone-group { margin-top: var(--space-6); }
.zone-group h3 { font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--space-3); }
.map-card { border: 2px solid var(--ink); background: #fff; }
.map-card svg { width: 100%; height: auto; }
.map-card p { margin: 0; padding: 0.7rem 0.9rem; border-top: 2px solid var(--ink); font-size: 0.9rem; }
@media (min-width: 56em) { .zones { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--ink); border-block: 2px solid var(--ink); }
.cta-band .wrap { display: grid; gap: var(--space-5); align-items: center; padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.cta-band h2 { font-size: var(--step-3); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (min-width: 56em) { .cta-band .wrap { grid-template-columns: 1.6fr auto; } }

/* ---------- Contatti e form ---------- */
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 64em) { .contact-grid { grid-template-columns: 1.5fr 1fr; } }
.form { display: grid; gap: var(--space-5); background: #fff; border: 2px solid var(--ink); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.form-row { display: grid; gap: var(--space-5); }
@media (min-width: 40em) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem; background-color: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius); transition: box-shadow .15s, background-color .15s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 1.3rem center, right 0.9rem center; background-size: 0.4rem 0.4rem; background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { background-color: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent); background-color: #fff; }
.field [aria-invalid="true"] { border-color: var(--accent-ink); background-color: #fff3f0; }
.field-error { color: var(--accent-ink); font-size: 0.88rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 2px solid var(--ink); border-radius: 99px; font-weight: 600; font-size: 0.92rem; transition: background-color .15s, color .15s; }
.choice input:checked + span { background: var(--ink); color: var(--paper); }
.choice input:hover + span { background: var(--paper-2); }
.choice input:checked:hover + span { background: var(--ink-2); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; accent-color: var(--ink); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.form-status { padding: var(--space-4); border: 2px solid var(--ink); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.is-success { background: #e9f6ea; border-color: #1f6b2a; color: #154d1e; }
.form-status.is-error { background: #fff3f0; border-color: var(--accent-ink); color: #8a1b10; }
.form small.hint { color: var(--muted); font-size: 0.85rem; }
/* trappola anti-spam: fuori schermo ma non display:none, così i bot la compilano */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; font-size: 0.92rem; color: var(--muted); }
.form-alt span { margin-right: 0.2rem; }
.form-status a { color: inherit; font-weight: 800; }

.contact-card { align-self: start; background: var(--ink); color: var(--paper); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: var(--space-5); align-content: start; }
.contact-card h3 { font-size: var(--step-2); }
.contact-lines { list-style: none; display: grid; gap: var(--space-4); }
.contact-lines li { display: grid; grid-template-columns: 2.6rem 1fr; gap: var(--space-3); align-items: center; }
.contact-lines .ic { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.contact-lines .ic svg { width: 1.25rem; height: 1.25rem; }
.contact-lines small { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .06em; }
.contact-lines a { color: var(--paper); font-weight: 700; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: var(--space-9) var(--space-7); border-top: 1px solid #2c2c2a; }
.footer-grid { display: grid; gap: var(--space-7); }
.footer-logo { width: 9rem; height: auto; }
.site-footer h2 { font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; display: inline-block; padding-block: 0.25rem; }
.site-footer a:hover { color: var(--accent); }
.legal { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid #2c2c2a; font-size: 0.85rem; color: var(--muted-dark); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); justify-content: space-between; }
@media (min-width: 56em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Azioni rapide: barra mobile + WhatsApp flottante ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 2px; background: var(--ink);
  border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom);
}
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 3.5rem;
  font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  background: var(--paper); color: var(--ink); padding-inline: 0.25rem;
}
.quickbar a:last-child { background: var(--accent); }
.quickbar a:active { filter: brightness(.92); }
.quickbar svg { width: 1.2rem; height: 1.2rem; }
body { padding-bottom: 3.6rem; }
.wa-float { display: none; }
@media (min-width: 48em) {
  .quickbar { display: none; }
  body { padding-bottom: 0; }
  .wa-float {
    display: grid; place-items: center; position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
    width: 3.75rem; height: 3.75rem; border-radius: 50%; background: #25d366; color: #fff; border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink); transition: transform .2s var(--ease), box-shadow .2s;
  }
  .wa-float:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
  .wa-float svg { width: 1.9rem; height: 1.9rem; }
}

/* ---------- Pagine legali ---------- */
.note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.legal-page { max-width: 46rem; }
.legal-page h1 { font-size: var(--step-3); margin-bottom: var(--space-6); }
.legal-page h2 { font-size: var(--step-1); margin: var(--space-6) 0 var(--space-3); }

/* ---------- Comparsa allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

@media print {
  .site-header, .quickbar, .wa-float, .ticker, .form { display: none !important; }
  body { padding: 0; }
}
