/* ==========================================================================
   SATODA — boutique del legno
   ========================================================================== */

:root {
  --ink: #0f0d0b;
  --ebony: #161210;
  --char: #211b17;
  --bark: #3a2e25;
  --ivory: #efe7da;
  --paper: #f6f1e9;
  --parchment: #e4d9c7;
  --stone: #a39584;
  --muted: #8a7e71;
  --brass: #b89262;
  --brass-light: #d6b98f;
  --line: rgba(239, 231, 218, .14);
  --line-dark: rgba(31, 26, 22, .14);

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after { /* grana pellicola */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; } /* altrimenti .cookie { display:flex } lo terrebbe visibile */
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: italic; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--ivory); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 1.4em;
}
.display-xl, .display-lg, .display-md, .display, .display-sm {
  font-family: var(--serif); font-weight: 300; line-height: .95; letter-spacing: -.01em; margin: 0;
}
.display-xl { font-size: clamp(3.4rem, 9vw, 9.5rem); }
.display-lg { font-size: clamp(2.6rem, 5.6vw, 6rem); }
.display-md { font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1; }
.display { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.display-sm { font-size: 2.4rem; line-height: 1.05; }
.display-xl em, .display-lg em, .display-md em, .display em, .display-sm em { color: var(--brass-light); font-weight: 300; }
.lead { font-size: clamp(1rem, 1.2vw, 1.15rem); max-width: 34em; color: rgba(239, 231, 218, .78); }
.muted { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }

/* ---------- Bottoni ---------- */
.btn {
  --c: var(--ivory);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  padding: 1.15em 2.4em; border: 1px solid var(--c); color: var(--c);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; font-weight: 400;
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--c); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleY(1); }
.btn-dark { --c: var(--ink); }
.btn-dark:hover { color: var(--ivory); }
.btn-solid { background: var(--ivory); color: var(--ink); }
.btn-solid::before { background: var(--brass); }
.btn-solid:hover { color: var(--ink); }
.btn-brass { --c: var(--brass); }
.btn-block { width: 100%; }
.btn-small { padding: .8em 1.4em; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.link-arrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 1em;
}
.link-arrow::after { content: ""; width: 40px; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
.link-arrow:hover::after { width: 70px; }
.link-btn { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.link-btn:hover { color: inherit; border-color: currentColor; }
.link-btn.center { display: block; margin: 1rem auto 0; width: max-content; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.2rem; margin-top: 2.4rem; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1500; background: var(--ink); display: grid; place-items: center;
  transition: transform 1.1s var(--ease) .15s;
}
.loader-mark {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: .5em; text-transform: uppercase; padding-left: .5em;
  opacity: 0; animation: loaderIn 1.2s var(--ease-out) forwards;
}
@keyframes loaderIn { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .5em; } }
body.is-loaded .loader { transform: translateY(-100%); }
body.no-loader .loader { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter);
  color: var(--ivory); transition: color .6s, background-color .5s, height .5s var(--ease-out), transform .6s var(--ease);
}
.site-header.on-light { color: var(--ink); }
.site-header.is-solid { background: rgba(15, 13, 11, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); height: 70px; }
.site-header.is-solid.on-light { background: rgba(246, 241, 233, .9); }
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { color: var(--ivory); background: transparent; backdrop-filter: none; }

.menu-toggle { display: inline-flex; align-items: center; gap: 14px; justify-self: start; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.menu-lines { width: 30px; height: 10px; position: relative; }
.menu-lines i { position: absolute; left: 0; height: 1px; background: currentColor; transition: transform .6s var(--ease), width .4s var(--ease-out), top .6s var(--ease); }
.menu-lines i:first-child { top: 0; width: 30px; }
.menu-lines i:last-child { top: 9px; width: 20px; }
.menu-toggle:hover .menu-lines i:last-child { width: 30px; }
body.menu-open .menu-lines i:first-child { top: 5px; transform: rotate(45deg); }
body.menu-open .menu-lines i:last-child { top: 5px; width: 30px; transform: rotate(-45deg); }

.brand { text-align: center; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: .42em; text-transform: uppercase; padding-left: .42em; font-weight: 400; }
.brand-tag { font-size: 9px; letter-spacing: .38em; text-transform: uppercase; opacity: .65; padding-left: .38em; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 2rem; }
.header-link { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; position: relative; }
.header-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .5s var(--ease-out); transform-origin: right; }
.header-link:hover::after { transform: scaleX(1); transform-origin: left; }
.cart-toggle { position: relative; display: inline-flex; width: 26px; height: 26px; }
.cart-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.cart-count {
  position: absolute; right: -9px; top: -6px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px;
  background: var(--brass); color: var(--ink); font-size: 10px; font-weight: 500; display: grid; place-items: center; line-height: 1;
  transition: transform .4s var(--ease-out);
}
.cart-count:empty, .cart-count[data-zero] { transform: scale(0); }
.cart-count.bump { animation: bump .6s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* ---------- Menu a schermo intero ---------- */
.menu {
  position: fixed; inset: 0; z-index: 700; background: var(--ebony); display: grid; grid-template-columns: 5fr 7fr;
  clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); visibility: hidden;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-media { position: relative; overflow: hidden; }
.menu-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12);
  transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out);
}
.menu-media img.is-on { opacity: .85; transform: scale(1); }
.menu-nav { padding: calc(var(--header-h) + 4vh) var(--gutter) 5vh; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.menu-nav li { overflow: hidden; }
.menu-nav a {
  display: inline-flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 5.2rem); line-height: 1.12; transform: translateY(105%); transition: transform 1s var(--ease), color .4s;
}
.menu-nav li.sub a { font-size: clamp(1.4rem, 2.4vw, 2.2rem); padding-left: 3.2rem; font-style: italic; color: var(--stone); }
.menu-nav a sup { font-family: var(--sans); font-size: 11px; font-style: normal; color: var(--brass); }
.menu-nav a:hover { color: var(--brass-light); }
.menu-nav a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.menu-nav a:hover span { background-size: 100% 1px; }
body.menu-open .menu-nav a { transform: none; }
body.menu-open .menu-nav li:nth-child(1) a { transition-delay: .35s; }
body.menu-open .menu-nav li:nth-child(2) a { transition-delay: .4s; }
body.menu-open .menu-nav li:nth-child(3) a { transition-delay: .45s; }
body.menu-open .menu-nav li:nth-child(4) a { transition-delay: .5s; }
body.menu-open .menu-nav li:nth-child(5) a { transition-delay: .55s; }
body.menu-open .menu-nav li:nth-child(6) a { transition-delay: .6s; }
body.menu-open .menu-nav li:nth-child(7) a { transition-delay: .65s; }
.menu-foot { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; font-size: 12px; letter-spacing: .14em; color: var(--stone); margin-top: 3rem; opacity: 0; transition: opacity .6s .8s; }
body.menu-open .menu-foot { opacity: 1; }
.menu-foot a:hover { color: var(--ivory); }

