/* Art-Design di Tiziana Sessa — «Materia e luce», CHIARA di base (03/10/2026, 21:00; Domenico: «metti la versione
   light come principale»). Lo scuro resta col pulsante luna/sole; tutti e due hanno i particolari del kit
   (decori, sigillo, pianta a tratto, logo intero a tratto, icone che si disegnano, fasce); testo grande, contrasto AA.
   Regole (Design/TEMA-E-LEGGIBILITA.md):
   - colori SOLO dai token semantici qui sotto. Il CHIARO sta in :root (e :root[data-theme="light"]), lo SCURO in
     :root[data-theme="dark"] e in ogni .scuro (l'anti-lampo scrive sempre data-theme="light" o "dark");
     .scuro rimette i valori scuri in un'isola (hero, panorama, piede: testo chiaro sopra foto o fondo noce);
   - testo corrente 17 px al telefono, 18 px da computer, interlinea 1,6;
   - sopra le foto il testo sta solo su un velo deciso; altrove le foto brillano;
   - da computer (≥ 1024 px) 1 u = 1 px di home-pagina.png: --u = min(100cqw, 1440px) / 750, colonna .col-u di 750 u;
   - ogni stato nascosto delle entrate vale solo sotto html.mo (JS attivo e movimento non ridotto). */

:root {
  /* palette del kit (07-specifiche/design-tokens.css), materia prima dei token */
  --noce: #292520;
  --superficie: #302D27;
  --oliva: #333C34;
  --petrol: #396C68;
  --petrol-logo: #62958F;
  --linen: #C5B8A5;
  --muted: #D4CDC1;
  --ivory: #F3EEE5;
  --serif: "Tinos", "Times New Roman", Times, serif;
  --sans: "Arimo", Arial, Helvetica, sans-serif;
  --o: cubic-bezier(.16, 1, .3, 1);
  --io: cubic-bezier(.65, 0, .35, 1);
  --u: 1px;
  --fs: 17px;                 /* testo corrente */
  --gut: 20px;                /* margine laterale */
  --max: 1200px;              /* colonna delle pagine interne (.col) */
  --hdr-h: 72px;              /* spazio da lasciare sopra per la testata sospesa */
  --sez: 72px;                /* spazio verticale delle sezioni */
  --r: 12px;                  /* raggio di foto e riquadri */
}

/* ---- TEMI. Tutto il sito usa SOLO questi nomi. CHIARO di base ---- */
:root, :root[data-theme="light"] {
  --bg: #F3EEE5;
  --bg-alt: #E9E2D7;
  --bg-solid: #F3EEE5;
  --surface: rgb(197 184 165 / 22%);
  --velo: rgb(197 184 165 / 16%);
  --text: #292520;
  --text-soft: #4A433B;                  /* 8,9:1 */
  --heading: #292520;
  --line: rgb(41 37 32 / 16%);
  --line-strong: rgb(41 37 32 / 40%);
  --accent: #396C68;
  --on-accent: #F3EEE5;
  --accent-text: #396C68;
  --eyebrow: #396C68;                    /* 5,3:1 */
  --deco: #8C7A64;
  --link: #292520;
  --ring: #396C68;
  --hdr-bg: rgb(243 238 229 / 92%);
  --shadow: 0 22px 44px -26px rgb(41 37 32 / 42%);
  --ombra-decor: .26;
  --fasce: #C5B8A5;
  --fasce-o: .26;
  --luce: rgb(255 255 255 / 40%);
  --grana: .035;
  color-scheme: light;
}
/* SCURO: scelto col pulsante (data-theme="dark") e dentro ogni isola .scuro (hero, panorama, piede) */
:root[data-theme="dark"], .scuro {
  --bg: #292520;                         /* fondo pagina (noce) */
  --bg-alt: #302D27;                     /* fasce alterne, tessere */
  --bg-solid: #292520;                   /* fondo pieno opaco: etichette sulle foto, menu, banner */
  --surface: rgb(197 184 165 / 8%);      /* riquadri leggeri, segnaposto delle foto */
  --velo: rgb(197 184 165 / 4%);         /* fasce appena velate (servizi, info) */
  --text: #F3EEE5;                       /* testo corrente (13:1) */
  --text-soft: #D4CDC1;                  /* testo secondario (10:1) */
  --heading: #F3EEE5;                    /* titoli */
  --line: rgb(197 184 165 / 24%);        /* filetti e bordi */
  --line-strong: rgb(197 184 165 / 48%); /* bordi dei pulsanti a contorno e delle cornici */
  --accent: #396C68;                     /* pulsanti pieni (petrolio) */
  --on-accent: #F3EEE5;                  /* testo sui pulsanti pieni (5,5:1) */
  --accent-text: #62958F;                /* icone e numeri in petrolio chiaro (solo segni, non testo lungo) */
  --eyebrow: #C5B8A5;                    /* occhielli (lino, 8:1) */
  --deco: #C5B8A5;                       /* tratti: pianta, monogrammi, icone del kit */
  --link: #F3EEE5;
  --ring: #C5B8A5;                       /* contorno del fuoco */
  --hdr-bg: rgb(41 37 32 / 90%);         /* barra della testata */
  --shadow: 0 24px 48px -24px rgb(0 0 0 / 55%);
  --ombra-decor: .5;                     /* ombra di contatto dei decori */
  --fasce: #333C34;                      /* fasce diagonali del fondo (sfondo-diagonale del kit) */
  --fasce-o: .6;
  --luce: rgb(243 238 229 / 7%);         /* luce di finestra in alto a sinistra */
  --grana: .05;
  color-scheme: dark;
}
/* un'isola .scuro dentro il tema chiaro torna scura anche nel colore di base */
.scuro { color: var(--text); color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 400 var(--fs)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  transition: background-color .35s var(--o), color .35s var(--o);
}
/* grana ferma (feTurbulence, tassello 180 px) sopra il fondo */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grana);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 .6 -.13 0 0 0 .55 -.13 0 0 0 .5 -.12 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 180px 180px repeat; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--heading); text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
.br-d { display: none; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; min-height: 44px; padding: 13px 16px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.page { position: relative; container-type: inline-size; overflow-x: clip; }
/* colonna della home (in u da computer) e colonna delle pagine interne */
.col-u { position: relative; width: 100%; padding-inline: var(--gut); }
.col { position: relative; width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- classi comuni (anche per le pagine interne) ---------- */
.fascia { background: transparent; }
.fascia--alt { background: var(--velo); }
.sez { padding-block: var(--sez); }
.testo, .testo p { max-width: 62ch; font-size: var(--fs); line-height: 1.6; color: var(--text); }
.testo p + p { margin-top: .9em; }
.testo-soft { color: var(--text-soft); }
.titolo-1 { font: 700 clamp(34px, 9.4vw, 42px)/1.08 var(--serif); letter-spacing: -.012em; color: var(--heading); }
.titolo-2 { font: 700 clamp(30px, 8vw, 34px)/1.1 var(--serif); letter-spacing: -.01em; color: var(--heading); }
.titolo-3 { font: 700 21px/1.25 var(--serif); color: var(--heading); }
@media (min-width: 1024px) {
  :root { --sez: 104px; }
  .titolo-1 { font-size: clamp(46px, calc(var(--u) * 27.2), 56px); }
  .titolo-2 { font-size: clamp(38px, calc(var(--u) * 24), 48px); }
  .titolo-3 { font-size: 24px; }
}

/* icone del kit, in linea (tratto 1,45; colore dal contesto) */
.i { width: 1em; height: 1em; flex: none; overflow: visible; color: var(--deco); }

/* titoli: righe in maschera (servono all'entrata «righe») */
.riga { display: block; }
.riga > span { display: block; }

/* occhiello: filetto di 24 u + maiuscole */
.eyebrow {
  display: flex; align-items: center; gap: max(10px, calc(var(--u) * 8));
  font: 700 13px/1.25 var(--sans); text-transform: uppercase; letter-spacing: .2em; color: var(--eyebrow);
}
.eyebrow::before { content: ""; flex: none; width: max(24px, calc(var(--u) * 24)); height: 1px; background: currentColor; transform-origin: left; }

/* pulsanti a pillola */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.35em; overflow: hidden; isolation: isolate;
  border: 1px solid transparent; border-radius: 999px; white-space: nowrap;
  font: 700 16px/1 var(--sans); letter-spacing: .01em; color: var(--heading); cursor: pointer;
  transition: background-color .3s var(--o), border-color .3s var(--o), color .3s var(--o), box-shadow .3s var(--o), transform .2s var(--o);
}
/* luce interna in alto e riflesso che attraversa al passaggio */
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(243 238 229 / 10%), transparent 46%); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(243 238 229 / 16%), transparent); transform: translateX(-120%) skewX(-12deg); }
.btn .i { width: .75em; height: .75em; color: currentColor; transition: transform .35s var(--o); }
.btn .i--tel { width: 1.05em; height: 1.05em; }
.btn--petrol { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -16px rgb(57 108 104 / 80%); }
.btn--outline { border-color: var(--line-strong); background: transparent; color: var(--heading); }
.scuro .btn--outline { background: rgb(41 37 32 / 35%); }

/* link di testo verso le pagine interne */
.piu { display: inline-flex; width: fit-content; align-items: center; gap: .5em; min-height: 44px; margin-top: 8px;
  font: 700 16px/1.3 var(--sans); color: var(--link);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--eyebrow);
  transition: text-decoration-color .25s var(--o), color .25s var(--o); }
.piu .i { width: .75em; height: .75em; color: currentColor; transition: transform .35s var(--o); }

