/* =============================================================================
   PUROTATTO — prototipo e-commerce · sistema visivo (unico foglio condiviso)
   Avorio, foto a filo separate da hairline, un solo livello di testo sulle foto:
   titoli PP Hatton Ultralight (maiuscolo, tracking .17em), UI Neue Montreal.
   ============================================================================= */

/* 1 · Font ------------------------------------------------------------------ */
@font-face {
  font-family: "PP Hatton";
  src: url("../assets/fonts/PPHatton-Ultralight.otf") format("opentype");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("../assets/fonts/NeueMontreal-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* 2 · Token ----------------------------------------------------------------- */
:root {
  --avorio: #F6F2EB;
  --carta: #EFE9DF;
  --inchiostro: #2A2324;
  --pietra: #9A8D80;
  --bruno: #60504A;
  --sabbia: #E9DFD1;
  --bianco: #FFFFFF;
  --linea: rgba(42, 35, 36, .14);
  --f-titolo: "PP Hatton", "Didot", "Times New Roman", serif;
  --f-ui: "Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 2.4vw, 44px);
  --hdr: 72px;
  --freccia: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M0 5h22.4M18.2 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}
@media (max-width: 1099px) { :root { --hdr: 60px; } }

/* 3 · Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--avorio); color: var(--inchiostro);
  font-family: var(--f-ui); font-weight: 500; font-size: 15px; line-height: 1.6;
  font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; padding: 0; }
[id] { scroll-margin-top: var(--hdr); }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::selection { background: var(--inchiostro); color: var(--avorio); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.salta {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px;
  background: var(--inchiostro); color: var(--avorio); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.salta:focus { transform: none; }

/* 4 · Tipografia ------------------------------------------------------------ */
.titolo {
  font-family: var(--f-titolo); font-weight: 200; text-transform: uppercase;
  letter-spacing: .17em; line-height: 1.06;
}
.titolo--centro { text-align: center; padding-left: .17em; }          /* compensa il tracking dell'ultima lettera */
.etichetta { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.35; }
.logo-svg { fill: currentColor; width: 100%; height: auto; }

/* 5 · Header ---------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--bianco);
  background: rgba(246, 242, 235, 0); border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.hdr.is-scrolled { background: var(--avorio); color: var(--inchiostro); border-bottom-color: var(--linea); }
.hdr-in {
  height: var(--hdr); padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
}
.hdr-sx { display: flex; align-items: center; }
.hdr-dx { display: flex; align-items: center; justify-content: flex-end; gap: clamp(22px, 2.6vw, 44px); }
.hdr-nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); }
.hdr-nav a, .hdr-nav button, .hdr-borsa {
  position: relative; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  padding: 10px 0; white-space: nowrap;
}
.hdr-nav a::after, .hdr-nav button::after, .hdr-borsa::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.hdr-nav a:hover::after, .hdr-nav button:hover::after, .hdr-borsa:hover::after, .hdr-nav [aria-current="page"]::after, .hdr-borsa[aria-current="page"]::after { transform: scaleX(1); }
.hdr-logo { display: block; width: clamp(190px, 16vw, 300px); color: inherit; }
.hdr-borsa.is-pulse { animation: pulse .6s var(--ease); }
@keyframes pulse { 40% { opacity: .35; } }

.burger { display: none; position: relative; width: 30px; height: 30px; margin-left: -4px; }
.burger span {
  position: absolute; left: 4px; right: 4px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:first-child { top: 11px; }
.burger span:last-child { top: 18px; }
.menu-aperto .burger span:first-child { top: 14.5px; transform: rotate(45deg); }
.menu-aperto .burger span:last-child { top: 14.5px; transform: rotate(-45deg); }

/* Scheda prodotto (desktop): a pagina ferma il menu di destra sta sulla colonna avorio → inchiostro */
@media (min-width: 1000px) {
  .pagina-prodotto .hdr:not(.is-scrolled) .hdr-dx { color: var(--inchiostro); }
}

/* Menu mobile: overlay avorio con le voci grandi */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--avorio); color: var(--inchiostro);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hdr) + 36px) var(--gutter) 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.menu-aperto .menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu-lista li { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu-aperto .menu-lista li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 80ms); }
.menu-lista a {
  display: block; padding: 6px 0; font-family: var(--f-titolo); font-weight: 200; text-transform: uppercase;
  letter-spacing: .17em; font-size: clamp(30px, 8.4vw, 48px); line-height: 1.25;
}
.menu-lista a[aria-current="page"] { color: var(--pietra); }
.menu-piede { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--linea); color: var(--bruno); }
.menu-aperto { overflow: hidden; }
.menu-aperto .hdr { color: var(--inchiostro); background: transparent; border-bottom-color: transparent; }