/* ---------- Carrello laterale ---------- */
.drawer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 7, 6, .55); opacity: 0; transition: opacity .6s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); color: var(--ink);
  transform: translateX(100%); transition: transform .8s var(--ease); display: flex; flex-direction: column;
}
body.drawer-open .drawer { pointer-events: auto; }
body.drawer-open .drawer-backdrop { opacity: 1; }
body.drawer-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 28px 32px; border-bottom: 1px solid var(--line-dark); }
.drawer-head .eyebrow { margin: 0; color: var(--bark); }
.drawer-close { font-size: 30px; line-height: 1; font-weight: 200; }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-empty { padding: 60px 32px; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.drawer-empty p { margin: 0; color: #5f554b; }
.drawer-empty .display-sm em { color: var(--bark); }
.drawer-items { list-style: none; margin: 0; padding: 12px 32px; flex: 1; }
.drawer-items li { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); align-items: start; }
.drawer-thumb img { width: 76px; height: 95px; object-fit: cover; background: var(--parchment); }
.drawer-name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.drawer-meta { margin: 4px 0 8px; font-size: 13px; color: #6d6258; }
.drawer-price { font-family: var(--serif); font-size: 1.25rem; }
.drawer-foot { padding: 24px 32px 32px; border-top: 1px solid var(--line-dark); background: #efe8dd; }
.drawer-row { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.drawer-row strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.drawer-note { font-size: 13px; color: #6d6258; margin: .4rem 0 1.4rem; }
.drawer-body.is-loading { opacity: .5; pointer-events: none; }

/* ---------- Motore fullpage ---------- */
html.fp-on, html.fp-on body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.fp-on .fp { position: fixed; inset: 0; transition: transform 1.15s var(--ease); will-change: transform; }
html.fp-on .fp-section { height: 100vh; height: 100dvh; overflow: hidden; }
.fp-section { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; }

.fp-dots {
  position: fixed; right: calc(var(--gutter) - 8px); top: 50%; transform: translateY(-50%); z-index: 600;
  display: none; flex-direction: column; gap: 6px;
}
html.fp-on .fp-dots { display: flex; }
.fp-dots button { position: relative; width: 22px; height: 22px; display: grid; place-items: center; color: var(--ivory); transition: color .6s; }
.fp-dots button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; transition: transform .5s var(--ease-out), opacity .5s; }
.fp-dots button.is-active::before { opacity: 1; transform: scale(1.7); }
.fp-dots button span {
  position: absolute; right: 32px; white-space: nowrap; font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .5s var(--ease-out); pointer-events: none;
}
.fp-dots button:hover span, .fp-dots button:focus-visible span { opacity: 1; transform: none; }
.fp-dots.on-light button { color: var(--ink); }
.fp-counter {
  position: fixed; left: var(--gutter); bottom: 34px; z-index: 600; display: none; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .2em; color: var(--ivory); transition: color .6s;
}
.fp-counter i { width: 60px; height: 1px; background: currentColor; opacity: .35; position: relative; }
html.fp-on .fp-counter { display: flex; }
.fp-counter.on-light { color: var(--ink); }

/* Rivelazioni: attive quando la sezione diventa .is-active */
[data-reveal] { --d: 0s; }
[data-reveal="up"] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: calc(var(--d) + .25s); }
[data-reveal="fade"] { opacity: 0; transition: opacity 2s ease; }
[data-reveal="rise"] { transform: translateY(12%); opacity: 0; transition: transform 1.4s var(--ease-out), opacity 1s; transition-delay: calc(var(--d) + .2s); }
[data-reveal="zoom"] img { transform: scale(1.18); transition: transform 3.2s var(--ease-out); }
[data-reveal="curtain"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease) .1s; }
[data-reveal="curtain"] img { transform: scale(1.3); transition: transform 2.2s var(--ease-out) .1s; }
[data-reveal="lines"] .line { display: block; overflow: hidden; padding-bottom: .06em; }
[data-reveal="lines"] .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
[data-reveal="lines"] .line:nth-child(2) > span { transition-delay: .1s; }
[data-reveal="lines"] .line:nth-child(3) > span { transition-delay: .2s; }
[data-reveal="words"] .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); transition: opacity .9s, transform 1.1s var(--ease-out), filter 1s; }

