/* =====================================================================
   FORMA & FERRO · Design system
   Atelier del ferro · Bardineto (SV), Liguria
   ---------------------------------------------------------------------
   Palette: neri caldi, carta, ottone brunito. Tipografia editoriale.
   Tutto in un solo foglio per portabilità (WordPress / Divi / statico).
   ===================================================================== */

:root {
  /* Colori */
  --ink: #0e0d0c;          /* nero ferro */
  --ink-2: #1a1917;        /* carbone */
  --ink-3: #2a2825;        /* grafite */
  --paper: #f3eee5;        /* carta */
  --paper-2: #e9e2d5;      /* carta scura */
  --stone: #8f877b;        /* pietra, testo secondario */
  --brass: #c08a3e;        /* ottone brunito, accento */
  --brass-2: #dba65a;      /* ottone chiaro, hover */
  --rust: #8a4b2a;         /* ruggine, dettagli */
  --line: rgba(243, 238, 229, 0.12);
  --line-dark: rgba(14, 13, 12, 0.12);

  /* Tipografia */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Scala fluida */
  --fs-hero: clamp(2.8rem, 7.5vw, 6.6rem);
  --fs-h1: clamp(2.4rem, 5.5vw, 4.6rem);
  --fs-h2: clamp(2rem, 4vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 2.2vw, 1.9rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.82rem;
  --fs-eyebrow: 0.72rem;

  /* Spazi */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --max: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 220ms;
  --t-med: 520ms;
  --t-slow: 900ms;

  --radius: 2px;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p, blockquote, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Grana e atmosfera ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Utilità ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .eyebrow { color: var(--rust); }
.section--paper .eyebrow::before { background: var(--rust); }
.section--paper .line { border-color: var(--line-dark); }
.section--ink2 { background: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-eyebrow); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass); font-weight: 600;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--brass); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--stone); max-width: 58ch; }
.section--paper .lead { color: #4b463f; }
.serif { font-family: var(--serif); }
.em { font-style: italic; color: var(--brass); }
.section--paper .em { color: var(--rust); }
.grid { display: grid; gap: var(--gutter); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
.head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.head h2 { font-size: var(--fs-h2); margin-top: 1rem; }
@media (max-width: 800px) { .head { grid-template-columns: 1fr; } }
.line { border-top: 1px solid var(--line); }

/* ---------- Bottoni ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1rem 1.6rem; border-radius: 999px; overflow: hidden;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em;
  background: var(--bg); color: var(--fg); isolation: isolate;
  transition: transform var(--t-fast) var(--ease), color var(--t-med) var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brass); border-radius: inherit;
  transform: translateY(101%); transition: transform var(--t-med) var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { color: var(--ink); }
.btn:active { transform: scale(0.97); }
.btn .arr { width: 1rem; height: 1rem; transition: transform var(--t-fast) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--brass); }
.section--paper .btn--ghost { --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-dark); }
.btn--brass { --bg: var(--brass); --fg: var(--ink); }
.btn--brass::before { background: var(--brass-2); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--ink::before { background: var(--brass); }
.link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass);
}
.link .arr { width: 0.9rem; height: 0.9rem; transition: transform var(--t-fast) var(--ease); }
.link:hover .arr { transform: translateX(4px); }
.link span { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size var(--t-med) var(--ease); }
.link:hover span { background-size: 100% 1px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: 0 !important;
  transition: background var(--t-med) var(--ease), backdrop-filter var(--t-med), padding var(--t-med) var(--ease), box-shadow var(--t-med);
  padding-block: 1.4rem;
}
.header .ticker { margin-bottom: 1.4rem; max-height: 3rem; transition: max-height var(--t-med) var(--ease), margin var(--t-med) var(--ease); }
.header.is-scrolled .ticker { max-height: 0; margin-bottom: 0.8rem; padding-block: 0; }
.header.is-scrolled { background: rgba(14, 13, 12, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 0.8rem; box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.02em; white-space: nowrap; }
.logo .mark { height: 26px; width: auto; aspect-ratio: 1061 / 427; color: var(--paper); flex: none; }
.nav { display: flex; gap: 2.2rem; align-items: center; }
.nav a { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; position: relative; padding-block: 0.3rem; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--brass); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t-fast), background var(--t-fast); }
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--brass); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 9px; background: var(--brass); color: var(--ink); font-size: 0.68rem; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.cart-count.is-on { transform: scale(1); }
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.burger span { width: 18px; height: 1.5px; background: var(--paper); transition: transform var(--t-med) var(--ease), opacity var(--t-fast); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .logo { font-size: 1.25rem; }
  .ticker { font-size: 0.64rem; }
  .hero { padding-top: 10rem; }
  .nav { position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 2rem; transform: translateY(-100%); transition: transform var(--t-slow) var(--ease); z-index: -1; padding-top: 3rem; }
  .nav.is-open { transform: translateY(0); }
  /* chiuso: invisibile anche se qualcosa lo fa sporgere; aperto: visibile subito */
  .nav { visibility: hidden; transition: transform var(--t-slow) var(--ease), visibility 0s linear var(--t-slow); }
  .nav.is-open { visibility: visible; transition: transform var(--t-slow) var(--ease), visibility 0s; }
  /* backdrop-filter renderebbe l'header il riferimento del menu fixed: niente sfocatura su mobile */
  .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 13, 12, 0.96); }
  .nav a { font-family: var(--serif); font-size: 2.4rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
  .burger { display: flex; }
}