/* 6 · Bottoni --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 16px; padding: 15px 22px 14px 24px;
  border: 2px solid currentColor; color: var(--bianco);
  font-family: var(--f-ui); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn::after {
  content: ""; flex: none; width: 24px; height: 10px; background: currentColor;
  -webkit-mask: var(--freccia) center / contain no-repeat; mask: var(--freccia) center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.btn:hover, a:hover > .btn, .tile:hover .btn { background: var(--bianco); border-color: var(--bianco); color: var(--inchiostro); }
.btn:hover::after, a:hover > .btn::after, .tile:hover .btn::after { transform: translateX(4px); }
.btn--ink { color: var(--inchiostro); }
.btn--ink:hover { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--avorio); }

.btn-pieno {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 20px;
  background: var(--inchiostro); color: var(--avorio);
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; line-height: 1;
  transition: background-color .3s var(--ease);
}
.btn-pieno:hover { background: #45393A; }
.btn-pieno:active { background: #1c1718; }

.link-freccia {
  display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid currentColor;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
}
.link-freccia::after {
  content: ""; width: 20px; height: 9px; background: currentColor;
  -webkit-mask: var(--freccia) center / contain no-repeat; mask: var(--freccia) center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.link-freccia:hover::after { transform: translateX(4px); }

/* 7 · Hero ------------------------------------------------------------------ */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  color: var(--bianco); background: #3b312c;
}
.hero::before {                                  /* velo in alto: rende leggibile il menu bianco */
  content: ""; position: absolute; inset: 0 0 auto; height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(26, 20, 17, .34), rgba(26, 20, 17, 0));
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-copy .titolo { font-size: var(--ts); line-height: 1; margin-bottom: calc(var(--ts) * .5); }
.hero-copy::before {                             /* ombra morbida dietro il titolo, niente fasce */
  content: ""; position: absolute; z-index: -1; left: 50%; top: calc(var(--ts) * .5); width: 120%; height: calc(var(--ts) * 3.4);
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(24, 18, 15, .30), rgba(24, 18, 15, 0));
}

/* Home: tre foto verticali a filo, titolo che le attraversa al 40% */
.hero-tre { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--avorio); }
.hero-col { position: relative; overflow: hidden; }
.hero-col .hero-media { filter: brightness(.9); }
.hero-copy--home { --ts: clamp(40px, 6vw, 150px); left: 0; right: 0; top: 40%; transform: translateY(calc(var(--ts) * -.5)); }
.hero-copy--home .titolo { white-space: nowrap; }

/* Hero a foto singola (brand) */
.hero--scura .hero-media { filter: brightness(.74); }
.hero-copy--centro { --ts: clamp(44px, 7.6vw, 150px); left: 0; right: 0; top: 44%; transform: translateY(calc(var(--ts) * -.5)); }

/* Hero video (profumi): titolo allineato a sinistra, centro al 31% / 29% */
.hero-copy--profumi { --ts: clamp(44px, 5.9vw, 120px); left: 31%; top: 29%; transform: translate(-50%, calc(var(--ts) * -.5)); }
.hero-copy--profumi .titolo { white-space: nowrap; }