.is-active [data-reveal="up"], .is-active[data-reveal="up"],
.is-active [data-reveal="rise"], .is-active[data-reveal="rise"] { opacity: 1; transform: none; }
.is-active [data-reveal="fade"] { opacity: 1; }
.is-active [data-reveal="zoom"] img { transform: scale(1); }
.is-active [data-reveal="curtain"], .is-active[data-reveal="curtain"] { clip-path: inset(0 0 0 0); }
.is-active [data-reveal="curtain"] img, .is-active[data-reveal="curtain"] img { transform: scale(1); }
.is-active [data-reveal="lines"] .line > span, .is-active[data-reveal="lines"] .line > span { transform: none; }
.is-active [data-reveal="words"] .w { opacity: 1; transform: none; filter: none; }

/* ---------- Home: apertura ---------- */
.hero { align-items: center; background: var(--ink); }
.hero-media, .bg-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img, .bg-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 70% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 7, .92) 0%, rgba(10, 8, 7, .55) 38%, rgba(10, 8, 7, 0) 65%); }
.hero-content { position: relative; z-index: 2; padding: var(--header-h) var(--gutter) 0; max-width: 980px; }
.hero-right { background: #050404; }
.hero-right .hero-media { right: 38%; }
.hero-right .hero-media img { object-position: 46% 50%; }
.hero-right .hero-media::after { background: linear-gradient(270deg, #050404 0%, rgba(5, 4, 4, .7) 14%, rgba(5, 4, 4, 0) 40%); }
.hero-right .hero-content { margin-left: auto; max-width: min(760px, 52vw); }
.hero .lead { margin-top: 2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--stone);
}
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(var(--ivory), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--brass); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Manifesto */
.manifesto { align-items: center; justify-content: center; text-align: center; background: var(--ebony); }
.manifesto .bg-media img { opacity: .38; filter: saturate(.8) contrast(1.1); }
.manifesto .bg-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(15, 13, 11, .35), rgba(15, 13, 11, .92) 75%); }
.manifesto.is-active .bg-media img { animation: drift 30s linear infinite alternate; }
@keyframes drift { from { transform: scale(1.05) translateX(0); } to { transform: scale(1.15) translateX(-3%); } }
.manifesto-inner { position: relative; z-index: 2; max-width: 1180px; padding: 0 var(--gutter); }
.manifesto blockquote { margin: 0; font-style: italic; line-height: 1.08; }
.signature { margin-top: 2.6rem; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }

/* Opere in evidenza */
.piece { background: var(--ink); align-items: stretch; }
.piece-media { position: relative; width: 56%; overflow: hidden; display: block; }
.piece-media img { width: 100%; height: 100%; object-fit: cover; }
.piece-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(15, 13, 11, .6)); }
.piece-info { width: 44%; display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) calc(var(--gutter) + 40px) 40px var(--gutter); }
.piece-rev { flex-direction: row-reverse; }
.piece-rev .piece-media::after { background: linear-gradient(270deg, transparent 60%, rgba(15, 13, 11, .6)); }
.piece-rev .piece-info { padding-left: calc(var(--gutter) + 20px); padding-right: var(--gutter); }
.piece-index { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin: 0 0 3rem; }
.piece-index span { color: var(--ivory); }
.piece-sub { font-family: var(--serif); font-size: 1.5rem; color: var(--stone); margin: 1rem 0 0; }
.piece-specs { display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); justify-content: start; }
.piece-specs dt { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.piece-specs dd { margin: .3rem 0 0; font-family: var(--serif); font-size: 1.3rem; }
.badge-dot { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); display: inline-flex; align-items: center; gap: .7em; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fae7c; box-shadow: 0 0 0 4px rgba(143, 174, 124, .15); }
.badge-dot.sold::before { background: #a86a5a; box-shadow: 0 0 0 4px rgba(168, 106, 90, .15); }

/* Collezioni: pannelli verticali */
.collections { flex-direction: column; background: var(--ebony); padding-top: var(--header-h); }
.collections-head { padding: 3vh var(--gutter) 3.5vh; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.collections-head .eyebrow { margin: 0 0 .6rem; }
.panels { flex: 1; display: flex; gap: 2px; min-height: 0; }
.panel { position: relative; flex: 1; overflow: hidden; display: flex; align-items: flex-end; transition: flex 1.1s var(--ease); min-height: 60vh; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: brightness(.55) saturate(.85); transition: transform 1.6s var(--ease-out), filter 1s; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 7, .9) 0%, rgba(10, 8, 7, 0) 55%); }
.panel-num { position: absolute; top: 28px; left: 32px; z-index: 2; font-size: 11px; letter-spacing: .24em; color: var(--brass); }
.panel-body { position: relative; z-index: 2; padding: 36px 32px; display: flex; flex-direction: column; gap: .8rem; }
.panel-title { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.8rem); line-height: 1; }
.panel-text { max-width: 30em; font-size: 14px; color: rgba(239, 231, 218, .75); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 1s var(--ease), opacity .6s; }
.panel-cta { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-light); }
@media (hover: hover) {
  .panels:hover .panel { flex: .8; }
  .panels .panel:hover { flex: 1.9; }
  .panel:hover img { transform: scale(1); filter: brightness(.8) saturate(1); }
  .panel:hover .panel-text { max-height: 8em; opacity: 1; }
}

