/* ==========================================================
   GELASKO — foglio di stile
   Griglia: 12 colonne, contenitore 1320 px, gutter 24 px.
   Ritmo verticale: multipli di 8 px. Sezioni: 128 px (desktop).
   ========================================================== */

@font-face { font-family: "Gloock"; font-weight: 400; font-display: swap;
  src: url(../fonts/gloock-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Gloock"; font-weight: 400; font-display: swap;
  src: url(../fonts/gloock-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Hanken"; font-weight: 400; font-display: swap; src: url(../fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken"; font-weight: 500; font-display: swap; src: url(../fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken"; font-weight: 600; font-display: swap; src: url(../fonts/hanken-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Hanken"; font-weight: 700; font-display: swap; src: url(../fonts/hanken-grotesk-latin-700-normal.woff2) format("woff2"); }

:root {
  --white: #FFFFFF;
  --panna: #FAF6F1;
  --cacao: #2A1610;
  --cioc: #4B2A1D;
  --pesca: #F2C09B;
  --pesca-soft: #FCEEE3;
  --ink: #2A1610;
  --muted: rgba(42, 22, 16, .64);
  --line: rgba(42, 22, 16, .14);
  --line-d: rgba(255, 246, 238, .18);
  --focus: #B9784F;

  --serif: "Gloock", Georgia, serif;
  --sans: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1320px;
  --gut: 24px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(80px, 10vw, 128px);
  --r: 4px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body.is-loading, body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 200; background: var(--cacao); color: var(--white); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: var(--sec) 0; background: var(--white); }
.sec--panna { background: var(--panna); }
.sec__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); row-gap: 16px; align-items: end; margin-bottom: 64px; }
.sec__head .h2 { grid-column: 1 / 8; }
.sec__head .lead { grid-column: 9 / 13; }
.h2 { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Bottoni: rettangolari, stesse misure ovunque */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r); cursor: pointer;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn--full { width: 100%; }
.btn--pesca { background: var(--pesca); color: var(--cacao); }
.btn--pesca:hover { background: var(--white); }
.btn--dark { background: var(--cacao); color: var(--white); }
.btn--dark:hover { background: var(--cioc); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--cacao); }
.btn--line { border-color: var(--cacao); color: var(--cacao); }
.btn--line:hover { background: var(--cacao); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sq { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: var(--r); transition: background-color .2s, color .2s; }
.sq svg { width: 18px; height: 18px; }
.sq:hover { background: var(--cacao); color: var(--white); border-color: var(--cacao); }
.sq--light { color: var(--white); border-color: rgba(255,255,255,.5); background: rgba(42,22,16,.35); backdrop-filter: blur(6px); }
.sq--light:hover { background: var(--white); color: var(--cacao); border-color: var(--white); }

/* ================= LOADER ================= */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--cacao); display: grid; place-items: center; align-content: center; gap: 28px; }
.loader__mark { position: relative; width: min(60vw, 400px); aspect-ratio: 1486 / 892; }
.loader__mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__empty { opacity: .14; filter: grayscale(1) brightness(1.6); }
.loader__full { clip-path: inset(100% 0 0 0); }
.loader__line { font-family: var(--serif); color: var(--pesca); font-size: 18px; opacity: 0; transition: opacity .6s .3s; }
.loader.is-on .loader__line { opacity: .85; }
.loader.is-gone { display: none; }

/* ================= HEADER ================= */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background-color .3s, box-shadow .3s; }
.top__in { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: 80px; display: flex; align-items: center; gap: 32px; transition: height .3s; }
.top.is-solid { background: var(--cacao); box-shadow: 0 1px 0 var(--line-d); }
.top.is-solid .top__in { height: 64px; }
.top__logo { position: relative; z-index: 2; }
.top__logo img { height: 48px; width: auto; transition: height .3s; }
.top.is-solid .top__logo img { height: 40px; }
.top__nav { display: flex; gap: 32px; margin-left: auto; }
.top__nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.top__nav a:hover, .top__nav a.is-active { border-color: var(--pesca); }
.marca-pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; cursor: pointer; background: transparent; color: var(--white); border: 1px solid var(--pesca); border-radius: var(--r); font-weight: 600; font-size: 14px; position: relative; z-index: 2; }
.marca-pill:hover { background: var(--pesca); color: var(--cacao); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pesca); animation: pulse 1.8s infinite; }
.marca-pill:hover .dot { background: var(--cacao); }
@keyframes pulse { 50% { opacity: .25; } }
.top__burger { display: none; }

