/* ============================================================
   HAMZA PARQUET — foglio di stile unico
   Parquettista a Roma · T.H.K. Consulting Limited · 2026
   Palette dettata dal legno: sabbia, rovere, noce, navy.
   ============================================================ */

/* ---------- 1 · TOKEN ---------- */
:root {
  /* colore — tema chiaro (default) */
  --sfondo:        #F5F0E8;
  --sfondo-alt:    #EDE5D8;
  --superficie:    #FFFDF9;
  --bordo:         #DED2BF;
  --bordo-forte:   #C3B199;

  --testo:         #1B2130;
  --testo-soft:    #5C6373;
  --testo-inv:     #F5F0E8;

  --legno:         #B5762F;
  --legno-scuro:   #8A551D;
  --legno-chiaro:  #E3B274;
  --legno-velo:    #F0E0C8;

  --scuro:         #171C28;
  --scuro-2:       #212838;

  --azione:        #1F9D55;
  --azione-hover:  #178246;
  --azione-testo:  #FFFFFF;

  /* tipografia */
  --font-display: "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", Inter, system-ui, -apple-system, Arial, sans-serif;
  --font-testo:   ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-hero:  clamp(2.15rem, 4.6vw, 3.9rem);
  --t-h1:    clamp(2.1rem, 5.4vw, 3.7rem);
  --t-h2:    clamp(1.75rem, 4vw, 2.85rem);
  --t-h3:    clamp(1.2rem, 2.2vw, 1.55rem);
  --t-body:  clamp(1rem, 1.05vw + .78rem, 1.16rem);
  --t-small: .875rem;
  --t-micro: .76rem;

  /* spazio */
  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4.5rem;
  --s9: clamp(4rem, 9vw, 7.5rem);

  /* forma */
  --r-s: 8px; --r-m: 14px; --r-l: 24px; --r-xl: 34px; --r-pill: 999px;

  /* ombra */
  --om-1: 0 1px 2px rgba(23,28,40,.06), 0 2px 8px rgba(23,28,40,.05);
  --om-2: 0 4px 12px rgba(23,28,40,.08), 0 12px 32px rgba(23,28,40,.07);
  --om-3: 0 12px 28px rgba(23,28,40,.12), 0 30px 70px rgba(23,28,40,.10);

  /* movimento */
  --dur-veloce: .18s; --dur-medio: .34s; --dur-lento: .7s;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* layout */
  --larghezza: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --nav-h: 68px;

  /* filtro logo: nel tema chiaro resta com'è */
  --logo-filtro: none;
}

:root[data-theme="dark"] {
  --sfondo:      #12161F;
  --sfondo-alt:  #171C28;
  --superficie:  #1C222F;
  --bordo:       #2C3444;
  --bordo-forte: #3D4759;

  --testo:       #ECE6DC;
  --testo-soft:  #A2ABBC;
  --testo-inv:   #12161F;

  --legno:       #D99C4A;
  --legno-scuro: #B87A2C;
  --legno-chiaro:#EFC589;
  --legno-velo:  #2A2418;

  --scuro:       #0C0F16;
  --scuro-2:     #171C28;

  --azione:      #26B463;
  --azione-hover:#1E9A53;

  --om-1: 0 1px 2px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.3);
  --om-2: 0 4px 12px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  --om-3: 0 12px 28px rgba(0,0,0,.5), 0 30px 70px rgba(0,0,0,.45);

  /* il wordmark è navy scuro: nel tema scuro va invertito */
  --logo-filtro: invert(1) brightness(1.12);
}

