/* ICON design solution · un solo foglio, a blocchi nell'ordine della pagina */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: fallback;
  font-weight: 100 900;
  src: url(/font/montserrat-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: fallback;
  font-weight: 100 900;
  src: url(/font/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- token ---------- */
:root {
  --oro: #a18354;                 /* misurato sull'originale */
  --su-oro: #141414;              /* testo sopra l'oro: 5,9:1 */
  --carta: #ffffff;
  --carta-rgb: 255 255 255;
  --carta-2: #f5f2ed;
  --inchiostro: #141414;
  --tenue: #5a5753;
  --linea: rgb(0 0 0 / .14);
  --passe: #f3efe9;                /* il passe-partout delle foto di prodotto */
  --pavimento: #efe9e1;           /* fondo fissato della pronta consegna, uguale nei due temi */
  --su-pavimento: #141414;
  --su-pavimento-tenue: #55504a;
  --notte: #0f0f0f;               /* piede e scene fotografiche */
  --su-notte: #f2efea;
  --su-notte-tenue: #b9b3aa;
  --errore: #b3261e;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --margine: clamp(16px, 4vw, 56px);
  --colonna: min(1240px, 100% - 2 * var(--margine));
  --testata: 72px;
  --curva: cubic-bezier(.22, .8, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --carta: #0f0f0f;
    --carta-rgb: 15 15 15;
    --carta-2: #1a1917;
    --inchiostro: #f2efea;
    --tenue: #b0aaa1;
    --linea: rgb(255 255 255 / .16);
    --passe: #1c1b19;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--testata); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--carta);
  color: var(--inchiostro);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:where(button, input, textarea) { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.colonna { width: var(--colonna); margin-inline: auto; }
.solo-lettori {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.salta {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 12px 16px; background: var(--oro); color: var(--su-oro);
  transform: translateY(-200%);
}
.salta:focus { transform: none; }

.titolo-sezione {
  font-weight: 200;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* bottone: oro pieno con testo scuro, come l'originale */
.bottone {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--oro); color: var(--su-oro);
  border: 0; border-radius: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .12s var(--curva), background-color .25s;
}
.bottone:active { transform: scale(.97); }
.bottone[aria-busy="true"] { opacity: .7; cursor: progress; }
.freccia { display: inline-block; transition: transform .3s var(--curva); }
.link-freccia {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; background: linear-gradient(var(--oro), var(--oro)) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .35s var(--curva);
}
@media (hover: hover) and (pointer: fine) {
  .bottone:hover { background: #b39364; }
  .bottone:hover .freccia, .link-freccia:hover .freccia { transform: translateX(5px); }
  .link-freccia:hover { background-size: 100% 1px; }
}

/* ---------- testata ---------- */
.testata {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--testata);
  display: flex; align-items: center; gap: clamp(8px, 2vw, 24px);
  padding: 0 var(--margine);
  color: var(--inchiostro);
  transition: color .3s, background-color .3s, opacity .5s;
}
.testata::before {             /* il vetro sta su un figlio, non sul contenitore fisso */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(var(--carta-rgb) / .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--linea);
  transition: opacity .3s;
}
.testata[data-sopra="scuro"] { color: #fff; }
.testata[data-sopra="scuro"]::before { opacity: 0; }
.testata[data-sopra="notte"] { color: var(--su-notte); }
.testata[data-sopra="notte"]::before { background: rgb(15 15 15 / .86); border-bottom-color: rgb(255 255 255 / .12); }
.testata[data-sopra="chiaro"] { color: var(--su-pavimento); }
.testata[data-sopra="chiaro"]::before { background: rgb(239 233 225 / .88); }
.testata__logo { display: flex; align-items: center; flex: none; width: 168px; min-height: 44px; margin-right: auto; }
.testata__logo svg { width: 100%; height: auto; aspect-ratio: 269 / 55; }
.testata__voci { display: flex; gap: 4px; }
.testata__voci a {
  display: flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 50% calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .3s var(--curva);
}
.testata__voci a:active { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .testata__voci a:hover { background-size: calc(100% - 20px) 1px; } }

.lingue { position: relative; }
.lingue summary {
  display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; cursor: pointer; list-style: none;
  border: 1px solid currentColor; border-radius: 22px; padding: 0 12px;
}
.lingue summary::-webkit-details-marker { display: none; }
.lingue ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 8px;
  background: var(--carta); color: var(--inchiostro); box-shadow: 0 18px 40px rgb(0 0 0 / .18);
}
.lingue a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: 16px; color: var(--inchiostro); }
.lingue a[aria-current] { font-weight: 600; }
.lingue a[aria-current]::before { content: ""; width: 6px; height: 6px; background: var(--oro); }
@media (hover: hover) and (pointer: fine) { .lingue a:hover { background: var(--carta-2); } }

.testata__menu {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.testata__menu-righe, .testata__menu-righe::before {
  display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--curva);
}
.testata__menu-righe { position: relative; transform: translateY(-3px); }
.testata__menu-righe::before { content: ""; position: absolute; top: 6px; }
.testata__menu[aria-expanded="true"] .testata__menu-righe { transform: rotate(45deg); }
.testata__menu[aria-expanded="true"] .testata__menu-righe::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 1100px) {
  .testata__logo { width: clamp(118px, 34vw, 140px); }
  .js .testata__menu { display: flex; }
  .js .testata__nav {
    position: fixed; inset: 0; z-index: -2;
    display: flex; align-items: center;
    padding: calc(var(--testata) + 24px) var(--margine) 40px;
    background: var(--notte); color: var(--su-notte);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .js .menu-aperto .testata__nav { opacity: 1; visibility: visible; transition: opacity .35s; }
  .js .menu-aperto { color: #fff; }
  .js .menu-aperto::before { opacity: 0; }
  .js .testata__voci { flex-direction: column; gap: 0; width: 100%; }
  .js .testata__voci a {
    min-height: 60px; padding: 0; font-size: clamp(26px, 7vw, 40px); font-weight: 200; letter-spacing: .02em;
    background-position: 0 calc(100% - 10px);
  }
  .no-js .testata { position: absolute; height: auto; flex-wrap: wrap; padding-block: 12px; }
  .no-js .testata__nav { order: 3; width: 100%; }
  .no-js .testata__voci { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .menu-aperto .testata__voci li { animation: sale .5s var(--curva) both; animation-delay: calc(var(--n, 0) * 45ms); }
}
@media (max-width: 379px) { .testata__menu-testo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .testata__menu { padding: 0 11px; } }
@keyframes sale { from { opacity: 0; transform: translateY(14px); } }

/* ---------- la soglia ---------- */
.soglia {
  position: relative; height: 100vh; height: 100svh; min-height: 520px;
  background: var(--notte); color: #fff; overflow: clip;
}
.soglia__finestra { position: absolute; inset: 0; }
.soglia__foto { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.soglia__finestra::after {           /* velo solo in basso, dove sta il testo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .7) 0%, rgb(0 0 0 / .45) 30%, rgb(0 0 0 / 0) 62%),
              linear-gradient(to right, rgb(0 0 0 / .6) 0%, rgb(0 0 0 / .42) 45%, rgb(0 0 0 / 0) 82%),
              linear-gradient(to bottom, rgb(0 0 0 / .66) 0, rgb(0 0 0 / .45) 70px, rgb(0 0 0 / 0) 190px);
}
.soglia__linea { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
.soglia__linea path { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.soglia__testo {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 9vh, 96px);
  display: grid; justify-items: start; gap: 18px;
}
.soglia__luogo { font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgb(255 255 255 / .9); }
.soglia__titolo {
  font-weight: 200; font-size: clamp(42px, 8.4vw, 118px); line-height: .98; letter-spacing: .005em;
  text-transform: uppercase; max-width: 11ch; margin-bottom: 10px;
}

/* intro: la linea del tetto si disegna, la casa diventa una finestra, la finestra si apre */
.intro .soglia { background: var(--notte); }
.intro .soglia__linea { display: block; }
.intro .soglia__finestra {
  --w: min(82vw, 72vh);   /* stessa formula in sito.js */
  clip-path: polygon(calc(50% - var(--w) / 2) calc(50% + var(--w) * .352), calc(50% - var(--w) / 2) calc(50% - var(--w) * .07),
                     50% calc(50% - var(--w) * .352), calc(50% + var(--w) / 2) calc(50% - var(--w) * .07),
                     calc(50% + var(--w) / 2) calc(50% + var(--w) * .352));
  opacity: 0;
  transition: opacity .7s ease, clip-path 1.25s var(--curva);
}
.intro .soglia__testo > *, .intro .testata { opacity: 0; }
.intro .soglia__linea path { animation: traccia 1.1s .15s cubic-bezier(.6, 0, .3, 1) forwards; }
.intro--casa .soglia__finestra { opacity: 1; }
.intro--apri .soglia__finestra { clip-path: polygon(0 100%, 0 0, 50% 0, 100% 0, 100% 100%); }
.intro--apri .soglia__linea { opacity: 0; transition: opacity .4s; }
@keyframes traccia { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.intro) .soglia__testo > * { animation: sale .9s var(--curva) both; }
  .js:not(.intro) .soglia__testo > :nth-child(2) { animation-delay: .1s; }
  .js:not(.intro) .soglia__testo > :nth-child(3) { animation-delay: .2s; }
}

/* ---------- attraversa la casa ---------- */
.casa { position: relative; background: var(--notte); color: #fff; }
.casa__stanza { position: relative; }
.casa__foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.casa__nome {
  position: absolute; left: var(--margine); bottom: 20px;
  font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 10px; background: rgb(0 0 0 / .55);
}
.casa__firma { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-block: 28px 40px; }
.casa__titolo { font-weight: 200; font-size: clamp(22px, 3vw, 36px); text-transform: uppercase; letter-spacing: .02em; }
.casa__luogo { color: var(--su-notte-tenue); }
.casa__tetto { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .casa { height: 560vh; }
  .js .casa__palco { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
  .js .casa__stanza { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
  .js .casa__stanza:first-child { opacity: 1; }
  .js .casa__foto { height: 100%; aspect-ratio: auto; transform: scale(var(--zoom, 1.08)); transform-origin: 50% 55%; will-change: transform; }
  .js .casa__nome {
    left: var(--margine); bottom: clamp(96px, 16vh, 150px);
    background: none; padding: 0;
    font-size: clamp(28px, 4.6vw, 64px); font-weight: 200; letter-spacing: .04em;
    text-shadow: 0 1px 24px rgb(0 0 0 / .45);
    opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .8s var(--curva);
  }
  .js .casa__stanza.attiva .casa__nome { opacity: 1; transform: none; }
  .js .casa__stanza::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgb(0 0 0 / .78) 0%, rgb(0 0 0 / .62) 24%, rgb(0 0 0 / .2) 46%, rgb(0 0 0 / 0) 62%),
                linear-gradient(to bottom, rgb(0 0 0 / .72) 0, rgb(0 0 0 / .5) 70px, rgb(0 0 0 / 0) 190px);
  }
  .js .casa__firma {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: 96px;
    opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--curva);
    pointer-events: none;
  }
  .js .casa.fine .casa__firma { opacity: 1; transform: none; pointer-events: auto; }
  .js .casa__tetto {
    display: block; position: absolute; z-index: 2;
    right: var(--margine); top: calc(var(--testata) + 24px); width: clamp(150px, 19vw, 270px);
    overflow: visible;
    filter: drop-shadow(0 1px 8px rgb(0 0 0 / .45));   /* stacca anche sulle foto chiare */
  }
  .casa__tetto path { fill: none; stroke-width: 2.6; stroke-linecap: square; }
  .casa__tetto-fondo { stroke: rgb(255 255 255 / .5); }
  .casa__tetto-passo { stroke: var(--oro); stroke-dasharray: 1; stroke-dashoffset: var(--passo, 1); }
}

/* ---------- sezioni chiare ---------- */
.progetti, .showroom { padding-block: clamp(72px, 12vw, 160px); }
.sezione__testa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 56px); }
.sezione__sotto { margin-top: 10px; color: var(--tenue); font-size: 16px; letter-spacing: .04em; }

/* striscia dei progetti: sta nella colonna, si trascina */
.striscia { position: relative; }
.striscia__binario {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: clamp(20px, 3vw, 44px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 40px;
}
.striscia__binario::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .striscia__binario { grid-auto-columns: calc((100% - 2 * clamp(20px, 3vw, 44px)) / 2.35); } }
.card-progetto { scroll-snap-align: start; min-width: 0; padding: 0 24px 26px 0; }
.card-progetto a { display: block; text-decoration: none; }
.card-progetto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--curva); }
.card-progetto__nome {
  display: block; margin-top: 34px;
  font-size: 16px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.card-progetto a:active img { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .card-progetto a:hover img { transform: scale(1.03); }
}

/* la cornice d'oro sfalsata: si disegna quando entra in vista */
.cornice { position: relative; display: block; }
.cornice > img { position: relative; z-index: 1; }
.cornice::before, .cornice::after { content: ""; position: absolute; background: var(--oro); }
.cornice::before { right: -22px; top: 26px; bottom: -22px; width: 3px; transform-origin: top; }
.cornice::after { left: -22px; right: -22px; bottom: -22px; height: 3px; transform-origin: right; }
.card-progetto .cornice { overflow: visible; }
.card-progetto .cornice img { clip-path: inset(0); }
@media (prefers-reduced-motion: no-preference) {
  .js .cornice::before { transform: scaleY(0); transition: transform .7s var(--curva); }
  .js .cornice::after { transform: scaleX(0); transition: transform .9s .45s var(--curva); }
  .js .cornice.disegnata::before { transform: none; }
  .js .cornice.disegnata::after { transform: none; }
}

.striscia__comandi { display: flex; gap: 12px; justify-content: flex-end; }
.tondo {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--linea); background: none; cursor: pointer; font-size: 20px;
  transition: border-color .25s, transform .12s var(--curva), opacity .25s;
}
.tondo:active { transform: scale(.94); }
.tondo:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .tondo:not(:disabled):hover { border-color: var(--oro); } }
.no-js .striscia__comandi { display: none; }

/* pronta consegna: i pezzi atterrano sul pavimento */
.pronta { background: var(--pavimento); color: var(--su-pavimento); padding-block: clamp(72px, 12vw, 160px); }
.pronta .sezione__sotto { color: var(--su-pavimento-tenue); }
.pronta__pavimento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; align-items: end; }
@media (min-width: 900px) { .pronta__pavimento { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; } }
.pezzo a { display: grid; gap: 18px; text-decoration: none; justify-items: center; text-align: center; }
.pezzo__foto { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: clamp(120px, 15vw, 200px); background: var(--pavimento); }
.pezzo__foto img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--curva); }
.pezzo__foto::after {          /* l'ombra a terra */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -10px; height: 18px; z-index: -1;
  background: radial-gradient(closest-side, rgb(60 45 25 / .28), rgb(60 45 25 / 0));
  transition: transform .6s var(--curva), opacity .6s;
}
.pezzo__nome { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pezzo__marca { display: block; margin-top: 4px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--su-pavimento-tenue); }
.pezzo a:active .pezzo__foto img { transform: translateY(2px); }
@media (hover: hover) and (pointer: fine) {
  .pezzo a:hover .pezzo__foto img { transform: translateY(-8px); }
  .pezzo a:hover .pezzo__foto::after { transform: scaleX(.85); opacity: .7; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .pezzo:not(.atterrato) .pezzo__foto img { transform: translateY(-46px); opacity: 0; }
  .js .pezzo:not(.atterrato) .pezzo__foto::after { transform: scale(.4); opacity: 0; }
  .js .pezzo .pezzo__foto img { transition: transform .9s cubic-bezier(.3, 1.35, .5, 1) calc(var(--n) * 110ms), opacity .4s calc(var(--n) * 110ms); }
  .js .pezzo .pezzo__foto::after { transition: transform .9s var(--curva) calc(var(--n) * 110ms + 120ms), opacity .6s calc(var(--n) * 110ms + 120ms); }
}

/* brand: nastro lento */
.brand { padding-block: clamp(56px, 8vw, 100px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--linea); }
.nastro {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.nastro__fila { display: flex; flex: none; align-items: center; gap: clamp(40px, 6vw, 88px); padding-right: clamp(40px, 6vw, 88px); }
.nastro__logo { height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; opacity: .8; }
@media (prefers-color-scheme: dark) { .nastro__logo { filter: grayscale(1) invert(1); mix-blend-mode: screen; } }
@media (prefers-reduced-motion: no-preference) {
  .nastro__fila { animation: nastro 46s linear infinite; }
  .nastro:hover .nastro__fila { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .nastro { flex-wrap: wrap; justify-content: center; } .nastro__fila[aria-hidden] { display: none; } .nastro__fila { flex-wrap: wrap; justify-content: center; row-gap: 24px; } }
@keyframes nastro { to { transform: translateX(-100%); } }
.brand__tutti { margin-top: 24px; display: flex; justify-content: flex-end; }

/* showroom */
.showroom__linea { display: flex; align-items: flex-end; margin-bottom: clamp(28px, 4vw, 52px); }
.showroom__base { flex: 1; height: 2px; background: var(--oro); transform-origin: left; }
.showroom__tetto { flex: none; width: clamp(72px, 9vw, 120px); overflow: visible; }
.showroom__tetto path { fill: none; stroke: var(--oro); stroke-width: .62; }
@media (prefers-reduced-motion: no-preference) {
  .js .showroom__base { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.6, 0, .25, 1); }
  .js .showroom__tetto path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s 1.15s var(--curva); }
  .js .showroom__linea.disegnata .showroom__base { transform: none; }
  .js .showroom__linea.disegnata .showroom__tetto path { stroke-dashoffset: 0; }
}
.showroom__sedi { display: grid; gap: 40px; margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 760px) { .showroom__sedi { grid-template-columns: 1fr 1fr; } }
.sede { display: grid; gap: 10px; align-content: start; }
.sede__nome { font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tenue); }
.sede__orari { color: var(--tenue); }
.sede__azioni { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.sede__azioni a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-underline-offset: 5px; text-decoration-color: var(--oro); }