/* Animazione d'ingresso delle hero */
.js .hero-media { transform: scale(1.04); transition: transform 1.6s var(--ease); }
.js .is-pronto .hero-media { transform: none; }
.js .hero-copy { opacity: 0; transition: opacity 1.2s var(--ease) .25s; }
.js .is-pronto .hero-copy { opacity: 1; }

/* 8 · Carosello categorie --------------------------------------------------- */
.cats { padding: clamp(40px, 5vw, 76px) 0 clamp(22px, 2.4vw, 32px); }
.pagina-chiara .cats { padding-top: calc(var(--hdr) + clamp(24px, 2.8vw, 40px)); }
.cats-pista {
  position: relative; display: flex; gap: clamp(30px, 3.6vw, 60px); padding: 8px 50% 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}
.cats-pista::-webkit-scrollbar { display: none; }
.cats-voce {
  flex: none; scroll-snap-align: center; display: flex; align-items: flex-start; white-space: nowrap;
  color: var(--pietra); transition: color .4s var(--ease);
}
.cats-voce.is-attiva, .cats-voce:hover { color: var(--inchiostro); }
.cats-parola {
  position: relative; padding-bottom: 12px; font-family: var(--f-titolo); font-weight: 200; text-transform: uppercase;
  letter-spacing: .17em; font-size: clamp(22px, 2.05vw, 30px); line-height: 1.1;
}
.cats-parola::after {
  content: ""; position: absolute; left: 0; right: .17em; bottom: 0; height: 1.5px; background: var(--inchiostro);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.cats-voce.is-attiva .cats-parola::after { transform: scaleX(1); }
.cats-voce sup { font-size: 10px; letter-spacing: .04em; line-height: 1; margin: 2px 0 0 1px; }
.cats-barra {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(14px, 1.6vw, 22px) var(--gutter) 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.cats-conta { display: flex; align-items: center; gap: 4px; color: var(--pietra); }
.cats-conta button { width: 30px; height: 30px; display: grid; place-items: center; font-size: 16px; letter-spacing: 0; transition: color .3s; }
.cats-conta button:hover { color: var(--inchiostro); }
.cats-conta button:first-child { margin-left: -9px; }
.cats-azioni { display: flex; gap: clamp(18px, 2vw, 30px); }
.cats-azioni a, .cats-azioni button { position: relative; padding: 6px 0; letter-spacing: .2em; text-transform: uppercase; }
.cats-azioni a::after, .cats-azioni button::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.cats-azioni a:hover::after, .cats-azioni button:hover::after { transform: scaleX(1); }

/* 9 · Griglie e tessere a filo ---------------------------------------------- */
.griglia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--avorio); }
.tile {
  position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3;
  background: var(--carta); container-type: inline-size;
}
.tile > img, .tile > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.tile:hover > img, .tile:hover > video { transform: scale(1.03); }
.tile--largo { grid-column: span 2; aspect-ratio: auto; }
.tile--alto { grid-row: span 2; aspect-ratio: auto; }

/* Still life: fondo sabbia chiara, il bianco del packshot sparisce in multiply */
.sabbia { background: var(--sabbia); isolation: isolate; }
.tile.sabbia > img, .sabbia > .still {
  inset: auto; left: 13%; top: 10%; width: 74%; height: 76%; object-fit: contain; mix-blend-mode: multiply;
}

/* Didascalia sulla foto, in basso al centro */
.tile-cap {
  position: absolute; z-index: 2; left: 10px; right: 10px; bottom: clamp(16px, 7cqi, 28px);
  text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.3; color: var(--bruno);
}
.tile-cap--chiara { color: var(--bianco); }
.tile--ombra::after {
  content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(28, 21, 18, .44), rgba(28, 21, 18, 0));
}
.tile-tag { position: absolute; z-index: 2; left: 16px; top: 16px; color: var(--bianco); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 1; }