/* ---------- 2 · RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-testo);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--testo);
  background: var(--sfondo);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-medio) var(--ease), color var(--dur-medio) var(--ease);
}

img, video, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 var(--s4); letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.012em; }
p  { margin: 0 0 var(--s4); }
figure { margin: 0; }
a  { color: inherit; }
ul { margin: 0 0 var(--s4); padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--legno);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--legno); color: #fff; padding: var(--s3) var(--s5);
  border-radius: 0 0 var(--r-m) 0; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- 3 · LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--larghezza); margin-inline: auto; padding-inline: var(--gutter); }
.sez  { padding-block: var(--s9); position: relative; }
.sez--alt { background: var(--sfondo-alt); }
.sez--scura { background: var(--scuro); color: #ECE6DC; }
.sez--scura h2 { color: #fff; }

.occhiello {
  font-family: var(--font-display);
  font-size: var(--t-micro);
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--legno-scuro);
  margin-bottom: var(--s3);
  display: flex; align-items: center; gap: .6em;
}
:root[data-theme="dark"] .occhiello { color: var(--legno-chiaro); }
.occhiello::before { content: ""; width: 26px; height: 2px; background: currentColor; flex: none; }

.testa { max-width: 44ch; margin-bottom: var(--s7); }
.testa p { color: var(--testo-soft); margin-bottom: 0; }
.testa--centro { margin-inline: auto; text-align: center; }
.testa--centro .occhiello { justify-content: center; }

/* ---------- 4 · PULSANTI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: .95em 1.6em; border-radius: var(--r-pill);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur-veloce) var(--ease),
              background var(--dur-veloce) var(--ease),
              box-shadow var(--dur-veloce) var(--ease),
              border-color var(--dur-veloce) var(--ease);
  line-height: 1.15; text-align: center;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--wa { background: var(--azione); color: var(--azione-testo); box-shadow: 0 6px 18px rgba(31,157,85,.28); }
.btn--wa:hover { background: var(--azione-hover); box-shadow: 0 10px 26px rgba(31,157,85,.34); }

.btn--tel { background: transparent; color: var(--testo); border-color: var(--bordo-forte); }
.btn--tel:hover { border-color: var(--testo); background: var(--superficie); }
.sez--scura .btn--tel, .hero .btn--tel, .cta-banda .btn--tel, .menu-mobile .btn--tel { color: #fff; border-color: rgba(255,255,255,.45); }
.sez--scura .btn--tel:hover, .hero .btn--tel:hover, .cta-banda .btn--tel:hover { background: rgba(255,255,255,.12); border-color: #fff; }
/* nel menu mobile lo sfondo è chiaro: il pulsante torna scuro */
.menu-mobile .btn--tel { color: var(--testo); border-color: var(--bordo-forte); }

.btn--legno { background: var(--legno); color: #fff; }
.btn--legno:hover { background: var(--legno-scuro); }

.btn-riga { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btn-riga--centro { justify-content: center; }

.link-freccia {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-display); font-weight: 700;
  color: var(--legno-scuro); text-decoration: none;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: gap var(--dur-veloce) var(--ease), border-color var(--dur-veloce) var(--ease);
}
:root[data-theme="dark"] .link-freccia { color: var(--legno-chiaro); }
.link-freccia:hover { gap: .85em; border-bottom-color: currentColor; }

/* ---------- 5 · NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur-medio) var(--ease),
              box-shadow var(--dur-medio) var(--ease),
              border-color var(--dur-medio) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--sfondo) 92%, transparent);
  border-bottom-color: var(--bordo);
  box-shadow: var(--om-1);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav.scrolled { background: var(--sfondo); }
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }

.marchio { display: flex; align-items: center; text-decoration: none; }
.marchio img { height: 34px; width: auto; filter: var(--logo-filtro); transition: filter var(--dur-medio) var(--ease); }
.nav:not(.scrolled) .marchio img { filter: invert(1) brightness(1.15); }
:root[data-theme="dark"] .nav:not(.scrolled) .marchio img { filter: invert(1) brightness(1.12); }
.nav--interna:not(.scrolled) .marchio img { filter: var(--logo-filtro); }

.menu { display: flex; align-items: center; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.menu a {
  text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: .95rem; padding: .4em 0; position: relative;
  color: var(--testo);
  transition: color var(--dur-veloce) var(--ease);
}
.nav:not(.scrolled) .menu a { color: #fff; }
.nav--interna:not(.scrolled) .menu a { color: var(--testo); }
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--legno); transition: width var(--dur-medio) var(--ease);
}
.menu a:hover::after, .menu a[aria-current="page"]::after { width: 100%; }

.nav-azioni { display: flex; align-items: center; gap: var(--s3); }

.tema {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid var(--bordo-forte); background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--testo); flex: none;
  transition: background var(--dur-veloce) var(--ease), border-color var(--dur-veloce) var(--ease);
}
.nav:not(.scrolled) .tema { color: #fff; border-color: rgba(255,255,255,.4); }
.nav--interna:not(.scrolled) .tema { color: var(--testo); border-color: var(--bordo-forte); }
.tema:hover { background: color-mix(in srgb, var(--testo) 10%, transparent); }
.tema svg { width: 18px; height: 18px; }
.tema .ico-luna { display: none; }
:root[data-theme="dark"] .tema .ico-luna { display: block; }
:root[data-theme="dark"] .tema .ico-sole { display: none; }

.nav .btn { padding: .7em 1.2em; font-size: .92rem; }
.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* burger */
.burger {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--testo); flex: none;
}
.nav:not(.scrolled) .burger { color: #fff; }
.nav--interna:not(.scrolled) .burger { color: var(--testo); }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-medio) var(--ease), opacity var(--dur-veloce) var(--ease); }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }
@media (max-width: 899px) { .menu-desktop { display: none; } }