/* ---------- piede e modulo ---------- */
.piede { background: var(--notte); color: var(--su-notte); padding-block: clamp(72px, 10vw, 140px) 40px; }
.piede__griglia { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
@media (min-width: 900px) { .piede__griglia { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 96px; } }
.modulo { display: grid; gap: 18px; margin-top: 32px; max-width: 620px; }
.campo { display: grid; gap: 6px; }
.campo > span { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--su-notte-tenue); }
.campo input, .campo textarea {
  width: 100%; min-height: 52px; padding: 12px 0;
  background: none; border: 0; border-bottom: 1px solid rgb(255 255 255 / .35); border-radius: 0;
  color: var(--su-notte); font-size: 18px; transition: border-color .25s;
}
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--oro); }
.campo input:focus-visible, .campo textarea:focus-visible { box-shadow: 0 2px 0 var(--oro); }
.spunta { position: relative; display: flex; align-items: center; gap: 14px; min-height: 48px; font-size: 16px; cursor: pointer; }
.spunta input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.spunta__casella { flex: none; width: 22px; height: 22px; border: 1.5px solid var(--su-notte-tenue); display: grid; place-items: center; }
.spunta__casella::after { content: ""; width: 10px; height: 5px; border: solid var(--su-oro); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); opacity: 0; }
.spunta input:checked + .spunta__casella { background: var(--oro); border-color: var(--oro); }
.spunta input:checked + .spunta__casella::after { opacity: 1; }
.spunta input:focus-visible + .spunta__casella { outline: 2px solid var(--oro); outline-offset: 3px; }
.modulo__documenti a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; color: var(--su-notte-tenue); text-underline-offset: 5px; }
.modulo__fondo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.modulo__esito { font-size: 16px; color: var(--su-notte); }
.modulo__esito--errore { color: #ff9b8f; }
.modulo__esca { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.bottone.inviato { background: var(--su-notte); }

.piede__recapiti { display: grid; gap: 24px; align-content: start; }
.piede__logo { width: 220px; height: auto; aspect-ratio: 269 / 55; color: #fff; }
.piede__righe { display: grid; gap: 4px; font-size: 18px; overflow-wrap: anywhere; }
.piede__righe a, .sede__azioni [data-tel] a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.piede__social { display: flex; gap: 8px; margin-left: -10px; }
.piede__social a { display: grid; place-items: center; width: 44px; height: 44px; }
.piede__social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.piede__social .pieno { fill: currentColor; stroke: none; }
.piede__social a[aria-label="Facebook"] svg, .piede__social a[aria-label="Pinterest"] svg { fill: currentColor; stroke: none; }
.piede__legale { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; color: var(--su-notte-tenue); }
.piede__legale a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-underline-offset: 5px; }

/* ---------- indice sotto il pollice ---------- */
.indice { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; justify-items: end; gap: 10px; }
.indice[hidden] { display: none; }
.indice__bottone {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--oro); color: var(--su-oro); cursor: pointer;
  box-shadow: 0 10px 28px rgb(0 0 0 / .25); transition: transform .12s var(--curva);
}
.indice__bottone:active { transform: scale(.93); }
.indice__bottone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.indice__pannello {
  min-width: 240px; padding: 8px; background: var(--carta); color: var(--inchiostro);
  box-shadow: 0 18px 44px rgb(0 0 0 / .22); max-height: 70dvh; overflow: auto; overscroll-behavior: contain;
}
.indice__pannello a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; text-decoration: none; font-size: 16px; }
.indice__pannello a[aria-current] { font-weight: 600; box-shadow: inset 3px 0 var(--oro); }
.indice__pannello a:last-child { border-top: 1px solid var(--linea); }
@media (hover: hover) and (pointer: fine) { .indice__pannello a:hover { background: var(--carta-2); } }

