@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Pinyon Script"; src: url(../fonts/pinyon.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Jost"; src: url(../fonts/jost.woff2) format("woff2"); font-weight: 300 600; font-display: swap; }

/* Il fondo è lo stesso tortora delle foto prodotto: gli oggetti sembrano appoggiati sulla pagina. */
:root {
  --studio: #beb4ae;
  --studio-deep: #aea39c;
  --paper: #f5f1eb;
  --paper-2: #ebe5dd;
  --ink: #2b3121;
  --ink-2: #3c4232;
  --olive: #4f5c34;
  --olive-deep: #2c3322;
  --olive-text: #3c4725;
  --olive-mist: #c9cfb7;
  --script: #5a3826;
  --gold: #a4844a;
  --gold-soft: #cdb98c;
  --err: #8e2a1c;

  --f-display: "Bodoni Moda", "Didot", Georgia, serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-text: "Jost", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--studio); color: var(--ink); font: 400 17px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
::selection { background: var(--olive); color: var(--paper); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.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: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

.script { font-family: var(--f-script); font-weight: 400; font-style: normal; color: var(--script); letter-spacing: 0; text-transform: none; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h2 { font: 400 clamp(2.1rem, 6vw, 4.4rem)/1.04 var(--f-display); letter-spacing: -.02em; }
h2 em { font-style: italic; }
p { margin: 0; text-wrap: pretty; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--olive); color: var(--paper); font: 500 1rem/1 var(--f-text); letter-spacing: .02em; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(43, 49, 33, .7); transition: background-color .25s, transform .25s var(--ease-out), box-shadow .25s; }
.btn:hover { background: var(--olive-deep); transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(43, 49, 33, .8); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--olive); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--olive); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--olive-deep); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }
.btn[aria-busy="true"] .btn__label::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .6em; vertical-align: -.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(43, 49, 33, .4); }
.link:hover { text-decoration-color: currentColor; }

/* Barra in alto */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top)); transition: background-color .35s, box-shadow .35s; }
.top.is-scrolled { background: rgba(190, 180, 174, .9); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 rgba(43, 49, 33, .12); }
.logo { display: block; width: clamp(112px, 22vw, 150px); aspect-ratio: 900 / 359; background: var(--ink); -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat; }
.top__cta { font-weight: 500; font-size: .95rem; text-decoration: none; padding: 10px 0 10px 12px; white-space: nowrap; border-bottom: 1px solid transparent; }
.top__cta:hover { border-bottom-color: currentColor; }