/* Modulo alto (home) e tessera lifestyle (categoria): titolo + bottone sulla foto */
.tile--look::after {
  content: ""; position: absolute; inset: 42% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 17, 14, .6), rgba(22, 17, 14, 0));
}
.tile-look { position: absolute; z-index: 2; left: 8cqi; right: 4cqi; bottom: 9cqi; color: var(--bianco); }
.tile-look .titolo { font-size: 13cqi; line-height: 1.08; margin-bottom: .8em; }
.tile--life > img { filter: brightness(.84); }
.tile--life::after {
  content: ""; position: absolute; inset: 0 40% 30% 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 20% 35%, rgba(22, 17, 14, .34), rgba(22, 17, 14, 0) 70%);
}
.tile-life { position: absolute; z-index: 2; left: 5.6cqi; top: 13cqi; color: var(--bianco); }
.tile-life .titolo { font-size: 5.8cqi; line-height: 1.05; margin-bottom: 1em; white-space: nowrap; }

/* 10 · Home ----------------------------------------------------------------- */
.griglia--home .tile--alto { grid-column: 4; grid-row: 1 / span 2; }
.teaser { position: relative; height: 60vh; min-height: 420px; overflow: hidden; color: var(--bianco); background: #3b312c; margin-top: 2px; }
.teaser > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.72); transition: transform 1.6s var(--ease); }
.teaser:hover > img { transform: scale(1.02); }
.teaser-copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.teaser-copy .titolo { font-size: clamp(38px, 5.6vw, 110px); margin-bottom: .5em; }