/* ---------- pagina vuota ---------- */
.vuoto { min-height: 80vh; display: grid; align-items: center; padding-block: calc(var(--testata) + 64px) 96px; }
.vuoto .colonna { display: grid; justify-items: start; gap: 32px; }
.vuoto__casa { width: 220px; overflow: visible; }
.vuoto__casa path { fill: none; stroke: var(--oro); stroke-width: 1.4; }

/* ---------- comparse ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-compare]:not(.visto) { opacity: 0; transform: translateY(24px); }
  .js [data-compare] { transition: opacity .9s, transform 1s var(--curva); }
}

/* ---------- indice dei progetti ---------- */
.titolo-pagina {
  font-weight: 200; font-size: clamp(44px, 8vw, 112px); line-height: 1; text-transform: uppercase; letter-spacing: .005em;
}
.indice-progetti { padding-block: calc(var(--testata) + clamp(40px, 8vw, 110px)) clamp(80px, 12vw, 160px); }
.indice-progetti__testa { display: flex; align-items: flex-start; gap: 16px; margin-bottom: clamp(40px, 6vw, 88px); }
.indice-progetti__conta { font-size: 16px; font-weight: 600; color: var(--tenue); letter-spacing: .1em; }
.griglia-progetti { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 7vw, 104px) clamp(32px, 5vw, 80px); }
@media (min-width: 760px) {
  .griglia-progetti { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .griglia-progetti > :nth-child(even) { margin-top: clamp(80px, 12vw, 180px); }   /* il passo sfalsato */
}
.card-progetto--griglia { padding: 0 24px 0 0; }
.card-progetto__luogo { display: block; margin-top: 4px; font-size: 15px; color: var(--tenue); letter-spacing: .04em; }

/* ---------- pagina progetto ---------- */
.progetto-soglia { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: var(--notte); color: #fff; overflow: clip; }
.progetto-soglia__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.progetto-soglia::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / .72) 0%, rgb(0 0 0 / .4) 32%, rgb(0 0 0 / 0) 60%),
              linear-gradient(to right, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .3) 45%, rgb(0 0 0 / 0) 78%),
              linear-gradient(to bottom, rgb(0 0 0 / .66) 0, rgb(0 0 0 / .45) 70px, rgb(0 0 0 / 0) 190px);
}
.progetto-soglia__testo { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(40px, 10vh, 110px); display: grid; gap: 16px; }
.progetto-soglia__titolo { font-weight: 200; font-size: clamp(40px, 7.4vw, 104px); line-height: 1; text-transform: uppercase; max-width: 14ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .progetto-soglia__foto { animation: avvicina 2.4s var(--curva) both; }
  .js .progetto-soglia__testo > * { animation: sale .9s .25s var(--curva) both; }
  .js .progetto-soglia__testo > :nth-child(2) { animation-delay: .35s; }
}
@keyframes avvicina { from { transform: scale(1.06); } }