/* ================= HERO ================= */
.hero { position: relative; min-height: 100svh; color: var(--white); display: flex; align-items: flex-end; overflow: hidden; background: var(--cacao); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,22,16,.55) 0%, rgba(42,22,16,0) 24%), linear-gradient(0deg, rgba(42,22,16,.9) 0%, rgba(42,22,16,.55) 38%, rgba(42,22,16,0) 66%); }
.hero__grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: end; padding-bottom: 80px; container-type: inline-size; }
/* 4 righe, 2 per frase: ogni riga non va mai a capo e la misura scala con il contenitore */
.hero__title { grid-column: 1 / 9; font-family: var(--serif); font-size: clamp(38px, 7.3cqi, 112px); line-height: .95; letter-spacing: -.02em; }
.hero__l { display: block; white-space: nowrap; overflow: hidden; padding: .12em 0 .22em; margin: -.12em 0 -.16em; }
.hero__l--soft { color: var(--pesca); }
.hero__side { grid-column: 9 / 13; display: grid; gap: 32px; padding-bottom: 12px; }
.hero__side p { font-size: 17px; color: rgba(255, 255, 255, .86); }
.js .hero__l > span, .js .hero__side { opacity: 0; }
.js .hero__l > span { display: inline-block; transform: translateY(105%); }
.is-ready .hero__l > span { opacity: 1; transform: none; transition: transform 1.1s var(--ease-out), opacity .4s; }
.is-ready .hero__l:nth-child(2) > span { transition-delay: .08s; }
.is-ready .hero__l:nth-child(3) > span { transition-delay: .16s; }
.is-ready .hero__l:nth-child(4) > span { transition-delay: .24s; }
.is-ready .hero__side { opacity: 1; transition: opacity 1s .55s; }

/* ================= NUMERI ================= */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__grid > div { padding: 40px 24px 40px 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.facts__grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: clamp(32px, 3.2vw, 44px); line-height: 1; }

/* ================= PRODUZIONE ================= */
.prod { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: stretch; }
.prod__stage { grid-column: 1 / 9; position: relative; aspect-ratio: 16 / 9; background: var(--cacao); overflow: hidden; }
.prod__video { width: 100%; height: 100%; object-fit: cover; }
.prod__hud { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: space-between; align-items: flex-end; padding: 24px; background: linear-gradient(0deg, rgba(42,22,16,.7), rgba(42,22,16,0)); pointer-events: none; }
.prod__hud > * { pointer-events: auto; }
.prod__now { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 32px); color: var(--white); line-height: 1.1; }
#prodToggle .i-play { display: none; }
#prodToggle.is-paused .i-play { display: block; }
#prodToggle.is-paused .i-pause { display: none; }
.prod__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; display: flex; gap: 2px; background: var(--cacao); }
.prod__bar span { position: relative; height: 100%; background: rgba(255,255,255,.22); overflow: hidden; }
.prod__bar span i { position: absolute; inset: 0; background: var(--pesca); transform-origin: left; transform: scaleX(0); }
.prod__steps { grid-column: 9 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(5, 1fr); border-top: 1px solid var(--line); }
.prod__steps li { border-bottom: 1px solid var(--line); }
.pstep { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; align-content: center; width: 100%; height: 100%; padding: 12px 0; text-align: left; background: none; border: 0; cursor: pointer; color: var(--muted); transition: color .3s; }
.pstep__n { font-size: 13px; font-weight: 600; padding-top: 6px; font-variant-numeric: tabular-nums; }
.pstep__t { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: inherit; }
.pstep__d { grid-column: 2; font-size: 14px; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.pstep__p { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--cacao); transform-origin: left; transform: scaleX(0); }
.pstep:hover { color: var(--ink); }
.pstep.is-active { color: var(--ink); }
.pstep.is-active .pstep__d { max-height: 80px; opacity: 1; color: var(--muted); }