/* foto */
.ph { position: absolute; left: 0; right: 0; top: 0; height: 100%; }
.ph img, .ph picture { display: block; width: 100%; height: 100%; }
.ph img { object-fit: cover; }
.foto { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* etichetta sopra una foto («Render 3D», «Lavoro realizzato»): sempre su fondo pieno */
.etichetta-foto { position: absolute; z-index: 4; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; margin: 0;
  padding: 6px 11px; border-radius: 999px; background: var(--bg-solid); color: var(--text);
  font: 700 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 16px -8px rgb(0 0 0 / 45%); }
.etichetta-foto .i { width: 15px; height: 15px; color: var(--accent-text); }

/* tessere */
.tessera { padding: 28px 24px; border-radius: var(--r); background: var(--bg-alt); border: 1px solid var(--line); }
.fascia--alt .tessera { background: var(--bg); }

/* ---------- decori scontornati del kit: mai sopra il testo (≥ 12 px) ---------- */
.decor { position: absolute; z-index: 5; pointer-events: none; user-select: none; -webkit-user-select: none; }
.decor__in, .decor picture, .decor img { display: block; width: 100%; height: auto; }
.decor img { transform-origin: 50% 100%; }
.decor::after { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -3%; height: 9%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 55%), transparent); opacity: var(--ombra-decor); }
.d-chair-left img { transform: scaleX(-1); }

/* ---------- LOGO INTERO A TRATTO (filigrana: menu del telefono, FAQ, 404 e interne) ----------
   SVG del kit (04-logo/logo-verticale, simbolo + «ART-DESIGN» + «di TIZIANA SESSA»), ogni tracciato con pathLength="1";
   si disegna con stroke-dashoffset quando prende .in (data-reveal="mono"); senza JS o col movimento ridotto è già disegnato. */
.logo-tratto { --lt-fill: .16; display: block; height: auto; aspect-ratio: 680 / 480; overflow: visible; color: var(--deco); pointer-events: none; }
.logo-tratto [pathLength] { fill: currentColor; fill-opacity: var(--lt-fill); stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.logo-tratto .lt__tratti [pathLength] { fill: none; stroke-width: 2.3; stroke-linejoin: miter; }
.logo-tratto .lt__testo [pathLength] { stroke-width: 1.1; }

/* ---------- FOTO CHE CAMBIANO [data-ruota]: 3-4 render in dissolvenza lenta dentro un riquadro fisso ----------
   La prima <img> ha src e class="is-on", le altre data-srcset e aria-hidden; posizione per foto con --pos (computer) e
   --pos-t (telefono). main.js le alterna ogni 5,6 s (dissolvenza 1,6 s), ferme fuori schermo, a scheda nascosta e col
   movimento ridotto; senza JS resta la prima. */
[data-ruota] { isolation: isolate; }   /* le foto (z-index 1-2) restano sotto il velo del riquadro (::after) */
[data-ruota] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  object-position: var(--pos-t, var(--pos, 50% 50%)); }
[data-ruota] > img.is-on { opacity: 1; z-index: 2; }
[data-ruota] > img.is-prev { opacity: 1; z-index: 1; transition: none !important; }
html.mo [data-ruota] > img { transition: opacity 1.6s var(--io); }
@media (min-width: 768px) { [data-ruota] > img { object-position: var(--pos, 50% 50%); } }

/* =====================================================================
   FONDO VIVO — fasce diagonali del kit, luce di finestra, sera petrolio. Lento e leggero.
   ===================================================================== */
.fondo { position: fixed; inset: 0; z-index: -1; contain: strict; pointer-events: none; overflow: hidden; }
.fondo > div { position: absolute; }
.fondo__fasce { left: -2vw; top: 0; width: 104vw; height: 140vh; }
.fondo__fasce-in, .fondo__fasce svg { width: 100%; height: 100%; }
.fondo__fasce path { fill: var(--fasce); fill-opacity: var(--fasce-o); transition: fill .35s var(--o); }
.fondo__luce { inset: -12vh -12vw; }
.fondo__luce-in { position: absolute; inset: 0;
  background: radial-gradient(70vmax 70vmax at 6% 4%, var(--luce), transparent 70%); }
.fondo__sera { right: -32vmax; bottom: -34vmax; width: 80vmax; height: 80vmax; opacity: .35; }
.fondo__sera-in { position: absolute; inset: 0; }
.fondo__sera-in::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(57 108 104 / 16%), rgb(57 108 104 / 5%) 55%, transparent); }

/* =====================================================================
   TESTATA — barra sospesa (telefono: 56 px a 8 px dai bordi)
   ===================================================================== */
.hdr {
  position: fixed; z-index: 50; top: 8px; left: 8px; right: 8px; height: 56px;
  display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px;
  background: var(--hdr-bg); border-radius: 12px; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: saturate(1.15) blur(10px); backdrop-filter: saturate(1.15) blur(10px);
  transition: background-color .4s var(--o), box-shadow .4s var(--o);
}
.hdr.is-solid { box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -14px rgb(0 0 0 / 50%); }
.hdr__logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.hdr__logo img { width: 140px; height: auto; }
.hdr__logo .logo-chiaro { display: none; }                        /* chiaro (base): logo inchiostro */
:root[data-theme="dark"] .hdr__logo .logo-chiaro { display: block; }
:root[data-theme="dark"] .hdr__logo .logo-scuro { display: none; }
/* pulsante tema (luna/sole) e pulsante menu: cerchi di 44 px */
.hdr__tema, .hdr__toggle { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--heading); cursor: pointer;
  transition: border-color .25s var(--o), background-color .25s var(--o); }
.hdr__tema .i, .hdr__toggle .i { grid-area: 1 / 1; width: 20px; height: 20px; color: var(--heading); transition: transform .3s var(--o), opacity .3s var(--o); }
/* chiaro attivo (base): si vede la luna (porta allo scuro); scuro attivo: il sole */
.hdr__tema .i--sole { opacity: 0; transform: rotate(-45deg) scale(.7); }
:root[data-theme="dark"] .hdr__tema .i--sole { opacity: 1; transform: none; }
:root[data-theme="dark"] .hdr__tema .i--luna { opacity: 0; transform: rotate(45deg) scale(.7); }
html:not(.js) .hdr__tema { display: none; }          /* senza JS il tema non cambia: resta il chiaro */
.hdr__toggle { order: 3; }
.hdr__toggle .i--chiudi { opacity: 0; transform: rotate(-90deg); }
html:not(.js) .hdr__toggle { display: none; }        /* senza JS i link restano nel piede */
.hdr.is-open .hdr__toggle .i--menu { opacity: 0; transform: rotate(90deg); }
.hdr.is-open .hdr__toggle .i--chiudi { opacity: 1; transform: none; }

/* menu del telefono: pannello a tutto schermo, monogramma in filigrana */
.hdr__nav {
  position: absolute; z-index: -1; top: -8px; left: -8px; right: -8px; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; padding: 96px 32px calc(min(60vw, 340px) * .706 + 56px); overflow: hidden;
  background: var(--bg-solid);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .25s var(--io), visibility 0s .25s;
}
.hdr.is-open .hdr__nav { clip-path: inset(0); visibility: visible; transition: clip-path .45s var(--io), visibility 0s; }
.hdr__mono { position: absolute; z-index: -1; left: 50%; bottom: 28px; width: min(60vw, 340px); margin-left: calc(min(60vw, 340px) / -2); opacity: .6; }
.hdr__link { display: flex; align-items: center; min-height: 58px; padding: 6px 0; font: 700 30px/1.15 var(--serif); color: var(--heading);
  border-bottom: 1px solid var(--line); }
.hdr__link[aria-current="page"], .hdr__link.is-current { color: var(--eyebrow); }
.hdr__wa { margin-top: 32px; align-self: flex-start; min-height: 52px; font-size: 16px; }
html.menu-aperto { overflow: hidden; }

/* =====================================================================
   TELEFONO (< 768 px) — base
   ===================================================================== */
/* hero: render 3D a tutta larghezza che si susseguono in dissolvenza */
.hero { position: relative; height: 72vh; height: 72svh; min-height: 520px; max-height: 720px; background: var(--noce); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; }
.hero__slide.is-on { opacity: 1; z-index: 2; }
.hero__slide.is-prev { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos-t, var(--pos, 50% 50%)); }
/* velo: leggero in alto (la barra), deciso solo dietro ai testi in basso */
.hero__velo { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(130% 70% at 50% 92%, rgb(41 37 32 / 58%), transparent 72%),
    linear-gradient(180deg, rgb(41 37 32 / 36%) 0%, transparent 16%, transparent 26%, rgb(41 37 32 / 62%) 44%, rgb(41 37 32 / 84%) 66%, rgb(41 37 32 / 94%) 100%); }
.hero__col { position: absolute; inset: 0; z-index: 4; padding: 0; }
.hero__content { position: absolute; z-index: 6; left: var(--gut); right: var(--gut); bottom: 92px; text-align: center; }
.hero__title { font: 700 clamp(32px, 9vw, 36px)/1.08 var(--serif); letter-spacing: -.012em; color: var(--heading);
  text-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 34px rgb(0 0 0 / 40%); }
.hero__sub { max-width: 32ch; margin: 12px auto 0; font-size: var(--fs); line-height: 1.5; font-weight: 500; color: var(--text);
  text-shadow: 0 1px 12px rgb(0 0 0 / 50%); }
.hero__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* lineette per cambiare render ed etichetta «Render 3D» */
.hero__ctrl { position: absolute; z-index: 7; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; }
.hero__dots { display: flex; gap: 2px; }
.hero__dot { display: grid; place-items: center; width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hero__dot::before { content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: rgb(243 238 229 / 50%);
  transition: width .5s var(--o), background-color .5s var(--o); }
.hero__dot[aria-current="true"]::before { width: 26px; background: var(--ivory); }
html:not(.js) .hero__dots { display: none; }
.hero__nota { left: auto; right: 12px; top: 76px; }
.hero__down { position: absolute; z-index: 8; left: 50%; bottom: -22px; width: 44px; height: 44px; margin-left: -22px;
  display: grid; place-items: center; border-radius: 50%; background: var(--noce); color: var(--ivory); }
.hero__down svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--linen); overflow: visible; }