.scheda { padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--linea); }
.scheda__righe { display: grid; gap: 24px 48px; margin-block: 0; }
@media (min-width: 760px) { .scheda__righe { grid-template-columns: auto auto minmax(0, 1fr); } }
.scheda dt { font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tenue); margin-bottom: 6px; }
.scheda dd { margin: 0; font-size: 18px; }
.scheda__con { color: var(--tenue); }
.scheda__marchi a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-color: var(--oro); text-underline-offset: 5px; }

/* la passeggiata: piena, coppia, larga a sinistra, coppia, larga a destra */
.passeggiata { display: grid; gap: clamp(56px, 9vw, 140px); padding-block: clamp(56px, 9vw, 140px); }
.passo__figura img { width: 100%; height: auto; }
.passo--piena .passo__figura img { height: min(100vh, 56.25vw); object-fit: cover; }
.passo--coppia, .passo--larga-sx, .passo--larga-dx { width: var(--colonna); margin-inline: auto; }
.passo--coppia { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 760px) {
  .passo--coppia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passo--coppia > :nth-child(2) { margin-top: clamp(48px, 8vw, 120px); }
  .passo--larga-sx .passo__figura { width: 72%; }
  .passo--larga-dx .passo__figura { width: 72%; margin-left: auto; }
}
.passo--larga-sx .cornice, .passo--larga-dx .cornice { margin: 0 22px 22px 0; }

