/* ==========================================================================
   Millennium Store
   1. Base  2. Elementi comuni  3. Intestazione  4. Pannelli  5. Home
   6. Schede prodotto  7. Catalogo  8. Prodotto  9. Carrello e ordine
   10. Brand, boutique, informazioni  11. Piè di pagina
   Stile: bianco, nero e molto spazio. Il rosso compare solo nel marchio.
   ========================================================================== */

/* 1. Base ----------------------------------------------------------------- */
:root {
  --bg: #fff;
  --text: #121212;
  --ink: #3a3a38;
  --muted: #6f6e6a;
  --soft: #f7f7f5;
  --tile: #f4f4f2; /* fondo dei riquadri foto: lo stesso delle foto scontornate (strumenti/scontorna-foto.mjs) */
  --line: #dcdcd8;
  --line-soft: #ececea;
  --red: #c1272d;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1520px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --gap: clamp(8px, 1.1vw, 16px);
  --hdr-h: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
main { display: block; min-height: 50vh; }

/* I contenitori riempiti dallo script non devono limitare gli elementi "sticky". */
#ms-header, #ms-footer, main > div { display: contents; }

/* Margine laterale: mai meno di 16px e mai sotto le barre di sistema del telefono. */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 59; background: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 10px 14px; }

/* 2. Elementi comuni ------------------------------------------------------ */
.eyebrow { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.1; }
.lead { color: var(--ink); max-width: 52ch; }
.todo { color: #9d9c97; font-style: italic; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 30px;
  background: var(--text); color: #fff; border: 1px solid var(--text); border-radius: 0;
  font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--text); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover { background: var(--text); color: #fff; }

.more { display: inline-block; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; transition: opacity .2s; }
.more:hover { opacity: .55; }

.sec { padding-block: clamp(56px, 7vw, 112px); }
.sec--soft { background: var(--soft); }
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 44px); }
.shead--center { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.shead p { color: var(--ink); max-width: 56ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-style: normal; opacity: .55; }
.crumbs span { color: var(--text); }

/* Riquadri con fotografia */
.tile { position: relative; display: block; overflow: hidden; background: var(--tile); isolation: isolate; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.4s var(--ease); }
a.tile:hover .tile__img, a:hover > .tile .tile__img { transform: scale(1.03); }
.tile--ombra::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%); }

/* 3. Intestazione --------------------------------------------------------- */
.topbar { background: var(--text); color: #fff; text-align: center; font-size: .64rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; padding: 9px 16px; }

.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: #fff; color: var(--text); border-bottom: 1px solid var(--line-soft); }
.hdr__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; transition: min-height .25s; }
.hdr__left { display: flex; align-items: center; min-width: 0; }
.hdr__right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-right: -9px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--text); transition: opacity .2s; }
.icon-btn:hover { opacity: .55; }
.icon-btn[aria-disabled="true"] { opacity: .35; }
.hdr__burger { display: none; }
.hdr__link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--text); transition: opacity .2s; }
.hdr__link:hover { opacity: .55; }
.hdr__link .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hdr__link--testo { width: auto; padding-inline: 10px; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.cart-count { position: absolute; right: 2px; top: 5px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--text); color: #fff; font-size: .58rem; font-weight: 500; display: grid; place-items: center; padding-inline: 3px; }
.cart-count[data-n="0"] { display: none; }

.logo { display: grid; justify-items: center; gap: 5px; color: var(--text); line-height: 1; }
.logo__mark { display: grid; place-items: center; min-width: 40px; padding: 4px 4px 3px; border-block: 1px solid var(--text); font-family: var(--caps); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--red); }
.logo__name { font-family: var(--caps); font-size: .98rem; letter-spacing: .36em; margin-right: -.36em; }
.logo__sub { font-family: var(--caps); font-size: .52rem; letter-spacing: .6em; margin-right: -.6em; color: var(--red); }
.is-scrolled .hdr__main { min-height: 62px; }
.is-scrolled .hdr .logo { grid-auto-flow: column; align-items: center; gap: 13px; }
.is-scrolled .hdr .logo__mark { min-width: 28px; font-size: 1.05rem; padding: 3px 3px 2px; }
.is-scrolled .hdr .logo__name { font-size: .9rem; }
.is-scrolled .hdr .logo__sub { display: none; }