.d-chair-left { display: none; }
.d-plants { left: -16px; bottom: -24px; width: 64px; z-index: 5; }
.d-chair { right: -36px; bottom: -28px; width: 124px; z-index: 7; }

/* chi siamo */
.studio { position: relative; padding-top: 76px; padding-bottom: 48px; }
.studio__text { position: relative; z-index: 2; }
.studio__title { margin-top: 12px; font: 700 32px/1.06 var(--serif); letter-spacing: -.01em; }
.studio__body { margin-top: 16px; font-size: var(--fs); line-height: 1.6; color: var(--text); }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 14px; margin-top: 26px; }
.facts li { position: relative; padding-bottom: 14px; }
.facts li:nth-child(-n+2)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
.facts li:nth-child(even)::before { content: ""; position: absolute; left: -16px; top: 2px; bottom: 14px; width: 1px; background: var(--line); transform-origin: top; }
.facts .fact__i { width: 24px; height: 24px; margin-bottom: 10px; color: var(--deco); }
.facts strong { display: block; font: 400 27px/1.1 var(--serif); letter-spacing: -.005em; white-space: nowrap; color: var(--heading); }
.facts span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--text-soft); }
.studio__cta { margin-top: 28px; }
.studio__drawing { position: absolute; z-index: -1; right: 0; bottom: -14px; width: 140px; height: auto; color: var(--deco); }

/* collage dei lavori veri */
.collage { position: relative; z-index: 2; margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, 104px) auto; gap: 8px; }
.tile { position: relative; overflow: hidden; border-radius: 8px; background: var(--surface); margin: 0; box-shadow: var(--shadow); }
.tile .ph { top: -3%; height: 106%; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgb(197 184 165 / 14%); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--bg); opacity: 0; pointer-events: none; }
.tile figcaption { position: absolute; z-index: 4; left: 8px; bottom: 8px; padding: 5px 10px; border-radius: 999px;
  background: var(--bg-solid); font-size: 13.5px; line-height: 1.2; font-weight: 600; color: var(--text); }
.t-zona figcaption { left: auto; right: 8px; }
.t-zona { grid-column: 1; grid-row: 1 / span 3; }
.t-zona img { object-position: 50% 58%; }
.t-mat { grid-column: 2; grid-row: 1; }
.t-mat img { object-position: 50% 45%; }
.t-dett { grid-column: 2; grid-row: 2 / span 2; }
.t-pol { grid-column: 1; grid-row: 4 / span 2; }
.t-pol img { object-position: 40% 50%; }
.t-nic { grid-column: 2; grid-row: 4 / span 3; }
.t-nic img { object-position: 45% 50%; }
.t-luc { grid-column: 1; grid-row: 6; }
.t-luc img { object-position: 60% 42%; }
/* sigillo circolare del kit: un oggetto del marchio, scuro in tutti e due i temi */
.studio__seal { position: absolute; z-index: 4; left: -10px; top: 334px; width: 84px; height: 84px; overflow: visible; }
.studio__seal svg, .seal__txt { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.collage__note { grid-column: 1 / -1; justify-self: end; display: flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-soft); }
.collage__note .i { width: 16px; height: 16px; }

/* servizi: velo lino, filetti bordo a bordo */
.servizi { position: relative; z-index: 2; padding: 0 0 26px; text-align: center; background: var(--velo); }
.servizi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.servizi__head { display: flex; align-items: center; gap: 14px; margin-top: -.6em; font-size: 13px; line-height: 1.2; }
.servizi__head::before, .servizi__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.servizi__head::before { transform-origin: right; }
.servizi__head::after { transform-origin: left; }
.servizi__head .eyebrow { display: block; font-size: inherit; }
.servizi__head .eyebrow::before { content: none; }
.servizi__list { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; row-gap: 4px; margin-top: 14px; padding: 0 var(--gut);
  font: 400 21px/1.4 var(--serif); color: var(--heading); }
.servizi__nota { margin-top: 10px; padding: 0 var(--gut); font-size: 16px; line-height: 1.45; color: var(--text-soft); }

/* metodo */
.metodo { position: relative; padding-top: 48px; padding-bottom: 52px; }
.metodo__media { position: relative; }
.metodo__frame { position: relative; aspect-ratio: 4 / 3; padding: 6px; background: var(--bg-alt); border-radius: 10px; box-shadow: var(--shadow); }
.metodo__frame::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: inherit; pointer-events: none; }
.metodo__pic { position: relative; height: 100%; overflow: hidden; border-radius: 6px; }
.metodo__pic::after { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--bg); opacity: 0; pointer-events: none; }
.metodo__pic .ph { top: -3%; height: 106%; }
.metodo__nota { left: 10px; top: 10px; }
.metodo__text { position: relative; z-index: 2; margin-top: 60px; }
.metodo__title { margin-top: 12px; font: 700 32px/1.06 var(--serif); letter-spacing: -.01em; }
.steps-wrap { position: relative; margin-top: 26px; }
.steps { display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.passo { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--deco); overflow: visible; transition: color .5s var(--o); }
.passo circle { stroke-width: 2.2; fill: transparent; transition: fill .3s var(--o); }
.passo text { font-family: var(--serif); font-weight: 700; font-size: 23px; fill: var(--heading); }
.passo.is-lit { color: var(--accent-text); }
.steps h3 { font: 700 19px/1.25 var(--serif); color: var(--heading); }
.steps p { margin-top: 3px; font-size: var(--fs); line-height: 1.45; color: var(--text-soft); }
.steps__filo { position: absolute; z-index: -1; left: 22px; top: 22px; width: 1px; height: calc(100% - 44px); background: var(--line); transform-origin: top; }
.steps__filo i { display: block; height: 100%; background: var(--deco); transform-origin: top; transform: scaleY(1); }
.metodo__azioni { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; row-gap: 6px; margin-top: 28px; }
.metodo__azioni .piu { margin-top: 0; }
.d-rovere { left: calc(-48px - var(--gut)); bottom: -36px; width: 150px; }
.d-petrol { right: calc(-40px - var(--gut)); top: -80px; width: 132px; z-index: 4; }

/* panorama dei lavori: un render bordo a bordo, testo su velo in basso */
.panorama { position: relative; height: 460px; background: var(--noce); }
.panorama__win { position: absolute; inset: 0; overflow: hidden; }
.panorama__win .ph { top: -5%; height: 110%; }
.panorama__win::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 24%, rgb(41 37 32 / 62%) 50%, rgb(41 37 32 / 92%) 100%); }   /* render chiari: velo deciso dietro al testo */
.panorama__col { position: absolute; inset: 0; padding: 0; }
.panorama__text { position: absolute; z-index: 3; left: var(--gut); right: 96px; bottom: 28px; }
.panorama__cap { margin-top: 10px; font: 700 28px/1.12 var(--serif); letter-spacing: -.005em; color: var(--heading); text-shadow: 0 1px 14px rgb(0 0 0 / 40%); }
.panorama__line { margin-top: 8px; font-size: var(--fs); line-height: 1.5; color: var(--text); text-shadow: 0 1px 12px rgb(0 0 0 / 50%); }
.panorama__cta { margin-top: 18px; }
.panorama__nota { left: auto; right: 12px; top: 12px; }
.d-palma { right: -44px; bottom: 0; width: 120px; }

/* info: velo lino */
.info { position: relative; background: var(--velo); }
.info__grid { padding-top: 10px; padding-bottom: 10px; }
.info__item { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: start; padding: 28px 0; }
.info__item + .info__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.info__ico { width: 56px; height: 56px; color: var(--deco); overflow: visible; }
.info h3 { font: 700 21px/1.2 var(--serif); color: var(--heading); }
.info p { margin-top: 6px; font-size: var(--fs); line-height: 1.55; color: var(--text-soft); }
@media (max-width: 479px) {             /* telefono: icona più piccola, il testo resta entro 3 righe */
  .info__item { grid-template-columns: 44px 1fr; column-gap: 14px; }
  .info__ico { width: 44px; height: 44px; }
}

/* FAQ */
.faq { position: relative; overflow: clip; }
.faq__mono { position: absolute; z-index: 0; left: 50%; bottom: 36px; width: 168px; margin-left: -84px; opacity: .85; }
.faq__in { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 180px; }
.faq__title { font: 700 30px/1.15 var(--serif); letter-spacing: -.01em; }
.faq__list { margin-top: 16px; }
.faq__item { position: relative; }
.faq__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transition: background-color .3s var(--o); }
.faq__item::before { content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--accent-text); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--o); }
.faq__item.is-open::before { transform: none; }
.faq__q { display: flex; width: 100%; min-height: 58px; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0;
  background: none; border: 0; text-align: left; cursor: pointer; font: 400 20px/1.3 var(--serif); color: var(--heading); }
.faq__qt { transition: transform .3s var(--o); }
.faq__q .i--pm { width: 16px; height: 16px; color: var(--deco); }
.faq__q .i--pm g { stroke-width: 2; }
.pm-v { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--o); }
.faq__item.is-open .pm-v { transform: scaleY(0); }
.faq__a > div { padding: 0 0 20px; font-size: var(--fs); line-height: 1.6; color: var(--text-soft); }
.faq__a p + p { margin-top: .6em; }
.faq__piu { margin-top: 18px; }