/* il video arriva solo al tocco */
.video { display: grid; gap: 48px; padding-block: 0 clamp(56px, 9vw, 140px); justify-items: center; }
.video__riquadro { position: relative; width: min(100%, 980px); aspect-ratio: 16 / 9; background: var(--notte); overflow: hidden; }
.video__riquadro--verticale { width: min(100%, 420px); aspect-ratio: 9 / 16; }
.video__poster, .video__riquadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__poster { filter: brightness(.5); }
.video__avvia::before { content: ""; position: absolute; inset: 15% 5%; z-index: -1; background: radial-gradient(closest-side, rgb(0 0 0 / .5), rgb(0 0 0 / 0)); }
.video__avvia { position: absolute; inset: 0; z-index: 0; isolation: isolate; display: grid; place-items: center; align-content: center; gap: 18px; color: #fff; text-decoration: none; text-align: center; }
.video__tasto { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--oro); transition: transform .3s var(--curva); }
.video__tasto svg { width: 30px; fill: var(--su-oro); margin-left: 4px; }
.video__testo { display: grid; gap: 6px; font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.video__testo small { font-size: 14px; font-weight: 400; letter-spacing: .04em; text-transform: none; color: rgb(255 255 255 / .88); }
.video__avvia:active .video__tasto { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .video__avvia:hover .video__tasto { transform: scale(1.08); } }

/* la porta verso il progetto dopo */
.prossimo { position: relative; display: block; height: min(80vh, 760px); min-height: 420px; overflow: hidden; color: #fff; text-decoration: none; background: var(--notte); }
.prossimo__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.78); transition: transform 1.2s var(--curva), filter .6s; }
.prossimo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / .8) 0%, rgb(0 0 0 / .55) 34%, rgb(0 0 0 / 0) 66%),
              linear-gradient(to right, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .3) 50%, rgb(0 0 0 / 0) 80%);
}
.prossimo__testo { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(40px, 8vh, 96px); display: grid; gap: 12px; }
.prossimo__nome { font-weight: 200; font-size: clamp(36px, 6vw, 84px); line-height: 1.02; text-transform: uppercase; }
.prossimo:active .prossimo__foto { transform: scale(1.01); }
@media (hover: hover) and (pointer: fine) {
  .prossimo:hover .prossimo__foto { transform: scale(1.04); filter: brightness(.68); }
  .prossimo:hover .freccia { transform: translateX(10px); }
}