/* menu mobile a tutto schermo — NIENTE justify-content:center (taglia le prime voci) */
.menu-mobile {
  position: fixed; inset: 0; z-index: 99;
  background: var(--sfondo);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + var(--s6)) var(--gutter) var(--s7);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--dur-medio) var(--ease), transform var(--dur-medio) var(--ease), visibility var(--dur-medio);
}
.menu-mobile.aperto { opacity: 1; visibility: visible; transform: none; }
.menu-mobile ul { list-style: none; margin: 0 0 var(--s6); padding: 0; }
.menu-mobile li { margin: 0; border-bottom: 1px solid var(--bordo); }
.menu-mobile a {
  display: block; padding: var(--s4) 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--testo);
}
.menu-mobile .btn { width: 100%; }
body.bloccato { overflow: hidden; }

/* ---------- 6 · HERO ---------- */
/* Il video sorgente è VERTICALE (9:16). Su desktop non può fare da sfondo a
   tutta larghezza senza diventare un primo piano illeggibile: da 940px in su
   diventa un riquadro accanto al testo. Sotto i 940px torna sfondo pieno.
   Un solo elemento <video>, spostato dalla CSS: nessun doppio download. */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + var(--s6)); padding-bottom: var(--s8);
  background: var(--scuro); color: #fff; overflow: hidden;
}
.hero__sfondo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(78% 92% at 82% 12%, rgba(181,118,47,.30), transparent 62%),
    radial-gradient(60% 70% at 8% 88%, rgba(181,118,47,.14), transparent 60%);
}
.hero__griglia { position: relative; z-index: 2; display: grid; gap: var(--s6); align-items: center; }
.hero__testo { position: relative; z-index: 2; max-width: 660px; }
.hero h1 { font-size: var(--t-hero); color: #fff; text-wrap: balance; margin-bottom: var(--s4); }
.hero h1 em { font-style: normal; color: var(--legno-chiaro); }
.hero__sub { font-size: clamp(1.02rem, .6vw + .95rem, 1.2rem); color: rgba(255,255,255,.92); max-width: 48ch; margin-bottom: var(--s6); }
.hero .occhiello { color: var(--legno-chiaro); }

.hero__riquadro { position: relative; }
.hero__riquadro video, .hero__riquadro img { width: 100%; height: 100%; object-fit: cover; }
.hero__velo { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* --- da 940px: riquadro accanto al testo --- */
@media (min-width: 940px) {
  .hero__griglia { grid-template-columns: 1.12fr .88fr; gap: var(--s8); }
  .hero__riquadro {
    border-radius: var(--r-xl); overflow: hidden;
    aspect-ratio: 3/4; max-height: 70vh; margin-left: auto; width: 100%; max-width: 430px;
    box-shadow: 0 30px 70px rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.12);
  }
  .hero__riquadro video { object-position: 50% 58%; }
  .hero__velo { background: linear-gradient(180deg, transparent 55%, rgba(10,12,18,.5) 100%); }
}

/* --- sotto 940px: il video torna sfondo a tutto schermo --- */
@media (max-width: 939px) {
  .hero__griglia { position: static; }
  .hero__riquadro { position: absolute; inset: 0; z-index: 0; }
  .hero__riquadro video { object-position: 50% 45%; }
  .hero__velo {
    background:
      linear-gradient(180deg, rgba(10,12,18,.74) 0%, rgba(10,12,18,.5) 38%, rgba(10,12,18,.9) 100%);
  }
}

.prove { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-top: var(--s6); padding: 0; list-style: none; }
.prove li { display: flex; align-items: center; gap: .55em; font-size: var(--t-small); color: rgba(255,255,255,.88); margin: 0; }
.prove svg { width: 1.15em; height: 1.15em; color: var(--legno-chiaro); flex: none; }

.hero__scroll {
  position: absolute; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.6); font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5em;
}
.hero__scroll span { display: block; width: 1px; height: 30px; background: linear-gradient(rgba(255,255,255,.55), transparent); animation: giu 2.2s var(--ease) infinite; }
@keyframes giu { 0%,100% { transform: scaleY(.35); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }
@media (max-width: 600px) { .hero__scroll { display: none; } }

/* hero interne (pagine secondarie) */
.hero-int {
  padding-top: calc(var(--nav-h) + var(--s8)); padding-bottom: var(--s7);
  background: var(--sfondo-alt); border-bottom: 1px solid var(--bordo);
}
.hero-int h1 { max-width: 18ch; text-wrap: balance; }
.hero-int p { color: var(--testo-soft); max-width: 56ch; margin-bottom: 0; }

/* ---------- 7 · BARRA SERVIZI (marquee) ---------- */
.barra {
  background: var(--scuro-2); color: #E7DFD1; padding-block: var(--s4);
  overflow: hidden; border-block: 1px solid rgba(255,255,255,.07);
}
.barra__pista { display: flex; width: max-content; animation: scorri 46s linear infinite; }
.barra:hover .barra__pista { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .barra__pista { animation: none; } }
.barra__gruppo { display: flex; align-items: center; gap: var(--s5); padding-right: var(--s5); flex: none; }
.barra__voce {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; white-space: nowrap; display: flex; align-items: center; gap: var(--s5);
}
.barra__voce::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--legno); flex: none; }
@keyframes scorri { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- 8 · PERCORSI ---------- */
.percorsi { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 820px) { .percorsi { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
@media (min-width: 980px) { .percorsi--tre { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.percorso__img video { width: 100%; height: 100%; object-fit: cover; }

.percorso {
  background: var(--superficie); border: 1px solid var(--bordo); border-radius: var(--r-l);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--om-1);
  transition: transform var(--dur-medio) var(--ease), box-shadow var(--dur-medio) var(--ease), border-color var(--dur-medio) var(--ease);
}
.percorso:hover { transform: translateY(-5px); box-shadow: var(--om-3); border-color: var(--bordo-forte); }
.percorso__img { aspect-ratio: 16/9; overflow: hidden; background: var(--sfondo-alt); }
.percorso__img img, .percorso__img video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-lento) var(--ease-out); }
.percorso:hover .percorso__img img { transform: scale(1.05); }
.percorso__corpo { padding: var(--s5) var(--s5) var(--s6); display: flex; flex-direction: column; flex: 1; }
.percorso__corpo p { color: var(--testo-soft); flex: 1; }
.percorso .btn { align-self: flex-start; margin-top: var(--s3); }
.percorso__tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase;
  color: var(--legno-scuro); background: var(--legno-velo);
  padding: .35em .9em; border-radius: var(--r-pill); margin-bottom: var(--s3);
}
:root[data-theme="dark"] .percorso__tag { color: var(--legno-chiaro); }

/* ---------- 9 · PASSI ---------- */
.passi { display: grid; gap: var(--s6); grid-template-columns: 1fr; counter-reset: p; }
@media (min-width: 780px) { .passi { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
@media (min-width: 620px) { .passi--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .passi--4 { grid-template-columns: repeat(4, 1fr); } }
.passo { position: relative; padding-top: var(--s7); }
.passo::before {
  counter-increment: p; content: counter(p);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 3.4vw, 3rem); line-height: .85;
  color: var(--legno); opacity: .45;
}
:root[data-theme="dark"] .passo::before { opacity: .6; }
.passo h3 { margin-bottom: var(--s2); }
.passo p { color: var(--testo-soft); margin-bottom: 0; }

.garanzia {
  margin-top: var(--s7); padding: var(--s6);
  background: var(--superficie); border: 2px solid var(--legno);
  border-radius: var(--r-l); display: grid; gap: var(--s4);
  box-shadow: var(--om-2);
}
@media (min-width: 760px) { .garanzia { grid-template-columns: auto 1fr; align-items: start; gap: var(--s5); padding: var(--s7); } }
.garanzia__ico { width: 52px; height: 52px; border-radius: var(--r-m); background: var(--legno-velo); display: grid; place-items: center; color: var(--legno-scuro); flex: none; }
:root[data-theme="dark"] .garanzia__ico { color: var(--legno-chiaro); }
.garanzia__ico svg { width: 26px; height: 26px; }
.garanzia h3 { margin-bottom: var(--s2); }
.garanzia p { margin-bottom: 0; color: var(--testo-soft); }

/* ---------- 10 · GRIGLIA SERVIZI ---------- */
.griglia { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 620px) { .griglia { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .griglia { grid-template-columns: repeat(4, 1fr); gap: var(--s5); } }

.card {
  background: var(--superficie); border: 1px solid var(--bordo); border-radius: var(--r-m);
  padding: var(--s5); text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform var(--dur-medio) var(--ease), border-color var(--dur-medio) var(--ease), box-shadow var(--dur-medio) var(--ease);
}
a.card:hover { transform: translateY(-4px); border-color: var(--legno); box-shadow: var(--om-2); }
/* card con foto in testa */
.card--foto { padding: 0; overflow: hidden; }
.card--foto .card__foto { aspect-ratio: 4/3; overflow: hidden; background: var(--sfondo-alt); position: relative; }
.card--foto .card__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-lento) var(--ease-out); }
a.card--foto:hover .card__foto img { transform: scale(1.06); }
.card--foto .card__corpo { padding: var(--s5); }
.card--foto .card__ico {
  position: absolute; left: var(--s3); bottom: var(--s3); margin: 0;
  width: 38px; height: 38px; background: var(--superficie);
  box-shadow: var(--om-1);
}
.card--foto .card__ico svg { width: 19px; height: 19px; }

.card__ico { width: 44px; height: 44px; border-radius: var(--r-s); background: var(--legno-velo); color: var(--legno-scuro); display: grid; place-items: center; margin-bottom: var(--s4); flex: none; }
:root[data-theme="dark"] .card__ico { color: var(--legno-chiaro); }
.card__ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.08rem; margin-bottom: var(--s2); }
.card p { font-size: var(--t-small); color: var(--testo-soft); margin: 0; line-height: 1.6; }