/* HERO ---------------------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; padding: calc(96px + env(safe-area-inset-top)) var(--gutter) 40px; display: grid; grid-template-columns: 1fr; align-content: start; gap: 28px; isolation: isolate; overflow-x: clip; }
.motto { display: grid; justify-items: start; line-height: .9; margin-top: 4px; }
.motto__caps { font: 400 clamp(1.7rem, 7.4vw, 3.6rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; color: var(--olive); }
.motto__script { font-size: clamp(3.6rem, 18vw, 9.6rem); line-height: .86; margin: -.06em 0 .08em .32em; padding-right: .2em; }
.motto__script:last-child { margin-left: -.06em; }
.hero__lead { max-width: 34ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }

/* Cartellino regalo appeso */
.tag { position: absolute; top: -64px; right: 3%; z-index: 3; display: grid; justify-items: center; text-decoration: none; color: var(--ink); transform-origin: 50% 0; }
.tag__string { width: 22px; height: clamp(60px, 12vh, 120px); overflow: visible; }
.tag__string path { fill: none; stroke: #8b7a62; stroke-width: 1.4; }
.tag__card { position: relative; display: grid; justify-items: center; width: clamp(108px, 28vw, 156px); padding: 26px 12px 16px; margin-top: -4px; background: var(--paper); clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); filter: drop-shadow(0 14px 18px rgba(43, 49, 33, .28)); text-align: center; }
.tag__card::after { content: ""; position: absolute; inset: 22px 7px 7px; border: 1px solid var(--gold-soft); pointer-events: none; }
.tag__hole { position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--studio); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.tag__for { font-size: clamp(1.35rem, 5vw, 1.9rem); line-height: 1; }
.tag__pct { font: 500 clamp(2.4rem, 10vw, 3.5rem)/1 var(--f-display); color: var(--olive); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.tag__pct small { font-size: .5em; vertical-align: .55em; margin-left: 2px; }
.tag__txt { font-size: .7rem; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; max-width: 13ch; }
.tag:hover .tag__card { filter: drop-shadow(0 18px 22px rgba(43, 49, 33, .34)); }

/* Foto prodotto con bordi sfumati nel fondo tortora */
.ph { display: block; }
.ph img, .prod__ph img, .sheet__ph img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
.hero__table { position: relative; height: clamp(380px, 118vw, 560px); margin: 56px calc(var(--gutter) * -1) 0; }
.hero__table .ph { position: absolute; will-change: transform; }
.ph--a { width: 54%; left: 0; top: 0; z-index: 2; }
.ph--b { width: 64%; right: -4%; top: 60%; z-index: 1; }
.ph--c { width: 40%; right: 30%; top: 50%; z-index: 0; display: none; }

/* CATALOGO ------------------------------------------------------------------------------------- */
.catalogue { position: relative; padding: clamp(72px, 12vw, 140px) 0 clamp(48px, 8vw, 96px); }
.catalogue__intro { padding: 0 var(--gutter); max-width: 900px; display: grid; gap: 18px; }
.catalogue__intro p { max-width: 46ch; color: var(--ink-2); font-size: 1.08rem; }
.chapnav { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
.chapnav a { font: 400 1.5rem/1 var(--f-script); color: var(--script); text-decoration: none; padding: 8px 14px 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(90, 56, 38, .3); transition: background-color .25s, color .25s; }
.chapnav a:hover { background: var(--script); color: var(--paper); }

.track { margin-top: clamp(40px, 7vw, 80px); }
.chap { padding: 0 var(--gutter); margin-bottom: clamp(56px, 10vw, 96px); }
.chap__head h3 { display: grid; gap: 2px; }
.chap__head .script { font-size: clamp(3.2rem, 13vw, 6.4rem); line-height: .95; }
.chap__title { font: 400 .82rem/1.2 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--olive-text); padding-left: .3em; }
.chap__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; align-items: start; }
.prod:nth-child(even) { margin-top: 36px; }
.prod--wide { grid-column: span 2; margin-top: 0 !important; }
.prod--wide .prod__ph { margin: 0 calc(var(--gutter) * -.5); }
.prod__btn { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.prod__ph { display: block; overflow: hidden; }
.prod__ph img { width: 100%; transition: transform .9s var(--ease-out); }
.prod__btn:hover .prod__ph img { transform: scale(1.035); }
.prod__cap { display: flex; gap: 10px; align-items: baseline; font: italic 400 1.02rem/1.25 var(--f-display); color: var(--ink); }
.prod__n { font: 500 .7rem/1 var(--f-text); letter-spacing: .08em; color: var(--olive-text); font-style: normal; font-variant-numeric: tabular-nums; }
.track__end { padding: 0 var(--gutter); display: grid; justify-items: start; gap: 18px; }
.track__end .script { font-size: clamp(3rem, 12vw, 5.6rem); line-height: 1; }

/* Desktop: il catalogo scorre in orizzontale */
@media (min-width: 960px) {
  .catalogue.is-horizontal { padding-bottom: 0; }
  .is-horizontal .track { display: flex; align-items: center; gap: 0; height: 100vh; margin-top: 0; width: max-content; padding: 70px 0 30px; }
  .is-horizontal .catalogue__intro { position: absolute; top: clamp(72px, 12vw, 140px); }
  .is-horizontal .chap { display: flex; align-items: center; gap: clamp(36px, 3.5vw, 64px); margin: 0; padding: 0 0 0 clamp(80px, 8vw, 150px); height: 100%; }
  .is-horizontal .chap__head { flex: 0 0 auto; width: min(28vw, 380px); }
  .is-horizontal .chap__list { display: flex; align-items: center; gap: clamp(36px, 3.5vw, 64px); margin: 0; height: 100%; }
  .is-horizontal .prod { margin: 0 !important; flex: 0 0 auto; }
  .is-horizontal .prod--port { height: 60vh; }
  .is-horizontal .prod--tall { height: 70vh; }
  .is-horizontal .prod--wide { height: 46vh; }
  .is-horizontal .prod:nth-child(odd) { align-self: flex-start; margin-top: 8vh !important; }
  .is-horizontal .prod:nth-child(even) { align-self: flex-end; margin-bottom: 4vh !important; }
  .is-horizontal .prod__btn { height: 100%; grid-template-rows: 1fr auto; }
  .is-horizontal .prod__ph { height: 100%; margin: 0; }
  .is-horizontal .prod__ph img { height: 100%; width: auto; }
  .is-horizontal .track__end { flex: 0 0 auto; padding: 0 12vw 0 10vw; }
  .catalogue__intro.is-first { padding-top: 0; }
  .progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 1px; background: rgba(43, 49, 33, .18); }
  .progress span { display: block; height: 100%; width: 100%; background: var(--olive); transform-origin: 0 50%; transform: scaleX(0); }
}