/* ---------- la mappa dello showroom: dati OpenStreetMap ---------- */
.showroom__griglia { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) {
  .showroom__griglia { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
  .showroom__griglia .showroom__sedi { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
}
.mappa { position: relative; width: 100%; background: var(--carta-2); overflow: hidden; }
.mappa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mappa path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mappa__strade path { stroke: var(--linea); stroke-width: 1.2; }
.mappa__grandi path { stroke: var(--tenue); stroke-width: 1.6; opacity: .55; }
.mappa__costa path { stroke: var(--oro); stroke-width: 2.6; }
.mappa__punto { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--inchiostro); box-shadow: 0 0 0 5px rgb(161 131 84 / .35); }
.mappa__etichetta {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 4px 10px; background: var(--carta); color: var(--inchiostro);
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.mappa__punto--magazzino .mappa__etichetta { left: auto; right: 22px; }
.mappa__riferimento { position: absolute; transform: translate(10px, -50%); font-size: 14px; color: var(--tenue); white-space: nowrap; }
.mappa__riferimento::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--tenue); }
.mappa__fonte { position: absolute; left: 6px; bottom: 4px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 14px; color: var(--tenue); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .mappa path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.55, 0, .25, 1); }
  .js .mappa__grandi path { transition-delay: .3s; }
  .js .mappa__strade path { transition-delay: .6s; }
  .js .mappa.disegnata path { stroke-dashoffset: 0; }
  .js .mappa:not(.disegnata) .mappa__punto, .js .mappa:not(.disegnata) .mappa__riferimento { opacity: 0; transform: scale(.4); }
  .js .mappa .mappa__punto { transition: opacity .5s 2.2s, transform .7s 2.2s cubic-bezier(.3, 1.5, .5, 1); }
  .js .mappa .mappa__punto--magazzino { transition-delay: 2.5s; }
  .js .mappa .mappa__riferimento { transition: opacity .6s 2.8s; transform: translate(10px, -50%); }
  .js .mappa.disegnata .mappa__punto { animation: battito 2.4s 3s ease-out infinite; }
}
@keyframes battito { 0% { box-shadow: 0 0 0 0 rgb(161 131 84 / .6); } 70%, 100% { box-shadow: 0 0 0 16px rgb(161 131 84 / 0); } }