/* ---------- 11 · LAVORO (video + galleria) ---------- */
.lavoro { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .lavoro { grid-template-columns: minmax(0,420px) 1fr; gap: var(--s8); } }
.lavoro__video {
  position: relative; border-radius: var(--r-l); overflow: hidden;
  background: var(--scuro); box-shadow: var(--om-3); aspect-ratio: 9/16; max-height: 74vh; margin-inline: auto; width: 100%;
}
.lavoro__video video { width: 100%; height: 100%; object-fit: cover; }
.lavoro__didascalia { font-size: var(--t-small); color: var(--testo-soft); margin-top: var(--s3); text-align: center; }

/* striscia orizzontale di anteprime */
.striscia { display: grid; gap: var(--s3); grid-template-columns: repeat(2, 1fr); margin-top: var(--s5); }
@media (min-width: 700px) { .striscia { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
.striscia figure {
  position: relative; border-radius: var(--r-m); overflow: hidden;
  aspect-ratio: 3/4; background: var(--sfondo-alt); border: 1px solid var(--bordo);
}
.striscia img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-lento) var(--ease-out); }
.striscia figure:hover img { transform: scale(1.05); }
.striscia figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--s6) var(--s3) var(--s3);
  background: linear-gradient(transparent, rgba(12,15,22,.85));
  color: #fff; font-size: var(--t-micro); font-weight: 700; letter-spacing: .02em;
}

