/* Layout: un "laboratorio" scuro verde-nero per la narrazione e gallerie chiare color osso per i prodotti.
   Palette ricavata dal logo (disco verde, foglie, argento) e dal volantino (beige, oro-bruno). */
/* Caratteri ospitati sul sito: nessuna richiesta a Google, pagine più rapide e niente dati a terzi. */
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(/assets/fonts/bodoni.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(/assets/fonts/bodoni-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/plex-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/plex-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0a110d;        /* fondo laboratorio */
  --ink-2: #121d17;      /* superfici rialzate sul fondo scuro */
  --forest: #2f4b3a;     /* verde del disco del logo */
  --sage: #93ad93;       /* verde chiaro del logo, accento su scuro */
  --leaf: #7bae50;       /* foglie del logo, usato pochissimo */
  --bone: #efeae0;       /* fondo galleria */
  --bone-2: #e4ddcf;     /* superfici sul fondo chiaro */
  --paper: #e9ece5;      /* testo su scuro */
  --mute: #96a299;       /* testo secondario su scuro */
  --mute-l: #5d665f;     /* testo secondario su chiaro */
  --text-l: #18211b;     /* testo su chiaro */
  --bronze: #b38f5d;     /* oro-bruno del volantino, dettagli */
  --line: rgba(233, 236, 229, .14);
  --line-l: rgba(24, 33, 27, .14);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(16px, 4.5vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.22, .7, .12, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }
.light :focus-visible { outline-color: var(--forest); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; transition: top .2s; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

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

/* ── Tipografia ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage); display: inline-flex; gap: .8em; align-items: center;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.light .eyebrow { color: var(--forest); }
.display {
  font-family: var(--f-display); font-weight: 340; font-variation-settings: "wdth" 116;
  text-transform: uppercase; letter-spacing: -.012em; line-height: .98;
  font-size: clamp(34px, 6.2vw, 92px); margin: 0; text-wrap: balance;
}
.display em, .h2 em, .h1 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none;
  letter-spacing: -.01em; font-variation-settings: normal; font-size: 1.08em;
}
.h1 { font-weight: 330; font-variation-settings: "wdth" 116; text-transform: uppercase; font-size: clamp(38px, 7vw, 104px); line-height: .95; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.h2 { font-weight: 360; font-variation-settings: "wdth" 112; text-transform: uppercase; font-size: clamp(28px, 4.2vw, 56px); line-height: 1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.h3 { font-weight: 500; font-variation-settings: "wdth" 104; font-size: 21px; line-height: 1.2; margin: 0; letter-spacing: -.005em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--mute); max-width: 52ch; margin: 0; text-wrap: pretty; }
.light .lead { color: var(--mute-l); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ── Pulsanti ───────────────────────────────────────────── */
.btn {
  --b: var(--paper); --t: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 26px; border: 1px solid var(--b); border-radius: 999px;
  background: var(--b); color: var(--t); text-decoration: none; cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  font-variation-settings: "wdth" 110; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--paper); border-color: var(--forest); }
.btn:active { transform: scale(.98); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }
.light .btn { --b: var(--text-l); --t: var(--bone); }
.light .btn--ghost { color: var(--text-l); border-color: var(--line-l); background: transparent; }
.light .btn--ghost::before { background: var(--text-l); }
.light .btn--ghost:hover { color: var(--bone); }
.link {
  display: inline-flex; gap: 10px; align-items: center; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding-block: 8px; border-bottom: 1px solid currentColor;
}
.link .arr { transition: transform .45s var(--ease); }
.link:hover .arr { transform: translateX(6px); }

/* ── Navigazione ────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; transition: opacity .5s, transform .5s var(--ease); }
.brand span { font-weight: 500; font-size: 17px; letter-spacing: .01em; font-variation-settings: "wdth" 108; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; opacity: .78; padding-block: 8px; position: relative; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { min-height: 40px; padding: 0 18px; font-size: 11px; }
.nav.is-solid { background: rgba(10, 17, 13, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.nav.on-light { color: var(--text-l); }
.nav.on-light.is-solid { background: rgba(239, 234, 224, .8); border-bottom-color: var(--line-l); }
.nav.on-light .nav__cta { --b: var(--text-l); --t: var(--bone); }
.nav.hide-brand .brand img { opacity: 0; transform: scale(.6); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn i:first-child { top: 17px; } .menu-btn i:last-child { top: 26px; }
.menu-open .menu-btn i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 21px; transform: rotate(-45deg); }
.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--paper);
  padding: calc(env(safe-area-inset-top, 0px) + 96px) var(--gut) calc(env(safe-area-inset-bottom, 0px) + 32px);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
}
.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .nav { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.drawer ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.drawer a { text-decoration: none; display: flex; align-items: baseline; gap: 16px; font-size: clamp(34px, 10vw, 54px); font-weight: 330; font-variation-settings: "wdth" 116; text-transform: uppercase; line-height: 1.15; }
.drawer a small { font-family: var(--f-mono); font-size: 11px; color: var(--sage); letter-spacing: .1em; }
.drawer__foot { display: grid; gap: 6px; color: var(--mute); font-size: 14px; }
.drawer__foot a { font-size: 14px; text-transform: none; font-weight: 400; font-variation-settings: normal; }
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .menu-btn { display: block; }
}

/* ── Film (homepage) ────────────────────────────────────── */
.film { position: relative; height: 520vh; background: var(--ink); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene {
  position: absolute; z-index: 2; pointer-events: none;
  left: var(--gut); right: var(--gut);
}
.scene a, .scene button { pointer-events: auto; }
.scene--1 { top: 50%; transform: translateY(-50%); max-width: 640px; display: grid; gap: 26px; justify-items: start; }
.scene--1 .logo-mark { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 20px 60px -10px rgba(0,0,0,.7); }
.scene--1 .sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--mute); margin: 0; }
.scene--2, .scene--3 { opacity: 0; }
.scene--2 { bottom: 14vh; max-width: 720px; isolation: isolate; text-shadow: 0 2px 24px rgba(10,17,13,.55); }
.scene--2::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); top: -18vh; bottom: -14vh; background: linear-gradient(180deg, rgba(10,17,13,0), rgba(10,17,13,.72) 55%); }
@media (min-width: 881px) { .scene--2::before { right: -20vw; background: linear-gradient(90deg, rgba(10,17,13,.7), rgba(10,17,13,0)); } }
.scene--3 { top: 13vh; text-align: center; display: grid; justify-items: center; gap: 14px; }
.scene--3 .display { font-size: clamp(30px, 4.6vw, 70px); }
.hud {
  position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  display: flex; justify-content: center; align-items: flex-end; gap: 16px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
  pointer-events: none;
}
.cue { display: grid; justify-items: center; gap: 10px; }
.cue span { width: 1px; height: 46px; background: linear-gradient(var(--paper), transparent); opacity: .6; animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 881px) {
  .scene--1 { left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }
}
@media (max-width: 880px) {
  .film { height: 430vh; }
  /* telefono: scatola in alto, testo raccolto in basso */
  .scene--1 { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); transform: none; gap: 14px; }
  .scene--1 .logo-mark { display: none; }
  .scene--1::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); top: -70px; bottom: -40px; background: linear-gradient(180deg, rgba(10,17,13,0), rgba(10,17,13,.85) 38%); }
  .film--box .hud { display: none; }
  .scene--1 .display { font-size: clamp(28px, 8vw, 44px); }
  .scene--1 .btn { width: 100%; justify-content: center; }
  .scene--2 { bottom: 16vh; }
}