/* 11 · Footer --------------------------------------------------------------- */
.footer { background: var(--carta); color: var(--inchiostro); padding: clamp(56px, 6vw, 96px) var(--gutter) 28px; margin-top: 2px; }
.footer-logo { display: block; width: clamp(150px, 13vw, 210px); }
.footer-colonne { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 40px clamp(32px, 5vw, 96px); margin-top: clamp(40px, 4.6vw, 64px); }
.footer h2 { margin-bottom: 18px; }
.footer li a { font-size: 14px; line-height: 2.15; color: var(--bruno); transition: color .3s; }
.footer li a:hover { color: var(--inchiostro); }
.footer-news p { font-size: 14px; line-height: 1.6; color: var(--bruno); max-width: 36ch; }
.footer-news form { display: flex; align-items: center; gap: 16px; margin-top: 20px; border-bottom: 1px solid var(--inchiostro); max-width: 420px; }
.footer-news input { flex: 1; min-width: 0; padding: 12px 0; background: transparent; border: 0; outline: 0; font-size: 14px; }
.footer-news input::placeholder { color: var(--pietra); }
.footer-news button { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; padding: 12px 0; }
.footer-grazie { margin-top: 20px; }
.footer-legale {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: clamp(48px, 5vw, 80px);
  padding-top: 22px; border-top: 1px solid var(--linea); color: var(--pietra); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.footer-legale nav { display: flex; gap: 24px; }
.footer-legale a:hover { color: var(--inchiostro); }

/* 12 · Scheda prodotto ------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2px; background: var(--avorio); }
.pdp-media { grid-column: 1; grid-row: 1; position: sticky; top: 0; height: 100vh; align-self: start; overflow: hidden; background: #c9b9a6; color: var(--bianco); }
.pdp-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.pdp-media::before, .pdp-foto:first-child::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 170px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(26, 20, 17, .26), rgba(26, 20, 17, 0));
}
.pdp-hero-titolo { display: none; }
.pdp-galleria { grid-column: 2; grid-row: 1; display: grid; gap: 2px; }
.pdp-foto { position: relative; height: 100vh; overflow: hidden; background: var(--carta); }
.pdp-foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-foto--zoom > img { transform: scale(1.9); }
.pdp-foto--gambe > img { transform: scale(2); }
.pdp-info {
  grid-column: 3; grid-row: 1; position: sticky; top: 0; height: 100vh; align-self: start; overflow-y: auto;
  display: flex; flex-direction: column; container-type: inline-size;
  padding: max(12%, calc(var(--hdr) + 12px)) 12% 12%; scrollbar-width: none;
}
.pdp-info-in { margin-block: auto; }            /* centrata quando c'è spazio, mai tagliata quando non c'è */
.pdp-info::-webkit-scrollbar { display: none; }
.pdp-cat { color: var(--pietra); }
.pdp-titolo { font-size: min(40px, 9.2cqi); line-height: 1.12; margin-top: 18px; }
.pdp-made { margin-top: 12px; font-size: 14px; color: var(--bruno); }
.pdp-colori { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; margin-top: 34px; }
.swatches { display: flex; gap: 13px; padding: 5px; margin: -5px; }
.swatch { position: relative; width: 34px; height: 34px; background: var(--c); }
.swatch::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--inchiostro); opacity: 0; transition: opacity .3s var(--ease); }
.swatch[aria-checked="true"]::after { opacity: 1; }
.swatch:hover::after { opacity: .35; }
.swatch[aria-checked="true"]:hover::after { opacity: 1; }
.pdp-colore { color: var(--pietra); min-width: 8ch; text-align: right; }
.taglie { display: flex; justify-content: space-between; margin-top: 28px; }
.taglia { position: relative; min-width: 30px; padding: 8px 2px; font-size: 14px; line-height: 1; color: var(--inchiostro); }
.taglia::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 1.5px; background: var(--inchiostro);
  transform: scaleX(0); transition: transform .35s var(--ease);
}
.taglia[aria-checked="true"]::after { transform: scaleX(1); }
.taglia:hover { color: var(--bruno); }
.pdp-info .btn-pieno { margin-top: 30px; }
.accordion { margin-top: 30px; border-bottom: 1px solid var(--linea); }
.acc { border-top: 1px solid var(--linea); }
.acc-btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 19px 0; text-align: left;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
}
.acc-ico { position: relative; flex: none; width: 12px; height: 12px; transition: transform .45s var(--ease); }
.acc-ico::before, .acc-ico::after { content: ""; position: absolute; background: currentColor; }
.acc-ico::before { left: 0; right: 0; top: 50%; height: 1.2px; margin-top: -.6px; }
.acc-ico::after { top: 0; bottom: 0; left: 50%; width: 1.2px; margin-left: -.6px; }
.acc.is-aperto .acc-ico { transform: rotate(45deg); }
.acc-pan { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc.is-aperto .acc-pan { grid-template-rows: 1fr; }
.acc-pan > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.acc.is-aperto .acc-pan > div { visibility: visible; transition-delay: 0s; }
.acc-pan p { padding: 0 0 20px; font-size: 14px; line-height: 1.65; color: var(--bruno); max-width: 46ch; }
.pdp-barra { display: none; }

/* 13 · Look ----------------------------------------------------------------- */
.look { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: var(--hdr); }
.look-foto { position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); align-self: start; overflow: hidden; background: #6b5d51; }
.look-foto > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.look-panel { padding: clamp(40px, 5.2vw, 84px) clamp(24px, 5vw, 88px) clamp(48px, 5vw, 80px); }
.look-n { color: var(--pietra); }
.look-titolo { font-size: clamp(30px, 3.1vw, 46px); margin: 16px 0 clamp(28px, 3vw, 44px); }
.look-capo {
  display: grid; grid-template-columns: clamp(80px, 7.6vw, 112px) minmax(0, 1fr) auto; gap: 0 clamp(16px, 2vw, 30px);
  align-items: center; padding: 18px 0; border-top: 1px solid var(--linea);
}
.look-capo:last-child { border-bottom: 1px solid var(--linea); }
.look-thumb { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--carta); }
.look-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.look-thumb:hover > img { transform: scale(1.04); }
.look-thumb.sabbia > img { left: 9%; top: 8%; width: 82%; height: 84%; inset: auto; object-fit: contain; mix-blend-mode: multiply; }
.look-nome { font-size: 22px; line-height: 1.2; }
.look-colore { margin-top: 8px; color: var(--pietra); font-size: 11px; }
.taglie--look { justify-content: flex-start; gap: 6px 12px; flex-wrap: wrap; margin-top: 12px; }
.taglie--look .taglia { font-size: 13px; }
.look-aggiungi { position: relative; padding: 8px 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.look-aggiungi::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 2px; height: 1px; background: currentColor; transition: transform .4s var(--ease); transform-origin: left; }
.look-aggiungi:hover::after { transform: scaleX(.4); }
.look-panel .btn-pieno { margin-top: clamp(28px, 3vw, 40px); }
.altri { padding-top: clamp(64px, 7vw, 110px); }
.altri > .titolo { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: clamp(26px, 2.6vw, 40px); }