/* TECNICHE ------------------------------------------------------------------------------------ */
.craft { position: relative; background: var(--olive-deep); color: var(--paper); padding: clamp(80px, 13vw, 160px) 0; overflow: hidden; }
.craft__title, .craft__lead, .techs { padding: 0 var(--gutter); }
.craft__title { font-size: clamp(2.6rem, 9vw, 6.4rem); }
.craft__title .script { color: var(--gold-soft); font-size: 1.35em; line-height: .5; }
.craft__lead { margin-top: 18px; max-width: 40ch; color: #d9dccd; font-size: 1.1rem; }
.materials { margin: clamp(48px, 8vw, 88px) 0; display: grid; gap: 4px; }
.materials__row { white-space: nowrap; font: 400 clamp(2.4rem, 9vw, 6.4rem)/1.08 var(--f-display); color: var(--paper); will-change: transform; }
.materials__row--it { font-style: italic; color: var(--olive-mist); }
.materials__row i { display: inline-block; width: .16em; height: .16em; margin: 0 .35em; vertical-align: .22em; border-radius: 50%; background: var(--gold-soft); }
.techs { list-style: none; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.techs li { position: relative; display: grid; gap: 6px; padding: 24px 0 26px; }
.techs li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(245, 241, 235, .28); transform-origin: 0 50%; transform: scaleX(var(--line, 1)); }
.techs h3 { font: italic 400 clamp(1.6rem, 4vw, 2.3rem)/1.1 var(--f-display); color: var(--paper); }
.techs p { color: #cfd3c2; max-width: 44ch; }
@media (min-width: 760px) {
  .techs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
}

/* REGALO -------------------------------------------------------------------------------------- */
.gift { background: var(--paper-2); padding: clamp(80px, 12vw, 150px) var(--gutter); }
.gift__intro { display: grid; gap: 18px; max-width: 880px; }
.gift__intro p { max-width: 50ch; color: var(--ink-2); font-size: 1.08rem; }
.gift__intro strong { font-weight: 500; color: var(--ink); }
.gift__stage { display: grid; gap: clamp(32px, 5vw, 72px); margin-top: clamp(36px, 6vw, 72px); align-items: start; }
@media (min-width: 960px) {
  .gift__stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .card3d { position: sticky; top: 100px; }
}

/* La partecipazione che diventa coupon */
.card3d { position: relative; width: min(100%, 440px); justify-self: center; aspect-ratio: 5 / 7; perspective: 1600px; }
.card3d__face { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 13% 10%; text-align: center; background: var(--paper); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 1.2s var(--ease-out); box-shadow: 0 2px 2px rgba(43, 49, 33, .06), 0 30px 60px -30px rgba(43, 49, 33, .45); }
.card3d__face::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold-soft); pointer-events: none; }
.card3d__face::after { content: ""; position: absolute; inset: 19px; border: .5px solid var(--gold-soft); pointer-events: none; }
.card3d__back { transform: rotateY(180deg); }
.card3d.is-flipped .invite { transform: rotateY(-180deg); }
.card3d.is-flipped .card3d__back { transform: rotateY(0); }
.sprig { width: 58%; height: auto; overflow: visible; }
.sprig .stem { fill: none; stroke: #6d7a4c; stroke-width: 1.3; stroke-linecap: round; }
.sprig .leaf { fill: #7f8c5a; }
.sprig .leaf:nth-child(3n) { fill: #96a273; }
.sprig .olive { fill: #3d4628; }
.invite__small { font: 400 .74rem/1.4 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); max-width: 26ch; }
.invite__names { font-size: clamp(2.3rem, 9vw, 3.4rem); line-height: 1.05; margin: 6px 0 2px; overflow-wrap: anywhere; }
.invite__names .amp { font-size: .8em; color: var(--gold); }
.invite__date { font: italic 400 1.1rem/1.3 var(--f-display); color: var(--ink); }
.invite__rule { width: 36%; height: 1px; margin: 10px 0 4px; background: var(--gold-soft); }
.invite__pct, .coupon__pct { font: 500 clamp(4rem, 17vw, 6rem)/.9 var(--f-display); color: var(--olive); letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.invite__pct small, .coupon__pct small { font-size: .45em; vertical-align: .9em; margin-left: 3px; }
[data-live].is-empty { opacity: .45; }

.coupon__logo { width: 42%; aspect-ratio: 900 / 359; background: var(--ink); -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat; margin-bottom: 4px; }
.coupon__kicker { font-size: clamp(2rem, 8vw, 2.7rem); line-height: 1; }
.coupon__names { font: italic 400 1.25rem/1.2 var(--f-display); }
.coupon__sub { font: 400 .8rem/1.4 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); max-width: 24ch; }
.coupon__code { margin-top: 8px; padding: 12px 20px; border: 1px dashed var(--gold); font: 500 1.4rem/1 var(--f-text); letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.coupon__exp { font-size: .85rem; color: var(--ink-2); max-width: 30ch; line-height: 1.4; }

/* Form */
.form { display: grid; gap: 26px; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 14px; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font: italic 400 1.5rem/1.1 var(--f-display); color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 520px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink-2); }
.opt { font-weight: 400; color: #5a5e50; }
input[type=text], input:not([type]), input[type=tel], input[type=email], input[type=date] {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #b9b1a6; border-radius: 10px; background: var(--paper); color: var(--ink);
  font: 400 17px/1.3 var(--f-text); caret-color: var(--olive); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
input[type=date] { display: block; min-width: 0; }
input::placeholder { color: #67635a; }
input:hover { border-color: #8f877b; }
input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(79, 92, 52, .2); }
input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(142, 42, 28, .12); }
.err { min-height: 0; font-size: .86rem; color: var(--err); }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consents { display: grid; gap: 14px; padding-top: 6px; border-top: 1px solid #d3cbbf; padding-top: 22px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: .95rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid #8f877b; border-radius: 6px; background: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-out); }
.check input:checked { background: var(--olive); border-color: var(--olive); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input[aria-invalid="true"] { border-color: var(--err); }
.check a { color: var(--olive); font-weight: 500; }
.check .opt { display: block; margin-top: 2px; font-size: .86rem; }
.req { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); margin-left: 4px; }
.form__error { font-weight: 500; color: var(--err); }
.form__error:empty { display: none; }

.done { display: grid; gap: 16px; align-content: start; }
.done__title { font: 400 clamp(1.8rem, 5vw, 2.6rem)/1.1 var(--f-display); outline: none; }
.done__title span { font-style: italic; }
.done p { color: var(--ink-2); max-width: 46ch; }
.done b { color: var(--ink); letter-spacing: .06em; }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0; }
.done__note { font-size: .95rem; }

/* NEGOZI E FOOTER ----------------------------------------------------------------------------- */
.visit { padding: clamp(80px, 12vw, 140px) var(--gutter) clamp(56px, 9vw, 100px); }
.visit h2 .script { font-size: 1.3em; line-height: .6; }
.stores { display: grid; gap: 36px; margin-top: clamp(36px, 6vw, 64px); }
@media (min-width: 760px) { .stores { grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); } }
.store { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(43, 49, 33, .25); }
.store h3 { font: italic 400 clamp(1.5rem, 3vw, 2rem)/1.15 var(--f-display); }
.store__links { display: grid; gap: 4px; justify-items: start; margin-top: 6px; }
.store a { text-decoration-color: rgba(43, 49, 33, .35); }
.store a:hover { text-decoration-color: currentColor; color: var(--olive-deep); }

.foot { background: var(--olive-deep); color: #d9dccd; padding: 40px var(--gutter) calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 20px; font-size: .88rem; }
.foot__social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: var(--paper); font-size: 1rem; }
.foot__social > span { font: 400 1.6rem/1 var(--f-script); color: var(--gold-soft); }
.foot__social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; }
.foot__social a:hover { text-decoration: underline; }
.foot__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.foot__social svg .fill { fill: currentColor; stroke: none; }
.foot__legal { line-height: 1.6; max-width: 90ch; }
.foot__links { display: flex; gap: 20px; }
.foot__links a { color: var(--paper); }
@media (min-width: 960px) { .foot { padding-bottom: 40px; } }

/* Bottone fisso su mobile */
.dock { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 15; transform: translate(-50%, 140%); display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--olive-deep); color: var(--paper); text-decoration: none; font-weight: 500; white-space: nowrap; box-shadow: 0 16px 30px -12px rgba(43, 49, 33, .6); transition: transform .5s var(--ease-out); }
.dock b { font: 500 1.15rem/1 var(--f-display); color: var(--gold-soft); }
.dock.is-on { transform: translate(-50%, 0); }
@media (min-width: 960px) { .dock { display: none; } }

/* Scheda prodotto */
.sheet { width: min(1040px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--studio); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20, 24, 14, .6); overflow: auto; }
.sheet::backdrop { background: rgba(32, 37, 24, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .5s var(--ease-out); }
.sheet[open]::backdrop { animation: fade .4s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.sheet__inner { display: grid; }
.sheet__ph { margin: 0; display: grid; place-items: center; padding: 12px 12px 0; }
.sheet__ph img { max-height: 62dvh; width: auto; }
.sheet__txt { display: grid; gap: 12px; padding: 12px 24px 28px; }
.sheet__chapter { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-text); }
.sheet h2 { font: italic 400 clamp(1.7rem, 4vw, 2.5rem)/1.1 var(--f-display); }
.sheet__txt > p { color: var(--ink-2); max-width: 40ch; }
.sheet__wa { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sheet__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(245, 241, 235, .85); cursor: pointer; }
.sheet__close svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 1.6; fill: none; }
.sheet__close:hover { background: var(--paper); }
@media (min-width: 860px) {
  .sheet__inner { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .sheet__ph { padding: 24px; }
  .sheet__ph img { max-height: 80dvh; }
  .sheet__txt { padding: 40px 40px 40px 8px; }
}

/* Desktop hero */
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: center; padding-top: 110px; }
  .hero__copy { display: grid; gap: 28px; align-content: center; z-index: 2; }
  .hero__table { grid-column: 2; grid-row: 1; height: min(78vh, 720px); margin: 0 calc(var(--gutter) * -1) 0 0; }
  .ph--a { width: 46%; left: 0; top: 4%; }
  .ph--b { width: 56%; right: 2%; top: 56%; }
  .ph--c { display: block; width: 30%; right: -2%; top: 4%; }
  .tag { right: auto; left: 50%; top: -40px; }
}
@media (min-width: 960px) and (max-height: 760px) {
  .motto__script { font-size: 7.4rem; }
}

/* Stati iniziali delle animazioni: solo con JS + motion attivi */
.motion [data-hero] { opacity: 0; }
.motion [data-reveal="up"] { opacity: 0; transform: translateY(24px); }
.motion [data-reveal="img"] { clip-path: inset(100% 0 0 0); }
.motion .techs li { --line: 0; }
.motion .techs li > * { opacity: 0; }
.motion .hero__table .ph { opacity: 0; }

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