/* ── Intro: il pacco ────────────────────────────────────── */
.film--box .stage {
  background:
    radial-gradient(ellipse 46% 50% at var(--spot-x, 70%) 58%, rgba(147,173,147,.17), transparent 72%),
    radial-gradient(ellipse 90% 40% at 50% 104%, rgba(179,143,93,.10), transparent 70%),
    var(--ink);
  --w: 300px; --h: 210px; --oh: 200px;
  --iv: #ece6da; --iv-2: #e1d9c9; --iv-3: #d3c9b5; --iv-4: #c8bda7;
  --in: #22362a; --in-2: #16241c;
  --lines: repeating-linear-gradient(0deg, rgba(60,48,26,.05) 0 1px, transparent 1px 4px);
}
@media (max-width: 880px) { .film--box .stage { --spot-x: 50%; } }
.world3d { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 40%; pointer-events: none; }
.cam { position: absolute; left: 50%; top: 56%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.box { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.box .pl { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.wall { width: var(--w); height: var(--h); left: calc(var(--w) / -2); top: calc(var(--h) / -2); background-image: var(--lines); overflow: hidden; }
.w-front { transform: translateZ(calc(var(--w) / 2)); background-color: var(--iv); }
.w-back { transform: translateZ(calc(var(--w) / -2)) rotateY(180deg); background-color: var(--iv-4); }
.w-left { transform: translateX(calc(var(--w) / -2)) rotateY(-90deg); background-color: var(--iv-2); }
.w-right { transform: translateX(calc(var(--w) / 2)) rotateY(90deg); background-color: var(--iv-3); }
.w-front-in { transform: translateZ(calc(var(--w) / 2 - 1px)) rotateY(180deg); }
.w-back-in { transform: translateZ(calc(var(--w) / -2 + 1px)); }
.w-left-in { transform: translateX(calc(var(--w) / -2 + 1px)) rotateY(90deg); }
.w-right-in { transform: translateX(calc(var(--w) / 2 - 1px)) rotateY(-90deg); }
.w-front-in, .w-back-in, .w-left-in, .w-right-in { background: linear-gradient(180deg, var(--in), var(--in-2)); }
.floor { width: var(--w); height: var(--w); left: calc(var(--w) / -2); top: calc(var(--w) / -2); transform: translateY(calc(var(--h) / 2 - 1px)) rotateX(90deg); background: var(--in-2); }
.ground { width: calc(var(--w) * 2.6); height: calc(var(--w) * 2.6); left: calc(var(--w) * -1.3); top: calc(var(--w) * -1.3); transform: translateY(calc(var(--h) / 2 + 1px)) rotateX(90deg); background: radial-gradient(closest-side, rgba(0,0,0,.7), rgba(0,0,0,.25) 45%, transparent); }
.flap { position: absolute; width: var(--w); height: calc(var(--w) / 2); left: calc(var(--w) / -2); top: calc(var(--w) / -2); transform-origin: 50% 100%; transform-style: preserve-3d; }
.flap .pl { inset: 0; }
.flap .out { background-color: #efeadf; background-image: var(--lines); overflow: hidden; }
.flap .in { transform: rotateY(180deg); background: var(--in); }
.flap-f { transform: translateY(calc(var(--h) / -2 - 1px)) translateZ(calc(var(--w) / 2)) rotateX(var(--af, -24deg)); }
.flap-b { transform: rotateY(180deg) translateY(calc(var(--h) / -2 - 1px)) translateZ(calc(var(--w) / 2)) rotateX(var(--af, -24deg)); }
.flap-l { transform: rotateY(-90deg) translateY(calc(var(--h) / -2)) translateZ(calc(var(--w) / 2)) rotateX(var(--as, -30deg)); }
.flap-r { transform: rotateY(90deg) translateY(calc(var(--h) / -2)) translateZ(calc(var(--w) / 2)) rotateX(var(--as, -30deg)); }
.flap-b .out, .flap-r .out { background-color: #e3dccf; }
.rib { position: absolute; left: 50%; top: 0; bottom: 0; width: calc(var(--w) * .12); margin-left: calc(var(--w) * -.06); transform-origin: 50% 100%; transform: scaleY(var(--rib, 0)); background: linear-gradient(90deg, #1d3025, #456b57 38%, #2f4b3a 62%, #182920); box-shadow: 0 0 0 1px rgba(179,143,93,.35); }
.stamp { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font-family: var(--f-mono); font-size: max(8px, calc(var(--w) * .036)); letter-spacing: .5em; padding-left: .5em; color: rgba(47,75,58,.55); }
.seal { width: calc(var(--w) * .36); height: calc(var(--w) * .36); left: calc(var(--w) * -.18); top: calc(var(--w) * -.18); border-radius: 50%; transform: translateY(calc(var(--h) / -2 - 3px)) rotateX(90deg) scale(var(--seal-s, 2.4)); opacity: var(--seal-o, 0); box-shadow: 0 0 0 calc(var(--w) * .012) #b38f5d, 0 10px 30px rgba(0,0,0,.35); }
.seal img { width: 100%; height: 100%; border-radius: 50%; }
.obj { position: absolute; width: var(--ow, calc(var(--w) * .54)); left: calc(var(--ow, calc(var(--w) * .54)) / -2); top: calc(var(--h) / 2 - var(--oh)); transform-origin: 50% 100%; will-change: transform; }
.obj img, .obj canvas { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.fade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; z-index: 3; }

/* versione statica (movimento ridotto) */
.film-static { display: none; }
.film.is-static { height: auto; }
.film.is-static .stage { position: relative; }
.film.is-static .scene--2, .film.is-static .scene--3, .film.is-static .cue, .film.is-static .fade { display: none; }
.film.is-static + .film-static { display: block; }
.film-static { padding-block: 80px; }
.film-static .row { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; }
.film-static img { border-radius: 4px; }

/* ── Tre mondi ──────────────────────────────────────────── */
.worlds { position: relative; padding-block: clamp(90px, 14vh, 160px) clamp(80px, 12vh, 140px); background: var(--ink); }
.worlds__head { display: grid; gap: 22px; margin-bottom: clamp(44px, 7vh, 80px); grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
@media (max-width: 880px) { .worlds__head { grid-template-columns: 1fr; } }
.worlds__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
@media (max-width: 880px) { .worlds__grid { grid-template-columns: 1fr; } }
.world {
  position: relative; display: block; text-decoration: none; color: var(--paper);
  aspect-ratio: 3 / 4.6; max-width: 100%; overflow: hidden; border-radius: 3px; background: var(--ink-2);
  isolation: isolate;
}
@media (max-width: 880px) { .world { aspect-ratio: 4 / 4.4; } }
.world__media { position: absolute; inset: 0; z-index: -2; transition: transform 1.4s var(--ease); }
.world__media img, .world__media canvas { width: 100%; height: 100%; object-fit: cover; }
.world::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,17,13,.15) 0%, rgba(10,17,13,0) 35%, rgba(10,17,13,.86) 100%); }
.world:hover .world__media { transform: scale(1.045); }
.world__top { position: absolute; top: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.world__num { font-family: var(--f-serif); font-style: italic; font-size: 44px; line-height: 1; }
.world__body { position: absolute; left: 22px; right: 22px; bottom: 24px; display: grid; gap: 12px; justify-items: start; }
.world__body h3 { margin: 0; font-weight: 340; font-variation-settings: "wdth" 116; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: 1; }
.world__body p { margin: 0; color: rgba(233,236,229,.82); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.world .link { color: var(--paper); }
.tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; border: 1px solid currentColor; line-height: 1; white-space: nowrap;
}
.reveal-pan .world { clip-path: inset(10% 6% 10% 6%); transition: clip-path 1.3s var(--ease); }
.reveal-pan .world .world__media { transform: scale(1.22); }
.reveal-pan.in .world { clip-path: inset(0 0 0 0); }
.reveal-pan.in .world .world__media { transform: scale(1); }
.reveal-pan.in .world:nth-child(2) { transition-delay: .12s; }
.reveal-pan.in .world:nth-child(3) { transition-delay: .24s; }
.reveal-pan.in .world:hover .world__media { transform: scale(1.045); }

/* ── Sezioni chiare ─────────────────────────────────────── */
.light { background: var(--bone); color: var(--text-l); color-scheme: light; }
.process { padding-block: clamp(90px, 13vh, 150px); }
.process__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (max-width: 880px) { .process__grid { grid-template-columns: 1fr; } }
.motto { font-family: var(--f-serif); font-style: italic; font-size: clamp(40px, 5.6vw, 82px); line-height: 1; margin: 18px 0 22px; letter-spacing: -.02em; color: var(--forest); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 18px; padding-block: 26px; border-top: 1px solid var(--line-l); }
.steps li:last-child { border-bottom: 1px solid var(--line-l); }
.steps .n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--bronze); padding-top: 5px; }
.steps p { margin: 6px 0 0; color: var(--mute-l); max-width: 54ch; }

/* ── Vetrina prodotti ───────────────────────────────────── */
.showcase { padding-block: clamp(90px, 13vh, 150px); }
.showcase__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.rail { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.rail .card:nth-child(2) { margin-top: 70px; }
.rail .card:nth-child(3) { margin-top: 140px; }
@media (max-width: 880px) { .rail { grid-template-columns: 1fr; } .rail .card:nth-child(n) { margin-top: 0; } }

/* card prodotto */
.card { position: relative; display: grid; gap: 16px; min-width: 0; }
.card__media { position: relative; display: block; overflow: hidden; border-radius: 3px; background: var(--bone-2); aspect-ratio: 4 / 4.6; max-width: 100%; }
.card__media img, .card__media canvas { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img, .card:hover .card__media canvas { transform: scale(1.04); }
.card__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: rgba(10,17,13,.78); color: var(--paper); line-height: 1; backdrop-filter: blur(6px); }
.badge--demo { background: var(--bronze); color: #1d160c; }
.card__body { display: grid; gap: 8px; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; font-size: 15px; color: var(--mute); }
.light .card p { color: var(--mute-l); }
.dots { display: flex; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(127,127,127,.4); }
.card__cta { position: relative; z-index: 1; justify-self: start; font-size: 11px; }

/* ── Pagina categoria ───────────────────────────────────── */
.cat-hero { position: relative; padding-top: calc(env(safe-area-inset-top, 0px) + 72px); background: var(--ink); overflow: hidden; }
.cat-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: min(86vh, 860px); padding-block: 40px 70px; }
@media (max-width: 880px) { .cat-hero__grid { grid-template-columns: 1fr; min-height: 0; } }
.cat-hero__text { display: grid; gap: 24px; justify-items: start; }
.cat-hero__num { font-family: var(--f-serif); font-style: italic; color: var(--bronze); font-size: 22px; }
.cat-hero__media { position: relative; aspect-ratio: 4 / 4.4; max-width: 100%; overflow: hidden; border-radius: 3px; background: var(--ink-2); }
.cat-hero__media img, .cat-hero__media canvas { width: 100%; height: 100%; object-fit: cover; }
.cat-hero__media .parallax { position: absolute; inset: -8% 0; }
.crumbs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--paper); }
.light .crumbs { color: var(--mute-l); } .light .crumbs a:hover { color: var(--text-l); }
.catalog { padding-block: clamp(70px, 10vh, 120px); }
.catalog__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: baseline; margin-bottom: 42px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); }
.grid .card { grid-column: span 4; }
.grid .card.is-wide { grid-column: span 6; }
.grid .card.is-wide .card__media { aspect-ratio: 5 / 4.4; }
@media (max-width: 1000px) { .grid .card, .grid .card.is-wide { grid-column: span 6; } }
@media (max-width: 600px) { .grid .card, .grid .card.is-wide { grid-column: span 12; } }
.note { border: 1px dashed var(--line-l); border-radius: 3px; padding: 16px 18px; font-size: 14px; color: var(--mute-l); display: flex; gap: 12px; align-items: flex-start; margin-bottom: 36px; max-width: 760px; }
.note b { color: var(--text-l); font-weight: 600; }

/* ── Scheda prodotto ────────────────────────────────────── */
.pdp { padding-top: calc(env(safe-area-inset-top, 0px) + 104px); padding-bottom: clamp(60px, 9vh, 110px); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: 28px; }
@media (max-width: 880px) { .pdp__grid { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 12px; position: sticky; top: 96px; }
@media (max-width: 880px) { .gallery { position: static; } }
.gallery__main { position: relative; aspect-ratio: 1200 / 1320; max-width: 100%; overflow: hidden; border-radius: 3px; background: var(--bone-2); }
.gallery__main img, .gallery__main canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1s var(--ease); }
.gallery__main img.is-out { opacity: 0; transform: scale(1.03); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 76px; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 3px; overflow: hidden; background: var(--bone-2); cursor: pointer; opacity: .62; transition: opacity .3s, border-color .3s; }
.thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--text-l); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { display: grid; gap: 22px; align-content: start; }
.pdp__info .h1 { font-size: clamp(34px, 4.4vw, 60px); }
.pdp__desc p { margin: 0 0 14px; color: var(--mute-l); max-width: 56ch; }
.opt { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-l); }
.opt__label { display: flex; justify-content: space-between; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px; border: 1px solid var(--line-l); background: transparent; cursor: pointer; font-size: 14px; transition: border-color .3s, background .3s; }
.swatch i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.swatch[aria-pressed="true"] { border-color: var(--text-l); background: var(--bone-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-l); border: 1px solid var(--line-l); border-radius: 3px; overflow: hidden; }
.facts div { background: var(--bone); padding: 14px clamp(10px, 2vw, 16px); min-width: 0; display: grid; gap: 4px; }
.facts dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-l); }
.facts dd { margin: 0; font-size: 15px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.related { padding-block: clamp(60px, 9vh, 110px); border-top: 1px solid var(--line-l); }

/* ── Modulo preventivo ──────────────────────────────────── */
.quote { padding-block: clamp(80px, 12vh, 140px); }
.quote__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
@media (max-width: 880px) { .quote__grid { grid-template-columns: 1fr; } }
.channels { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.light .channels { border-color: var(--line-l); }
.channel { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.light .channel { border-color: var(--line-l); }
.channel dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.light .channel dt { color: var(--mute-l); }
.channel dd { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.channel a { text-decoration: none; border-bottom: 1px solid currentColor; }
.copy { background: none; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; padding: 4px 10px; cursor: pointer; color: inherit; font-family: var(--f-mono); letter-spacing: .06em; }
.light .copy { border-color: var(--line-l); }
.howto { padding-top: 6px; }
.howto .steps { margin-top: 22px; }
.code { font-family: var(--f-mono); font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ask { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-l); }
.ask__msg { background: var(--bone-2); border-radius: 3px; padding: 14px 16px; display: grid; gap: 8px; }
.ask__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--mute-l); }
.ask__msg p { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.ask__hint { margin: 0; font-size: 13px; color: var(--mute-l); }
.btn--wa { --b: #1f6b46; --t: #fff; }
.light .btn--wa { --b: #1f6b46; --t: #fff; }
.btn--wa::before { background: var(--text-l); }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text-l); color: var(--bone); padding: 12px 18px; border-radius: 999px; font-size: 14px; max-width: calc(100vw - 32px); text-align: center;
  transition: opacity .35s var(--ease), transform .35s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── Banda finale + footer ──────────────────────────────── */
.band { padding-block: clamp(90px, 14vh, 170px); text-align: center; position: relative; overflow: hidden; }
.band .wrap { display: grid; justify-items: center; gap: 26px; }
.band .lead { margin-inline: auto; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.footer { background: #070c09; color: var(--mute); padding-block: 70px calc(env(safe-area-inset-bottom, 0px) + 34px); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer__brand img { width: 72px; height: 72px; border-radius: 50%; }
.footer__brand p { margin: 0; max-width: 32ch; }
.footer h2 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); font-weight: 500; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; overflow-wrap: anywhere; } .footer a:hover { color: var(--paper); }
.footer__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ── Comparse ───────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .1s; } .js .rv.d2 { transition-delay: .2s; } .js .rv.d3 { transition-delay: .3s; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span, .no-js .split .w > span { transform: none; }

/* transizione tra pagine (browser che la supportano) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .reveal-pan .world { clip-path: none; }
  .reveal-pan .world .world__media { transform: none; }
}

/* anteprima: una sola pagina alla volta */
[data-route][hidden] { display: none !important; }

@media (max-width: 880px) and (max-height: 700px) {
  .scene--1 .sub { display: none; }
  .scene--1 .display { font-size: clamp(26px, 7.4vw, 36px); }
}

/* ── Anteprima personalizzazione ─────────────────────────── */
.gallery__main { container-type: inline-size; }
.pz-text { position: absolute; z-index: 1; transform: translate(-50%, -50%); font-size: calc(var(--pz, 6) * 1cqw); line-height: 1; white-space: nowrap; pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,255,255,.18), 0 2px 4px rgba(0,0,0,.35); transition: opacity .3s; }
.pz-text.is-empty { opacity: .5; }
.pz-input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(24,33,27,.25); border-radius: 4px; background: #fffdf9; font-size: 17px; color: var(--text-l); }
.pz-input:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: var(--forest); }
.pdp__note { margin: 0; font-size: 14px; color: var(--mute-l); max-width: 56ch; }
.pdp__note a { color: var(--forest); font-weight: 500; }

/* ── Prezzi dei progetti su misura ───────────────────────── */
.pricing { padding-block: clamp(84px, 13vh, 150px); border-top: 1px solid var(--line-l); }
.pricing__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
@media (max-width: 960px) { .pricing__grid { grid-template-columns: 1fr; } }
.pricing__intro { display: grid; gap: 22px; align-content: start; }
.pricing__intro .h2 { margin-top: 4px; }
.pricing__steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-l); }
.pricing__steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line-l); }
.pricing__steps span { font-family: var(--f-mono); font-size: 12px; color: var(--bronze); padding-top: 3px; letter-spacing: .08em; }
.pricing__steps b { font-weight: 500; font-size: 17px; }
.pricing__steps p { margin: 4px 0 0; color: var(--mute-l); font-size: 15px; }
.quote-card { position: relative; background: #fbf8f2; border: 1px solid rgba(24,33,27,.1); border-radius: 14px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -30px rgba(24,33,27,.35), 0 12px 24px -16px rgba(24,33,27,.2); }
.quote-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--forest), #456b57 60%, var(--bronze)); }
.quote-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--mute-l); }
.quote-card__tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); background: rgba(47,75,58,.1); padding: 5px 10px; border-radius: 999px; }
.quote-card__qty { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.quote-card__qty label { font-size: 17px; font-weight: 500; }
.quote-card__qty output { font-variation-settings: "wdth" 112; font-weight: 340; font-size: clamp(38px, 4.6vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--forest); }
.quote-card input[type=range] { width: 100%; height: 28px; margin: -6px 0 -10px; accent-color: var(--forest); cursor: pointer; }
.quote-card__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute-l); }
.quote-card__lines { margin: 0; display: grid; gap: 0; border-top: 1px dashed rgba(24,33,27,.2); }
.quote-card__lines div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding-block: 13px; border-bottom: 1px dashed rgba(24,33,27,.2); }
.quote-card__lines dt { font-size: 15px; color: var(--mute-l); }
.quote-card__lines dd { margin: 0; text-align: right; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.quote-card__lines dd small { display: block; font-size: 12px; font-weight: 400; color: var(--mute-l); }
.quote-card__result { background: var(--forest); color: var(--bone); border-radius: 10px; padding: 18px 20px; display: grid; gap: 8px; }
.quote-card__result .mono { color: rgba(239,234,224,.72); font-size: 11px; }
.quote-card__result strong { font-variation-settings: "wdth" 112; font-weight: 340; font-size: clamp(34px, 4vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.quote-card__result p { margin: 2px 0 0; font-size: 14px; color: rgba(239,234,224,.8); }
.quote-card__bar { height: 6px; border-radius: 999px; background: rgba(239,234,224,.16); overflow: hidden; }
.quote-card__bar i { display: block; height: 100%; width: 10%; border-radius: inherit; background: linear-gradient(90deg, var(--bronze), #e2c48f); transition: width .4s var(--ease); }
.quote-card__cta { justify-content: center; width: 100%; }
.quote-card__fine { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--mute-l); }

/* ── Pulsante WhatsApp fisso (telefono) ──────────────────── */
.wa-float { position: fixed; z-index: 40; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: #1f6b46; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); transform: translateY(140%); transition: transform .45s var(--ease); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
.wa-float.on { transform: none; }
@media (min-width: 881px) { .wa-float { display: none; } }

.pz-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.pz-field { display: grid; gap: 8px; min-width: 0; }
.pz-mini { display: none; position: relative; container-type: inline-size; border-radius: 4px; overflow: hidden; background: var(--bone-2); }
.pz-mini img { width: 100%; aspect-ratio: 1200 / 1320; object-fit: cover; display: block; }
@media (max-width: 880px) {
  .pz-row { grid-template-columns: 112px minmax(0, 1fr); }
  .pz-mini { display: block; }
}

.quote-card input[type=range]:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: 999px; }

/* ── Colori: tavolozza a pallini ─────────────────────────── */
.swatches--dots { gap: 8px; }
.swatches--dots .swatch { width: 40px; height: 40px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; border: 2px solid transparent; background: transparent; }
.swatches--dots .swatch i { width: 30px; height: 30px; }
.swatches--dots .swatch[aria-pressed="true"] { border-color: var(--text-l); background: transparent; }
.swatches--dots .swatch:hover i { transform: scale(1.08); }
.swatches--dots .swatch i { transition: transform .2s var(--ease); }
.dots { align-items: center; }
.dots__more { font-family: var(--f-mono); font-size: 11px; color: var(--mute-l); margin-left: 2px; }

/* ── Pagina Su misura ────────────────────────────────────── */
.brief { padding-top: calc(env(safe-area-inset-top, 0px) + 104px); padding-bottom: clamp(70px, 10vh, 120px); }
.brief__head { display: grid; gap: 18px; margin: 22px 0 clamp(30px, 5vh, 54px); max-width: 760px; }
.brief__head .h1 { font-size: clamp(38px, 6vw, 84px); }
.brief__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .brief__grid { grid-template-columns: 1fr; } }
.brief__form { display: grid; gap: 14px; min-width: 0; }
.bf { margin: 0; padding: clamp(18px, 2.4vw, 26px); border: 1px solid rgba(24,33,27,.1); border-radius: 12px; background: #fbf8f2; display: grid; gap: 16px; min-width: 0; }
.bf legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-size: 18px; font-weight: 500; display: flex; align-items: baseline; gap: 12px; }
.bf legend span { font-family: var(--f-mono); font-size: 12px; color: var(--bronze); letter-spacing: .08em; }
.bf legend small, .bf-f small { font-size: 12px; font-weight: 400; color: var(--mute-l); margin-left: 6px; }
.bf > :not(legend) { clear: both; }
.bf-f { display: grid; gap: 7px; min-width: 0; }
.bf-f > span { font-size: 14px; color: var(--mute-l); }
.bf-f input, .bf-f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(24,33,27,.2); border-radius: 8px; background: #fffdf9; font-size: 16px; color: var(--text-l); }
.bf-f textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.bf-f input:focus, .bf-f textarea:focus { outline: 2px solid var(--forest); outline-offset: 0; border-color: var(--forest); }
.bf-f input:disabled { opacity: .45; }
.bf-f--qty { max-width: 200px; }
.bf-unit { position: relative; }
.bf-unit input { padding-right: 44px; }
.bf-unit i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--mute-l); pointer-events: none; }
.bf-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-chip { position: relative; cursor: pointer; }
.bf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bf-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(24,33,27,.2); border-radius: 999px; background: #fffdf9; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.bf-chip input:checked + span { background: var(--forest); color: var(--bone); border-color: var(--forest); }
.bf-chip input:focus-visible + span { outline: 2px solid var(--forest); outline-offset: 2px; }
.bf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--mute-l); cursor: pointer; }
.bf-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--forest); flex: none; }
.bf-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.bf-color { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px 4px 5px; border: 1px solid rgba(24,33,27,.14); border-radius: 999px; background: #fffdf9; cursor: pointer; font-size: 13px; text-align: left; color: var(--text-l); }
.bf-color i { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.bf-color[aria-pressed="true"] { border-color: var(--forest); background: rgba(47,75,58,.1); box-shadow: inset 0 0 0 1px var(--forest); font-weight: 600; }
.bf-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bf-photos:empty { display: none; }
.bf-photo { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--bone-2); }
.bf-photo img { width: 100%; height: 100%; object-fit: cover; }
.bf-photo button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(24,33,27,.75); color: #fff; cursor: pointer; font-size: 13px; }
.bf-drop { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 1.5px dashed rgba(24,33,27,.28); border-radius: 10px; cursor: pointer; text-align: center; background: #fffdf9; transition: border-color .2s, background .2s; }
.bf-drop b { color: var(--forest); font-weight: 600; }
.bf-drop small { font-size: 13px; color: var(--mute-l); }
.bf-drop.on, .bf-drop:hover { border-color: var(--forest); background: rgba(47,75,58,.05); }
.bf-drop:focus-within { outline: 2px solid var(--forest); }
.bf-err { margin: 0; color: #b0442f; font-size: 15px; min-height: 1.2em; }
.brief__side { position: sticky; top: 96px; min-width: 0; }
@media (max-width: 960px) { .brief__side { position: static; } }
.brief-card { background: #fbf8f2; border: 1px solid rgba(24,33,27,.1); border-radius: 14px; padding: clamp(20px, 2.6vw, 28px); display: grid; gap: 16px; position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -30px rgba(24,33,27,.35), 0 12px 24px -16px rgba(24,33,27,.2); }
.brief-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, var(--forest), #456b57 60%, var(--bronze)); }
.brief-card__head { display: flex; justify-content: space-between; align-items: center; color: var(--mute-l); }
.brief-card__scale { border-radius: 10px; background: linear-gradient(180deg, #f1ece2, #e8e0d1); padding: 6px; }
.brief-card__scale svg { width: 100%; height: auto; display: block; }
.sc-floor { stroke: rgba(24,33,27,.25); stroke-width: 1; }
.sc-front { stroke: rgba(0,0,0,.25); stroke-width: 1; }
.sc-top { stroke: rgba(0,0,0,.2); stroke-width: 1; filter: brightness(1.18); }
.sc-side { stroke: rgba(0,0,0,.2); stroke-width: 1; filter: brightness(.78); }
.sc-ref { fill: none; stroke: var(--mute-l); stroke-width: 1.2; stroke-dasharray: 3 3; }
.sc-ref-t { font-size: 8px; fill: var(--mute-l); font-family: var(--f-mono); }
.sc-dim { font-size: 11px; fill: var(--text-l); font-family: var(--f-mono); }
.sc-cap { font-size: 10px; fill: var(--mute-l); font-family: var(--f-display); }
.sc-hint { font-size: 12px; fill: var(--mute-l); font-family: var(--f-display); }
.brief-card__list { margin: 0; display: grid; border-top: 1px dashed rgba(24,33,27,.2); }
.brief-card__list div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding-block: 9px; border-bottom: 1px dashed rgba(24,33,27,.2); font-size: 14px; }
.brief-card__list dt { color: var(--mute-l); }
.brief-card__list dd { margin: 0; overflow-wrap: anywhere; }
.brief-card__fee { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; background: var(--forest); color: var(--bone); border-radius: 10px; padding: 14px 16px; }
.brief-card__fee span { font-size: 14px; }
.brief-card__fee b { font-weight: 360; font-variation-settings: "wdth" 112; font-size: 28px; line-height: 1; grid-row: span 2; align-self: center; }
.brief-card__fee small { font-size: 12px; color: rgba(239,234,224,.75); }
.brief-card__send { width: 100%; justify-content: center; }
.brief-card__fine { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--mute-l); }
.brief__done { max-width: 720px; margin: 24px auto 0; }
.brief-done { display: grid; gap: 20px; justify-items: start; padding: clamp(24px, 4vw, 44px); background: #fbf8f2; border: 1px solid rgba(24,33,27,.1); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(24,33,27,.35); }
.brief-done__code { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.brief-done__code b { font-family: var(--f-mono); font-size: clamp(26px, 4vw, 36px); letter-spacing: .06em; color: var(--forest); font-weight: 500; }
.brief-done__msg { width: 100%; font-size: 14px; }
.brief-done__msg summary { cursor: pointer; color: var(--forest); font-weight: 500; }
.brief-done__msg pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--f-mono); font-size: 13px; background: var(--bone-2); padding: 14px; border-radius: 8px; margin: 10px 0 0; }
.brief-done .link { background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; color: var(--text-l); }
.quote-card__cta + .quote-card__cta { margin-top: -6px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  .bf-colors { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
  .bf-color { justify-content: center; padding: 3px; min-height: 42px; border-radius: 50%; aspect-ratio: 1; }
  .bf-color span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bf-color i { width: 32px; height: 32px; }
  .bf-color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--forest); }
}

/* ── pagina privacy ── */
.legal { padding-bottom: 120px; }
.legal__wrap { max-width: 760px; display: grid; gap: 22px; }
.legal .lead { margin: 6px 0 0; }
.legal .legal__date { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-l); margin: 0; }
.legal section { border-top: 1px solid var(--line-l, rgba(24,33,27,.14)); padding-top: 22px; }
.legal section h2 { margin-bottom: 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--text-l); }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.legal a { color: var(--forest); text-underline-offset: 3px; }
.footer__base a { color: inherit; }
.bf-check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ── etichetta Novità ── */
.badge--new { background: var(--forest); color: #f3f1ea; }

/* ── recensioni in homepage ── */
.reviews { padding-block: clamp(84px, 12vh, 140px); border-top: 1px solid var(--line-l); }
.reviews__head { margin-bottom: 44px; max-width: 720px; }
.reviews__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.rev-card { margin: 0; background: #f7f4ed; border: 1px solid var(--line-l); border-radius: 18px; overflow: hidden; display: grid; }
.rev-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bone-2); }
.rev-card__body { padding: 24px 24px 22px; display: grid; gap: 14px; }
.rev-stars { color: var(--bronze); letter-spacing: .14em; font-size: 15px; line-height: 1; }
.rev-stars i { font-style: normal; color: rgba(24,33,27,.16); }
.rev-card blockquote { margin: 0; font-family: var(--f-serif); font-size: 19px; line-height: 1.45; color: var(--text-l); }
.rev-card blockquote::before { content: "“"; } .rev-card blockquote::after { content: "”"; }
.rev-card figcaption { font-size: 14px; color: var(--text-l); display: grid; gap: 4px; }
.rev-card figcaption span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-l); }
@media (max-width: 600px) { .rev-card blockquote { font-size: 17px; } .reviews__head { margin-bottom: 30px; } }