.galleria { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.galleria__el {
  position: relative; border-radius: var(--r-m); overflow: hidden;
  background: var(--sfondo-alt); border: 1px solid var(--bordo);
  aspect-ratio: 3/4; cursor: pointer; padding: 0;
}
/* pastiglia «play» sulle anteprime video */
.galleria__el[data-tipo="video"]::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B2130'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/24px no-repeat;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform var(--dur-veloce) var(--ease);
}
.galleria__el[data-tipo="video"]:hover::after { transform: scale(1.12); }
.galleria__el img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-lento) var(--ease-out); }
.galleria__el:hover img { transform: scale(1.06); }
.galleria__el figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--s5) var(--s4) var(--s3);
  background: linear-gradient(transparent, rgba(12,15,22,.82));
  color: #fff; font-size: var(--t-small); font-weight: 600; text-align: left;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,12,18,.94);
  display: grid; place-items: center; padding: var(--s5);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-medio) var(--ease), visibility var(--dur-medio);
}
.lightbox.aperto { opacity: 1; visibility: visible; }
.lightbox img, .lightbox video { max-width: min(1100px, 94vw); max-height: 86vh; width: auto; border-radius: var(--r-m); }
.lightbox__didascalia { position: absolute; left: 0; right: 0; bottom: var(--s5); text-align: center; color: rgba(255,255,255,.85); font-size: var(--t-small); padding-inline: var(--s5); }
.lightbox__chiudi {
  position: absolute; top: var(--s5); right: var(--s5); width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
}
.lightbox__chiudi:hover { background: rgba(255,255,255,.2); }