/* piede: noce in tutti e due i temi (isola .scuro) */
.ftr { position: relative; background: #302D27; color: var(--text); }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: center; }
.ftr__in { padding-top: 48px; padding-bottom: 28px; }
.ftr__title { font: 700 34px/1.06 var(--serif); letter-spacing: -.01em; }
.ftr__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ftr__contacts { position: relative; margin-top: 30px; padding-top: 22px; display: grid; gap: 2px; font-size: var(--fs); line-height: 1.45; color: var(--text); }
.ftr__contacts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: center; }
.ftr__contacts li { display: flex; align-items: center; gap: 14px; }
.ftr__contacts .i { width: 20px; height: 20px; color: var(--deco); transition: transform .3s var(--o), color .3s; }
.ftr__contacts .i g { stroke-width: 1.6; }
.ftr__contacts a, .ftr__contacts li > span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
.ftr__brand { position: relative; margin-top: 26px; padding-top: 28px; display: flex; flex-direction: column; align-items: center; }
.ftr__brand::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: center; }
.ftr__logo { display: block; width: 200px; }
.ftr__logo img { width: 100%; height: auto; aspect-ratio: 680 / 480; }
.ftr__nav { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; font-size: 15px; font-weight: 600; color: var(--text-soft); }
.ftr__nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 2px; }
.ftr__nav a + a { margin-left: 18px; }
.credit { position: relative; margin: 0; padding: 12px var(--gut) 0; text-align: center; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text-soft);
  background: rgb(41 37 32 / 60%); }
.credit::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgb(197 184 165 / 16%); }
.credit > :nth-child(4) { display: block; height: 0; overflow: hidden; }   /* al telefono: a capo dopo la P.IVA */
.credit a { display: inline-block; padding-block: 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(243 238 229 / 40%); }

/* link di testo: sottolineatura che si disegna da sinistra */
.ftr__nav a, .ftr__contacts a {
  background: linear-gradient(var(--eyebrow), var(--eyebrow)) no-repeat right calc(50% + .72em) / 0 1px;
  transition: background-size .22s var(--o), color .25s var(--o);
}

/* banner cookie: una riga */
.cookie-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; gap: .75rem; align-items: center; justify-content: center;
  padding: 4px 12px; font-size: 13px; line-height: 1.35; color: var(--text-soft);
  background: var(--bg-solid); box-shadow: inset 0 1px 0 var(--line-strong);
  transition: transform .5s var(--o);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; white-space: nowrap; }
.cookie-bar a { display: inline-block; padding: 14px 4px; margin: -14px -4px; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar__x { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text); opacity: .75; }

@media (max-width: 767px) {
  .fondo__luce { display: none; }
  /* servizi: il punto tondo fra le voci; main.js segna .a-capo la voce che comincia una riga */
  .servizi__list li { position: relative; }
  .servizi__list li + li::before { content: ""; position: absolute; left: -10.5px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px;
    border-radius: 50%; background: var(--eyebrow); transform-origin: center; }
  .servizi__list li.a-capo::before, html:not(.js) .servizi__list li::before { display: none; }
}
@media (max-width: 374px) {
  :root { --gut: 16px; }
  .studio__title, .metodo__title { font-size: 30px; }
  .studio__drawing { width: 120px; }
  .facts { column-gap: 26px; }
  .facts li:nth-child(even)::before { left: -13px; }
  .facts strong { font-size: 24px; }
}
@media (max-width: 767px) {
  .hero__ctas .btn { padding: 0 17px; font-size: 15.5px; }
}

/* =====================================================================
   TABLET (768–1023 px): colonna max 820 px, margini 40 px; decori ×1,35
   ===================================================================== */
@media (min-width: 768px) {
  :root { --gut: 40px; --sez: 88px; }
  .col-u { max-width: 820px; margin-inline: auto; }
  .hdr__logo img { width: 160px; }
  .hero { height: 80vh; height: 80svh; min-height: 560px; max-height: 760px; }
  .hero__content { bottom: 120px; }
  .hero__title { font-size: 48px; }
  .hero__sub { font-size: 18px; max-width: 31em; }
  .hero__sub .br-d { display: inline; }
  .hero__slide img { object-position: var(--pos, 50% 50%); }
  .hero__ctrl { bottom: 40px; }
  .hero__nota { top: 84px; right: 24px; }
  .d-plants { left: -22px; bottom: -32px; width: 86px; }
  .d-chair { right: -49px; bottom: -38px; width: 167px; }
  .hero__col, .panorama__col { max-width: none; }

  .studio { padding-top: 92px; }
  .studio__title { font-size: 46px; }
  .facts { max-width: 560px; column-gap: 48px; }
  .facts li:nth-child(even)::before { left: -24px; }
  .facts strong { font-size: 31px; }
  .studio__drawing { width: 190px; right: 0; bottom: -20px; }
  .collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 118px) auto; gap: 10px; }
  .t-zona { grid-column: 1; grid-row: 1 / span 3; }
  .t-luc { grid-column: 1; grid-row: 4; }
  .t-mat { grid-column: 2; grid-row: 1 / span 2; }
  .t-dett { grid-column: 3; grid-row: 1 / span 2; }
  .t-nic { grid-column: 2; grid-row: 3 / span 2; }
  .t-pol { grid-column: 3; grid-row: 3 / span 2; }
  .studio__seal { left: -14px; top: 300px; width: 76px; height: 76px; }
  .servizi__list { flex-wrap: nowrap; font-size: 19px; column-gap: 0; }
  .servizi__list li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 11px; border-radius: 50%; background: var(--eyebrow); vertical-align: middle; transform-origin: center; }

  .metodo__title { font-size: 46px; }
  .metodo__text { margin-top: 80px; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 36px; row-gap: 22px; }
  .steps__filo { display: none; }
  .d-rovere { left: calc(-65px - var(--gut)); bottom: -49px; width: 203px; }
  .d-petrol { right: calc(-30px - var(--gut)); top: -160px; width: 150px; }

  .panorama { height: 540px; }
  .panorama__text { right: 220px; bottom: 40px; }
  .panorama__cap { font-size: 36px; }
  .panorama__nota { top: 20px; right: 24px; }
  .d-palma { right: -59px; width: 162px; }

  .info__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; padding-top: 22px; padding-bottom: 22px; }
  .info__item + .info__item::before { left: -28px; right: auto; top: 26px; bottom: 26px; width: 1px; height: auto; transform-origin: top; }
  .info__item { grid-template-columns: 1fr; row-gap: 14px; }

  .faq__title { font-size: 38px; }
  .faq__mono { width: 180px; margin-left: -90px; bottom: 44px; }
  .faq__in { padding-bottom: 210px; }

  .ftr__in { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .ftr__cta { grid-column: 1 / -1; }
  .ftr__title { font-size: 42px; }
  .ftr__contacts { margin-top: 32px; }
  .ftr__brand { margin-top: 32px; padding-top: 22px; justify-content: center; }
  .ftr__logo { width: 230px; }
  .ftr__logo img { aspect-ratio: 548 / 130; }
  .credit { padding-top: 10px; padding-bottom: 10px; }
  .credit > :nth-child(4) { display: inline; height: auto; overflow: visible; }
  .cookie-bar { font-size: 14px; }
}