/* ---------- Annuncio ---------- */
.ticker { background: var(--brass); color: var(--ink); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; overflow: hidden; padding-block: 0.55rem; white-space: nowrap; }
.ticker__track { display: inline-flex; gap: 3rem; animation: ticker 40s linear infinite; padding-left: 100%; }
.ticker__track span::after { content: "◆"; margin-left: 3rem; font-size: 0.5rem; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-top: 7rem; padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg .ph { height: 100%; border-radius: 0; aspect-ratio: auto; }
.hero__bg .ph__art { left: auto; right: 6%; top: 8%; bottom: auto; width: 26%; height: 55%; opacity: 0.5; }
.hero__veil { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(14,13,12,0.25) 0%, rgba(14,13,12,0.1) 35%, rgba(14,13,12,0.55) 60%, rgba(14,13,12,0.7) 100%),
  linear-gradient(180deg, rgba(14,13,12,0.4) 0%, rgba(14,13,12,0.3) 40%, rgba(14,13,12,0.92) 100%); }
/* Testo del hero leggibile anche sulla parte chiara della foto */
.hero__side .lead { color: var(--paper); text-shadow: 0 1px 12px rgba(14,13,12,0.7); }
.hero .eyebrow { color: var(--brass-2); text-shadow: 0 1px 10px rgba(14,13,12,0.8); }
.hero__meta { color: var(--paper-2); text-shadow: 0 1px 8px rgba(14,13,12,0.7); }
@media (max-width: 900px) { .hero__veil { background: linear-gradient(180deg, rgba(14,13,12,0.45) 0%, rgba(14,13,12,0.55) 45%, rgba(14,13,12,0.94) 100%); } }
.hero__glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(192,138,62,0.22), transparent 60%); z-index: -1; pointer-events: none; left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%); transition: left 1.2s var(--ease), top 1.2s var(--ease); filter: blur(10px); }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: end; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--fs-hero); font-weight: 400; max-width: 12ch; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .word > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes rise { to { transform: translateY(0); } }
.hero__side { display: grid; gap: 1.6rem; }
.hero__side p { max-width: 42ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--stone); letter-spacing: 0.06em; text-transform: uppercase; }
.hero__meta b { color: var(--paper); font-weight: 600; display: block; font-size: 1.05rem; letter-spacing: 0; text-transform: none; font-family: var(--serif); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 2rem; writing-mode: vertical-rl; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); display: flex; align-items: center; gap: 1rem; }
.scroll-cue::after { content: ""; width: 1px; height: 3rem; background: linear-gradient(var(--brass), transparent); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ---------- Placeholder fotografico ---------- */
/* Sostituire con <img> reali: le foto sono il vero prodotto del sito. */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius); isolation: isolate;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(192,138,62,0.18), transparent 50%),
    radial-gradient(80% 60% at 80% 90%, rgba(138,75,42,0.25), transparent 55%),
    linear-gradient(160deg, #2b2825 0%, #15140f 55%, #0b0a09 100%);
  aspect-ratio: var(--ar, 4 / 5);
  color: rgba(243,238,229,0.55);
}
.ph::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: 0.35; mix-blend-mode: soft-light; }
.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.05) 45%, transparent 60%); transform: translateX(-100%); transition: transform 1.2s var(--ease); }
.ph:hover::after, .card:hover .ph::after { transform: translateX(100%); }
.ph__label { position: absolute; left: 1rem; bottom: 1rem; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243,238,229,0.5); display: flex; align-items: center; gap: 0.5rem; }
.ph__label::before { content: ""; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.ph__art { position: absolute; inset: 0; margin: auto; width: 46%; height: 60%; stroke: rgba(243,238,229,0.35); stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ph--wide { --ar: 16 / 9; }
.ph--square { --ar: 1; }
.ph--tall { --ar: 3 / 4; }
.ph--paper { background: linear-gradient(160deg, #e4dccc 0%, #d2c8b5 60%, #c4b9a3 100%); color: rgba(14,13,12,0.5); }
.ph--paper .ph__art { stroke: rgba(14,13,12,0.4); }
.ph--paper .ph__label { color: rgba(14,13,12,0.45); }

/* ---------- Card prodotto / categoria ---------- */
.card { display: grid; gap: 1rem; position: relative; }
.card .ph { transition: transform var(--t-slow) var(--ease); }
.card__media { overflow: hidden; border-radius: var(--radius); position: relative; }
.card:hover .ph { transform: scale(1.04); }
.card__tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; padding: 0.4rem 0.7rem; background: var(--paper); color: var(--ink); border-radius: 999px; }
.card__tag--brass { background: var(--brass); }
.card__quick { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; transform: translateY(120%); opacity: 0; transition: transform var(--t-med) var(--ease), opacity var(--t-med); }
.card:hover .card__quick, .card:focus-within .card__quick { transform: translateY(0); opacity: 1; }
.card__quick .btn { width: 100%; justify-content: center; padding-block: 0.85rem; }
.card__body { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.card__body h3 { font-size: 1.35rem; }
.card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.card__sub { color: var(--stone); font-size: var(--fs-small); margin-top: 0.25rem; }
.card__price { font-family: var(--serif); font-size: 1.25rem; white-space: nowrap; }
.card__price small { font-family: var(--sans); font-size: 0.7rem; color: var(--stone); display: block; text-align: right; letter-spacing: 0.08em; text-transform: uppercase; }
.section--paper .card__sub, .section--paper .card__price small { color: #6f675c; }
.card--cat .card__body { align-items: center; }
.card--cat .card__body h3 { font-size: var(--fs-h3); }
.card--cat .count { font-size: var(--fs-small); color: var(--stone); letter-spacing: 0.1em; }
.card--cat .arr-circle { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-med) var(--ease); flex-shrink: 0; }
.card--cat:hover .arr-circle { background: var(--brass); color: var(--ink); transform: rotate(-45deg); }
.card--cat .arr-circle svg { width: 16px; height: 16px; }

/* Griglia categorie asimmetrica */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.cats > :nth-child(1) { grid-column: span 7; --ar: 4 / 3; }
.cats > :nth-child(2) { grid-column: span 5; --ar: 4 / 5; }
.cats > :nth-child(3) { grid-column: span 4; --ar: 1; }
.cats > :nth-child(4) { grid-column: span 4; --ar: 1; }
.cats > :nth-child(5) { grid-column: span 4; --ar: 1; }
@media (max-width: 900px) { .cats > * { grid-column: span 6 !important; } }
@media (max-width: 600px) { .cats > * { grid-column: span 12 !important; } }

/* ---------- Carosello orizzontale (best seller) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 0.6rem; }
.rail-nav button { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast); }
.rail-nav button:hover { background: var(--paper); color: var(--ink); }
.rail-nav svg { width: 16px; height: 16px; }
.section--paper .rail-nav button { box-shadow: inset 0 0 0 1px var(--line-dark); }
.section--paper .rail-nav button:hover { background: var(--ink); color: var(--paper); }

/* ---------- Editoriale / atelier ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__text h2 { font-size: var(--fs-h2); margin-block: 1rem 1.5rem; }
.split__text p + p { margin-top: 1rem; }
.split__text .lead { max-width: 48ch; }
.stack { position: relative; }
.stack .ph + .ph { position: absolute; width: 38%; right: 2%; bottom: -6%; box-shadow: 0 30px 60px rgba(0,0,0,0.5); --ar: 4 / 5; }
@media (max-width: 900px) { .stack .ph + .ph { right: 0; bottom: -2rem; } .stack { margin-bottom: 3rem; } }

/* ---------- Numeri ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.section--paper .stat { border-color: var(--line-dark); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 400; line-height: 1; }
.stat > span { font-size: var(--fs-small); color: var(--stone); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 0.5rem; }

/* ---------- Processo (timeline) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--brass); display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.step p { color: #4b463f; font-size: 0.95rem; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--rust); transition: width 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 200ms); }
.is-visible .step::after, .step.is-visible::after { width: 100%; }

/* ---------- Finiture ---------- */
.finishes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 800px) { .finishes { grid-template-columns: repeat(2, 1fr); } }
.finish { display: grid; gap: 0.8rem; text-align: left; }
.finish__swatch { aspect-ratio: 1; border-radius: 50%; width: 100%; max-width: 160px; margin-inline: auto; box-shadow: inset 0 -20px 40px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.4); transition: transform var(--t-med) var(--ease); position: relative; }
.finish:hover .finish__swatch { transform: scale(1.06); }
.finish__swatch::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(243,238,229,0.15); }
.finish--brunito .finish__swatch { background: radial-gradient(circle at 35% 30%, #4a4642, #1a1917 70%); }
.finish--nero .finish__swatch { background: radial-gradient(circle at 35% 30%, #3a3a3a, #0a0a0a 70%); }
.finish--corten .finish__swatch { background: radial-gradient(circle at 35% 30%, #b0623a, #5a2f1a 70%); }
.finish--ottone .finish__swatch { background: radial-gradient(circle at 35% 30%, #e0b062, #8c5f22 70%); }
.finish h3 { font-size: 1.25rem; text-align: center; }
.finish p { font-size: var(--fs-small); color: var(--stone); text-align: center; }

/* ---------- Contract banner ---------- */
.contract { position: relative; overflow: hidden; }
.contract .ph { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.contract__in { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 10rem); max-width: 640px; }
.contract__in h2 { font-size: var(--fs-h2); margin-block: 1rem 1.5rem; }
.contract__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,13,12,0.92) 0%, rgba(14,13,12,0.7) 50%, rgba(14,13,12,0.3) 100%); }
.logos { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--stone); }

/* ---------- Testimonianze ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { padding: 2rem; border: 1px solid var(--line-dark); display: grid; gap: 1.5rem; align-content: space-between; transition: transform var(--t-med) var(--ease), box-shadow var(--t-med); background: rgba(255,255,255,0.35); }
.quote:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(14,13,12,0.08); }
.quote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.quote p::before { content: "“"; color: var(--brass); font-size: 2rem; line-height: 0; margin-right: 0.2rem; }
.quote cite { font-style: normal; font-size: var(--fs-small); color: #6f675c; letter-spacing: 0.06em; text-transform: uppercase; }
.quote cite b { display: block; color: var(--ink); font-size: 0.95rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.stars { color: var(--brass); letter-spacing: 0.15em; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.section--paper .faq details { border-color: var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 1.4rem; font-family: var(--serif); font-size: 1.4rem; transition: color var(--t-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass); }
.faq summary .plus { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; flex-shrink: 0; transition: transform var(--t-med) var(--ease), background var(--t-fast); }
.section--paper .faq summary .plus { box-shadow: inset 0 0 0 1px var(--line-dark); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; width: 12px; height: 1.5px; background: currentColor; }
.faq summary .plus::after { transform: rotate(90deg); transition: transform var(--t-med) var(--ease); }
.faq details[open] summary .plus { transform: rotate(180deg); background: var(--brass); color: var(--ink); }
.faq details[open] summary .plus::after { transform: rotate(0); }
.faq .ans { padding-bottom: 1.6rem; color: var(--stone); max-width: 62ch; line-height: 1.7; }
.section--paper .faq .ans { color: #4b463f; }
.faq details .ans { animation: fade 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Newsletter ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); background: radial-gradient(80% 100% at 100% 0%, rgba(192,138,62,0.12), transparent 60%); }
@media (max-width: 800px) { .news { grid-template-columns: 1fr; } }
.news h2 { font-size: var(--fs-h3); margin-top: 0.6rem; }
.field { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.field input { flex: 1; background: none; border: 0; color: var(--paper); padding: 1rem 0; font: inherit; outline: none; }
.field input::placeholder { color: var(--stone); }
.field button { padding: 0 0.5rem; color: var(--brass); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; }
.field::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.field:focus-within::after { transform: scaleX(1); }

/* ---------- Footer ---------- */
.footer { background: #090807; padding-block: clamp(3rem, 6vw, 5rem) 2rem; font-size: var(--fs-small); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 1rem; font-weight: 700; }
.footer li + li { margin-top: 0.55rem; }
.footer a:hover { color: var(--brass); }
.footer__brand p { color: var(--stone); max-width: 36ch; margin-top: 1rem; line-height: 1.7; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; color: var(--stone); }
.footer__big { font-family: var(--serif); font-size: clamp(3rem, 12vw, 11rem); line-height: 0.9; color: rgba(243,238,229,0.06); letter-spacing: -0.02em; text-align: center; margin-top: 3rem; user-select: none; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.crumbs a:hover { color: var(--brass); }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.5; }

/* ---------- Page hero (interne) ---------- */
.phero { padding-top: clamp(8rem, 14vw, 11rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.phero h1 { font-size: var(--fs-h1); max-width: 16ch; margin-top: 1.5rem; }
.phero .lead { margin-top: 1.4rem; }
.phero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gutter); align-items: end; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } }
.answer { padding: 1.4rem 1.6rem; border-left: 2px solid var(--brass); background: rgba(192,138,62,0.06); font-size: 0.98rem; line-height: 1.65; color: var(--paper); }
.answer b { color: var(--brass); font-weight: 600; }

/* ---------- Filtri / toolbar categoria ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.2rem; border-block: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); position: sticky; top: 64px; background: var(--ink); z-index: 5; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.06em; box-shadow: inset 0 0 0 1px var(--line); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--brass); }
.chip.is-active { background: var(--paper); color: var(--ink); box-shadow: none; }
.sort { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--stone); }
.sort select { background: var(--ink-2); color: var(--paper); border: 1px solid var(--line); padding: 0.5rem 0.8rem; border-radius: 999px; font: inherit; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }
.products .card { transition: opacity var(--t-med), transform var(--t-med) var(--ease); }
.products .card.is-hidden { display: none; }
.subcats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (max-width: 700px) { .subcats { grid-template-columns: 1fr; } }
.subcat { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; transition: border-color var(--t-fast), background var(--t-fast); }
.subcat:hover { border-color: var(--brass); background: rgba(192,138,62,0.06); }
.subcat small { font-family: var(--sans); font-size: 0.72rem; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Pagina prodotto ---------- */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gutter); align-items: start; padding-top: 9.5rem; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; padding-top: 8rem; } }
.gallery { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; position: sticky; top: 6rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; position: static; } }
.thumbs { display: grid; gap: 0.6rem; align-content: start; }
@media (max-width: 900px) { .thumbs { grid-auto-flow: column; grid-auto-columns: 72px; order: 2; overflow-x: auto; } }
.thumbs button { border-radius: var(--radius); overflow: hidden; opacity: 0.5; transition: opacity var(--t-fast), box-shadow var(--t-fast); box-shadow: inset 0 0 0 1px transparent; }
.thumbs button.is-active, .thumbs button:hover { opacity: 1; }
.thumbs button.is-active { outline: 1px solid var(--brass); outline-offset: 2px; }
.thumbs .ph { --ar: 1; }
.main-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.main-img .ph { --ar: 4 / 5; transition: opacity var(--t-med), transform var(--t-slow) var(--ease); }
.main-img .ph.is-swapping { opacity: 0; transform: scale(1.02); }
.pinfo { display: grid; gap: 1.6rem; }
.pinfo h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 14ch; }
.price { display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-size: 2.2rem; }
.price small { font-family: var(--sans); font-size: 0.74rem; color: var(--stone); letter-spacing: 0.08em; text-transform: uppercase; }
.price .old { color: var(--stone); text-decoration: line-through; font-size: 1.3rem; }
.opt { display: grid; gap: 0.8rem; }
.opt__label { display: flex; justify-content: space-between; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.opt__label output { color: var(--paper); font-weight: 600; letter-spacing: 0.02em; text-transform: none; }
.swatches { display: flex; gap: 0.7rem; }
.swatch { width: 40px; height: 40px; border-radius: 50%; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.4); transition: transform var(--t-fast) var(--ease); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid transparent; transition: border-color var(--t-fast); }
.swatch[aria-checked="true"]::after, .swatch:hover::after { border-color: var(--brass); }
.swatch:hover { transform: scale(1.08); }
.swatch--brunito { background: radial-gradient(circle at 35% 30%, #4a4642, #1a1917 70%); }
.swatch--nero { background: radial-gradient(circle at 35% 30%, #3a3a3a, #0a0a0a 70%); }
.swatch--corten { background: radial-gradient(circle at 35% 30%, #b0623a, #5a2f1a 70%); }
.swatch--ottone { background: radial-gradient(circle at 35% 30%, #e0b062, #8c5f22 70%); }
.sizes { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.size { padding: 0.7rem 1.1rem; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.85rem; border-radius: 999px; transition: all var(--t-fast); }
.size[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; }
.qty { display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 52px; font-size: 1.2rem; }
.qty output { min-width: 32px; text-align: center; font-weight: 600; }
.buy .btn { justify-content: center; width: 100%; padding-block: 1.1rem; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--stone); }
.trust b { display: block; color: var(--paper); font-weight: 600; margin-bottom: 0.2rem; }
.trust svg { width: 18px; height: 18px; color: var(--brass); margin-bottom: 0.5rem; }
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding-block: 1.1rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; transition: transform var(--t-med) var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .ans { padding-bottom: 1.2rem; color: var(--stone); font-size: 0.95rem; line-height: 1.7; }
.acc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.acc td { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.acc td:first-child { color: var(--stone); width: 45%; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(14,13,12,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform var(--t-med) var(--ease); }
.sticky-buy.is-on { transform: translateY(0); }
.sticky-buy .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.sticky-buy .name { font-family: var(--serif); font-size: 1.1rem; }
.sticky-buy .name small { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--stone); }
.sticky-buy .btn { padding-block: 0.8rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 5.5rem; transform: translate(-50%, 20px); opacity: 0; z-index: 200; background: var(--paper); color: var(--ink); padding: 0.9rem 1.4rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; box-shadow: 0 20px 40px rgba(0,0,0,0.4); transition: transform var(--t-med) var(--ease), opacity var(--t-med); display: flex; gap: 0.7rem; align-items: center; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }

/* ---------- Form preventivo ---------- */
.form { display: grid; gap: 1.6rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 0.4rem; position: relative; }
.fld label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.fld input, .fld select, .fld textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); padding: 0.85rem 0; font: inherit; outline: none; transition: border-color var(--t-fast); border-radius: 0; }
.section--paper .fld input, .section--paper .fld select, .section--paper .fld textarea { color: var(--ink); border-color: var(--line-dark); }
.section--paper .fld label { color: #6f675c; }
.fld select option { color: var(--ink); }
.fld textarea { resize: vertical; min-height: 120px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--brass); }
.fld .err { font-size: 0.74rem; color: #d86b4a; display: none; }
.fld.is-invalid .err { display: block; }
.fld.is-invalid input, .fld.is-invalid textarea, .fld.is-invalid select { border-color: #d86b4a; }
.form__ok { display: none; padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem); background: var(--brass); color: var(--ink); text-align: center; scroll-margin-top: 110px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.form__ok.is-on { display: block; animation: fade 0.5s var(--ease); }
.form__ok:focus { outline: none; }
.form__ok h3 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; color: var(--ink); margin-bottom: 0.8rem; }
.form__ok p { font-weight: 600; color: var(--ink); line-height: 1.55; max-width: 44ch; margin: 0 auto; }
.form__ok .form__ok-sub { font-weight: 500; margin-top: 1.2rem; opacity: 0.85; }
.form__ok .form__wa { margin-top: 1rem; }
.form__ok .form__wa svg { flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; }
.check span { display: inline-block; padding: 0.6rem 1rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.82rem; cursor: pointer; transition: all var(--t-fast); }
.check:hover span { box-shadow: inset 0 0 0 1px var(--brass); }
.check input:checked + span { background: var(--paper); color: var(--ink); }
.section--paper .check span { box-shadow: inset 0 0 0 1px var(--line-dark); }
.section--paper .check input:checked + span { background: var(--ink); color: var(--paper); }
.consent { display: flex; align-items: center; gap: 0.7rem; font-size: 0.8rem; color: var(--stone); cursor: pointer; }
.consent input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--stone); border-radius: 2px; display: grid; place-items: center; cursor: pointer; margin: 0; flex-shrink: 0; transition: background var(--t-fast), border-color var(--t-fast); }
.consent input:checked { background: var(--brass); border-color: var(--brass); }
.consent input:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.fld input[type="file"] { border: 1px dashed var(--line); padding: 1rem; font-size: 0.85rem; color: var(--stone); cursor: pointer; }
.fld input[type="file"]::file-selector-button { font: inherit; background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 0.5rem 1rem; margin-right: 1rem; cursor: pointer; font-weight: 600; }
.crumbs { list-style: none; padding: 0; margin: 0; }
.check input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Portfolio (contract) ---------- */
.portfolio { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.portfolio > * { grid-column: span 3; --ar: 3 / 4; }
@media (max-width: 800px) { .portfolio > * { grid-column: span 6 !important; } }
@media (max-width: 520px) { .portfolio > * { grid-column: span 12 !important; } }
.pitem { position: relative; overflow: hidden; border-radius: var(--radius); }
.pitem .ph { transition: transform var(--t-slow) var(--ease); }
.pitem:hover .ph { transform: scale(1.05); }
.pitem__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem; background: linear-gradient(transparent, rgba(14,13,12,0.85)); transform: translateY(30%); opacity: 0; transition: transform var(--t-med) var(--ease), opacity var(--t-med); }
.pitem:hover .pitem__cap { transform: none; opacity: 1; }
.pitem__cap b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.pitem__cap span { font-size: 0.74rem; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase; }
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .audiences { grid-template-columns: 1fr; } }
.aud { padding: 2rem; border: 1px solid var(--line); display: grid; gap: 1rem; align-content: start; position: relative; overflow: hidden; transition: border-color var(--t-fast); }
.aud::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 100% 0%, rgba(192,138,62,0.14), transparent 60%); opacity: 0; transition: opacity var(--t-med); }
.aud:hover { border-color: var(--brass); }
.aud:hover::before { opacity: 1; }
.aud h3 { font-size: 1.6rem; }
.aud ul { display: grid; gap: 0.5rem; color: var(--stone); font-size: 0.92rem; }
.aud li { padding-left: 1.2rem; position: relative; }
.aud li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border: 1px solid var(--brass); transform: rotate(45deg); }
.aud .link { margin-top: 0.5rem; position: relative; z-index: 1; }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.is-visible { opacity: 1; transform: none; }
.rv--l { transform: translateX(-28px); }
.rv--scale { transform: scale(0.96); }
.rv--clip { clip-path: inset(0 0 100% 0); transform: none; transition: clip-path 1.2s var(--ease), opacity var(--t-slow); }
.rv--clip.is-visible { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; clip-path: none; }
  .hero h1 .word > span { transform: none; }
}

/* ---------- Foto reali (sostituiscono i placeholder .ph) ---------- */
.ph--img { background: #15140f; }
.ph--img::before { display: none; }
.ph--img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph--wide > img { object-position: center 40%; }
.card .ph--img > .card__img--alt { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
@media (hover: hover) { .card:hover .ph--img > .card__img--alt, .card:focus-within .ph--img > .card__img--alt { opacity: 1; } }
.card__price--ask { font-size: 1.05rem; }

/* ---------- Slider foto prodotto ---------- */
.main-img { min-width: 0; }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; aspect-ratio: 4 / 5; background: #15140f; -webkit-overflow-scrolling: touch; }
.slider::-webkit-scrollbar { display: none; }
.slider:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(14,13,12,0.55); color: var(--paper); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(243,238,229,0.25); transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast); }
.slider__nav:hover { background: var(--paper); color: var(--ink); }
.slider__nav--prev { left: 0.8rem; }
.slider__nav--next { right: 0.8rem; }
.slider__nav svg { width: 16px; height: 16px; }
.slider__count { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(14,13,12,0.6); color: var(--paper); font-size: 0.72rem; letter-spacing: 0.14em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slider__count b { font-weight: 600; }
.gallery.is-single { grid-template-columns: 1fr; }
.thumbs button { display: block; width: 100%; padding: 0; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
@media (max-width: 900px) { .thumbs button { width: 72px; } .slider__nav { width: 40px; height: 40px; } }
.buy.buy--ask { grid-template-columns: 1fr; }

/* ---------- Lista richiesta: pannello laterale e pagina richiesta ---------- */
.no-scroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 300; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(14,13,12,0.6); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--ink-2); color: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--t-med) var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,0.4); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.6rem; }
.drawer__x { font-size: 1.4rem; line-height: 1; }
.drawer__body { flex: 1; overflow-y: auto; padding: 0.5rem 1.5rem; }
.drawer__foot { padding: 1.4rem 1.5rem 1.6rem; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; }
.drawer__foot[hidden], [data-req-form-wrap][hidden] { display: none; }
.drawer__foot .btn { justify-content: center; }
.req-list { list-style: none; margin: 0; padding: 0; }
.req-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.req-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; background: var(--ink-3); }
.req-item__txt { display: grid; gap: 0.25rem; min-width: 0; }
.req-item__txt a { font-weight: 600; }
.req-item__txt a:hover { color: var(--brass); }
.req-item__txt small { color: var(--stone); font-size: 0.8rem; }
.req-item__ctl { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.4rem; }
.qty--sm button { width: 34px; height: 34px; font-size: 1rem; }
.qty--sm output { min-width: 24px; font-size: 0.88rem; }
.req-item__rm { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.req-item__rm:hover { color: var(--brass); }
.req-item__sum { font-weight: 600; white-space: nowrap; }
.req-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.req-total b { font-family: var(--serif, inherit); font-size: 1.5rem; color: var(--brass); }
.req-note { font-size: 0.8rem; color: var(--stone); line-height: 1.5; }
.req-empty { padding: 2rem 0; display: grid; gap: 0.8rem; color: var(--stone); }
.req-empty b { color: var(--paper); }
.req-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.req-page__list { position: sticky; top: 7rem; padding: 1.5rem; background: var(--ink-2); border: 1px solid var(--line); }
.req-page__list .req-total { margin-top: 1.2rem; }
.req-page__list .req-note { margin-top: 0.6rem; }
@media (max-width: 900px) { .req-page { grid-template-columns: 1fr; } .req-page__list { position: static; } }
@media (max-width: 480px) { .req-item { grid-template-columns: 56px 1fr; } .req-item img { width: 56px; height: 56px; } .req-item__sum { grid-column: 2; } }
.consent.is-invalid span { color: #d86b4a; }
.form__err { color: #d86b4a; font-size: 0.88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bolla WhatsApp ---------- */
.wa-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.35); transition: transform var(--t-fast) var(--ease), bottom var(--t-med) var(--ease); }
.wa-bubble svg { width: 30px; height: 30px; }
.wa-bubble:hover { transform: scale(1.06); }
.wa-bubble:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
/* sopra la barra d'acquisto fissa delle pagine prodotto */
body:has(.sticky-buy.is-on) .wa-bubble { bottom: 96px; }
.no-scroll .wa-bubble { display: none; }
@media (max-width: 640px) { .wa-bubble { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

.footer__credit { display: flex; justify-content: center; margin-top: 2rem; }
.footer__credit a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--stone); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__credit img { width: 20px; height: 20px; }

/* ---------- Tooltip (es. Mereta) ---------- */
.tip { position: relative; cursor: help; text-decoration: underline dotted rgba(192,138,62,0.7); text-underline-offset: 0.25em; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 0.6rem); transform: translate(-50%, 4px); width: max-content; max-width: min(22rem, 80vw); padding: 0.55rem 0.8rem; background: #090807; color: var(--paper, #f3eee5); border: 1px solid var(--line); border-radius: 4px; font-family: var(--sans); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.02em; line-height: 1.4; text-transform: none; text-align: center; white-space: normal; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.tip:hover::after, .tip:focus::after { opacity: 1; transform: translate(-50%, 0); }

.photo-note { margin-top: 1.5rem; max-width: 62ch; font-size: var(--fs-small); color: var(--stone); line-height: 1.6; padding-left: 1rem; border-left: 2px solid var(--brass); }
.photo-note b { color: var(--paper); font-weight: 600; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; z-index: 250; left: 1rem; bottom: 1rem; width: min(30rem, calc(100% - 2rem)); background: var(--ink-2); color: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 1.5rem 1.5rem 1.25rem; font-size: var(--fs-small); line-height: 1.6; animation: fade .4s var(--ease) both; }
.cookie__title { font-size: 1.5rem; margin-bottom: 0.6rem; padding-right: 2rem; }
.cookie__text { color: var(--paper-2); margin: 0; }
.cookie__text a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.cookie__x { position: absolute; top: 0.6rem; right: 0.7rem; width: 2.2rem; height: 2.2rem; background: none; border: 0; color: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.cookie__x:hover, .cookie__x:focus-visible { color: var(--brass); }
.cookie__prefs { display: grid; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; }
.cookie__opt input { margin-top: 0.3rem; accent-color: var(--brass); width: 1rem; height: 1rem; flex: none; }
.cookie__opt b { display: block; color: var(--paper); }
.cookie__opt span { color: var(--stone); }
.cookie__btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1.25rem; }
.cookie__btns .btn { justify-content: center; padding-inline: 0.5rem; font-size: 0.72rem; }
@media (max-width: 30rem) { .cookie { left: 0.5rem; bottom: 0.5rem; width: calc(100% - 1rem); padding: 1.25rem 1rem 1rem; } }
/* la bolla WhatsApp non deve coprire il banner */
.cookie ~ .wa-bubble, body:has(.cookie) .wa-bubble { opacity: 0; pointer-events: none; }

/* ---------- Pagine legali ---------- */
.legal > * { max-width: 74ch; }
.legal { color: var(--paper-2); line-height: 1.75; }
.legal h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 3rem 0 1rem; color: var(--paper); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 1.8rem 0 0.6rem; color: var(--paper); }
.legal p, .legal ul, .legal ol { margin: 0 0 1rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li + li { margin-top: 0.4rem; }
.legal a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.legal b { color: var(--paper); font-weight: 600; }
.legal .note { font-size: var(--fs-small); color: var(--stone); }
.legal .box { padding: 1.2rem 1.4rem; border-left: 2px solid var(--brass); background: rgba(192,138,62,0.06); margin: 1.5rem 0; }
.legal .table { width: 100%; overflow-x: auto; margin: 1rem 0 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 34rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.legal th { color: var(--paper); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.legal .modulo { white-space: pre-line; font-size: var(--fs-small); padding: 1.2rem 1.4rem; border: 1px dashed var(--line); }

/* ---------- hCaptcha ---------- */
.captcha__w { min-height: 78px; }
.captcha .err { margin-top: 0.4rem; }
.form__ok .form__wa::before { background: var(--paper); }
.form[hidden] { display: none; }