/* ================= CANALI: split interattivo ================= */
.canali { position: relative; background: var(--cacao); }
.split { position: relative; height: max(100svh, 820px); overflow: hidden; --edge: max(var(--pad), calc((100vw - var(--max)) / 2)); --cw: min(28vw, 420px); --ext: 140px; }
.side { position: absolute; inset: 0; display: flex; align-items: center; cursor: pointer; }
.side--retail { background: var(--pesca-soft); color: var(--ink); justify-content: flex-end; }
.side--horeca { background: var(--cacao); color: var(--white); justify-content: flex-start; will-change: clip-path; }
/* ogni foto parte dal proprio testo e prosegue oltre l'onda: in nessuna posizione resta fondo vuoto */
.split { --a: calc(var(--edge) + var(--cw) + var(--gut)); }
.side__img { position: absolute; top: 0; height: 100%; object-fit: cover; pointer-events: none; }
.side--horeca .side__img, .side--retail .side__img { width: calc(100% - 2 * var(--a) + var(--ext)); }
.side--horeca .side__img { left: var(--a); }
.side--retail .side__img { left: calc(var(--a) - var(--ext)); }
.side--horeca .side__img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px); mask-image: linear-gradient(90deg, transparent 0, #000 90px); }
.side--retail .side__img { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 90px); mask-image: linear-gradient(270deg, transparent 0, #000 90px); }
.side__content { position: relative; z-index: 1; width: var(--cw); margin: 0 var(--edge); display: grid; gap: 16px; justify-items: start; transition: opacity .5s, transform .6s var(--ease-out); }
.side__kicker { font-weight: 600; font-size: 14px; opacity: .75; }
.side__title { font-family: var(--serif); font-size: clamp(64px, 8.5vw, 136px); line-height: .85; letter-spacing: -.03em; }
.side--horeca .side__title { color: var(--pesca); }
.side__lead { font-size: 17px; opacity: .85; }
.side__count { font-size: 14px; font-weight: 600; opacity: .7; }
.side__lines { list-style: none; padding: 0; margin: 0 0 8px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; border-top: 1px solid var(--line); }
.side--horeca .side__lines { border-color: var(--line-d); }
.side__lines li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.side--horeca .side__lines li { border-color: var(--line-d); }
.side__lines li span:last-child { opacity: .55; font-variant-numeric: tabular-nums; }
.split.lean-horeca .side--retail .side__content, .split.lean-retail .side--horeca .side__content { opacity: .3; transform: scale(.97); }
.split__wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.split__wave path { fill: none; stroke: var(--pesca); stroke-width: 2; opacity: .7; }

/* ================= TESSERE PRODOTTO ================= */
/* Bordi per cella: le celle vuote a fine riga restano bianche */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.tile { display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; text-align: left; padding: 0; border: 0; background: var(--white); cursor: pointer; }
.tile__media { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--panna); }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile__media.is-cutout img { object-fit: contain; padding: 10%; transition: transform .6s var(--ease-out); }
.tile__media.is-photo img { object-fit: cover; transition: transform .6s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__none { position: absolute; inset: 14%; display: grid; place-items: center; border: 1px dashed rgba(42, 22, 16, .22); border-radius: 50%; font-family: var(--serif); font-size: clamp(14px, 1.5vw, 20px); line-height: 1.2; color: var(--muted); text-align: center; padding: 24px; }
.tile__none::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: var(--white); opacity: .7; }
.tile__none > span { position: relative; }
.sheet__media .tile__none { inset: 12% 21.5%; }
.vt-empty { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; max-width: 52ch; }
.tile__badges { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 8px; border-radius: 2px; background: var(--cacao); color: var(--white); }
.badge--soft { background: var(--pesca-soft); color: var(--cacao); }
.tile__badges .badge--soft { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.tile__body { padding: 20px 20px 24px; border-top: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }
.tile__line { font-size: 13px; color: var(--muted); }
.tile__name { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.tile__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ================= TAYLOR MADE ================= */
.tm__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); }
.tm__steps li { display: grid; align-content: start; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.tm__steps span { font-size: 13px; font-weight: 600; color: var(--ink); }
.tm__steps strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--ink); }
/* Configuratore: area 3D a sinistra, scelte a destra, dati sotto */
.studio { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); border: 1px solid var(--line); background: var(--white); overflow-anchor: none; }
.studio__main { grid-column: 1 / 9; display: flex; flex-direction: column; min-width: 0; }
.studio__stage { position: relative; flex: 1; min-height: clamp(420px, 40vw, 600px); overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none;
  background: radial-gradient(70% 62% at 50% 40%, #FFFFFF 0%, #FBF7F2 52%, #F2E6DA 100%); }
.studio__stage.is-drag { cursor: grabbing; }
.studio__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio__stage.is-flat { display: grid; place-items: center; cursor: default; }
.studio__stage.is-flat canvas { position: static; width: auto; height: 80%; max-width: 90%; }
.studio__views { position: absolute; left: 24px; top: 24px; display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.86); backdrop-filter: blur(6px); overflow: hidden; }
.studio__views button { height: 36px; padding: 0 16px; border: 0; background: none; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.studio__views button + button { border-left: 1px solid var(--line); }
.studio__views button[aria-pressed="true"] { background: var(--cacao); color: var(--white); }
.studio__hint { position: absolute; right: 24px; top: 32px; font-size: 13px; color: var(--muted); pointer-events: none; }
.studio__line { display: grid; grid-template-columns: 132px repeat(4, 1fr); border-top: 1px solid var(--line); }
.studio__line > p { align-self: center; padding: 0 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
.line { display: contents; }
.line__item { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 8px 8px 14px; border: 0; border-left: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 13px; text-align: center; transition: background-color .2s; }
.line__item canvas { width: min(100%, 128px); height: auto; aspect-ratio: 1; }
.line__item:hover { background: var(--panna); }
.line__item[aria-pressed="true"] { background: var(--panna); box-shadow: inset 0 -2px 0 var(--cacao); font-weight: 600; }
.studio__panel { grid-column: 9 / 13; margin-left: calc(var(--gut) * -1); padding: 28px var(--gut); border-left: 1px solid var(--line); background: var(--panna); display: flex; flex-direction: column; gap: 28px; }
.cfg { display: grid; gap: 24px; }
.cfg__group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.cfg__h { display: flex; align-items: baseline; gap: 10px; padding: 0; font-size: 14px; font-weight: 600; }
.cfg__h span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cfg__input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font-family: var(--serif); font-size: 20px; }
.cfg__input:focus { outline: none; border-color: var(--cacao); }
.upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.upload__btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--cacao); border-radius: var(--r); color: var(--ink); font-weight: 600; cursor: pointer; background: var(--white); }
.upload__btn:hover { background: var(--cacao); color: var(--white); }
#tmLogo:focus-visible + .upload__name { outline: 2px solid var(--focus); }
.upload__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__clear { border: 0; background: none; padding: 0; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink); }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style { position: relative; cursor: pointer; }
.style input { position: absolute; inset: 0; opacity: 0; margin: 0; pointer-events: none; }
.style > span { display: grid; align-content: start; gap: 4px; height: 100%; padding: 6px 6px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.style i { display: block; aspect-ratio: 16 / 10; border-radius: 2px; margin-bottom: 4px; }
.style--classico i { background: linear-gradient(#F6EFE4 0 52%, #CFAE73 52% 54%, var(--brand) 54% 62%, #E0C39E 62% 100%); }
.style--moderno i { background: radial-gradient(circle at 70% 78%, #E8D2B4 0 34%, transparent 35%), var(--brand); }
.style--premium i { background: radial-gradient(circle at 50% 50%, #E8D2B4 0 17%, #CFAE73 18% 20%, transparent 21%), color-mix(in srgb, var(--brand) 34%, #000); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--brand) 34%, #000), inset 0 0 0 5px #CFAE73; }
.style b { font-size: 13px; font-weight: 600; padding: 0 2px; }
.style small { font-size: 12px; line-height: 1.3; color: var(--muted); padding: 0 2px; }
.style input:checked + span { border-color: var(--cacao); box-shadow: inset 0 0 0 1px var(--cacao); }
.style input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; inset: 0; opacity: 0; margin: 0; pointer-events: none; }
.swatches i { display: block; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line); box-shadow: inset 0 0 0 3px var(--panna); transition: box-shadow .2s; }
.swatches input:checked + i { box-shadow: inset 0 0 0 3px var(--panna), 0 0 0 2px var(--cacao); }
.swatches input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 3px; }
.swatch-custom input { pointer-events: auto !important; cursor: pointer; }
.swatch-custom i { background: conic-gradient(#C0392B, #E67E22, #F1C40F, #27AE60, #2980B9, #8E44AD, #C0392B); }
.swatch-custom.is-on i { box-shadow: inset 0 0 0 3px var(--panna), 0 0 0 2px var(--cacao); }
.studio__panel .btn { margin-top: auto; }
.studio__specs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.studio__specs > div { padding: 16px 20px; display: grid; gap: 2px; }
.studio__specs > div + div { border-left: 1px solid var(--line); }
.studio__specs dt { font-size: 12px; color: var(--muted); }
.studio__specs dd { font-weight: 600; font-size: 15px; line-height: 1.3; }
.tm__note { margin: 16px 0 56px; font-size: 13px; color: var(--muted); }

/* Campi */
.field { display: grid; gap: 8px; }
.field > span, .choice legend { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; height: 48px; border-radius: var(--r); padding: 0 16px; border: 1px solid var(--line); background: var(--white); transition: border-color .2s; }
.field textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232A1610' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cacao); }
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: 8px; }
.seg { display: grid; gap: 8px; }
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg--4 { grid-template-columns: repeat(4, 1fr); }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; pointer-events: none; margin: 0; }
.seg span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); font-size: 14px; font-weight: 500; text-align: center; line-height: 1.15; transition: background-color .2s, color .2s, border-color .2s; }
.seg input:checked + span { background: var(--cacao); color: var(--white); border-color: var(--cacao); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ================= TERRITORIO ================= */
.terra { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: center; }
.terra__img { grid-column: 1 / 7; aspect-ratio: 4 / 5; overflow: hidden; }
.terra__img img { width: 100%; height: 100%; object-fit: cover; }
.terra__text { grid-column: 8 / 13; display: grid; gap: 24px; }
.terra__text p:not(.lead) { color: var(--muted); }
.terra__brands { border-top: 1px solid var(--line); }
.terra__brands > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.terra__brands dt { font-weight: 600; }
.terra__brands dd { color: var(--muted); }

/* ================= CONTATTI: due pannelli identici ================= */
.contatti { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.contatti__info { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 48px; background: var(--cacao); color: var(--white); }
.contatti__info .lead { color: rgba(255,255,255,.72); margin-top: 20px; max-width: 30em; }
.contatti__list { border-top: 1px solid var(--line-d); }
.contatti__list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; }
.contatti__list dt { color: rgba(255,255,255,.6); }
.contatti__list a { text-decoration: none; border-bottom: 1px solid var(--pesca); }
.contatti__list a:hover { color: var(--pesca); }
.contatti__form { display: flex; flex-direction: column; gap: 24px; padding: 48px; background: var(--white); border: 1px solid var(--line); border-left: 0; }
.field--grow { flex: 1; grid-template-rows: auto 1fr; }
.field--grow textarea { height: 100%; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { font-size: 14px; color: var(--muted); flex: 1; min-width: 200px; }
.form__note.is-error { color: #9B2B1E; }

.foot { background: var(--cacao); color: rgba(255,255,255,.7); padding: 64px 0 32px; font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); align-items: start; padding-bottom: 48px; border-bottom: 1px solid var(--line-d); }
.foot__logo { height: 56px; width: auto; }
.foot a { text-decoration: none; color: var(--white); }
.foot a:hover { color: var(--pesca); }
.foot__links { display: grid; gap: 8px; }
.foot__credit { padding-top: 24px; opacity: .6; }

/* ================= CATALOGO ================= */
.cat { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--white); --band: var(--cacao); --band-ink: var(--white); --band-accent: var(--pesca); }
.cat[data-ch="retail"] { --band: var(--pesca-soft); --band-ink: var(--cacao); --band-accent: var(--cacao); }
.cat__bar { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.cat__barin { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.cat__back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; justify-self: start; }
.cat__back svg { width: 18px; height: 18px; }
.cat__logo { height: 40px; width: auto; }
.cat__switch { justify-self: end; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cat__switch a { text-decoration: none; padding: 0 20px; height: 40px; display: grid; place-items: center; font-weight: 600; font-size: 14px; transition: background-color .2s, color .2s; }
.cat__switch a[aria-selected="true"] { background: var(--cacao); color: var(--white); }
.cat__band { background: var(--band); color: var(--band-ink); }
.cat__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); align-items: end; padding-top: 72px; padding-bottom: 56px; }
.cat__title { grid-column: 1 / 8; font-family: var(--serif); font-size: clamp(64px, 10vw, 144px); line-height: .85; letter-spacing: -.03em; color: var(--band-accent); outline: none; }
.cat__lead { grid-column: 9 / 13; font-size: 17px; opacity: .85; }
.cat__count { grid-column: 9 / 13; font-size: 14px; font-weight: 600; margin-top: 12px; opacity: .7; }
.cat__body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gut); padding-top: 48px; padding-bottom: 96px; align-items: start; }
.cat__side { grid-column: 1 / 4; position: sticky; top: 88px; display: grid; gap: 24px; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; }
.search svg { width: 18px; height: 18px; opacity: .6; flex: none; }
.search input { border: 0; background: transparent; width: 100%; height: 100%; outline: none; font-size: 15px; }
.search:focus-within { border-color: var(--cacao); }
.cat__nav { display: grid; border-top: 1px solid var(--line); }
.cat__nav button { display: flex; justify-content: space-between; gap: 12px; text-align: left; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font-size: 15px; color: var(--muted); transition: color .2s, padding .2s; }
.cat__nav button span:last-child { font-variant-numeric: tabular-nums; }
.cat__nav button:hover { color: var(--ink); }
.cat__nav button[aria-current="true"] { color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--cacao); padding-left: 12px; }
.cat__main { grid-column: 4 / 13; display: grid; gap: 64px; }
.group__head { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: end; padding-bottom: 20px; }
.group__head h3 { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.group__head p { grid-column: 1 / -1; font-size: 15px; color: var(--muted); max-width: 60ch; }
.group__head span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat__empty { font-size: 17px; color: var(--muted); padding: 48px 0; border-top: 1px solid var(--line); }

/* ================= SCHEDA ================= */
.sheet { position: fixed; inset: 0; z-index: 80; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(20, 10, 6, .5); opacity: 0; transition: opacity .3s; }
.sheet__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); overflow-y: auto; background: var(--white); transform: translateX(100%); transition: transform .45s var(--ease); outline: none; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; padding: 0 32px; background: var(--white); border-bottom: 1px solid var(--line); }
.sheet__line { font-size: 14px; font-weight: 600; color: var(--muted); }
.sheet__nav { display: flex; gap: 8px; }
.sheet__media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; background: var(--panna); }
.sheet__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet__media.is-cutout img { object-fit: contain; padding: 6% 10%; }
.sheet__media.is-photo img { object-fit: cover; }
.sheet__body { padding: 32px 32px 48px; display: grid; gap: 20px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badges:empty { display: none; }
.sheet__title { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); line-height: 1.05; }
.sheet__desc { font-size: 17px; color: var(--muted); }
.vt { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.vt th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--cacao); white-space: nowrap; }
.vt td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.vt td:last-child, .vt th:last-child { padding-right: 0; }
.sheet__table { overflow-x: auto; }
.sheet__facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.sheet__facts > div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.sheet__facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.sheet__facts > div.wide { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
.sheet__facts dt { font-size: 13px; color: var(--muted); }
.sheet__facts dd { font-weight: 600; font-size: 15px; }
.sheet__body > .btn { justify-self: start; margin-top: 8px; }

/* Transizione tra viste: tendina rettilinea */
.wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--cacao); transform: scaleY(0); transform-origin: bottom; }
.wipe.is-in { transform: scaleY(1); transition: transform .42s var(--ease); }
.wipe.is-out { transform: scaleY(0); transform-origin: top; transition: transform .42s var(--ease); }