/* ── 1. Foto che si "stampano" a strati ── */
.print { isolation: isolate; }
.js .print:not(.printed):not(.printing) img { opacity: 0; }
.print.printing img { animation: pxl-print 1.5s steps(28, jump-end) both; }
.print::before, .print::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; opacity: 0; z-index: 1; }
.print::before { inset: 0; background: repeating-linear-gradient(0deg, rgba(20, 28, 22, .09) 0 1px, transparent 1px 5px); }
.print::after { bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 236, 200, .9) 18%, #fff 50%, rgba(255, 236, 200, .9) 82%, transparent); box-shadow: 0 0 14px 3px rgba(255, 210, 140, .5); }
.print.printing::before { animation: pxl-layers 2.4s var(--ease) forwards; }
.print.printing::after { animation: pxl-nozzle 1.5s linear forwards; }
@keyframes pxl-print { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pxl-nozzle { 0% { bottom: 0; opacity: 0; } 6% { opacity: 1; } 90% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
@keyframes pxl-layers { 0% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; } }
a.card__media { color: inherit; }

/* ── 2. Passaggio morbido tra collezione e scheda ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: pxl-nav; }
  .pdp .gallery__main > img { view-transition-name: pxl-hero; }
  ::view-transition-group(pxl-hero) { animation-duration: .62s; animation-timing-function: cubic-bezier(.22, .7, .12, 1); z-index: 5; }
  ::view-transition-old(pxl-hero), ::view-transition-new(pxl-hero) { height: 100%; width: 100%; object-fit: cover; overflow: hidden; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; }
}

/* ── 3. Gira l'oggetto in 3D ── */
.m3d-btn { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(10, 17, 13, .82); color: var(--paper); font: 500 13px/1 var(--f-display); letter-spacing: .02em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .3s var(--ease), background .3s; }
.m3d-btn svg { width: 20px; height: 20px; }
.m3d-btn:hover { transform: translateY(-2px); background: var(--forest); }
.gallery__main:not(.is-3d) .m3d-btn svg { animation: pxl-spin 4s var(--ease) infinite; }
@keyframes pxl-spin { 0%, 55% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.m3d { position: absolute; inset: 0; z-index: 3; background: radial-gradient(120% 80% at 50% 30%, #f6f2ea, #e2dacb 70%, #d6ccba); }
.m3d::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 13%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 36, 30, .28), transparent); }
.m3d__cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.m3d__cv:active { cursor: grabbing; }
.m3d__msg { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-l); text-align: center; padding: 20px; }
.m3d__hint { position: absolute; left: 14px; bottom: 18px; z-index: 4; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-l); pointer-events: none; transition: opacity .6s; }
.m3d__size { position: absolute; left: 14px; top: 14px; z-index: 4; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-l); background: rgba(247, 244, 237, .8); padding: 6px 9px; border-radius: 999px; }
.gallery__main.is-3d .card__badges, .gallery__main.is-3d [data-pz-out] { display: none; }
@media (max-width: 600px) { .m3d__hint { bottom: 64px; } }