/* Processo */
.process { align-items: center; background: var(--ink); }
.process .bg-media img { opacity: .5; object-position: center; }
.process .bg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 13, 11, .85), rgba(15, 13, 11, .55) 45%, rgba(15, 13, 11, .95)); }
.process-inner { position: relative; z-index: 2; width: 100%; padding: var(--header-h) var(--gutter) 6vh; display: flex; flex-direction: column; gap: 8vh; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5vw; }
.steps li { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.step-num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.6rem; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: .4rem 0 .6rem; line-height: 1.1; }
.steps p { margin: 0; font-size: 14.5px; color: rgba(239, 231, 218, .72); }

/* Su misura (sezione chiara) */
.commission { background: var(--ivory); color: var(--ink); align-items: stretch; }
.commission-media { width: 48%; overflow: hidden; }
.commission-media img { width: 100%; height: 100%; object-fit: cover; }
.commission-body { width: 52%; display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) calc(var(--gutter) + 50px) 40px 7vw; }
.commission-body .eyebrow { color: #8a6a3f; }
.commission .display-lg em { color: #7d5a33; }
.commission-body p { max-width: 32em; color: #4a4038; }
.commission .muted { color: #7d7266; }

/* Chiusura + footer */
.closing { flex-direction: column; background: var(--ink); }
.closing-top { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: var(--header-h) var(--gutter) 4vh; }
.closing-top .lead { margin: 1.8rem 0 2.4rem; }

.site-footer { background: var(--ebony); color: var(--stone); padding: 70px var(--gutter) 28px; font-size: 14px; border-top: 1px solid var(--line); }
.site-footer.in-section { padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid a:hover { color: var(--ivory); }
.footer-logo { font-family: var(--serif); font-size: 2rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ivory); margin: 0 0 .6rem; }
.footer-claim { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.35; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; }

/* ---------- Pagine interne ---------- */
.page-hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 6vh) var(--gutter) 9vh; overflow: hidden;
}
.page-hero .bg-media img { opacity: .55; }
.page-hero .bg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(15, 13, 11, .35) 60%, rgba(15, 13, 11, .7) 100%); }
.page-hero-inner { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.page-hero .lead { margin: 1.6rem 0 0; }
.page-hero-count { font-family: var(--serif); font-size: clamp(4rem, 10vw, 9rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(214, 185, 143, .6); }

/* Filtri collezione */
.filters {
  position: sticky; top: 70px; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
  padding: 18px var(--gutter); background: rgba(15, 13, 11, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.filter-tabs { display: flex; gap: .4rem 2rem; flex-wrap: wrap; }
.filter-tabs a { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); padding: 6px 0; position: relative; }
.filter-tabs a sup { color: var(--brass); margin-left: 3px; letter-spacing: 0; }
.filter-tabs a.is-current, .filter-tabs a:hover { color: var(--ivory); }
.filter-tabs a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); }
.filter-opts { display: flex; gap: 1.6rem; align-items: center; font-size: 12px; letter-spacing: .1em; color: var(--stone); }
.filter-opts label { display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; }
.filter-opts select { background: transparent; color: var(--ivory); border: 0; border-bottom: 1px solid var(--line); font: inherit; padding: 4px 18px 4px 0; letter-spacing: .08em; }
.filter-opts select option { background: var(--ink); }
.filter-opts input[type=checkbox] { accent-color: var(--brass); }

/* Griglia editoriale */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 9vh 3vw; padding: 10vh var(--gutter) 16vh; }
.card { grid-column: span 4; position: relative; }
.card:nth-child(6n+1) { grid-column: 1 / span 7; }
.card:nth-child(6n+2) { grid-column: 9 / span 4; margin-top: 22vh; }
.card:nth-child(6n+3) { grid-column: 2 / span 4; margin-top: -12vh; }
.card:nth-child(6n+4) { grid-column: 7 / span 5; }
.card:nth-child(6n+5) { grid-column: 1 / span 5; }
.card:nth-child(6n) { grid-column: 7 / span 6; margin-top: 16vh; }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--char); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out), opacity .9s ease; }
.card-media .img-2 { opacity: 0; }
.card:hover .card-media img { transform: scale(1.05); }
.card:hover .card-media .img-2 { opacity: 1; }
.card-badge { position: absolute; top: 18px; left: 18px; z-index: 2; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; background: rgba(15, 13, 11, .75); padding: 7px 12px; backdrop-filter: blur(6px); }
.card-badge.sold { background: rgba(168, 106, 90, .9); color: var(--ivory); }
.card-body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; }
.card-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.2vw, 2.3rem); font-weight: 300; line-height: 1.05; margin: 0; }
.card-meta { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: .4rem 0 0; }
.card-price { font-family: var(--serif); font-size: 1.4rem; white-space: nowrap; }
.card-price s { color: var(--muted); font-size: 1rem; }
.card.is-sold .card-media img { filter: grayscale(.4) brightness(.75); }
.card.reveal { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out); }
.card.reveal.is-active { opacity: 1; transform: none; }