/* ---------- 12 · PERCHÉ ME ---------- */
.motivi { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 800px) { .motivi { grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s8); } }
.motivo { border-top: 2px solid var(--legno); padding-top: var(--s4); }
.motivo h3 { margin-bottom: var(--s2); }
.motivo p { color: var(--testo-soft); margin-bottom: 0; }

/* ---------- 13 · FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq__el { border-bottom: 1px solid var(--bordo); }
.faq__bottone {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: var(--s5) var(--s6) var(--s5) 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  color: var(--testo); line-height: 1.35;
  transition: color var(--dur-veloce) var(--ease);
}
.faq__bottone:hover { color: var(--legno-scuro); }
:root[data-theme="dark"] .faq__bottone:hover { color: var(--legno-chiaro); }
.faq__bottone::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg); transition: transform var(--dur-medio) var(--ease);
}
.faq__bottone[aria-expanded="true"]::after { transform: translateY(-20%) rotate(-135deg); }
.faq__risposta { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-medio) var(--ease); }
.faq__el.aperto .faq__risposta { grid-template-rows: 1fr; }
.faq__risposta > div { overflow: hidden; }
.faq__risposta p { color: var(--testo-soft); padding-bottom: var(--s5); margin: 0; max-width: 68ch; }

/* ---------- 14 · SPLIT (chi sono) ---------- */
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.split--inv > *:first-child { order: 2; }
@media (max-width: 859px) { .split--inv > *:first-child { order: 0; } }
.split__img { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--om-2); background: var(--sfondo-alt); }
/* niente aspect-ratio forzato: le foto del cliente hanno proporzioni diverse
   e ritagliarle taglierebbe il marchio e il numero di telefono sul furgone. */
.split__img img { width: 100%; height: auto; display: block; }
.split__testo p { color: var(--testo-soft); }

/* ---------- 15 · ZONA ---------- */
.zona { text-align: center; max-width: 56ch; margin-inline: auto; }
.zona h2 { margin-bottom: var(--s3); }
.zona p { color: var(--testo-soft); }

/* ---------- 16 · BANDA CTA ---------- */
.cta-banda { background: var(--scuro); color: #fff; text-align: center; padding-block: var(--s9); position: relative; overflow: hidden; }
.cta-banda::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 130% at 50% 0%, rgba(181,118,47,.34), transparent 62%);
}
.cta-banda .wrap { position: relative; z-index: 1; }
.cta-banda h2 { color: #fff; max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.cta-banda p { color: rgba(255,255,255,.82); max-width: 52ch; margin-inline: auto; margin-bottom: var(--s6); }

/* ---------- 17 · FOOTER ---------- */
.footer { background: var(--sfondo-alt); border-top: 1px solid var(--bordo); padding-block: var(--s8) var(--s5); }
.footer__griglia { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__griglia { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: var(--s5); } }
.footer h4 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--testo-soft); margin-bottom: var(--s4); font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55em; }
.footer a { text-decoration: none; color: var(--testo-soft); transition: color var(--dur-veloce) var(--ease); }
.footer a:hover { color: var(--legno-scuro); }
:root[data-theme="dark"] .footer a:hover { color: var(--legno-chiaro); }
.footer__logo img { height: 40px; width: auto; filter: var(--logo-filtro); margin-bottom: var(--s4); }
.footer__desc { font-size: var(--t-small); color: var(--testo-soft); max-width: 34ch; }
.footer__legale {
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--bordo);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between;
  font-size: var(--t-micro); color: var(--testo-soft);
}
.footer__legale a { color: inherit; }