/* =====================================================================
   COMPUTER (≥ 1024 px): la home in scala, 1 u = 1 px di home-pagina.png
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --u: calc(min(100cqw, 1440px) / 750); --fs: clamp(17px, calc(var(--u) * 9.4), 18px); --gut: 48px; }
  .br-d { display: inline; }
  .col-u { width: calc(var(--u) * 750); max-width: none; margin-inline: auto; padding-inline: 0; }

  /* testata: la barra del design, sospesa */
  .hdr {
    top: max(10px, calc(var(--u) * 5)); left: calc(50% - var(--u) * 305); right: auto;
    width: calc(var(--u) * 610); height: max(58px, calc(var(--u) * 34)); border-radius: calc(var(--u) * 7.5);
    padding: 0 calc(var(--u) * 7) 0 calc(var(--u) * 17); gap: calc(var(--u) * 6);
  }
  .hdr__logo img { width: calc(var(--u) * 140); }
  .hdr__toggle, .hdr__mono { display: none; }
  .hdr__tema { order: 4; width: max(40px, calc(var(--u) * 22)); height: max(40px, calc(var(--u) * 22)); }
  .hdr__nav {
    position: static; z-index: auto; height: 100%; margin-left: auto; padding: 0; overflow: visible;
    flex-direction: row; align-items: center; justify-content: flex-end; gap: calc(var(--u) * 12);
    background: none; clip-path: none; visibility: visible; transition: none;
  }
  .hdr__link { position: relative; height: 100%; min-height: 0; min-width: 44px; justify-content: center; padding: 0 calc(var(--u) * 3);
    font: 600 max(14.5px, calc(var(--u) * 8.9))/1 var(--sans); color: var(--text); border-bottom: 0; }
  .hdr__logo:focus-visible, .hdr__link:focus-visible { outline-offset: -6px; border-radius: 8px; }
  .hdr__link::after { content: ""; position: absolute; left: calc(var(--u) * 3); right: calc(var(--u) * 3); bottom: calc(var(--u) * 8); height: 1px;
    background: var(--eyebrow); transform: scaleX(0); transform-origin: right; transition: transform .22s var(--o); }
  .hdr__link.is-current, .hdr__link[aria-current="page"] { color: var(--heading); }
  .hdr__link.is-current::after, .hdr__link[aria-current="page"]::after, .hdr__link:focus-visible::after { transform: none; transform-origin: left; }
  .hdr__wa { margin: 0 0 0 calc(var(--u) * 4); align-self: center; min-height: max(42px, calc(var(--u) * 23)); padding: 0 calc(var(--u) * 11);
    font-size: max(14.5px, calc(var(--u) * 8.9)); }

  /* hero panoramica: 88 vh, testo al centro in basso */
  .hero { height: 88vh; height: 88svh; min-height: 560px; max-height: none; }
  .hero__col { left: 0; right: 0; width: calc(var(--u) * 750); margin-inline: auto; }
  .hero__velo { background:
    radial-gradient(56% 52% at 50% 64%, rgb(41 37 32 / 56%), transparent 78%),
    linear-gradient(180deg, rgb(41 37 32 / 34%) 0%, transparent 16%, transparent 32%, rgb(41 37 32 / 42%) 52%, rgb(41 37 32 / 80%) 82%, rgb(41 37 32 / 90%) 100%); }
  .hero__content { left: calc(var(--u) * 150); right: calc(var(--u) * 150); bottom: max(96px, calc(var(--u) * 56)); }
  .hero__title { font-size: clamp(50px, calc(var(--u) * 31), 64px); line-height: 1.08; }
  .hero__sub { max-width: calc(var(--u) * 330); margin-top: calc(var(--u) * 9); font-size: var(--fs); }
  .hero__ctas { gap: calc(var(--u) * 12); margin-top: calc(var(--u) * 15); }
  .hero__ctas .btn, .studio__cta, .metodo__cta, .ftr__btns .btn, .panorama__cta {
    min-height: max(48px, calc(var(--u) * 26)); padding: 0 calc(var(--u) * 14); font-size: max(16px, calc(var(--u) * 9.3)); }
  .hero__ctrl { left: auto; right: calc(var(--u) * 30); bottom: calc(var(--u) * 16); justify-content: flex-end; }
  .hero__nota { top: auto; right: calc(var(--u) * 34); bottom: calc(var(--u) * 42); }
  .hero__down { left: calc(var(--u) * 375); bottom: auto; top: 100%; width: max(44px, calc(var(--u) * 26)); height: max(44px, calc(var(--u) * 26));
    margin: calc(max(44px, calc(var(--u) * 26)) / -2) 0 0 calc(max(44px, calc(var(--u) * 26)) / -2); }

  .d-chair-left { display: block; left: calc(var(--u) * -70); top: auto; bottom: calc(var(--u) * 19); width: calc(var(--u) * 124); z-index: 4; }
  .d-plants { left: calc(var(--u) * -33); top: auto; bottom: calc(var(--u) * 8); width: calc(var(--u) * 92); z-index: 5; }
  .d-chair { left: calc(var(--u) * 46); right: auto; top: auto; bottom: calc(var(--u) * -6); width: calc(var(--u) * 153); z-index: 7; }

  /* chi siamo: testo, 4 fatti, pulsante | collage */
  .studio { display: grid; grid-template-columns: calc(var(--u) * 232) 1fr; column-gap: calc(var(--u) * 20); align-items: start;
    padding: calc(var(--u) * 46) calc(var(--u) * 24) calc(var(--u) * 30) calc(var(--u) * 36); }
  .studio__text { padding-bottom: calc(var(--u) * 12); }
  .studio__title { margin-top: calc(var(--u) * 8); font-size: calc(var(--u) * 27.2); line-height: 1.02; }
  .studio__body { margin-top: calc(var(--u) * 12); font-size: var(--fs); line-height: 1.55; }
  .facts { max-width: none; grid-template-columns: 1fr 1fr; column-gap: calc(var(--u) * 22); row-gap: calc(var(--u) * 9); margin-top: calc(var(--u) * 17); }
  .facts li { padding-bottom: calc(var(--u) * 9); }
  .facts li:nth-child(even)::before { left: calc(var(--u) * -11); top: calc(var(--u) * 2); bottom: calc(var(--u) * 9); }
  .facts .fact__i { width: max(20px, calc(var(--u) * 13)); height: max(20px, calc(var(--u) * 13)); margin-bottom: calc(var(--u) * 5); }
  .facts strong { font-size: calc(var(--u) * 21); line-height: 1.08; }
  .facts span { margin-top: calc(var(--u) * 2); font-size: clamp(16px, calc(var(--u) * 8.6), 17px); }
  .studio__cta { margin-top: calc(var(--u) * 20); }
  .piu { font-size: max(16px, calc(var(--u) * 9.3)); }
  /* pianta a tratto sotto il pulsante, appoggiata al filetto dei servizi */
  .studio__drawing { left: auto; right: 0; bottom: calc(var(--u) * -32); width: calc(var(--u) * 108); }

  .collage { display: block; margin-top: calc(var(--u) * 6); aspect-ratio: 444 / 322; }
  .tile { position: absolute; border-radius: calc(var(--u) * 8); }
  .tile figcaption { left: calc(var(--u) * 7); bottom: calc(var(--u) * 7); padding: calc(var(--u) * 3) calc(var(--u) * 7); font-size: max(13.5px, calc(var(--u) * 7.6)); }
  .t-zona figcaption { left: auto; right: calc(var(--u) * 7); }
  .t-zona { left: 0; top: 0; width: 40.53%; height: 100%; }
  .t-mat { left: 42.11%; top: 0; width: 36.5%; height: 46.35%; }
  .t-dett { left: 80.19%; top: 0; width: 19.81%; height: 46.35%; }
  .t-nic { left: 42.11%; top: 48.52%; width: 17.05%; height: 51.48%; }
  .t-pol { left: 60.74%; top: 48.52%; width: 17.87%; height: 51.48%; }
  .t-luc { display: block; left: 80.19%; top: 48.52%; width: 19.81%; height: 51.48%; }
  .studio__seal { left: calc(var(--u) * -6); top: calc(var(--u) * 232); width: calc(var(--u) * 64); height: calc(var(--u) * 64); }
  .collage__note { position: absolute; left: 0; right: auto; top: calc(100% + var(--u) * 6); margin: 0; font-size: max(14px, calc(var(--u) * 8)); }

  /* servizi */
  .servizi { padding-bottom: calc(var(--u) * 15); }
  .servizi__head { gap: calc(var(--u) * 10); font-size: max(13px, calc(var(--u) * 7)); }
  .servizi__list { flex-wrap: nowrap; margin-top: calc(var(--u) * 8); font-size: calc(var(--u) * 13); line-height: 1.2; }
  .servizi__list li + li::before { width: calc(var(--u) * 3); height: calc(var(--u) * 3); margin: 0 calc(var(--u) * 9); }
  .servizi__nota { margin-top: calc(var(--u) * 5); font-size: clamp(16px, calc(var(--u) * 8.6), 17px); }

  /* metodo: render in passe-partout | 5 passi */
  .metodo { display: grid; grid-template-columns: calc(var(--u) * 430) 1fr; column-gap: calc(var(--u) * 30); align-items: start;
    padding: calc(var(--u) * 34) calc(var(--u) * 24) calc(var(--u) * 34) calc(var(--u) * 25); }
  .metodo__frame { aspect-ratio: 445 / 300; padding: calc(var(--u) * 6); border-radius: calc(var(--u) * 9); }
  .metodo__pic { border-radius: calc(var(--u) * 5); }
  .metodo__nota { left: calc(var(--u) * 12); top: calc(var(--u) * 12); }
  .metodo__text { margin-top: calc(var(--u) * 2); }
  .metodo__title { margin-top: calc(var(--u) * 7); font-size: calc(var(--u) * 25.1); line-height: 1; }
  .steps-wrap { margin-top: calc(var(--u) * 14); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { grid-template-columns: calc(var(--u) * 25.6) 1fr; column-gap: calc(var(--u) * 13); min-height: calc(var(--u) * 39); }
  .passo { width: calc(var(--u) * 25.6); height: calc(var(--u) * 25.6); }
  .steps h3 { font-size: calc(var(--u) * 11.6); line-height: 1.2; }
  .steps p { margin-top: calc(var(--u) * 1); font-size: var(--fs); line-height: 1.35; }
  .steps__filo { display: block; left: calc(var(--u) * 12.8); top: calc(var(--u) * 12.8); height: calc(100% - var(--u) * 39); }
  .metodo__azioni { margin-top: calc(var(--u) * 8); column-gap: calc(var(--u) * 14); }
  .d-rovere { left: calc(var(--u) * -171); top: calc(var(--u) * 60); bottom: auto; width: calc(var(--u) * 300); }
  .d-petrol { left: auto; right: calc(var(--u) * -20); top: calc(var(--u) * -136); width: calc(var(--u) * 108); }

  /* panorama: bordo a bordo, alto 300 u */
  .panorama { height: calc(var(--u) * 300); }
  .panorama__col { left: 0; right: 0; width: calc(var(--u) * 750); margin-inline: auto; }
  .panorama__text { left: calc(var(--u) * 36); right: auto; bottom: calc(var(--u) * 26); max-width: calc(var(--u) * 380); }
  .panorama__win::after { background:
    linear-gradient(90deg, rgb(41 37 32 / 62%) 0%, rgb(41 37 32 / 30%) 38%, transparent 62%),
    linear-gradient(180deg, transparent 0%, transparent 34%, rgb(41 37 32 / 50%) 62%, rgb(41 37 32 / 86%) 100%); }
  .panorama__cap { margin-top: calc(var(--u) * 6); font-size: calc(var(--u) * 20); line-height: 1.08; }
  .panorama__line { margin-top: calc(var(--u) * 5); font-size: var(--fs); }
  .panorama__cta { margin-top: calc(var(--u) * 12); }
  .panorama__nota { right: calc(var(--u) * 36); top: calc(var(--u) * 20); }
  .d-palma { left: auto; right: calc(var(--u) * -40); top: auto; bottom: calc(var(--u) * -30); width: calc(var(--u) * 170); }

  /* info */
  .info__grid { grid-template-columns: 1fr 1fr; column-gap: calc(var(--u) * 32); padding: calc(var(--u) * 26) calc(var(--u) * 36) calc(var(--u) * 28); }
  .info__item { grid-template-columns: calc(var(--u) * 50) 1fr; column-gap: calc(var(--u) * 16); padding: 0; }
  .info__item + .info__item::before { left: calc(var(--u) * -16); top: calc(var(--u) * 2); bottom: calc(var(--u) * 2); }
  .info__ico { width: calc(var(--u) * 50); height: calc(var(--u) * 50); }
  .info h3 { margin-top: calc(var(--u) * 4); font-size: calc(var(--u) * 12.6); }
  .info p { margin-top: calc(var(--u) * 4); font-size: var(--fs); }

  /* FAQ: titolo a sinistra, monogramma a tratto sotto, nella colonna vuota */
  .faq__mono { left: calc(50% - var(--u) * 339); right: auto; top: calc(var(--u) * 84); bottom: auto; width: calc(var(--u) * 168); margin-left: 0; }
  .faq__in { display: grid; grid-template-columns: calc(var(--u) * 200) calc(var(--u) * 470); align-items: start;
    padding: calc(var(--u) * 32) 0 calc(var(--u) * 36) calc(var(--u) * 36); }
  .faq__title { padding-top: calc(var(--u) * 6); font-size: calc(var(--u) * 19); }
  .faq__list { margin-top: 0; }
  .faq__item::before { left: calc(var(--u) * -10); }
  .faq__q { min-height: max(48px, calc(var(--u) * 28)); padding: calc(var(--u) * 5) calc(var(--u) * 2) calc(var(--u) * 5) 0; font-size: clamp(19px, calc(var(--u) * 11.3), 22px); }
  .faq__q .i--pm { width: max(14px, calc(var(--u) * 8)); height: max(14px, calc(var(--u) * 8)); }
  .faq__a > div { padding: 0 calc(var(--u) * 50) calc(var(--u) * 10) 0; }
  .faq__piu { margin-top: calc(var(--u) * 12); }

  /* piede */
  .ftr__in { grid-template-columns: calc(var(--u) * 230) calc(var(--u) * 250) 1fr; column-gap: 0; padding: calc(var(--u) * 30) calc(var(--u) * 24) calc(var(--u) * 26) calc(var(--u) * 36); }
  .ftr__cta { grid-column: auto; }
  .ftr__title { font-size: calc(var(--u) * 21.1); line-height: 1.04; }
  .ftr__btns { gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 16); }
  .ftr__btns .btn { padding: 0 calc(var(--u) * 11); }
  .ftr__contacts { margin-top: 0; padding: 0 0 0 calc(var(--u) * 28); gap: 0; font-size: clamp(16px, calc(var(--u) * 8.8), 17px); }
  .ftr__contacts::before { left: 0; right: auto; top: calc(var(--u) * -2); bottom: calc(var(--u) * -2); width: 1px; height: auto; }
  .ftr__contacts li { gap: calc(var(--u) * 9); }
  .ftr__contacts .i { width: max(18px, calc(var(--u) * 11)); height: max(18px, calc(var(--u) * 11)); }
  .ftr__contacts a, .ftr__contacts li > span { padding: calc(var(--u) * 2) 0; }
  .ftr__brand { margin-top: 0; padding-top: calc(var(--u) * 2); justify-content: flex-start; align-items: center; }
  .ftr__brand::before { left: 0; right: auto; top: calc(var(--u) * -2); bottom: calc(var(--u) * -2); width: 1px; height: auto; }
  .ftr__logo { width: calc(var(--u) * 172); margin-left: calc(var(--u) * 6); }
  .ftr__nav { margin-top: calc(var(--u) * 12); font-size: max(14px, calc(var(--u) * 8)); }
  .ftr__nav a + a { margin-left: calc(var(--u) * 10); }
  .credit { padding: calc(var(--u) * 4) 16px; font-size: max(13px, calc(var(--u) * 6.8)); }
}