/* 14 · Brand ---------------------------------------------------------------- */
.fasce { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--avorio); margin-top: 2px; }
.fascia { position: relative; height: 60vh; min-height: 360px; overflow: hidden; background: #4a3f37; }
.fascia > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.76); transition: transform .9s var(--ease); }
.fascia::after, .nota::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 58% 34% at 50% 50%, rgba(22, 17, 14, .42), rgba(22, 17, 14, 0));
}
.fascia:hover > img { transform: scale(1.03); }
.fascia > .titolo, .nota > .titolo {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: var(--bianco);
  font-size: clamp(28px, 2.8vw, 40px); padding-left: .17em; text-align: center;
}
.storia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--avorio); margin-top: 2px; }
.storia-testo { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 128px) clamp(24px, 7vw, 128px); }
.storia-testo .titolo { font-size: clamp(20px, 1.75vw, 26px); line-height: 1.25; margin-bottom: 22px; }
.storia-testo p { font-size: 15px; line-height: 1.75; color: var(--bruno); max-width: 48ch; }
.storia-foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--carta); }
.storia-foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.storia-foto--b { grid-column: 1; grid-row: 2; }
.storia-testo--b { grid-column: 2; grid-row: 2; }
.storia-testo--fine { grid-column: 1 / -1; align-items: center; text-align: center; padding-top: clamp(64px, 8vw, 136px); padding-bottom: clamp(64px, 8vw, 136px); }
.storia-testo--fine p { margin-bottom: 36px; }

/* 15 · Boutique ------------------------------------------------------------- */
.tavole { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--avorio); }
.tavola { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--bianco); background: #6d7584; container-type: inline-size; }
.tavola > img {                                  /* la tavola doppia: ogni metà mostra la sua città */
  position: absolute; top: 0; left: 0; width: 200%; height: 100%; max-width: none; object-fit: cover;
  filter: saturate(.74) brightness(.9);
}
.tavola--dx > img { left: -100%; }
.tavola::after {
  content: ""; position: absolute; inset: 45% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 20, 22, .5), rgba(22, 20, 22, 0));
}
.tavola-copy { position: absolute; z-index: 2; left: clamp(22px, 7cqi, 72px); right: 20px; bottom: clamp(40px, 11vh, 104px); }
.tavola-copy .titolo { font-size: clamp(30px, 7cqi, 76px); line-height: 1; margin-bottom: .55em; white-space: nowrap; }
.indirizzi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--avorio); }
.indirizzo { padding: clamp(48px, 6vw, 104px) clamp(22px, 5vw, 72px); }
.indirizzo .titolo { font-size: clamp(22px, 2vw, 30px); margin-bottom: 22px; }
.indirizzo p { font-size: 15px; line-height: 1.7; color: var(--bruno); }
.indirizzo .etichetta { margin: 26px 0 8px; color: var(--pietra); font-size: 11px; }
.indirizzo .link-freccia { margin-top: 30px; }

.modale {
  width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0;
  background: var(--avorio); color: var(--inchiostro);
}
.modale::backdrop { background: rgba(24, 19, 17, .52); }
.modale[open] { animation: modale-in .45s var(--ease); }
.modale[open]::backdrop { animation: velo-in .45s var(--ease); }
@keyframes modale-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes velo-in { from { opacity: 0; } }
.modale-in { padding: 36px clamp(24px, 6vw, 44px) 40px; }
.modale-testa { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.modale-testa .etichetta { color: var(--pietra); }
.modale-chiudi { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 0; border-bottom: 1px solid currentColor; }
.modale h2 { font-size: clamp(26px, 6vw, 32px); margin: 14px 0 28px; }
.campo { display: block; margin-bottom: 20px; }
.campo span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--pietra); margin-bottom: 4px; }
.campo input {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--inchiostro); border-radius: 0;
  background: transparent; font-size: 15px; outline: 0; -webkit-appearance: none; appearance: none;
}
.campo input:focus { border-bottom-width: 2px; padding-bottom: 9px; }
.modale .btn-pieno { margin-top: 12px; }
.modale-grazie p { font-size: 15px; line-height: 1.7; color: var(--bruno); margin-bottom: 28px; }