.empty-state { padding: calc(var(--header-h) + 12vh) var(--gutter) 16vh; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.empty-state.full { min-height: 100vh; justify-content: center; }
.empty-state p { max-width: 36em; color: var(--stone); margin: 0; }

/* ---------- Scheda opera ---------- */
.product { display: grid; grid-template-columns: 58fr 42fr; align-items: start; background: var(--ink); }
.product-gallery { display: flex; flex-direction: column; gap: 4px; }
.product-gallery figure { margin: 0; position: relative; height: 100vh; min-height: 560px; overflow: hidden; cursor: zoom-in; background: var(--char); }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease-out); }
.product-gallery figure:hover img { transform: scale(1.03); }
.product-gallery figure:first-child::after { content: ""; position: absolute; inset: 0 0 auto; height: 160px; background: linear-gradient(rgba(10, 8, 7, .55), transparent); pointer-events: none; }
.product-gallery figure:first-child img { animation: heroIn 2.4s var(--ease-out) both; }
@keyframes heroIn { from { transform: scale(1.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gallery-progress { position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 10px; transition: opacity .5s; }
.gallery-progress button { width: 2px; height: 28px; background: rgba(239, 231, 218, .3); transition: background .4s, height .4s var(--ease-out); }
.gallery-progress button.is-active { background: var(--ivory); height: 46px; }

.product-panel { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 20px) var(--gutter) 40px 4.5vw; }
.breadcrumb { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.4rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--ivory); }
.product-panel h1 { font-size: clamp(2.8rem, 4.4vw, 4.8rem); }
.product-sub { font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--stone); margin: .6rem 0 0; }
.product-price { display: flex; align-items: baseline; gap: 1.4rem; margin: 2.2rem 0 1.6rem; flex-wrap: wrap; }
.product-price strong { font-family: var(--serif); font-weight: 300; font-size: 2.6rem; line-height: 1; }
.product-buy { display: flex; gap: 12px; align-items: stretch; }
.product-buy .btn { flex: 1; }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 42px; font-size: 18px; color: var(--stone); }
.qty button:hover { color: var(--ivory); }
.qty input { width: 44px; background: transparent; border: 0; color: var(--ivory); text-align: center; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-whatsapp { --c: #6fbf8b; width: 100%; margin-top: 12px; gap: .9em; }
.btn-whatsapp svg { width: 20px; height: 20px; flex: none; }
.btn-whatsapp .wa-bolla { fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn-whatsapp .wa-cornetta { fill: currentColor; }
.btn-whatsapp:hover .wa-bolla { stroke: var(--ink); }
.btn-whatsapp:hover .wa-cornetta { fill: var(--ink); }
.whatsapp-note { font-size: 12.5px; color: var(--muted); margin: .7rem 0 0; }
body.is-light .btn-whatsapp { --c: #2f7d4f; }

.product-assurance { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; font-size: 12px; color: var(--stone); letter-spacing: .04em; line-height: 1.4; }
.product-assurance li { display: flex; gap: .6rem; align-items: flex-start; }
.product-assurance svg { width: 18px; height: 18px; flex: none; stroke: var(--brass); fill: none; stroke-width: 1.2; }
.accordion { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 1.1rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 18px; font-weight: 200; transition: transform .5s var(--ease-out); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 1.4rem; color: rgba(239, 231, 218, .78); font-size: 15px; }
.accordion .acc-body p { margin: 0 0 .9em; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th { text-align: left; font-weight: 400; color: var(--muted); padding: .45rem 0; width: 40%; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.spec-table td { padding: .45rem 0; }
.product-sold { margin-top: 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); font-size: 14px; color: var(--stone); }
.product-sold a { color: var(--brass-light); border-bottom: 1px solid; }

.story { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 16vh var(--gutter); }
.story .bg-media img { opacity: .45; }
.story .bg-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse, rgba(15, 13, 11, .4), rgba(15, 13, 11, .95) 80%); }
.story-inner { position: relative; z-index: 2; max-width: 980px; }
.story blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.8rem, 3.4vw, 3.3rem); line-height: 1.2; }

.related { padding: 14vh var(--gutter); background: var(--ebony); }
.related-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 6vh; gap: 2rem; flex-wrap: wrap; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3vw; }
.related-grid .card { grid-column: auto !important; margin: 0 !important; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(8, 7, 6, .97); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; }
.lightbox img { max-height: 90vh; width: auto; object-fit: contain; transform: scale(.96); transition: transform .8s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; font-size: 44px; font-weight: 200; color: var(--ivory); width: 64px; height: 64px; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .3em; color: var(--stone); margin: 0; }

/* ---------- Bottega ---------- */
.bottega-split { background: var(--ivory); color: var(--ink); align-items: stretch; }
.bottega-split .split-media { width: 50%; overflow: hidden; }
.bottega-split .split-media img { width: 100%; height: 100%; object-fit: cover; }
.bottega-split .split-body { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: var(--header-h) calc(var(--gutter) + 40px) 40px 6vw; }
.bottega-split .eyebrow { color: #8a6a3f; }
.bottega-split .display-lg em, .bottega-split .display-md em { color: #7d5a33; }
.bottega-split p { color: #4a4038; max-width: 34em; }
.woods { flex-direction: column; background: var(--ink); padding: var(--header-h) 0 0; }
.woods-head { padding: 4vh var(--gutter); }
.woods-list { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; min-height: 0; }
.wood { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 28px; min-height: 50vh; }
.wood img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: transform 1.6s var(--ease-out), filter .8s; }
.wood:hover img { transform: scale(1.08); filter: brightness(.85); }
.wood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 7, .92), transparent 60%); }
.wood div { position: relative; z-index: 2; }
.wood h3 { font-family: var(--serif); font-weight: 300; font-size: 2.2rem; margin: 0; line-height: 1; }
.wood p { margin: .5rem 0 0; font-size: 13.5px; color: rgba(239, 231, 218, .75); }