/* tra 1024 e 1279 px: decori un po' più piccoli */
@media (min-width: 1024px) and (max-width: 1279px) {
  .br-d { display: none; }
  .hero__sub .br-d { display: inline; }
  .d-plants { left: calc(var(--u) * -40); width: calc(var(--u) * 84); }
  .d-chair { left: calc(var(--u) * 12); width: calc(var(--u) * 128); }
  .d-petrol { width: calc(var(--u) * 100); top: calc(var(--u) * -126); }
  .d-palma { width: calc(var(--u) * 150); }
  .studio__drawing { width: calc(var(--u) * 92); }
}

/* =====================================================================
   PAGINE SEMPLICI (privacy, 404): stessi fondo, testata e piede
   ===================================================================== */
.doc-main { width: 100%; max-width: 700px; margin: 0 auto; padding: 120px var(--gut) 72px; }
.doc-main h1 { font: 700 38px/1.08 var(--serif); letter-spacing: -.01em; }
.doc-main h2 { margin-top: 36px; font: 700 23px/1.2 var(--serif); }
.doc-main p, .doc-main li { margin-top: 12px; font-size: var(--fs); line-height: 1.6; color: var(--text-soft); }
.doc-main ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.doc-main li { margin-top: 6px; }
.doc-main a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--eyebrow); }
.doc-main .eyebrow { margin-bottom: 16px; }
.doc-main .lead { margin-top: 16px; font-size: 19px; color: var(--text); }
.doc-main .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.doc-main a[href^="tel:"], .doc-main a[href^="mailto:"] { white-space: nowrap; }
.doc .page { min-height: 100vh; display: flex; flex-direction: column; }
.doc main { flex: 1; position: relative; }
.doc-404 { position: relative; display: grid; place-items: center; min-height: 70vh; text-align: center; }
.doc-404 .doc-main { padding-top: 140px; }
.doc-404 .btns { justify-content: center; }
.doc-404 .eyebrow { justify-content: center; }
.doc-logo { width: 220px; margin: 0 auto 28px; }
.doc-main a[href^="tel:"], .doc-main a[href^="mailto:"], .doc-main p a[href^="http"] { display: inline-block; padding-block: 13px; margin-block: -13px; }
@media (min-width: 1024px) {
  .doc-main { padding-top: 160px; }
  .doc-main h1 { font-size: 48px; }
}

/* =====================================================================
   MOVIMENTO — calmo: entrate brevi una volta sola, icone che si disegnano,
   render della hero in dissolvenza lenta. Solo sotto html.mo.
   ===================================================================== */
