/* 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). */
: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; }
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; }
  .scene--1 { top: calc(env(safe-area-inset-top, 0px) + 92px); transform: none; gap: 16px; }
  .scene--1 .logo-mark { width: 56px; height: 56px; }
  .scene--1 .display { font-size: clamp(30px, 8.6vw, 46px); }
  .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);
  perspective: 1500px; perspective-origin: 50% 40%;
  --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; transform-style: preserve-3d; 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: calc(var(--w) * .54); left: calc(var(--w) * -.27); top: calc(var(--h) / 2 - var(--oh)); transform-origin: 50% 100%; will-change: transform; }
.obj img { width: 100%; height: auto; 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; }