/* 16 · Profumi -------------------------------------------------------------- */
.banda { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; height: 300px; padding: 0 var(--gutter); }
.banda-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 76px; }
.banda-menu a {
  position: relative; padding-bottom: 10px; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
  color: var(--pietra); transition: color .3s var(--ease);
}
.banda-menu a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1.5px; background: var(--inchiostro);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.banda-menu a:hover, .banda-menu a.is-attiva { color: var(--inchiostro); }
.banda-menu a.is-attiva::after { transform: scaleX(1); }
.banda .titolo { font-size: 34px; text-align: center; }
.note { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--avorio); }
.nota { position: relative; height: clamp(320px, 48vh, 460px); overflow: hidden; background: #8a7a69; }
.nota > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; filter: brightness(.78); transition: transform .9s var(--ease); }
.nota:hover > img { transform: scale(1.03); }
.griglia--profumi { margin-top: 2px; }
.griglia--profumi .tile > img { object-position: 50% 55%; }
.griglia--profumi .tile-cap { color: var(--inchiostro); }

/* 17 · Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; z-index: 60; top: calc(var(--hdr) + 14px); right: var(--gutter);
  padding: 15px 22px; background: var(--inchiostro); color: var(--avorio);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-visibile { opacity: 1; transform: none; }

/* 18 · Comparsa allo scroll ------------------------------------------------- */
.js [data-reveal], .js [data-reveal-stagger] > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in, .js [data-reveal-stagger] > .is-in { opacity: 1; transform: none; }

/* 19 · Tablet --------------------------------------------------------------- */
@media (max-width: 1099px) {
  .hdr-sx .hdr-nav, .hdr-dx .hdr-nav { display: none; }
  .burger { display: block; }
  .hdr-logo { width: clamp(104px, 30vw, 150px); }
  .hdr-borsa { font-size: 11px; }
}
@media (min-width: 1100px) { .menu { display: none; } }

@media (max-width: 999px) {
  /* Scheda: hero = video con il titolo, poi le info, poi le foto del look */
  .pdp { display: block; }
  .pdp-media { position: relative; height: 100vh; height: 100svh; min-height: 520px; }
  .pdp-media::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: 1; background: linear-gradient(to bottom, rgba(26, 20, 17, .3), rgba(26, 20, 17, 0)); }
  .pdp-media::after { content: ""; position: absolute; inset: 50% 0 0; z-index: 1; background: linear-gradient(to top, rgba(26, 20, 17, .42), rgba(26, 20, 17, 0)); }
  .pdp-hero-titolo {
    display: block; position: absolute; z-index: 2; left: 0; right: 0; bottom: 13%;
    font-size: clamp(34px, 10vw, 64px); line-height: 1.08; text-align: center; padding-left: .17em;
  }
  .pdp-info { position: static; height: auto; overflow: visible; max-width: 640px; margin: 0 auto; padding: 34px var(--gutter) 56px; }
  .pdp-cat, .pdp-titolo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pdp-made { margin-top: 0; }
  .pdp-colori { margin-top: 24px; }
  .pdp-foto { height: auto; aspect-ratio: 2 / 3; }
  .pdp-barra {
    display: block; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--avorio); border-top: 1px solid var(--linea);
    transform: translateY(105%); visibility: hidden; transition: transform .2s var(--ease), visibility 0s linear .2s;
  }
  .pdp-barra.is-visibile { transform: none; visibility: visible; transition: transform .45s var(--ease); }

  .look { display: block; }
  .look-foto { position: relative; top: 0; height: 70vh; height: 70svh; }
}