@keyframes ad-giu { from { opacity: 0; transform: translate3d(0, -16px, 0); } }
@keyframes ad-su { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes ad-riga { from { transform: translate3d(0, 105%, 0); } }
@keyframes ad-tratto { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ad-fasce { from { transform: translate3d(-1.2%, -.6%, 0); } to { transform: translate3d(1.2%, .6%, 0); } }
@keyframes ad-luce { from { transform: translate3d(-4vw, 0, 0); } to { transform: translate3d(4vw, 0, 0); } }
@keyframes ad-sera-x { from { transform: translate3d(-6vw, 0, 0); } to { transform: translate3d(6vw, 0, 0); } }
@keyframes ad-foglie { from { transform: skewX(calc(var(--fa) * -1)); } to { transform: skewX(var(--fa)); } }
@keyframes ad-giro { to { transform: rotate(360deg); } }
@keyframes ad-risposta { from { opacity: 0; transform: translate3d(0, 6px, 0); } }
@keyframes ad-finestra { from { clip-path: inset(6% 5% round 16px); } to { clip-path: inset(0 0 0 0 round 0px); } }
@keyframes ad-cornice { from { clip-path: inset(0 100% 100% 0 round 10px); } to { clip-path: inset(0 0 0 0 round 10px); } }
@keyframes ad-scopri { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* render della hero: un leggerissimo avvicinamento con un filo di spostamento, alternato */
@keyframes ad-kb-a { from { transform: scale(1.07) translate3d(-1%, 0, 0); } to { transform: scale(1.01) translate3d(.6%, 0, 0); } }
@keyframes ad-kb-b { from { transform: scale(1.07) translate3d(1%, 0, 0); } to { transform: scale(1.01) translate3d(-.6%, 0, 0); } }

/* fondo vivo: lentissimo */
html.mo .fondo > div { will-change: transform; }
html.mo .fondo__fasce-in { animation: ad-fasce 60s var(--io) infinite alternate; }
html.mo .fondo__luce-in { animation: ad-luce 110s var(--io) infinite alternate; }
html.mo .fondo__sera-in { animation: ad-sera-x 120s var(--io) -60s infinite alternate; }

/* testata al caricamento */
html.mo .hdr { animation: ad-giu .7s var(--o) .1s backwards; }

/* hero: dissolvenza dei render (1,6 s) e movimento lento della foto accesa */
html.mo .hero__slide { transition: opacity 1.6s var(--io); }
html.mo .hero__slide.is-prev { transition: none; }
html.mo .hero__slide img { will-change: transform; }
html.mo .hero__slide.is-on img, html.mo .hero__slide.is-prev img { animation: ad-kb-a 9s linear both; }
html.mo .hero__slide:nth-child(even).is-on img, html.mo .hero__slide:nth-child(even).is-prev img { animation-name: ad-kb-b; }
html.mo .hero.is-ferma .hero__slide img { animation-play-state: paused; }
html.mo .hero__title .riga { clip-path: inset(-60% -30% -.16em -30%); }
html.mo .hero__title .riga > span { animation: ad-riga .8s var(--o) backwards; animation-delay: calc(250ms + var(--n) * 90ms); }
html.mo .hero__sub { animation: ad-su .6s var(--o) .55s backwards; }
html.mo .hero__ctas .btn { animation: ad-su .6s var(--o) backwards; animation-delay: calc(650ms + var(--n) * 80ms); }
html.mo .hero__ctrl, html.mo .hero__nota { animation: ad-su .6s var(--o) .9s backwards; }

/* SU */
html.mo [data-reveal="su"] { transition: opacity .6s var(--o) var(--d, 0ms), transform .6s var(--o) var(--d, 0ms); }
html.mo [data-reveal="su"]:not(.in) { opacity: 0; transform: translate3d(0, 10px, 0); }
html.mo .btn[data-reveal="su"] { transition: opacity .6s var(--o) var(--d, 0ms), transform .6s var(--o) var(--d, 0ms), background-color .3s var(--o), border-color .3s var(--o), box-shadow .3s var(--o); }
html.mo .btn[data-reveal="su"].fatto { transition: background-color .3s var(--o), border-color .3s var(--o), box-shadow .3s var(--o), transform .2s var(--o); }
html.mo .credit[data-reveal="su"]:not(.in) { transform: none; }

/* occhiello: filetto da sinistra, poi su */
html.mo [data-reveal="occhiello"]::before { transition: transform .5s var(--io); }
html.mo [data-reveal="occhiello"]:not(.in)::before { transform: scaleX(0); }
html.mo [data-reveal="occhiello"] { transition: opacity .6s var(--o) .1s, transform .6s var(--o) .1s; }
html.mo [data-reveal="occhiello"]:not(.in) { opacity: 0; transform: translate3d(0, 10px, 0); }

/* RIGHE */
html.mo [data-reveal="righe"] .riga { clip-path: inset(-60% -30% -.16em -30%); }
html.mo [data-reveal="righe"] .riga > span { transition: transform .8s var(--o); transition-delay: calc(var(--d, 0ms) + var(--n, 0) * 90ms); }
html.mo [data-reveal="righe"]:not(.in) .riga > span { transform: translate3d(0, 105%, 0); }

/* FOTO del collage: velo che si scioglie, foto 1,04 → 1 */
html.mo .tile::before { transition: opacity .9s var(--io); transition-delay: calc(var(--k, 0) * 70ms); }
html.mo .tile:not(.in)::before { opacity: .8; }
html.mo .tile img { transition: transform 1.1s var(--o); transition-delay: calc(var(--k, 0) * 70ms); }
html.mo .tile.fatto img { transition: transform 1s var(--o); }
html.mo .tile:not(.in) img { transform: scale(1.04); }
html.mo .tile figcaption { transition: opacity .6s var(--o), transform .6s var(--o); transition-delay: calc(var(--k, 0) * 70ms + 200ms); }
html.mo .tile:not(.in) figcaption { opacity: 0; transform: translate3d(0, 8px, 0); }

/* cornice del metodo: bordo, poi foto */
html.mo .metodo__frame.in::before { animation: ad-cornice .5s var(--io) backwards; }
html.mo .metodo__frame:not(.in)::before { clip-path: inset(0 100% 100% 0 round 10px); }
html.mo .metodo__pic::after { transition: opacity .9s var(--io) .25s; }
html.mo .metodo__frame:not(.in) .metodo__pic::after { opacity: .8; }
html.mo .metodo__pic img { transition: transform 1.1s var(--o) .25s, opacity 1.6s var(--io); }
html.mo .metodo__frame:not(.in) .metodo__pic img { transform: scale(1.04); }

/* TRATTO: le icone del kit si disegnano una volta */
html.mo [data-reveal="tratto"] [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--io) var(--d, 0ms), fill .3s var(--o); }
html.mo [data-reveal="tratto"].in [pathLength] { stroke-dashoffset: 0; }
html.mo .passo { transition: background-color .35s var(--o), color .5s var(--o); }
html.mo .passo text { transition: opacity .5s var(--o); transition-delay: calc(var(--d, 0ms) + 400ms); }
html.mo .passo:not(.in) text { opacity: 0; transition-delay: 0s; }
html.mo .giu__a [pathLength] { transition-delay: calc(var(--d, 0ms) + 500ms); }
html.mo .giu__ring [pathLength] { transition-duration: .9s; }
html.mo .info__g [pathLength] { transition-delay: calc(var(--d, 0ms) + 350ms); }

/* fatti: su in cascata, divisori a filo */
html.mo .facts li { transition: opacity .6s var(--o), transform .6s var(--o); transition-delay: calc(200ms + var(--n) * 70ms); }
html.mo .facts:not(.in) li { opacity: 0; transform: translate3d(0, 10px, 0); }
html.mo .facts li::before, html.mo .facts li::after { transition: transform .8s var(--io); transition-delay: calc(350ms + var(--n) * 70ms); }
html.mo .facts:not(.in) li::before { transform: scaleY(0); }
html.mo .facts:not(.in) li::after { transform: scaleX(0); }

/* pianta a tratto, un tracciato dopo l'altro */
html.mo .studio__drawing [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--io); transition-delay: calc(var(--n) * 80ms + 200ms); }
html.mo .studio__drawing.in [pathLength] { stroke-dashoffset: 0; }

/* sigillo: si posa, anello a tratto, testo che gira piano */
html.mo .studio__seal { transition: transform .9s var(--o) .5s, opacity .5s var(--o) .5s; }
html.mo .studio__seal:not(.in) { transform: rotate(-16deg); opacity: 0; }
html.mo .seal__ring, html.mo .seal__arrow { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--io) .6s; }
html.mo .seal__arrow { transition-delay: 1.1s; }
html.mo .studio__seal.in .seal__ring, html.mo .studio__seal.in .seal__arrow { stroke-dashoffset: 0; }
html.mo .seal__txt { animation: ad-giro 80s linear infinite; }
html.mo .studio__seal:not(.is-near) .seal__txt { animation-play-state: paused; }

/* servizi */
html.mo .servizi__head::before, html.mo .servizi__head::after, html.mo .servizi::after { transition: transform 1s var(--io); }
html.mo .servizi:not(.in) .servizi__head::before, html.mo .servizi:not(.in) .servizi__head::after, html.mo .servizi:not(.in)::after { transform: scaleX(0); }
html.mo .servizi::after { transform-origin: center; }
html.mo .servizi .eyebrow { transition: opacity .6s var(--o) .1s, transform .6s var(--o) .1s; }
html.mo .servizi:not(.in) .eyebrow { opacity: 0; transform: translate3d(0, 10px, 0); }
html.mo .servizi__list li { transition: opacity .6s var(--o), transform .6s var(--o); transition-delay: calc(180ms + var(--n) * 60ms); }
html.mo .servizi:not(.in) .servizi__list li { opacity: 0; transform: translate3d(0, 10px, 0); }
html.mo .servizi__nota { transition: opacity .6s var(--o) .45s, transform .6s var(--o) .45s; }
html.mo .servizi:not(.in) .servizi__nota { opacity: 0; transform: translate3d(0, 10px, 0); }

/* passi: filo che scende col cerchio acceso a metà schermo */
html.mo .steps li > div > * { transition: opacity .6s var(--o), transform .6s var(--o); transition-delay: calc(120ms + var(--n) * 90ms); }
html.mo .steps-wrap:not(.in) .steps li > div > * { opacity: 0; transform: translate3d(0, 10px, 0); }
html.mo .steps__filo { transition: transform 1.2s var(--io) .15s; }
html.mo .steps-wrap:not(.in) .steps__filo { transform: scaleY(0); }
html.mo .steps__filo i { transform: scaleY(0); will-change: transform; }

/* panorama: si apre come una finestra */
html.mo .panorama__win.in { animation: ad-finestra 1.1s var(--o) backwards; }
html.mo .panorama__win:not(.in) { clip-path: inset(6% 5% round 16px); }
html.mo .panorama__img { transition: transform 1.2s var(--o), opacity 1.6s var(--io); }
html.mo .panorama__win:not(.in) .panorama__img { transform: scale(1.04); }

/* info */
html.mo .info__item { transition: opacity .6s var(--o), transform .6s var(--o); transition-delay: calc(var(--n) * 120ms); }
html.mo .info__grid:not(.in) .info__item { opacity: 0; transform: translate3d(0, 10px, 0); }
html.mo .info__item + .info__item::before { transition: transform .8s var(--io) .25s; }
html.mo .info__grid:not(.in) .info__item + .info__item::before { transform: scale(0); }

/* FAQ */
html.mo .faq__item { transition: opacity .6s var(--o), transform .6s var(--o); transition-delay: calc(var(--n) * 50ms); }
html.mo .faq__item:not(.in) { opacity: 0; transform: translate3d(0, 10px, 0); }
html.mo .faq__item::after { transition: transform .8s var(--io), background-color .3s var(--o); transition-delay: calc(var(--n) * 50ms + 120ms), 0s; }
html.mo .faq__item:not(.in)::after { transform: scaleX(0); }
html.mo .faq__item.is-open .faq__a > div { animation: ad-risposta .3s var(--o) backwards; }
html.mo .faq__item.is-closing .faq__a > div { opacity: 0; transition: opacity .15s linear; }
/* logo intero a tratto: simbolo, poi «ART-DESIGN», poi «di TIZIANA SESSA»; il riempimento leggero arriva dopo */
html.mo .logo-tratto [pathLength] { stroke-dasharray: 1 1; stroke-dashoffset: 1; fill-opacity: 0;
  transition: stroke-dashoffset 2.2s var(--io), fill-opacity 1.2s var(--o);
  transition-delay: calc(100ms + var(--n, 0) * 450ms), calc(1900ms + var(--n, 0) * 450ms); }