/* ── 4. Piccole conferme sui pulsanti ── */
.tap-ok { animation: pxl-tap .45s var(--ease); }
.tap-ok .arr { font-size: 0; }
.tap-ok .arr::before { content: "✓"; font-size: 15px; }
@keyframes pxl-tap { 0% { transform: scale(1); } 35% { transform: scale(.95); } 100% { transform: scale(1); } }
.copy.is-ok { background: #1f6b46; border-color: #1f6b46; color: #fff; }
.swatch.pop i { animation: pxl-pop .4s var(--ease); }
@keyframes pxl-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .print::before, .print::after { display: none; }
  .js .print:not(.printed):not(.printing) img { opacity: 1; }
  .tap-ok, .swatch.pop i, .gallery__main:not(.is-3d) .m3d-btn svg { animation: none; }
}

/* ── La mia lista ── */
.fav { position: absolute; z-index: 3; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(247, 244, 237, .88); color: var(--text-l); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .3s var(--ease), background .3s; }
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill .25s, stroke .25s; }
.fav:hover { transform: scale(1.06); }
.fav[aria-pressed="true"] svg { fill: #b4433b; stroke: #b4433b; }
.fav.pop svg { animation: pxl-pop .45s var(--ease); }
.fav--wide { position: relative; top: auto; right: auto; z-index: auto; width: auto; height: auto; border-radius: 999px; display: inline-flex; gap: 10px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; }
.fav--wide:hover { transform: none; }
.list-pill { position: fixed; z-index: 40; left: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: #f7f4ed; color: var(--text-l); font: 500 14px/1 var(--f-display); box-shadow: 0 10px 30px rgba(0,0,0,.22); transform: translateY(140%); transition: transform .5s var(--ease); }
.list-pill.on { transform: none; }
.list-pill svg { width: 18px; height: 18px; fill: #b4433b; }
.list-pill b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--forest); color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
.menu-open .list-pill { transform: translateY(140%); }
.list-panel { width: min(520px, calc(100vw - 24px)); max-height: min(80vh, 680px); border: 0; border-radius: 20px; padding: 26px; background: #f7f4ed; color: var(--text-l); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: auto; }
.list-panel::backdrop { background: rgba(10, 17, 13, .55); backdrop-filter: blur(3px); }
.list-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-panel__x { border: 0; background: none; font-size: 18px; cursor: pointer; color: inherit; width: 40px; height: 40px; }
.list-panel__lead { margin: 6px 0 16px; color: var(--mute-l); font-size: 15px; }
.list-panel__items { list-style: none; margin: 0 0 20px; padding: 0; display: grid; }
.list-panel__items li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-l); }
.list-panel__items li a { color: inherit; font-weight: 500; text-decoration: none; }
.list-panel__items li .mono { grid-column: 1; font-size: 11px; color: var(--mute-l); margin-top: 4px; }
.list-panel__rm { grid-column: 2; grid-row: 1 / span 2; align-self: center; border: 1px solid var(--line-l); background: none; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: inherit; }
.list-panel__empty { color: var(--mute-l); }
.list-panel__actions { display: grid; gap: 10px; }
.list-panel__actions .btn { justify-content: center; }
.list-panel .btn--ghost { color: var(--text-l); border-color: var(--line-l); }
.list-panel__clear { justify-self: center; background: none; border: 0; cursor: pointer; color: var(--mute-l); font-size: 13px; margin-top: 4px; }
@media (max-width: 880px) { .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 82px); } }

/* ── Domande frequenti ── */
.faq { padding-block: clamp(80px, 12vh, 130px); border-top: 1px solid var(--line-l); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq__list details { border-top: 1px solid var(--line-l); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-l); }
.faq__list summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 18px; font-weight: 500; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list p { margin: 0 0 20px; color: var(--mute-l); font-size: 16px; line-height: 1.6; max-width: 62ch; }
@media (max-width: 880px) { .faq__grid { grid-template-columns: 1fr; } .faq__list summary { font-size: 16px; } }

/* ── Avviso stagionale ── */
.notice { position: fixed; z-index: 60; left: 0; right: 0; top: 0; padding: calc(env(safe-area-inset-top, 0px) + 9px) 48px 9px 16px; background: var(--forest); color: #f3f1ea; text-align: center; font-size: 13.5px; line-height: 1.35; }
.notice a { color: inherit; text-underline-offset: 3px; }
.notice__x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin-top: calc(env(safe-area-inset-top, 0px) / 2); border: 0; background: none; color: inherit; font-size: 15px; width: 36px; height: 36px; cursor: pointer; }
.has-notice .nav { top: var(--notice-h, 0px); transition: top .3s; }
.has-notice .nav { padding-top: 0; }