/* ---------- «dimmi di più»: il racconto lungo, solo a chi lo chiede ---------- */
.racconto { margin-top: clamp(20px, 3vw, 32px); }
.racconto__link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue);
  transition: color .25s;
}
.racconto__link::-webkit-details-marker { display: none; }
.racconto__link > span:not(.racconto__freccia) { background: linear-gradient(var(--oro), var(--oro)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.racconto__freccia { color: var(--oro); transition: transform .45s var(--curva); }
.racconto__meno, .racconto[open] .racconto__piu { display: none; }
.racconto[open] .racconto__meno { display: inline; }
.racconto[open] .racconto__freccia { transform: rotate(180deg); }
.racconto__link:active { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .racconto__link:hover { color: var(--inchiostro); } }
.racconto__testo { max-width: 68ch; padding: clamp(24px, 3vw, 40px) 0 clamp(8px, 2vw, 24px); overflow: hidden; }
.racconto__testo p { margin-bottom: 1.1em; font-size: 18px; line-height: 1.75; }
.racconto__testo h3 {
  margin: 1.8em 0 .6em; font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--tenue);
}
.racconto__testo h3:first-child { margin-top: 0; }
.racconto__testo strong { font-weight: 600; }
.racconto__elenco { display: grid; margin-bottom: 1.4em; border-top: 1px solid var(--linea); }
.racconto__elenco li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 16px; }
.racconto__elenco li span:last-child { color: var(--tenue); text-align: right; }

/* ---------- catalogo ---------- */
.pagina-catalogo { padding-block: calc(var(--testata) + clamp(32px, 6vw, 88px)) clamp(72px, 10vw, 140px); }
.pagina-pronta { background: var(--pavimento); color: var(--su-pavimento); }
.pagina-pronta .sezione__sotto { color: var(--su-pavimento-tenue); }
.briciole { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-bottom: 12px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--tenue); }
.briciole a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .briciole a:hover { color: var(--inchiostro); } }