/* ---------- Pagine chiare (carrello, checkout, info, su misura) ---------- */
body.is-light { background: var(--paper); color: var(--ink); }
body.is-light .eyebrow { color: #8a6a3f; }
body.is-light .display em, body.is-light .display-lg em, body.is-light .display-md em, body.is-light .display-sm em { color: #7d5a33; }
body.is-light .lead { color: #4a4038; }
body.is-light .muted { color: #7d7266; }
body.is-light .link-btn { color: #7d7266; }
.light-page { padding: calc(var(--header-h) + 8vh) var(--gutter) 14vh; }
.light-head { margin-bottom: 7vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.steps-nav { display: flex; gap: 2rem; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #9b8f82; }
.steps-nav .is-current { color: var(--ink); }
.steps-nav span::before { content: attr(data-n); margin-right: .7em; color: #b19a7d; }

.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 6vw; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #8d8174; padding: 0 0 1rem; border-bottom: 1px solid var(--line-dark); }
.cart-table td { padding: 1.8rem 0; border-bottom: 1px solid var(--line-dark); vertical-align: middle; }
.cart-prod { display: flex; gap: 1.6rem; align-items: center; }
.cart-prod img { width: 110px; height: 138px; object-fit: cover; background: var(--parchment); }
.cart-prod h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin: 0; line-height: 1.05; }
.cart-prod p { margin: .3rem 0 0; font-size: 13px; color: #7d7266; }
.cart-table .qty { border-color: var(--line-dark); }
.cart-table .qty input { color: var(--ink); }
.cart-table .qty button { color: #7d7266; }
.cart-price { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }

.summary { background: #efe8dd; padding: 36px; position: sticky; top: 100px; }
.summary h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0 0 1.4rem; }
.summary-row { display: flex; justify-content: space-between; padding: .55rem 0; font-size: 14.5px; }
.summary-row.total { border-top: 1px solid var(--line-dark); margin-top: .8rem; padding-top: 1.2rem; align-items: baseline; }
.summary-row.total strong { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; }
.summary .btn { margin-top: 1.6rem; }
.summary-items { list-style: none; margin: 0 0 1.2rem; padding: 0 0 1rem; border-bottom: 1px solid var(--line-dark); }
.summary-items li { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: .6rem 0; }
.summary-items img { width: 58px; height: 72px; object-fit: cover; }
.summary-items span { font-family: var(--serif); font-size: 1.2rem; line-height: 1.1; }
.summary-items small { display: block; font-family: var(--sans); font-size: 12px; color: #7d7266; }
.summary-note { font-size: 13px; color: #6d6258; margin: 1.2rem 0 0; display: flex; gap: .6rem; }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem 1.4rem; }
.form-grid .c-6 { grid-column: span 6; } .form-grid .c-4 { grid-column: span 4; } .form-grid .c-3 { grid-column: span 3; } .form-grid .c-2 { grid-column: span 2; }
.form-section { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; margin: 3rem 0 1.6rem; display: flex; align-items: baseline; gap: 1rem; }
.form-section:first-child { margin-top: 0; }
.form-section small { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #9b8f82; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #7d7266; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(31, 26, 22, .3);
  padding: .6rem 0; border-radius: 0; transition: border-color .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field .err { color: #9b3f2c; font-size: 13px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #9b3f2c; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: 14px; color: #4a4038; }
.check input { margin-top: .35rem; accent-color: var(--ink); }
.check a { border-bottom: 1px solid; }
.hp { position: absolute !important; left: -9999px !important; }
.pay-options { display: grid; gap: 12px; }
.pay-option { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; border: 1px solid var(--line-dark); padding: 1.1rem 1.3rem; cursor: pointer; transition: border-color .3s, background .3s; }
.pay-option:has(input:checked) { border-color: var(--ink); background: #efe8dd; }
.pay-option input { accent-color: var(--ink); }
.pay-option strong { font-weight: 500; display: block; }
.pay-option small { color: #7d7266; font-size: 13px; }
.pay-option .pay-logos { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8d8174; }
.alert { padding: 1rem 1.3rem; border-left: 2px solid var(--brass); background: rgba(184, 146, 98, .12); margin: 0 0 2rem; font-size: 14.5px; }
.alert-error { border-color: #9b3f2c; background: rgba(155, 63, 44, .08); }
.flash { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 850; background: var(--ivory); color: var(--ink); padding: 14px 24px; font-size: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); animation: flashOut .6s 5s forwards; max-width: calc(100% - 32px); }
.flash-error { background: #f1d9d2; }
@keyframes flashOut { to { opacity: 0; transform: translate(-50%, -20px); visibility: hidden; } }

.confirm-box { max-width: 820px; margin: 0 auto; text-align: center; }
.confirm-box .display { margin-bottom: 1.4rem; }
.bank-box { text-align: left; background: #efe8dd; padding: 2rem 2.2rem; margin: 3rem 0; }
.bank-box dl { display: grid; grid-template-columns: 160px 1fr; gap: .5rem 1rem; margin: 1rem 0 0; }
.bank-box dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #7d7266; padding-top: .2rem; }
.bank-box dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; word-break: break-word; }
#paypal-buttons { max-width: 440px; margin: 2rem auto 0; min-height: 150px; }

/* Testi informativi */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 3rem 0 1rem; line-height: 1.1; }
.prose p, .prose li { color: #3f362f; }
.prose ul { padding-left: 1.2rem; }
.info-layout { display: grid; grid-template-columns: 240px 1fr; gap: 6vw; }
.info-nav { position: sticky; top: 110px; align-self: start; display: grid; gap: .6rem; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.info-nav a { color: #8d8174; }
.info-nav a.is-current, .info-nav a:hover { color: var(--ink); }

/* Su misura */
.commission-page { display: grid; grid-template-columns: 5fr 7fr; min-height: 100vh; }
.commission-page .cp-media { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.commission-page .cp-media img { width: 100%; height: 100%; object-fit: cover; }
.commission-page .cp-media .cp-caption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6vh; color: var(--ivory); z-index: 2; }
.commission-page .cp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 7, .85), transparent 55%); }
.commission-page .cp-body { padding: calc(var(--header-h) + 8vh) var(--gutter) 12vh 6vw; }
.cp-steps { list-style: none; padding: 0; margin: 3rem 0 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: s; }
.cp-steps li { border-top: 1px solid var(--line-dark); padding-top: 1rem; font-size: 14px; color: #4a4038; }
.cp-steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: #8a6a3f; }
.cp-steps strong { display: block; font-weight: 500; color: var(--ink); margin: .2rem 0 .3rem; }

/* Cookie */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 950; max-width: 420px; background: var(--ivory); color: var(--ink); padding: 18px 20px; display: flex; gap: 1rem; align-items: center; font-size: 13px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.cookie p { margin: 0; }
.cookie a { border-bottom: 1px solid; }
.cookie .btn { --c: var(--ink); flex: none; }
.cookie .btn:hover { color: var(--ivory); }

/* ---------- Opere scontornate (WebP trasparenti) ----------
   Le maschere senza sfondo "galleggiano" su un fascio di luce caldo: sul nero del sito
   una maschera nera altrimenti sparirebbe. */
:root { --spot: radial-gradient(ellipse 70% 60% at 50% 46%, #6f5e4f 0%, #3b3029 48%, #1a1512 100%); }
.card-media:has(> img[src$=".webp"]),
.product-gallery figure:has(> img[src$=".webp"]),
.piece-media:has(> img[src$=".webp"]),
.panel:has(> img[src$=".webp"]),
.wood:has(> img[src$=".webp"]),
.commission-media:has(> img[src$=".webp"]) { background: var(--spot); }
.menu-media:has(img.is-on[src$=".webp"]) { background: var(--spot); }

img[src$=".webp"] { filter: drop-shadow(0 28px 32px rgba(0, 0, 0, .55)); }
.product-gallery img[src$=".webp"],
.piece-media img[src$=".webp"],
.menu-media img[src$=".webp"],
.commission-media img[src$=".webp"] { object-fit: contain; padding: 5vh 4vw; }
.panel img[src$=".webp"], .wood img[src$=".webp"] { object-fit: contain; padding: 6vh 1.5vw 22vh; filter: brightness(.9) drop-shadow(0 24px 28px rgba(0, 0, 0, .6)); }
.panel:hover img[src$=".webp"], .wood:hover img[src$=".webp"] { filter: brightness(1) drop-shadow(0 24px 28px rgba(0, 0, 0, .6)); }
.piece-media:has(> img[src$=".webp"])::after, .panel:has(> img[src$=".webp"])::after { opacity: .6; }
.commission-media:has(> img[src$=".webp"]) { background: radial-gradient(ellipse 70% 60% at 50% 46%, #fbf7f0 0%, #e6dccb 60%, #d4c7b2 100%); }
.commission-media img[src$=".webp"] { filter: drop-shadow(0 30px 30px rgba(40, 30, 20, .35)); }
/* con due immagini trasparenti sovrapposte, la prima deve sparire al passaggio del mouse */
.card:hover .card-media:has(.img-2) img:first-child { opacity: 0; }
.drawer-thumb img[src$=".webp"], .summary-items img[src$=".webp"], .cart-prod img[src$=".webp"] { object-fit: contain; background: var(--spot); filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 4vh 4vw; }
  .process-inner { gap: 4vh; }
  .woods-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand-name { font-size: 20px; }
  .brand-tag { display: none; }
  .header-link, .menu-label { display: none; }
  .menu { grid-template-columns: 1fr; }
  .menu-media { display: none; }

  .hero-media img { object-position: 62% 50%; }
  .hero-right .hero-media { right: 0; }
  .hero-right .hero-media img { object-position: 46% 30%; }
  .hero-right .hero-media::after { background: linear-gradient(0deg, rgba(10, 8, 7, .95) 10%, rgba(10, 8, 7, .35) 70%, rgba(10, 8, 7, .5)); }
  .hero-right .hero-content { margin-left: 0; max-width: none; }
  .hero-media::after { background: linear-gradient(0deg, rgba(10, 8, 7, .95) 10%, rgba(10, 8, 7, .35) 70%, rgba(10, 8, 7, .5)); }
  .hero { align-items: flex-end; }
  .hero-content { padding-bottom: 14vh; }
  .scroll-cue { display: none; }

  .piece, .piece-rev, .commission, .bottega-split { flex-direction: column; }
  .piece-media, .commission-media, .bottega-split .split-media { width: 100%; height: 62vh; }
  .piece-info, .piece-rev .piece-info, .commission-body, .bottega-split .split-body { width: 100%; padding: 8vh var(--gutter) 10vh; }
  .piece-index { margin-bottom: 1.6rem; }
  .piece-specs { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }

  .collections { padding-top: calc(var(--header-h) + 4vh); }
  .panels { flex-direction: column; gap: 2px; }
  .panel { min-height: 46vh; }
  .panel-text { max-height: none; opacity: 1; }

  .process-inner { padding-top: calc(var(--header-h) + 6vh); padding-bottom: 10vh; }
  .steps { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 6vh 16px; padding-top: 6vh; }
  .card, .card:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .card:nth-child(3n+1) { grid-column: 1 / -1; }
  .card-body { flex-direction: column; gap: .2rem; }
  .filters { top: 60px; }
  .filter-opts { width: 100%; justify-content: space-between; }

  .product { grid-template-columns: 1fr; }
  .product-gallery { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; }
  .product-gallery::-webkit-scrollbar { display: none; }
  .product-gallery figure { flex: 0 0 100%; height: 78vh; min-height: 0; scroll-snap-align: start; }
  .gallery-progress { position: static; transform: none; flex-direction: row; justify-content: center; padding: 14px 0 0; }
  .gallery-progress button { width: 28px; height: 2px; }
  .gallery-progress button.is-active { width: 46px; height: 2px; }
  .product-panel { position: static; min-height: 0; padding: 6vh var(--gutter) 10vh; }
  .product-assurance { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; gap: 8vh; }

  .woods-list { grid-template-columns: 1fr 1fr; }
  .commission-page { grid-template-columns: 1fr; }
  .commission-page .cp-media { position: relative; height: 60vh; }
  .commission-page .cp-body { padding: 8vh var(--gutter) 12vh; }
  .cp-steps { grid-template-columns: 1fr; }
  .info-layout { grid-template-columns: 1fr; }
  .info-nav { position: static; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }

  .form-grid .c-4, .form-grid .c-3, .form-grid .c-2 { grid-column: span 6; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line-dark); padding: 1.2rem 0; gap: .8rem; }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .cart-prod img { width: 84px; height: 105px; }
  .footer-grid { grid-template-columns: 1fr; }
  .bank-box dl { grid-template-columns: 1fr; }
  .site-footer.in-section .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer.in-section .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Fullpage su smartphone e schermi bassi: scroll-snap nativo ----------
   Il browser aggancia una sezione alla volta seguendo il dito (niente JS che blocca lo scroll). */
html.fp-snap { scroll-snap-type: y mandatory; }
html.fp-snap .fp-section { scroll-snap-align: start; scroll-snap-stop: always; }
/* l'ultima sezione contiene anche il footer: si aggancia l'invito, poi il footer scorre fino in fondo */
html.fp-snap .fp-section.closing { scroll-snap-align: none; display: block; overflow: visible; } /* overflow:hidden la renderebbe un contenitore di scroll e i suoi agganci verrebbero ignorati */
html.fp-snap .closing-top { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }
html.fp-snap .closing .site-footer { scroll-snap-align: end; }
html.fp-snap .fp-dots { display: flex; right: 4px; gap: 0; }
html.fp-snap .fp-dots button { width: 20px; height: 20px; }
html.fp-snap .fp-dots button span { display: none; }

@media (max-width: 900px) {
  /* ogni sezione deve stare in un solo schermo del telefono */
  .scroll-cue { display: flex; bottom: 14px; }
  .scroll-cue i { height: 34px; }
  .hero-content { padding-bottom: 12svh; }
  .manifesto blockquote { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }

  .piece-media { height: 46svh; }
  .piece-info, .piece-rev .piece-info { padding: 3.5svh var(--gutter) 4svh; }
  .piece-index { display: none; }
  .piece .eyebrow { margin-bottom: .8em; }
  .piece .display-lg { font-size: clamp(2.2rem, 10vw, 3rem); }
  .piece-sub { font-size: 1.15rem; margin-top: .3rem; }
  .piece-specs { margin-top: 1.2rem; padding-top: .9rem; gap: .6rem 1.4rem; }
  .piece-specs dd { font-size: 1.05rem; }
  .piece .actions, .commission .actions { margin-top: 1.3rem; gap: .8rem 1.4rem; }
  .piece .btn, .commission .btn { padding: 1em 1.8em; }

  .collections { padding-top: calc(var(--header-h) + 1svh); min-height: 100svh; }
  .collections-head { padding: 1svh var(--gutter) 2.5svh; }
  .collections-head .display-md { font-size: 2rem; }
  .panels { flex: 1; }
  .panel { min-height: 0; flex: 1; }
  .panel-text { display: none; }
  .panel-body { padding: 20px var(--gutter); }
  .panel-title { font-size: 2.2rem; }
  .panel img[src$=".webp"] { object-position: right center; padding: 2svh 5vw 2svh 42vw; }

  .process-inner { padding-top: calc(var(--header-h) + 3svh); padding-bottom: 4svh; gap: 3.5svh; }
  .process .display-md { font-size: 2rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2.8svh 6vw; }
  .steps li { padding-top: .8rem; }
  .steps h3 { font-size: 1.35rem; margin-top: 0; }
  .steps p { font-size: 12.5px; line-height: 1.5; }

  .commission-media { height: 42svh; }
  .commission-body { padding: 3.5svh var(--gutter) 4svh; }
  .commission .display-lg { font-size: clamp(2.2rem, 10vw, 3rem); }
  .commission-body p { font-size: 14.5px; margin: 1rem 0 0; }

  .bottega-split .split-media { height: 36svh; }
  .bottega-split .split-body { padding: 3svh var(--gutter) 4svh; }
  .bottega-split .display-lg { font-size: clamp(2.2rem, 10vw, 3rem); }
  .bottega-split p { font-size: 14px; margin: .7em 0 0; }

  .woods { min-height: 100svh; }
  .woods-head { padding: 2svh var(--gutter); }
  .woods-head .display-md { font-size: 2rem; }
  .woods-list { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
  .wood { min-height: 0; padding: 16px; }
  .wood h3 { font-size: 1.35rem; }
  .wood p { display: none; }
  .wood img[src$=".webp"] { padding: 2svh 4vw 8svh; }
}

@media (max-width: 900px) and (max-height: 720px) {
  .steps p, .commission .muted, .bottega-split .signature { display: none; }
  .piece-media { height: 40svh; }
  .commission-media { height: 36svh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] , [data-reveal] * { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
}