/* Video */
.film { width: min(1100px, 94vw); padding: 0; border: 0; background: #000; overflow: visible; }
.film::backdrop { background: rgba(20, 10, 6, .88); }
.film video { width: 100%; }
.film__close { position: absolute; top: -52px; right: 0; color: var(--white); border-color: rgba(255,255,255,.4); }

/* ================= POP-UP MARCA ================= */
.marca { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; }
.marca__scrim { position: absolute; inset: 0; background: rgba(20, 10, 6, .6); opacity: 0; transition: opacity .35s; }
.marca__card { position: relative; width: min(760px, 100%); display: grid; grid-template-columns: 200px 1fr; background: var(--white); transform: translateY(24px); opacity: 0; transition: transform .5s var(--ease-out), opacity .35s; box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .45); }
.marca.is-open .marca__scrim { opacity: 1; }
.marca.is-open .marca__card { transform: none; opacity: 1; }
.marca__date { background: var(--cacao); color: var(--pesca); display: grid; align-content: center; justify-items: center; padding: 32px 24px; }
.marca__d { font-family: var(--serif); font-size: 72px; line-height: .9; }
.marca__d + .marca__d { border-top: 1px solid var(--line-d); padding-top: 8px; margin-top: 8px; }
.marca__m { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--white); }
.marca__text { position: relative; padding: 40px; display: grid; gap: 16px; }
.marca__close { position: absolute; top: 16px; right: 16px; }
.marca__kicker { font-size: 13px; font-weight: 600; color: var(--muted); }
.marca__text h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); line-height: 1; }
.marca__text p { font-size: 16px; color: var(--muted); }
.marca__where { font-weight: 600; color: var(--ink) !important; }
.marca__where:empty { display: none; }
.marca .actions { margin-top: 8px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px) {
  .studio__main { grid-column: 1 / 8; }
  .studio__panel { grid-column: 8 / 13; }
  .studio__specs { grid-template-columns: repeat(3, 1fr); }
  .studio__specs > div:nth-child(4) { border-left: 0; }
  .studio__specs > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1080px) {
  .top__nav { position: fixed; inset: 0; height: 100svh; background: var(--cacao); flex-direction: column; justify-content: center; align-items: center; gap: 24px; margin: 0; transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
  .top__nav a { font-family: var(--serif); font-size: 36px; }
  .top.is-menu .top__nav { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .top__burger { display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer; position: relative; z-index: 2; }
  .top__burger span:not(.sr) { width: 24px; height: 2px; background: currentColor; transition: transform .3s; }
  .top.is-menu .top__burger span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .top.is-menu .top__burger span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
  .marca-pill { margin-left: auto; }
  .hero__title { grid-column: 1 / -1; font-size: clamp(36px, 11.2cqi, 104px); }
  .hero__side { grid-column: 1 / -1; max-width: 560px; margin-top: 32px; }
  .sec__head .h2, .sec__head .lead { grid-column: 1 / -1; }
  .prod__stage { grid-column: 1 / -1; }
  .prod__steps { grid-column: 1 / -1; margin-top: 24px; grid-template-rows: none; }
  .pstep { padding: 16px 0; }
  .split { height: auto; display: grid; }
  .side { position: relative; inset: auto; display: grid; grid-template-rows: auto auto; align-items: start; cursor: default; }
  .side--horeca { order: -1; clip-path: none !important; }
  .side .side__img { position: relative; left: 0 !important; right: auto !important; width: 100% !important; height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: none !important; mask-image: none !important; }
  .side__content { width: auto; margin: 0 var(--pad); padding: 48px 0 64px; opacity: 1 !important; transform: none !important; }
  .split__wave { display: none; }
  .studio { grid-template-columns: 1fr; }
  .studio__main, .studio__panel { grid-column: 1 / -1; }
  .studio__panel { margin-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .terra__img { grid-column: 1 / -1; aspect-ratio: 16 / 10; margin-bottom: 40px; }
  .terra__text { grid-column: 1 / -1; }
  .contatti { grid-template-columns: 1fr; }
  .contatti__form { border-left: 1px solid var(--line); border-top: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .cat__side { grid-column: 1 / -1; position: static; }
  .cat__nav { display: flex; overflow-x: auto; gap: 8px; border: 0; scrollbar-width: none; }
  .cat__nav button { flex: none; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font-size: 14px; }
  .cat__nav button[aria-current="true"] { box-shadow: none; padding-left: 12px; background: var(--cacao); color: var(--white); }
  .cat__main { grid-column: 1 / -1; margin-top: 40px; }
  .cat__title, .cat__lead, .cat__count { grid-column: 1 / -1; }
  .cat__lead { margin-top: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__grid > div { padding: 24px 16px 24px 0; }
  .facts__grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .prod__hud { padding: 16px; }
  .side__lines { grid-template-columns: 1fr; }
  .tiles--3 { grid-template-columns: repeat(2, 1fr); }
  .tile__body { padding: 14px 14px 18px; }
  .tile__name { font-size: 18px; }
  .tile__meta { flex-direction: column; gap: 0; }
  .tm__steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .studio__stage { min-height: 380px; }
  .studio__views { left: 12px; top: 12px; }
  .studio__views button { padding: 0 12px; }
  .studio__hint { display: none; }
  .studio__line { grid-template-columns: repeat(4, 1fr); }
  .studio__line > p { grid-column: 1 / -1; padding: 12px 16px 0; }
  .line__item { border-left: 0; }
  .line__item + .line__item { border-left: 1px solid var(--line); }
  .studio__panel { padding: 24px 20px; }
  .styles { grid-template-columns: 1fr 1fr 1fr; }
  .studio__specs { grid-template-columns: 1fr 1fr; }
  .studio__specs > div { border-left: 0 !important; border-top: 1px solid var(--line); }
  .studio__specs > div:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .studio__specs > div:nth-child(-n+2) { border-top: 0; }
  .contatti__info, .contatti__form { padding: 28px 24px; }
  .form__row { grid-template-columns: 1fr; }
  .seg--4 { grid-template-columns: 1fr 1fr; }
  .contatti__list > div { grid-template-columns: 96px 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .cat__barin { grid-template-columns: auto 1fr; }
  .cat__logo { display: none; }
  .cat__head { padding-top: 48px; padding-bottom: 40px; }
  .group__head h3 { font-size: 26px; }
  .sheet__panel { top: 5vh; border-radius: 8px 8px 0 0; transform: translateY(100%); }
  .sheet__top, .sheet__body { padding-left: 20px; padding-right: 20px; }
  .sheet__facts { grid-template-columns: 1fr; }
  .sheet__facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .sheet__facts > div:empty { display: none; }
  .vt thead { display: none; }
  .vt, .vt tbody, .vt tr, .vt td { display: block; width: 100%; }
  .vt tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .vt td { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 3px 0; border: 0; }
  .vt td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .marca__card { grid-template-columns: 1fr; }
  .marca__date { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 12px; padding: 20px 24px; }
  .marca__d { font-size: 40px; }
  .marca__d + .marca__d { border-top: 0; border-left: 1px solid var(--line-d); padding: 0 0 0 12px; margin: 0; }
  .marca__m { margin: 0; }
  .marca__text { padding: 28px 24px; }
  .hero__shade { background: linear-gradient(180deg, rgba(42,22,16,.6) 0%, rgba(42,22,16,.3) 22%, rgba(42,22,16,.6) 48%, rgba(42,22,16,.94) 78%); }
}

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