/* ---------- 18 · FAB WHATSAPP ---------- */
.fab {
  position: fixed; right: var(--s4); bottom: var(--s4); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--azione); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(31,157,85,.42); text-decoration: none;
  transition: transform var(--dur-veloce) var(--ease), background var(--dur-veloce) var(--ease);
}
.fab:hover { transform: scale(1.08); background: var(--azione-hover); }
.fab svg { width: 30px; height: 30px; }
@media (min-width: 900px) { .fab { right: var(--s5); bottom: var(--s5); } }

/* ---------- 19 · BANNER COOKIE ---------- */
.cookie {
  position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 150;
  max-width: 560px; margin-inline: auto;
  background: var(--superficie); border: 1px solid var(--bordo-forte); border-radius: var(--r-m);
  padding: var(--s5); box-shadow: var(--om-3);
  transform: translateY(140%); transition: transform var(--dur-medio) var(--ease-out);
}
.cookie.visibile { transform: none; }
.cookie p { font-size: var(--t-small); color: var(--testo-soft); margin-bottom: var(--s4); }
.cookie .btn { font-size: .9rem; padding: .7em 1.2em; }
.cookie__azioni { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.cookie__azioni a { font-size: var(--t-small); color: var(--testo-soft); }
@media (max-width: 620px) { .cookie { bottom: calc(var(--s4) + 66px); } }

/* ---------- 20 · REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-ritardo="1"] { transition-delay: .09s; }
.reveal[data-ritardo="2"] { transition-delay: .18s; }
.reveal[data-ritardo="3"] { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 21 · PAGINE TESTO / 404 ---------- */
.testo-lungo { max-width: 74ch; }
.testo-lungo h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: var(--s7); }
.testo-lungo h2:first-of-type { margin-top: 0; }
.testo-lungo p, .testo-lungo li { color: var(--testo-soft); }

.p404 { min-height: 82svh; display: grid; place-items: center; text-align: center; padding-top: var(--nav-h); }
.p404__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 22vw, 13rem); line-height: .85; color: var(--legno); opacity: .28; margin-bottom: var(--s4); }

/* servizi: blocchi alternati */
.blocco { display: grid; gap: var(--s6); align-items: center; padding-block: var(--s8); border-top: 1px solid var(--bordo); scroll-margin-top: calc(var(--nav-h) + 20px); }
.blocco:first-of-type { border-top: 0; padding-top: var(--s7); }
@media (min-width: 880px) { .blocco { grid-template-columns: 1fr 1fr; gap: var(--s8); } .blocco--inv .blocco__media { order: -1; } }
.blocco__media { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--om-2); background: var(--sfondo-alt); }
.blocco__media img { width: 100%; height: auto; display: block; }
/* il video sorgente è verticale: gli si dà una cornice ritratto stretta,
   non un riquadro 4/3 che lo ridurrebbe a un primo piano illeggibile */
.blocco__media--verticale { max-width: 330px; margin-inline: auto; }
.blocco__media--verticale video { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.blocco__testo p { color: var(--testo-soft); }
.blocco__testo ul { color: var(--testo-soft); }
.blocco__testo .btn { margin-top: var(--s3); }

.indice { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }
.indice a {
  font-size: var(--t-small); font-weight: 600; text-decoration: none;
  padding: .45em 1em; border-radius: var(--r-pill);
  border: 1px solid var(--bordo-forte); color: var(--testo-soft);
  transition: all var(--dur-veloce) var(--ease); white-space: nowrap;
}
.indice a:hover { border-color: var(--legno); color: var(--legno-scuro); background: var(--legno-velo); }
:root[data-theme="dark"] .indice a:hover { color: var(--legno-chiaro); }

/* elenco a due colonne */
.lista-due { columns: 1; }
@media (min-width: 560px) { .lista-due { columns: 2; column-gap: var(--s6); } }
.lista-due li { break-inside: avoid; }

/* contatti in chi sono */
.contatti { display: grid; gap: var(--s4); }
@media (min-width: 620px) { .contatti { grid-template-columns: repeat(2, 1fr); gap: var(--s5); } }
.contatto { background: var(--superficie); border: 1px solid var(--bordo); border-radius: var(--r-m); padding: var(--s5); }
.contatto h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--testo-soft); margin-bottom: var(--s2); }
.contatto p, .contatto a { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 0; text-decoration: none; }
.contatto a:hover { color: var(--legno-scuro); }

/* noscript: tutto visibile */
.nojs .reveal { opacity: 1; transform: none; }