/* 20 · Mobile --------------------------------------------------------------- */
@media (max-width: 759px) {
  body { font-size: 14px; }
  .hero { min-height: 520px; }
  .hero-tre { grid-template-columns: 1fr; gap: 0; }
  .hero-tre .hero-col:not(:first-child) { display: none; }
  .hero-copy--home { --ts: min(10.4vw, 64px); top: 47%; }
  .hero-copy--home .titolo { white-space: normal; max-width: 8.6em; }
  .hero-copy--centro { --ts: min(12.2vw, 66px); top: 46%; }
  .hero-copy--profumi { --ts: min(12vw, 64px); left: 50%; top: 23%; }
  .btn { font-size: 12px; padding: 13px 18px 12px 20px; gap: 14px; }

  .cats-barra { font-size: 11px; }
  .cats-azioni { gap: 18px; }

  .griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-cap { font-size: 11px; letter-spacing: .16em; bottom: 16px; }
  .tile-tag { left: 12px; top: 12px; font-size: 10px; }
  .griglia--home .tile--alto { grid-column: 2; grid-row: 1 / span 2; }
  .griglia--home .t-m1 { grid-column: 1; grid-row: 1; }
  .griglia--home .t-m2 { grid-column: 1; grid-row: 2; }
  .tile-look { left: 9cqi; right: 4cqi; bottom: 10cqi; }
  .tile-look .titolo { font-size: 12.2cqi; }
  .tile-look .btn { font-size: 10px; letter-spacing: .16em; padding: 10px 10px 9px 12px; gap: 8px; }
  .tile-life .btn { font-size: 11px; padding: 11px 14px 10px 16px; gap: 10px; }
  .tile-look .btn::after, .tile-life .btn::after { width: 17px; }
  .griglia--cat .tile--largo { aspect-ratio: 4 / 3; }
  .griglia--cat .t-primo { order: -1; }
  .griglia--cat .tile--life { aspect-ratio: 4 / 5; }
  .tile-life { left: 7cqi; top: auto; bottom: 10cqi; }
  .tile-life .titolo { font-size: 7.2cqi; }
  .tile--life::after { inset: 30% 0 0; background: linear-gradient(to top, rgba(22, 17, 14, .5), rgba(22, 17, 14, 0)); }
  .teaser { height: 64vh; }

  .footer-colonne { grid-template-columns: 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; }
  .footer-legale { flex-direction: column; }

  .fasce, .note { grid-template-columns: 1fr; }
  .fascia { height: 46vh; min-height: 300px; }
  .nota { height: 38vh; min-height: 260px; }
  .storia { grid-template-columns: 1fr; }
  .storia-foto--b, .storia-testo--b, .storia-testo--fine { grid-column: auto; grid-row: auto; }
  .storia-testo { padding: 56px var(--gutter); }

  .tavole, .indirizzi { grid-template-columns: 1fr; }
  .tavola { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .tavola-copy { bottom: 32px; }
  .tavola-copy .titolo { font-size: clamp(24px, 7.4cqi, 44px); }
  .indirizzo { padding: 48px var(--gutter); }
  .indirizzo + .indirizzo { border-top: 1px solid var(--linea); }

  .banda { height: auto; padding: 56px var(--gutter) 52px; gap: 34px; }
  .banda-menu { gap: 14px 26px; }
  .banda-menu a { font-size: 12px; }
  .banda .titolo { font-size: clamp(22px, 6.4vw, 34px); }

  .look-capo { grid-template-columns: 78px minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; }
  .look-thumb { grid-row: 1 / span 2; }
  .look-aggiungi { grid-column: 2; justify-self: start; margin-top: 12px; }
  .look-nome { font-size: 18px; }
  .toast { left: var(--gutter); right: var(--gutter); text-align: center; }
}

/* 21 · Movimento ridotto ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .js .hero-media { transform: none; }
  .js .hero-copy { opacity: 1; }
}