html.mo .logo-tratto.in [pathLength], html.mo .hdr.is-open .hdr__mono [pathLength] { stroke-dashoffset: 0; fill-opacity: var(--lt-fill); }
html.mo .hdr__mono [pathLength] { transition-delay: calc(250ms + var(--n, 0) * 300ms), calc(1500ms + var(--n, 0) * 300ms); transition-duration: 1.6s, 1s; }
html.mo .hdr:not(.is-open) .hdr__mono [pathLength] { transition: none; }
html.mo .doc-main > * { animation: ad-su .6s var(--o) backwards; }
html.mo .doc-main > :nth-child(2) { animation-delay: .08s; }
html.mo .doc-main > :nth-child(3) { animation-delay: .16s; }
html.mo .doc-main > :nth-child(n+4) { animation-delay: .24s; }

/* piede */
html.mo .ftr__contacts::before, html.mo .ftr__brand::before { transition: transform 1s var(--io); }
html.mo .ftr:not(.in) .ftr__contacts::before, html.mo .ftr:not(.in) .ftr__brand::before { transform: scaleX(0); }
@media (min-width: 1024px) {
  html.mo .ftr:not(.in) .ftr__contacts::before, html.mo .ftr:not(.in) .ftr__brand::before { transform: scaleY(0); }
}
html.mo .ftr__contacts li { transition: opacity .6s var(--o), transform .6s var(--o); transition-delay: calc(var(--n) * 70ms); }
html.mo .ftr__contacts:not(.in) li { opacity: 0; transform: translate3d(-6px, 0, 0); }
html.mo .ftr__logo.in img { animation: ad-scopri .9s var(--io) var(--d, 0ms) backwards; }
html.mo .ftr__logo:not(.in) img { clip-path: inset(0 100% 0 0); }

/* decori: si posano con l'ombra; le foglie respirano appena */
html.mo .decor__in { transition: opacity .9s var(--o) var(--d, 0ms), transform .9s var(--o) var(--d, 0ms); }
html.mo .decor:not(.in) .decor__in { opacity: 0; transform: translate3d(0, 14px, 0); }
html.mo .decor::after { transition: opacity .9s var(--o) var(--d, 0ms), transform .9s var(--o) var(--d, 0ms); }
html.mo .decor:not(.in)::after { opacity: 0; transform: scaleX(.7); }
html.mo .decor--foglie img { animation: ad-foglie var(--fd, 8s) var(--io) infinite alternate; }
html.mo .decor--foglie:not(.is-near) img { animation-play-state: paused; }

/* banner cookie */
html.mo .cookie-bar:not(.is-up) { transform: translate3d(0, 100%, 0); }

/* scheda nascosta: tutto fermo */
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }

/* =====================================================================
   MICRO-INTERAZIONI (solo con un puntatore vero; il fuoco fa lo stesso)
   ===================================================================== */
@media (hover: hover) {
  .piu:hover { text-decoration-color: currentColor; }
  .piu:hover .i { transform: translate(2px, -2px); }
  .hdr__link:hover { color: var(--heading); }
  .hdr__link:hover::after { transform: none; transform-origin: left; }
  .hdr__tema:hover, .hdr__toggle:hover { border-color: var(--heading); }
  .btn:hover::after { transform: translateX(420%) skewX(-12deg); transition: transform .7s var(--io); }
  .btn:hover .i--freccia-diagonale { transform: translate(2px, -2px); }
  .btn--petrol:hover { box-shadow: 0 12px 26px -16px rgb(57 108 104 / 80%), inset 0 0 0 999px rgb(243 238 229 / 7%); }
  .btn--outline:hover { border-color: var(--heading); background: var(--surface); }
  .ftr__nav a:hover, .ftr__contacts a:hover { background-size: 100% 1px; background-position-x: left; color: var(--heading); }
  .tile:hover img { transform: scale(1.03); transition: transform 1s var(--o); }
  .metodo__frame:hover .metodo__pic img { transform: scale(1.03); transition: transform 1s var(--o), opacity 1.6s var(--io); }
  .steps li:hover .passo circle { fill: rgb(57 108 104 / 15%); }
  .faq__q:hover .faq__qt { transform: translateX(4px); }
  .faq__item:hover::after { background: var(--line-strong); }
  .ftr__contacts li:hover .i { transform: translateX(2px); }
  .hero__dot:hover::before { background: var(--ivory); }
  .cookie-bar__x:hover { opacity: 1; }
}
.btn:focus-visible::after { transform: translateX(420%) skewX(-12deg); transition: transform .7s var(--io); }
.btn:focus-visible .i--freccia-diagonale { transform: translate(2px, -2px); }
.btn--outline:focus-visible { border-color: var(--heading); }
.ftr__nav a:focus-visible, .ftr__contacts a:focus-visible { background-size: 100% 1px; background-position-x: left; }
.faq__q:focus-visible .faq__qt { transform: translateX(4px); }
.faq__q:focus-visible { outline-offset: 4px; }
.btn:active { transform: scale(.98); }

/* senza JS: le risposte delle FAQ sono tutte aperte; con JS solo quella scelta */
html.js .faq__item:not(.is-open) .faq__a { display: none; }

/* movimento ridotto: niente movimento (la hero resta sul primo render), solo colore e opacità */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity, fill !important; }
  .btn:hover::after, .btn:focus-visible::after { transform: translateX(-120%) skewX(-12deg); }
  .tile:hover img, .metodo__frame:hover .metodo__pic img, .faq__q:hover .faq__qt, .ftr__contacts li:hover .i, .btn:active { transform: none !important; }
}

/* paragrafi divisi per stare in 3 righe al telefono */
.studio__body p + p, .info__item p + p { margin-top: .5em; }

/* hero: il nome sopra il titolo, centrato, con un filetto per lato */
.hero__eyebrow { justify-content: center; margin: 0 0 14px; }
.hero__eyebrow::after { content: ""; flex: none; width: max(24px, calc(var(--u) * 24)); height: 1px; background: currentColor; opacity: .9; }
.hero__eyebrow::before { background: currentColor; opacity: .9; }

/* telefono (Domenico 03/10, 2° giro: «la parte sotto sembra più premium»): hero «da rivista», nello stesso
   linguaggio delle sezioni sotto. Fondo del tema (chiaro di base), occhiello col filetto e titolo serif a sinistra,
   render orizzontale che arriva al bordo destro con la poltrona del kit posata sull'angolo, didascalia «Render 3D»
   e avanzamento sotto la foto, pulsanti in fondo. Solo CSS: da computer la hero non cambia. */
@media (max-width: 767px) {
  :root:not([data-theme="dark"]) .hero.scuro {
    --bg: #F3EEE5; --bg-solid: #F3EEE5; --surface: rgb(197 184 165 / 22%);
    --text: #292520; --text-soft: #4A433B; --heading: #292520;
    --line: rgb(41 37 32 / 16%); --line-strong: rgb(41 37 32 / 40%);
    --accent-text: #396C68; --eyebrow: #396C68; --deco: #8C7A64; --link: #292520;
    color-scheme: light;
  }
  .hero { display: grid; grid-template-columns: var(--gut) minmax(0, 1fr) var(--gut); align-items: start;
    height: auto; min-height: 0; max-height: none; padding: 104px 0 60px; background: var(--bg); color: var(--text); }
  .hero__col, .hero__content { display: contents; }
  .hero__eyebrow { grid-column: 2; grid-row: 1; justify-content: flex-start; margin: 0 0 18px; }
  .hero__eyebrow::after { content: none; }
  .hero__title { grid-column: 2; grid-row: 2; text-align: left; font-size: clamp(38px, 10.8vw, 46px); line-height: 1.04; }
  .hero__sub { grid-column: 2; grid-row: 3; max-width: 30ch; margin: 16px 0 0; text-align: left; font-size: 17px; color: var(--text-soft); }
  .hero__media { position: relative; inset: auto; grid-column: 2; grid-row: 4; margin-top: 32px; aspect-ratio: 4 / 3;
    overflow: hidden; isolation: isolate; border-radius: 14px; box-shadow: 0 26px 50px -28px rgb(41 37 32 / 55%); }
  .hero__velo { display: none; }
  .hero__slide img { object-position: var(--pos, 50% 50%); }
  .hero__nota { position: static; grid-column: 2; grid-row: 5; justify-self: start; align-self: center; margin-top: 16px; }
  .hero__ctrl { position: static; grid-column: 2; grid-row: 5; justify-self: end; align-self: center; margin: 16px -9px 0 0; }
  .hero__dot { width: 26px; }
  .hero__dot::before { width: 14px; }
  .hero__dot[aria-current="true"]::before { width: 24px; }
  :root:not([data-theme="dark"]) .hero__dot::before { background: rgb(41 37 32 / 22%); }
  :root:not([data-theme="dark"]) .hero__dot[aria-current="true"]::before { background: var(--accent); }
  .hero__ctas { grid-column: 2; grid-row: 6; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .hero__ctas .btn { width: 100%; }
  .hero .d-chair { position: relative; grid-column: 2; grid-row: 4; align-self: end; justify-self: start;
    left: auto; right: auto; top: auto; bottom: auto; width: 104px; margin: 0 0 -30px -10px; z-index: 7; }
  .hero .d-plants, .hero .d-chair-left, .hero__down { display: none; }
  .hero__eyebrow, .hero__title, .hero__sub { text-shadow: none; }
  :root:not([data-theme="dark"]) .hero .btn--outline { background: transparent; }
}
@media (max-width: 380px) {
  .hero__ctas { gap: 8px; }
  .hero__ctas .btn { padding: 0 13px; font-size: 15px; }
}

/* «Richiedi informazioni senza impegno» (Domenico 04/10) è lungo: al telefono il pulsante va a capo dentro di sé
   e prende tutta la riga, così non esce mai dallo schermo */
@media (max-width: 480px) {
  a.btn[href^="https://wa.me"] { flex: 1 1 100%; max-width: 100%; white-space: normal; text-align: center; line-height: 1.25;
    min-height: 48px; padding-block: 10px; }
}