.nav__list { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav__list > li > a { display: block; position: relative; padding: 36px 0; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: padding .25s; }
.is-scrolled .nav__list > li > a { padding-block: 22px; }
.nav__list > li > a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 28px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease), bottom .25s; }
.is-scrolled .nav__list > li > a::after { bottom: 15px; }
.nav__list > li:hover > a::after, .nav__list > li:focus-within > a::after, .nav__list > li > a[aria-current]::after { transform: scaleX(1); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-block: 1px solid var(--line-soft); padding: 38px 0 46px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; }
.mega__in { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 32px; }
.mega h3 { font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega li a { display: inline-block; padding: 4px 0; font-size: .92rem; color: var(--text); }
.mega li a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mega li a.mega__all { font-family: var(--serif); font-size: 1.5rem; font-weight: 300; line-height: 1.2; padding-bottom: 8px; }

/* Sotto i 1100px il menu a parole toccherebbe il logo al centro: si passa al menu a pannello. */
@media (max-width: 1100px) {
  .nav, .hdr__link--testo { display: none; }
  .hdr__burger { display: inline-grid; margin-left: -10px; }
  .hdr__main, .is-scrolled .hdr__main { min-height: 58px; }
  .hdr .logo, .is-scrolled .hdr .logo { grid-auto-flow: column; align-items: center; gap: 10px; }
  .hdr .logo__mark, .is-scrolled .hdr .logo__mark { min-width: 26px; font-size: 1rem; padding: 3px 3px 2px; }
  .hdr .logo__name, .is-scrolled .hdr .logo__name { font-size: clamp(.72rem, 3.2vw, .9rem); letter-spacing: .26em; margin-right: -.26em; }
  .hdr .logo__sub { display: none; }
}

/* 4. Pannelli: menu, carrello, filtri, ricerca ---------------------------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; transition: visibility 0s .4s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(18, 18, 18, .38); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer__scrim, .search.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; bottom: 0; width: min(460px, 92vw); padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); background: #fff; display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 18px 28px; border-bottom: 1px solid var(--line-soft); }
.drawer__head h2 { font-family: var(--serif); font-weight: 300; font-size: 1.7rem; line-height: 1.1; }
.drawer__head h2 sup { font-family: var(--sans); font-size: .7rem; color: var(--muted); margin-left: 6px; }
.drawer__body { flex: 1; overflow: auto; padding: 6px 28px 18px; overscroll-behavior: contain; }
.drawer__foot { border-top: 1px solid var(--line-soft); padding: 20px 28px 24px; display: grid; gap: 10px; }

.mnav > a, .mnav summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line-soft); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.mnav summary { list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: "+"; font-size: 1.1rem; font-weight: 300; letter-spacing: 0; }
.mnav details[open] summary::after { content: "\2013"; }
.mnav__sub { padding: 10px 0 14px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 2px; }
.mnav__sub a { padding: 6px 0; color: var(--ink); font-size: .95rem; }
.mnav__sub b { display: block; margin-top: 10px; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.search { position: fixed; inset: 0; z-index: 110; visibility: hidden; pointer-events: none; transition: visibility 0s .4s; }
.search.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.search__panel { position: absolute; left: 0; right: 0; top: 0; max-height: 92vh; overflow: auto; padding-top: env(safe-area-inset-top, 0px); background: #fff; transform: translateY(-102%); transition: transform .4s var(--ease); }
.search.is-open .search__panel { transform: none; }
.search__form { display: flex; align-items: center; gap: 14px; padding-block: 26px; border-bottom: 1px solid var(--line-soft); }
.search__form .ico { width: 22px; height: 22px; color: var(--muted); }
.search__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.search__form input::placeholder { color: #b3b2ad; }
.search__form input::-webkit-search-cancel-button { display: none; }
.search__results { padding-block: 26px 40px; }
.search__hint { font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.search__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.search__tags a { border: 1px solid var(--line); padding: 7px 15px; font-size: .86rem; transition: border-color .2s, background .2s, color .2s; }
.search__tags a:hover { background: var(--text); border-color: var(--text); color: #fff; }
.sres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 26px; }
.sitem { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.sitem:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sitem small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.sitem b { display: block; font-weight: 400; font-size: .9rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitem span { display: block; font-size: .84rem; color: var(--muted); }
.sitem span i { font-style: normal; font-size: .76rem; }
@media (max-width: 1020px) { .sres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sres { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 130; transform: translate(-50%, 16px); background: var(--text); color: #fff; padding: 13px 24px; font-size: .84rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.fab { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #fff; transition: transform .25s; }
.fab:hover { transform: scale(1.06); }
.fab .ico { width: 22px; height: 22px; }
.fab--wa { background: #1f9d55; }
.totop { position: fixed; right: calc(21px + env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 55; width: 40px; height: 40px; display: grid; place-items: center; background: #fff; color: var(--text); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s; }
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--text); color: #fff; border-color: var(--text); }

/* 5. Home ----------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--tile); }
.hero__slides { position: relative; height: clamp(480px, 54vw, 800px); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .52) 100%); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__panel { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); bottom: clamp(48px, 6.5vw, 96px); width: min(620px, calc(100% - 2 * var(--gutter))); color: #fff; }
.hero__slide--destra .hero__panel { left: auto; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); text-align: right; }
.hero__panel .eyebrow { margin-bottom: 16px; }
.hero__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: 1; }
.hero__lead { margin: 16px 0 24px; max-width: 40ch; font-size: .98rem; }
.hero__slide--destra .hero__lead { margin-left: auto; }
.hero__arrow { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; color: #fff; display: grid; place-items: center; opacity: .75; transition: opacity .25s; }
.hero__arrow:hover { opacity: 1; }
.hero__arrow--prev { left: 10px; }
.hero__arrow--next { right: 10px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 34px; height: 16px; position: relative; }
.hero__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(255, 255, 255, .5); transition: background .3s, height .3s; }
.hero__dots button.is-active::before { background: #fff; height: 2px; }

/* Uomo / Donna: due grandi riquadri con un capo fotografato in boutique */
.genders { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.gender { position: relative; display: block; background: var(--tile); overflow: hidden; }
.gender .ph { aspect-ratio: auto; height: clamp(380px, 48vw, 740px); background: var(--tile); padding: 3% 3% clamp(96px, 9vw, 132px); }
.gender .ph img { object-fit: contain; }
.gender .ph img.is-scena { object-fit: cover; }
.gender:hover .ph img { transform: scale(1.03); }
.gender__cap { position: absolute; left: clamp(18px, 2.4vw, 36px); bottom: clamp(18px, 2.4vw, 34px); display: grid; gap: 8px; justify-items: start; }
.gender__cap strong { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1; }

.story { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(28px, 6vw, 110px); }
.story .tile { aspect-ratio: 5 / 4; }
.story__text { display: grid; justify-items: start; gap: 18px; max-width: 460px; }
.story__text .lead { margin-bottom: 8px; }

.brandwall { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px clamp(20px, 3vw, 44px); max-width: 1180px; margin-inline: auto; }
.brandwall a { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.3vw, 2.05rem); line-height: 1.35; white-space: nowrap; transition: opacity .2s; }
.brandwall:hover a { opacity: .35; }
.brandwall a:hover { opacity: 1; }

.manifesto { text-align: center; padding-block: clamp(64px, 8vw, 130px); }
.manifesto .h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); font-style: italic; margin: 18px auto 22px; max-width: 18ch; }
.manifesto p:last-child { max-width: 54ch; margin-inline: auto; color: var(--ink); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); padding-block: clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--line-soft); }
.services .ico { width: 22px; height: 22px; margin-bottom: 14px; }
.services h3 { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.services p { font-size: .92rem; color: var(--ink); max-width: 34ch; }

.rail { position: relative; min-width: 0; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4.25); gap: var(--gap); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__btn { position: absolute; top: 36%; z-index: 4; width: 42px; height: 42px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; transition: opacity .2s, background .2s, color .2s; }
.rail__btn:hover { background: var(--text); color: #fff; border-color: var(--text); }
.rail__btn--prev { left: 12px; }
.rail__btn--next { right: 12px; }
.rail__btn[disabled] { opacity: 0; pointer-events: none; }

@media (max-width: 1020px) {
  .rail__track { grid-auto-columns: calc((100% - 2 * var(--gap)) / 2.3); }
  .rail__btn { display: none; }
}
@media (max-width: 760px) {
  .hero__slides { height: clamp(460px, 124vw, 620px); }
  .hero__panel, .hero__slide--destra .hero__panel { left: var(--gutter); right: var(--gutter); bottom: 54px; width: auto; text-align: left; }
  .hero__slide--destra .hero__lead { margin-left: 0; }
  .hero__arrow { display: none; }
  .genders, .story { grid-template-columns: minmax(0, 1fr); }
  .gender .ph { height: auto; aspect-ratio: 4 / 5; }
  .story { gap: 28px; }
  .services { grid-template-columns: 1fr; text-align: center; }
  .services .ico { margin-inline: auto; }
  .services p { margin-inline: auto; }
  .shead:not(.shead--center) { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* 6. Schede prodotto ------------------------------------------------------ */
.grid { display: grid; gap: clamp(28px, 3.4vw, 52px) var(--gap); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ph { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ph__vuota { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--tile); color: var(--muted); font-size: .62rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.ph__vuota .logo__mark { min-width: 36px; font-size: 1.3rem; }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card:hover .ph img { transform: scale(1.03); }
.card__top { position: relative; overflow: hidden; }
.card.is-out .ph img { opacity: .45; }
.badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1; }
.badge--out { color: var(--muted); }
.card__quick { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 12px 13px; background: rgba(255, 255, 255, .95); transform: translateY(101%); transition: transform .32s var(--ease); }
.card:hover .card__quick, .card:focus-within .card__quick { transform: none; }
.card__quick p { font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.qsizes { display: flex; flex-wrap: wrap; gap: 5px; }
.qsizes button { min-width: 34px; height: 30px; padding: 0 7px; border: 1px solid var(--line); background: #fff; font-size: .76rem; transition: background .15s, color .15s, border-color .15s; }
.qsizes button:hover { background: var(--text); color: #fff; border-color: var(--text); }
@media (hover: none) { .card__quick { display: none; } }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 13px 2px 0; }
.card__brand { font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.card__name { font-size: .9rem; font-weight: 400; line-height: 1.4; color: var(--ink); }
.card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__var { font-size: .74rem; color: var(--muted); }
.card__price { margin-top: 2px; font-size: .88rem; }
.card__price--ask { color: var(--muted); }

/* 7. Catalogo ------------------------------------------------------------- */
.chead { text-align: center; padding-block: clamp(34px, 4.6vw, 68px) clamp(22px, 2.6vw, 36px); }
.chead .crumbs { justify-content: center; margin-bottom: 18px; }
.chead__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.05; }
.chead__title sup { font-family: var(--sans); font-size: .22em; font-weight: 400; letter-spacing: .08em; margin-left: .7em; vertical-align: super; color: var(--muted); }
.chead__desc { max-width: 64ch; margin: 14px auto 0; font-size: .95rem; color: var(--ink); }

.cbar { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); z-index: 40; background: #fff; border-block: 1px solid var(--line-soft); }
.cbar__in { display: flex; align-items: center; gap: 18px; min-height: 54px; }
.cbar__btn { display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: opacity .2s; }
.cbar__btn:hover { opacity: .55; }
.cbar__btn .ico { width: 18px; height: 18px; }
.cbar__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--text); color: #fff; font-size: .6rem; letter-spacing: 0; }
.cbar__n:empty { display: none; }
.cbar__sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.cbar__sort select { border: 0; background: none; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 8px 2px; cursor: pointer; max-width: 46vw; }
.chips { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line); font-size: .78rem; padding: 5px 7px 5px 12px; transition: border-color .2s; }
.chip:hover { border-color: var(--text); }
.chip .ico { width: 12px; height: 12px; }
.chip--reset { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: 4px; }
.cgrid { padding-block: clamp(22px, 2.6vw, 36px) clamp(60px, 7vw, 110px); }
.cmore { display: grid; justify-items: center; gap: 16px; margin-top: 56px; color: var(--muted); font-size: .84rem; }
.cmore__bar { width: 200px; height: 1px; background: var(--line); }
.cmore__bar i { display: block; height: 100%; background: var(--text); }
.cempty { text-align: center; padding: 80px 0; }
.cempty .h2 { margin-bottom: 14px; }
.cempty p { color: var(--muted); margin-bottom: 28px; }

.fgroup { border-bottom: 1px solid var(--line-soft); }
.fgroup summary, .acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.fgroup summary::-webkit-details-marker, .acc summary::-webkit-details-marker { display: none; }
.fgroup summary::after, .acc summary::after { content: "+"; font-size: 1.15rem; font-weight: 300; line-height: 1; letter-spacing: 0; }
.fgroup[open] summary::after, .acc details[open] summary::after { content: "\2013"; }
.fopts { display: grid; gap: 2px; padding-bottom: 18px; }
.fopt { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: .93rem; cursor: pointer; }
.fopt input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid #a3a29d; display: grid; place-items: center; flex: none; cursor: pointer; background: #fff; }
.fopt input:checked { background: var(--text); border-color: var(--text); }
.fopt input:checked::after { content: ""; width: 8px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.fopt em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--muted); }
.fopt.is-zero { opacity: .38; }
.fsub { font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 4px 0 9px; }
.fsizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.fsize { min-width: 42px; height: 36px; padding: 0 8px; border: 1px solid var(--line); background: #fff; font-size: .82rem; transition: border-color .15s, background .15s, color .15s; }
.fsize:hover { border-color: var(--text); }
.fsize[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
@media (max-width: 640px) {
  .cbar__sort > span { display: none; }
  .chips { display: none; }
}

/* 8. Prodotto ------------------------------------------------------------- */
.pdp { padding-block: 22px clamp(60px, 7vw, 110px); }
.pdp > .crumbs { margin-bottom: 22px; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5.4vw, 96px); align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pdp__gallery--1 { grid-template-columns: minmax(0, 1fr); }
.pdp__img { position: relative; background: var(--tile); }
.pdp__note { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); }
.pdp__info { position: sticky; top: calc(var(--hdr-h) + 28px); max-width: 520px; }
.pdp__brand { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.pdp__brand:hover { text-decoration: underline; text-underline-offset: 4px; }
.pdp__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.08; margin: 12px 0 8px; }
.pdp__sku { font-size: .76rem; color: var(--muted); }
.pdp__price { font-size: 1.1rem; margin: 18px 0 24px; }
.pdp__price small { display: block; margin-top: 4px; font-size: .76rem; color: var(--muted); }
.pdp__block { padding-block: 18px; border-top: 1px solid var(--line-soft); }
.label { display: flex; justify-content: space-between; gap: 12px; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.label b { font-weight: 500; margin-left: 8px; }
.label span { color: var(--muted); }
.vchips, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 13px; font-size: .82rem; transition: border-color .15s; }
.vchip:hover { border-color: var(--text); }
.vchip i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); flex: none; }
.vchip.is-current { border-color: var(--text); }
.vchip.is-out { color: #a8a7a2; text-decoration: line-through; }
.size { min-width: 48px; height: 44px; padding: 0 10px; border: 1px solid var(--line); background: #fff; font-size: .88rem; transition: border-color .15s, background .15s, color .15s; }
.size:hover { border-color: var(--text); }
.size[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.stockhint { min-height: 1.5em; margin-top: 10px; font-size: .82rem; color: var(--ink); }
.pdp__buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.pdp__ask { display: grid; gap: 10px; }
.pdp__ask p { font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.qty { display: inline-grid; grid-template-columns: 40px 30px 40px; align-items: center; height: 48px; border: 1px solid var(--line); background: #fff; text-align: center; }
.qty button { height: 100%; font-size: 1.05rem; line-height: 1; transition: background .15s; }
.qty button:hover:not([disabled]) { background: var(--soft); }
.qty button[disabled] { opacity: .3; cursor: default; }
.qty--sm { grid-template-columns: 30px 26px 30px; height: 34px; font-size: .86rem; }
.pdp__usp { display: grid; gap: 10px; margin: 24px 0; font-size: .88rem; color: var(--ink); }
.pdp__usp li { display: flex; align-items: center; gap: 12px; }
.acc details { border-top: 1px solid var(--line-soft); }
.acc details:last-child { border-bottom: 1px solid var(--line-soft); }
.acc__body { padding: 0 0 20px; font-size: .92rem; color: var(--ink); }
.acc__body p + p, .acc__body p + dl, .acc__body dl + p { margin-top: 10px; }
.acc__body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; }
.spec dt { color: var(--muted); }
.pdp__help { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .9rem; color: var(--ink); }
.pdp__help a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pdp__related { margin-top: clamp(64px, 8vw, 120px); }
@media (max-width: 860px) {
  .pdp__grid { grid-template-columns: minmax(0, 1fr); }
  .pdp__info { position: static; max-width: none; }
}
@media (max-width: 520px) {
  .pdp__buy .qty { grid-template-columns: 34px 26px 34px; }
  .pdp__buy .btn { padding-inline: 10px; }
}

/* 9. Carrello e ordine ---------------------------------------------------- */
.cline { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.cline__brand { font-size: .62rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.cline__name { display: block; font-size: .94rem; line-height: 1.3; margin: 3px 0; color: var(--ink); }
.cline__name:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cline__meta { font-size: .78rem; color: var(--muted); }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cline__price { font-size: .92rem; }
.cline__rm { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); transition: color .15s; }
.cline__rm:hover { color: var(--text); }
.cline__rm .ico { width: 14px; height: 14px; }
.cempty-box { text-align: center; padding: 64px 0; display: grid; gap: 18px; justify-items: center; color: var(--muted); }
.cempty-box .ico { width: 30px; height: 30px; }
.ctotal { display: flex; justify-content: space-between; align-items: baseline; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.ctotal b { font-weight: 400; font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
.cnote { font-size: .78rem; color: var(--muted); }
.cnote a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.phead { padding-block: clamp(34px, 4.6vw, 68px) 10px; }
.phead .crumbs { margin-bottom: 18px; }
.phead h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.05; }
.phead p { margin-top: 12px; max-width: 62ch; color: var(--ink); }
.cartp { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-block: 24px clamp(60px, 7vw, 110px); }
.cartp .cline { grid-template-columns: 112px minmax(0, 1fr) auto; }
.summary { position: sticky; top: calc(var(--hdr-h) + 24px); background: var(--soft); padding: 28px; display: grid; gap: 18px; }
.summary h2 { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: .92rem; color: var(--ink); }
.summary dd { text-align: right; }
.summary .ctotal { border-top: 1px solid var(--line); padding-top: 18px; }
.summary__lines { display: grid; gap: 14px; font-size: .88rem; }
.summary__line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.summary__line small { display: block; color: var(--muted); }

.form { display: grid; gap: 36px; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form legend { font-family: var(--serif); font-weight: 300; font-size: 1.7rem; padding: 0; margin-bottom: 16px; }
.field { display: grid; gap: 6px; font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 0; font-size: .98rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); width: 100%; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--text); }
.notice { grid-column: 1 / -1; background: var(--soft); padding: 18px 20px; font-size: .92rem; color: var(--ink); }
.notice b { display: block; font-weight: 500; color: var(--text); margin-bottom: 4px; }
@media (max-width: 860px) {
  .cartp { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .cartp .cline { grid-template-columns: 88px minmax(0, 1fr) auto; }
}
@media (max-width: 520px) { .form fieldset { grid-template-columns: 1fr; } }

/* 10. Brand, boutique, informazioni --------------------------------------- */
.abc { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); z-index: 40; background: #fff; border-block: 1px solid var(--line-soft); color: #c2c1bc; }
.abc__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; padding-block: 14px; font-size: .78rem; letter-spacing: .08em; }
.abc a { color: var(--text); }
.abc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.blist { columns: 4 220px; column-gap: clamp(28px, 4vw, 72px); padding-block: clamp(36px, 4.6vw, 64px) clamp(60px, 7vw, 110px); }
.bgroup { break-inside: avoid; margin-bottom: 38px; scroll-margin-top: calc(var(--hdr-h) + 70px); }
.bgroup h2 { font-family: var(--serif); font-weight: 300; font-size: 2.6rem; line-height: 1; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 12px; }
.bgroup a { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.bgroup a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bgroup a span { color: var(--muted); font-weight: 400; letter-spacing: 0; }

.shop { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 110px); padding-block: clamp(20px, 2.6vw, 36px) clamp(60px, 7vw, 110px); align-items: start; }
.shop__text p { color: var(--ink); }
.shop__text p + p { margin-top: 14px; }
.shop__text .tile { aspect-ratio: 16 / 10; margin-top: 34px; }
.cards { display: grid; gap: 0; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.infocard { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.infocard:last-child { border-bottom: 1px solid var(--line-soft); }
.infocard h2 { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.infocard dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 6px 24px; font-size: .93rem; }
.infocard dt { color: var(--muted); }
.infocard a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); padding-block: 24px clamp(60px, 7vw, 110px); align-items: start; }
.docs__nav { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 0; }
.docs__nav a { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.docs__nav a:hover { opacity: .55; }
.docs section { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: calc(var(--hdr-h) + 24px); }
.docs section:last-child { border-bottom: 0; }
.docs h2 { font-family: var(--serif); font-weight: 300; font-size: 2.1rem; line-height: 1.1; margin-bottom: 16px; }
.docs h3 { font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin: 24px 0 8px; }
.docs p, .docs li { max-width: 72ch; color: var(--ink); }
.docs p + p { margin-top: 10px; }
.docs ul.punti { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.docs ul.punti li { position: relative; padding-left: 18px; }
.docs ul.punti li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--text); }
.docs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.docs a.btn { text-decoration: none; }
.docs__avviso { background: var(--soft); padding: 16px 20px; margin-bottom: 38px; font-size: .9rem; color: var(--ink); max-width: 72ch; }
.docs__avviso b { font-weight: 500; color: var(--text); }
.modulo { border: 1px solid var(--line); padding: 22px 24px; margin-top: 14px; max-width: 72ch; font-size: .9rem; color: var(--ink); }
.modulo p + p { margin-top: 8px; }
.modulo__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.credits { columns: 3 200px; column-gap: 28px; font-size: .84rem; margin-top: 14px; }
.credits li { break-inside: avoid; padding: 2px 0; }
@media (max-width: 860px) {
  .shop, .docs { grid-template-columns: minmax(0, 1fr); }
  .docs__nav { position: static; grid-template-columns: 1fr 1fr; column-gap: 20px; }
}

/* 11. Piè di pagina ------------------------------------------------------- */
.ftr { background: var(--soft); font-size: .9rem; color: var(--ink); }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(48px, 5.6vw, 84px) 44px; }
.ftr .logo { justify-items: start; margin-bottom: 22px; }
.ftr h3 { font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.ftr li { padding: 3px 0; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ftr__about { max-width: 36ch; }
.ftr__hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.ftr__social { display: flex; gap: 0; margin: 16px 0 0 -10px; }
.ftr__bottom { border-top: 1px solid var(--line); padding-block: 20px 26px; display: grid; gap: 6px; font-size: .74rem; color: var(--muted); }
.ftr__legal { max-width: 110ch; }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__top { grid-template-columns: 1fr; } }

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