/* le stanze del catalogo */
.stanze { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (min-width: 600px) { .stanze { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stanze { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stanza a { display: block; text-decoration: none; }
.stanza__foto {   /* lo stesso passe-partout dei prodotti */
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--passe); border: 1px solid var(--linea); transition: border-color .4s;
}
.stanza__foto img {
  position: absolute; left: 7%; top: 7%; width: 86%; height: 86%; object-fit: cover;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 28px -16px rgb(0 0 0 / .38);
  transition: transform .9s var(--curva);
}
@media (hover: hover) and (pointer: fine) { .stanza a:hover .stanza__foto { border-color: var(--oro); } }
.stanza__nome { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; font-size: 18px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.stanza__conta { font-size: 14px; font-weight: 500; color: var(--tenue); letter-spacing: .06em; }
.stanza a:active img { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .stanza a:hover img { transform: scale(1.02); } }

/* filtri: sottocategorie e marchi */
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filtri--marchi { margin-bottom: clamp(32px, 4vw, 56px); }
.filtro {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--linea); border-radius: 22px;
  font-size: 14px; font-weight: 500; letter-spacing: .06em; text-decoration: none; transition: border-color .25s, background-color .25s;
}
.filtro[aria-current] { background: var(--inchiostro); color: var(--carta); border-color: var(--inchiostro); }
.filtro:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .filtro:not([aria-current]):hover { border-color: var(--oro); } }

/* la griglia dei prodotti: la seconda foto arriva al passaggio */
.griglia-prodotti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(14px, 2.4vw, 32px); }
@media (min-width: 700px) { .griglia-prodotti { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .griglia-prodotti { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-prodotto a { display: grid; gap: 4px; text-decoration: none; }
/* il passe-partout: fondo caldo, un filo attorno, la foto sollevata come una stampa */
.card-prodotto__foto {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px;
  background: var(--passe); border: 1px solid var(--linea); transition: border-color .4s;
}
.card-prodotto__foto img {
  position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: cover;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 10px 24px -14px rgb(0 0 0 / .35);
  transition: opacity .6s, transform .9s var(--curva);
}
@media (hover: hover) and (pointer: fine) { .card-prodotto a:hover .card-prodotto__foto { border-color: var(--oro); } }
.card-prodotto__seconda { opacity: 0; }
.card-prodotto__nome { font-size: 16px; font-weight: 600; line-height: 1.35; }
.card-prodotto__marchio { font-size: 14px; color: var(--tenue); }
.pagina-pronta .card-prodotto__marchio { color: var(--su-pavimento-tenue); }
.pagina-pronta { --passe: #f8f5f0; --linea: rgb(0 0 0 / .1); }
.card-prodotto a:active .card-prodotto__foto img { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .card-prodotto a:hover .card-prodotto__seconda { opacity: 1; }
  .card-prodotto a:hover .card-prodotto__foto img { transform: scale(1.02); }
}
.pastiglia {
  position: absolute; left: 8px; top: 8px; z-index: 1; padding: 4px 10px;
  background: var(--oro); color: var(--su-oro); font-size: 14px; font-weight: 600; letter-spacing: .06em;
}
.pastiglia--testo { position: static; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; }

/* il muro dei marchi */
.muro-marchi { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--linea); }
.pagina-marchi .muro-marchi { border-top: 0; padding-top: calc(var(--testata) + clamp(32px, 6vw, 88px)); }
.muro-marchi__elenco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: clamp(28px, 4vw, 56px); background: var(--linea); border: 1px solid var(--linea); }
@media (min-width: 600px) { .muro-marchi__elenco { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .muro-marchi__elenco { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.marchio { position: relative; display: grid; place-items: center; height: 100%; aspect-ratio: 3 / 2; padding: 12px; background: var(--carta); text-decoration: none; }
.marchio .marchio__logo { position: absolute; inset: 22% 16%; width: 68%; height: 56%; }
.marchio__logo { object-fit: contain; filter: grayscale(1); mix-blend-mode: multiply; opacity: .78; transition: opacity .3s, transform .5s var(--curva); }
@media (prefers-color-scheme: dark) { .marchio__logo { filter: grayscale(1) invert(1); mix-blend-mode: screen; } }
.marchio__nome { min-width: 0; font-size: clamp(14px, 3.6vw, 16px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; }
.marchio__conta { position: absolute; right: 10px; bottom: 8px; font-size: 14px; color: var(--tenue); opacity: 0; transition: opacity .3s; }
.marchio:active { background: var(--carta-2); }
@media (hover: hover) and (pointer: fine) {
  .marchio:hover .marchio__logo { opacity: 1; transform: scale(1.06); }
  .marchio:hover .marchio__conta { opacity: 1; }
}
.testa-marchio { align-items: center; }
.testa-marchio__logo { display: block; width: clamp(180px, 26vw, 320px); }
.testa-marchio__logo .marchio__logo { width: 100%; height: auto; opacity: 1; }

/* la scheda prodotto */
.prodotto { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: var(--testata); }
@media (min-width: 1100px) {
  .prodotto { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
  .prodotto__scheda { position: sticky; top: var(--testata); }
}
.prodotto__galleria { position: relative; }
.prodotto__foto { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--passe); }
.prodotto__foto::-webkit-scrollbar { display: none; }
.prodotto__foto li { scroll-snap-align: start; padding: clamp(18px, 5vw, 56px) clamp(18px, 5vw, 56px) clamp(32px, 6vw, 56px); }
.prodotto__foto img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; outline: 1px solid var(--linea); outline-offset: clamp(8px, 1.4vw, 14px);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 18px 40px -22px rgb(0 0 0 / .4);
}
@media (min-width: 1100px) {
  .prodotto__foto { grid-auto-flow: row; overflow: visible; gap: 0; }
  .prodotto__foto li + li { padding-top: 0; }
  .prodotto__punti { display: none; }
}
.prodotto__punti { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.prodotto__punti span { width: 7px; height: 7px; border-radius: 50%; background: rgb(0 0 0 / .25); transition: background-color .3s, transform .3s; }
.prodotto__punti .acceso { background: var(--oro); transform: scale(1.3); }
.prodotto__scheda { display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 56px) var(--margine) clamp(56px, 6vw, 80px); }
.prodotto__nome { font-weight: 200; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; text-transform: uppercase; }
.prodotto__marchio a { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; color: var(--tenue); text-decoration-color: var(--oro); text-underline-offset: 5px; }
.prodotto__scheda .bottone { margin-top: 10px; }
.prodotto__scheda .racconto { margin-top: 8px; }
.prodotto__scheda .racconto__testo { padding-top: 16px; }
.vicini { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--linea); }
.vicini .titolo-sezione { margin-bottom: clamp(28px, 4vw, 48px); }

/* il prodotto entra nel modulo */
.preventivo { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid rgb(255 255 255 / .22); }
.preventivo[hidden] { display: none; }
.preventivo__foto { width: 72px; height: 54px; object-fit: cover; background: #fff; flex: none; }
.preventivo__testo { flex: 1; font-size: 16px; line-height: 1.35; }
.preventivo__per { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--su-notte-tenue); }
.preventivo__marchio { display: block; color: var(--su-notte-tenue); font-size: 14px; }
.preventivo__togli { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--su-notte); font-size: 26px; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .preventivo.arrivato { animation: arriva .8s var(--curva) both; }
}
@keyframes arriva { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
