/* ==========================================================
   Artmirror Tuscany — foglio di stile
   Colori e caratteri principali sono nelle variabili qui sotto.
   ========================================================== */

@font-face { font-family: 'Jost'; src: url(/assets/fonts/jost-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(/assets/fonts/cormorant-garamond-latin-wght-normal.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(/assets/fonts/cormorant-garamond-latin-wght-italic.woff2) format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  /* palette ripresa dalla brochure Artmirror */
  --bg: #f6f3ec;             /* crema brochure: sfondo principale */
  --bg-alt: #ede5da;         /* crema tinta taupe: sezioni alternate */
  --surface: #fdfbf7;        /* riquadri, moduli */
  --taupe: #ab917a;          /* taupe brochure: blocchi di colore */
  --taupe-dark: #8a6f5a;     /* taupe scuro: passaggio del mouse, contatori */
  --taupe-light: #cdb8a4;    /* taupe chiaro: dettagli su fondo scuro */
  --ink: #2e2219;            /* testo principale (marrone quasi nero) */
  --ink-2: #5a493c;          /* testo secondario */
  --muted: #716157;          /* didascalie */
  --line: #e2d8cb;           /* linee e bordi */
  --accent: #77604c;         /* piccole scritte in maiuscolo */
  --dark: #2c2119;           /* marrone espresso: sezioni scure, pulsanti */
  --brand: #1f3b78;          /* blu del logo (usato solo nel logo) */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --hdr-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 2px solid var(--taupe-dark); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: 8px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.rounded { border-radius: var(--radius); }
.hp { position: absolute; left: -9999px; }

/* ---------- tipografia */
.h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
.h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); font-weight: 300; }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.h4 { font-size: 1.45rem; font-weight: 500; }
.kicker { font: 500 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.kicker a { text-decoration: none; }
.kicker--light { color: var(--taupe-light); }
.lead { font-size: 1.1rem; font-weight: 300; color: var(--ink-2); max-width: 62ch; margin: 0 0 1.5rem; text-wrap: pretty; }
.lead--xl { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--ink); }
p { margin: 0 0 1rem; }

/* ---------- pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .8rem 1.7rem; border: 1px solid var(--dark); border-radius: var(--radius); background: var(--dark); color: var(--bg); font: 500 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--taupe-dark); border-color: var(--taupe-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--light:hover { background: var(--taupe-light); border-color: var(--taupe-light); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--bg); border-color: rgba(246, 243, 236, .6); }
.btn--outline-light:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .72rem; }
.btn--lg { min-height: 56px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.2em; height: 1.2em; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .6em; font: 500 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .5em; }
.arrow-link svg { transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- header */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(246, 243, 236, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, color .3s; }
.hdr__in { display: flex; align-items: center; gap: 1rem; height: var(--hdr-h); max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.logo { display: block; flex: none; margin-right: auto; }
.logo img { height: 40px; width: auto; }
.logo__w { display: none; }
.hdr__nav { display: none; align-items: center; gap: clamp(1.4rem, 2.2vw, 2.2rem); margin-right: auto; }
.hdr__link, .hdr__cta { white-space: nowrap; }
.hdr__link { font: 400 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 1.6rem 0; position: relative; }
.hdr__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 1.2rem; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.hdr__link:hover::after, .dd:focus-within .hdr__link::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: .4rem; }
.hdr__lang { font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-decoration: none; padding: .8rem .5rem; }
.hdr__icon { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; padding: 0; }
.hdr__icon svg { width: 24px; height: 24px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--taupe-dark); color: #fff; font: 600 .65rem/18px var(--sans); text-align: center; }
.hdr__cta { display: none; }
.hdr--overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.hdr--overlay .logo__c { display: none; }
.hdr--overlay .logo__w { display: block; }
.hdr--overlay .hdr__cta { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.hdr--overlay.is-solid { background: rgba(246, 243, 236, .96); border-color: var(--line); color: var(--ink); backdrop-filter: blur(10px); }
.hdr--overlay.is-solid .logo__c { display: block; }
.hdr--overlay.is-solid .logo__w { display: none; }
.hdr--overlay.is-solid .hdr__cta { background: var(--dark); color: var(--bg); border-color: var(--dark); }

/* dropdown collezione */
.dd { position: relative; }
.dd__panel { position: absolute; top: 100%; left: -2rem; width: min(760px, 70vw); padding: 1.5rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .1); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.dd:hover .dd__panel, .dd:focus-within .dd__panel { opacity: 1; visibility: visible; transform: none; }
.dd__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.dd__item { text-decoration: none; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.dd__img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; margin-bottom: .6rem; transition: opacity .3s; }
.dd__item:hover .dd__img { opacity: .85; }
.dd__links { display: flex; flex-wrap: wrap; gap: .5rem 2.2rem; }
.dd__all { display: inline-flex; align-items: center; gap: .5em; margin-top: 1.2rem; font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }

@media (min-width: 1200px) {
  .hdr__burger { display: none; }
  .hdr__nav { display: flex; margin-left: clamp(1.5rem, 2.6vw, 2.75rem); }
  .logo { margin-right: 0; }
  .hdr__cta { display: inline-flex; margin-left: .6rem; }
  .logo img { height: 44px; }
}

/* menu mobile */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: var(--ink); }
dialog::backdrop { background: rgba(44, 33, 25, .5); }
.mnav { width: 100%; height: 100%; margin: 0; background: var(--bg); display: none; flex-direction: column; padding: 0 var(--gutter) 2rem; }
.mnav[open] { display: flex; }
.mnav__head { display: flex; justify-content: space-between; align-items: center; height: var(--hdr-h); }
.mnav__links { display: flex; flex-direction: column; padding: 1rem 0 2rem; }
.mnav__links a { font-family: var(--serif); font-size: 2rem; line-height: 1.2; padding: .45rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav__links .mnav__sub { font-size: 1.3rem; padding-left: 1rem; color: var(--ink-2); border-bottom: 0; }
.mnav__foot { margin-top: auto; display: grid; gap: .8rem; font-size: .9rem; color: var(--ink-2); }
.mnav__foot p { margin: .4rem 0 0; text-align: center; }

/* ---------- hero home: slideshow
   smartphone/tablet verticale: foto in alto, testo sotto
   computer/schermi orizzontali: testo a sinistra, foto a destra a tutta altezza */
.hero { position: relative; display: flex; flex-direction: column; background: var(--dark); color: #fff; }
.hero__media { position: relative; height: max(min(110vw, 64svh), 80vw); min-height: 340px; overflow: hidden; background: #3a2c22; touch-action: pan-y; user-select: none; }
.hero__media img { -webkit-user-drag: none; }
.hero__media::before, .hero__media::after { content: ''; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.hero__media::before { top: 0; height: 150px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.hero__media::after { bottom: 0; height: 140px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.hero__slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s; color: #fff; text-decoration: none; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s var(--ease); }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 8s linear; }
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__cap { position: absolute; z-index: 3; left: var(--gutter); bottom: 40px; display: flex; align-items: baseline; gap: 1rem; }
.hero__cap-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1; }
.hero__cap-name sup { font-family: var(--sans); font-size: .45em; }
.hero__cap-more { display: inline-flex; align-items: center; gap: .4em; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.hero__slide:hover .hero__cap-more svg { transform: translateX(4px); }
.hero__cap-more svg { transition: transform .3s var(--ease); }
.hero__dots { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: 12px; display: flex; gap: 6px; }
/* frecce: compaiono passando il mouse sulla foto (su touch si scorre col dito) */
.hero__nav { position: absolute; z-index: 5; top: 50%; display: none; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s, background .2s, border-color .2s; cursor: pointer; }
.hero__nav:hover { background: rgba(255, 255, 255, .28); border-color: rgba(255, 255, 255, .7); }
.hero__nav svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.hero__nav--prev { left: 1.2rem; }
.hero__nav--next { right: 1.2rem; }
@media (hover: hover) {
  .hero__nav { display: grid; }
  .hero__media:hover .hero__nav, .hero__nav:focus-visible { opacity: 1; }
}
.hero__dot { flex: 1; padding: 14px 0; background: none; border: 0; cursor: pointer; }
.hero__dot span { position: relative; display: block; height: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__dot span::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }
/* testo: un'unica colonna in cui titolo, sottotitolo e pulsanti hanno la stessa larghezza */
.hero__content { display: flex; justify-content: center; padding: 2.6rem var(--gutter) 3.2rem; text-align: center; }
.hero__text { width: 100%; max-width: 34rem; container-type: inline-size; }
.hero .kicker { margin-bottom: 1.2rem; }
/* il titolo va a capo nei punti indicati con | nei testi; la grandezza si adatta alla colonna */
.hero .h1 { font-size: clamp(2.1rem, 13.6cqi, 3.9rem); line-height: 1.04; margin-bottom: 1.3rem; text-wrap: initial; }
.hero__line { display: block; white-space: nowrap; }
.hero__sub { font-size: 1rem; font-weight: 300; color: rgba(246, 243, 236, .8); margin: 0 auto 2rem; max-width: 30rem; }
.hero .hero__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: .8rem; }
@media (min-width: 760px) and (min-aspect-ratio: 1/1) {
  .hero { flex-direction: row-reverse; min-height: 100svh; }
  .hero__media { flex: 0 0 56%; height: auto; min-height: 100svh; }
  /* su computer: colonna allineata al logo e centrata in verticale nel pannello scuro */
  .hero__content { flex: 1; align-items: center; justify-content: flex-start; text-align: left; padding: calc(var(--hdr-h) + 2rem) clamp(2rem, 5vw, 5rem) 4.5rem max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .hero .kicker { margin-bottom: 1.6rem; }
  .hero .h1 { font-size: clamp(2.4rem, 13.6cqi, 4.8rem); margin-bottom: 1.6rem; }
  .hero__sub { font-size: 1.06rem; margin: 0 0 2.4rem; max-width: none; }
  .hero__cap { left: 2.5rem; bottom: 52px; }
  .hero__dots { left: 2.5rem; right: 2.5rem; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hero__img, .hero__slide.is-active .hero__img { transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- USP */
.usp { background: var(--taupe); color: var(--ink); }
.usp__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; padding-block: 2rem; }
.usp__list li { display: flex; flex-direction: column; gap: .3rem; }
.usp__list strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.15; }
.usp__list span { font-size: .88rem; color: var(--ink); line-height: 1.5; }
@media (min-width: 900px) { .usp__list { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; padding-block: 2.6rem; } .usp__list li { border-left: 1px solid rgba(46, 34, 25, .25); padding-left: 1.4rem; } }

/* ---------- sezioni */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: 1rem clamp(4rem, 8vw, 6rem); }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.section__head--row .h2, .section__head--row .h3 { margin-bottom: 0; }
.page-head { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: 2rem; }
.page-head .lead { max-width: 70ch; }

/* categorie */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.4vw, 20px); }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(4, 1fr); } .cats--3 { grid-template-columns: repeat(3, 1fr); } }
.cat { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; background: var(--dark); }
.cat__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.cat:hover .cat__img { transform: scale(1.05); opacity: .9; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65)); }
.cat__label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(.9rem, 2vw, 1.6rem); display: flex; flex-direction: column; gap: .2rem; }
.cat__name { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.1; }
.cat__count { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }

/* griglia prodotti */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 3vw, 2.6rem) clamp(10px, 1.6vw, 24px); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card[hidden] { display: none; }
.card__link { display: block; text-decoration: none; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card__img--alt { opacity: 0; }
@media (hover: hover) {
  .card__link:hover .card__img--alt { opacity: 1; }
  .card__link:hover .card__img { transform: scale(1.03); }
}
.card__body { padding-top: .9rem; }
.card__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.1; margin: 0 0 .2rem; }
.card__name sup, .pdp__title sup { font-family: var(--sans); font-size: .4em; font-weight: 400; vertical-align: super; margin-left: .15em; }
.card__type { font-size: .82rem; color: var(--muted); line-height: 1.4; margin: 0 0 .6rem; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; font-size: .75rem; letter-spacing: .06em; color: var(--ink-2); }
.dots { display: inline-flex; gap: 4px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.dots__more { margin-left: 3px; font-size: .7rem; letter-spacing: .02em; color: var(--muted); align-self: center; }
/* su tablet (3 colonne) nelle griglie scelte a mano non si lasciano schede isolate sull'ultima riga */
@media (min-width: 700px) and (max-width: 1099px) {
  .grid--curated > .card:nth-child(3n+1):last-child, .grid--curated > .card:nth-child(3n+1):nth-last-child(2), .grid--curated > .card:nth-child(3n+2):last-child { display: none; }
}
.grid-empty { text-align: center; padding: 3rem 0; color: var(--muted); }

/* filtri */
.filters { position: sticky; top: var(--hdr-h); z-index: 20; background: var(--bg); padding: .8rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.filters__row--main { display: flex; align-items: center; gap: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips--scroll { flex: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1) 0; padding-inline: var(--gutter) .5rem; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 400 .82rem/1 var(--sans); letter-spacing: .03em; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--dark); color: var(--bg); border-color: var(--dark); }
.chip .dot { width: 16px; height: 16px; }
.chip--toggle { flex: none; }
.chip__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--taupe-dark); color: #fff; font-size: .68rem; }
.filters__more { display: none; padding-top: 1rem; gap: 1rem; }
.filters.is-open { position: static; }
.filters.is-open .filters__more { display: grid; }
.filters__group { display: grid; gap: .5rem; }
.filters__label { font: 500 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.filters__count { margin: .8rem 0 0; font-size: .8rem; color: var(--muted); }
@media (min-width: 900px) {
  .filters { position: static; }
  .filters__more { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.2rem 2.5rem; }
  .chip--toggle { display: none; }
  .chips--scroll { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}

/* split */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--rev .split__media { order: 2; } }
.split__media img { width: 100%; }
.split--hero { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.mosaic { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__a { grid-row: 1 / 3; }

/* fascia professionisti */
.pro { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.pro__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pro__content { position: relative; padding-block: clamp(5rem, 12vw, 10rem); }
.pro .h2 { max-width: 18ch; }
.pro .lead { color: rgba(255, 255, 255, .88); }

/* banda CTA */
/* fascia color taupe come i blocchi della brochure */
.band { background: var(--taupe); color: var(--ink); }
.band__in { display: grid; gap: 2rem; padding-block: clamp(3.5rem, 7vw, 6rem); align-items: end; }
.band .kicker { color: var(--ink); opacity: .8; }
.band .lead { color: var(--ink); margin-bottom: 0; }
.band .btn--light { background: var(--dark); color: var(--bg); border-color: var(--dark); }
.band .btn--light:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.band .btn--outline-light { color: var(--ink); border-color: var(--ink); }
.band .btn--outline-light:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.band__btns { display: flex; flex-wrap: wrap; gap: .8rem; }
@media (min-width: 900px) { .band__in { grid-template-columns: 1.4fr 1fr; } .band__btns { justify-content: flex-end; } }

/* sezione contatto / form */
.lead-sec { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 900px) { .lead-sec { grid-template-columns: 1fr 1.15fr; } }
.lead-sec__img { margin: 2rem 0 0; max-width: 420px; }
.card-box { background: var(--surface); padding: clamp(1.4rem, 3vw, 2.6rem); border: 1px solid var(--line); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list svg { color: var(--accent); }
.contact-info { display: grid; gap: 1.8rem; }
.contact-info p { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .5rem; }
.contact-info svg { color: var(--accent); margin-top: .25em; }
.contact-info .h4 { margin-bottom: .6rem; }

.form__grid { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
@media (min-width: 600px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.form--drawer .form__grid { grid-template-columns: 1fr; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .78rem; letter-spacing: .06em; color: var(--ink-2); }
.req { color: var(--accent); }
.form__req { margin: -.3rem 0 1rem; font-size: .75rem; color: var(--muted); }
.field__hint { margin: .4rem 0 0; font-size: .75rem; color: var(--muted); }
.field__err { margin: .4rem 0 0; font-size: .8rem; color: #9b2c1f; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font: 400 1rem/1.4 var(--sans); color: var(--ink); transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.field input[type="file"] { padding: .6rem; font-size: .85rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 1.2rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--ink); }
.form__note { display: flex; justify-content: center; align-items: center; gap: .5rem; margin: .9rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.form__note svg { color: var(--taupe-dark); }
.form__error { margin: 1rem 0 0; padding: .8rem 1rem; background: #fbeaea; color: #8a1f1f; font-size: .88rem; }

/* ---------- breadcrumb */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 1.2rem 0; font-size: .75rem; letter-spacing: .06em; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- hero categoria */
.cat-hero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; color: #fff; background: var(--dark); overflow: hidden; }
.cat-hero--tall { min-height: 80svh; }
.cat-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cat-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .7)); }
.cat-hero__content { position: relative; z-index: 1; padding-top: calc(var(--hdr-h) + 3rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.cat-hero .lead { color: rgba(255, 255, 255, .9); margin-bottom: 0; }

/* ---------- scheda prodotto */
.pdp { display: grid; gap: clamp(1.5rem, 4vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
@media (min-width: 1000px) { .pdp { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } .pdp__info { position: sticky; top: calc(var(--hdr-h) + 1.5rem); } }
.gal { position: relative; min-width: 0; }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--bg-alt); margin-inline: calc(var(--gutter) * -1); }
.gal__track::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .gal__track { margin-inline: 0; } }
.gal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 1 / 1; }
.gal__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
/* la foto intera resta sempre visibile e centrata, qualunque sia il formato */
.gal__img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* frecce della galleria: cerchio quasi trasparente, visibili solo con il mouse sopra la foto */
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(30, 22, 17, .14); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s, background .2s, border-color .2s; cursor: pointer; }
.gal__nav:hover { background: rgba(30, 22, 17, .3); border-color: rgba(255, 255, 255, .7); }
.gal__nav svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.gal__nav--prev { left: 1rem; }
.gal__nav--next { right: 1rem; }
@media (hover: hover) and (min-width: 1000px) {
  .gal__nav { display: grid; top: calc(50% - 44px); }
  .gal:hover .gal__nav, .gal__nav:focus-visible { opacity: 1; }
}
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 1px solid transparent; background: var(--bg-alt); opacity: .6; transition: opacity .2s, border-color .2s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb.is-active, .gal__thumb:hover { opacity: 1; border-color: var(--ink); }
.gal__thumb.is-dim { opacity: .25; }
@media (min-width: 1000px) { .gal__thumb { flex-basis: 88px; height: 88px; } }

.pdp__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; margin: 0 0 .4rem; }
.pdp__type { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.pdp__tagline { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--ink-2); margin-bottom: 1.6rem; }
.config { display: grid; gap: 1.4rem; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt legend, .opt > label { font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); margin-bottom: .7rem; padding: 0; }
.opt legend strong { font-weight: 500; color: var(--ink); }
.opt--row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.opt--row > label { margin: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: .7rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch__ball { display: block; width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.swatch input:checked + .swatch__ball { outline: 1.5px solid var(--ink); }
.swatch input:focus-visible + .swatch__ball { outline: 2px solid var(--taupe-dark); }
/* finiture su richiesta */
.more-fin { margin-top: .9rem; border-top: 1px dashed var(--line); padding-top: .7rem; }
.more-fin summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; font-size: .86rem; color: var(--ink); }
.more-fin summary span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--taupe); }
.more-fin summary:hover span { text-decoration-color: var(--ink); }
.more-fin summary::-webkit-details-marker { display: none; }
/* freccetta verso il basso che si capovolge quando il pannello è aperto */
.more-fin summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s var(--ease); }
.more-fin[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.more-fin__intro { font-size: .84rem; color: var(--ink-2); margin: .3rem 0 1rem; }
.more-fin__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 1rem .6rem; }
.swatch--named { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; }
.swatch--named .swatch__ball { width: 40px; height: 40px; }
.swatch__name { font-size: .74rem; line-height: 1.25; color: var(--ink-2); }
.swatch--named input:checked ~ .swatch__name { color: var(--ink); font-weight: 500; }
.more-fin__note { font-size: .78rem; color: var(--muted); margin: 1rem 0 0; }
.fin-note { margin: .8rem 0 0; padding: .7rem .9rem; background: var(--bg-alt); font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt__meta { margin: .8rem 0 0; font-size: .82rem; color: var(--ink-2); }
.opt__meta strong { font-weight: 500; color: var(--ink); }
.opt__meta span { color: var(--muted); }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; letter-spacing: .02em; transition: border-color .2s, background .2s, color .2s; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--dark); color: var(--bg); border-color: var(--dark); }
.pill input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.pill:has(input:disabled) { cursor: not-allowed; }
.pill input:focus-visible + span { outline: 2px solid var(--taupe-dark); outline-offset: 2px; }
.qty { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.1rem; }
.qty input { width: 52px; height: 44px; border: 0; border-inline: 1px solid var(--line); text-align: center; font: 400 1rem var(--sans); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.trust { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .5rem; font-size: .86rem; color: var(--ink-2); }
.trust li { display: flex; align-items: center; gap: .6rem; }
.trust svg { color: var(--taupe-dark); }
.pdp__desc, .pdp__specs { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 1.6rem; }
.pdp__desc p { color: var(--ink-2); }
.specs { margin: 0; display: grid; }
.specs div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.specs__w { color: var(--muted); margin-left: .25rem; }
/* installazione */
.specs__link { font-size: .84rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--taupe); }
.pdp__install { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 1.6rem; scroll-margin-top: calc(var(--hdr-h) + 1rem); }
.pdp__install > p { color: var(--ink-2); }
.install__guide { margin: .4rem 0 1rem; }
.install__guide summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; font-size: .9rem; color: var(--ink); }
.install__guide summary span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--taupe); }
.install__guide summary::-webkit-details-marker { display: none; }
.install__guide summary::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s var(--ease); }
.install__guide[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.install__lead { font-size: .9rem; color: var(--ink-2); margin: .6rem 0 1rem; }
.install__method { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 1.2rem; align-items: start; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.install__method p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.install__title { font: 500 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 .6rem; }
.install__sizes { letter-spacing: .06em; text-transform: none; color: var(--muted); }
.install__steps { margin: 0; padding-left: 1.2rem; font-size: .9rem; color: var(--ink-2); display: grid; gap: .35rem; }
.install__thumb { display: block; width: 110px; height: 110px; padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; overflow: hidden; }
.install__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.install__thumb:hover img { transform: scale(1.05); }
.install__pdf { margin-top: .6rem; }
.install__floor { padding: 1.1rem 0 .4rem; border-top: 1px solid var(--line); }
.install__floor p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.install__note { font-size: .82rem; color: var(--muted) !important; margin-top: .4rem; }

.pdp__reg { margin: -.4rem 0 1rem; font: 500 .7rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pdp__regnote { margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.pdp__custom { margin-top: 1.8rem; padding: 1.2rem 1.4rem; background: var(--bg-alt); font-size: .9rem; }
.pdp__custom a { display: inline-flex; align-items: center; gap: .3em; font-weight: 500; }

/* barra CTA fissa su mobile */
.sticky-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 243, 236, .97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta__wa { flex: 0 0 56px; padding: 0; color: #1a8d4a; }
.sticky-cta__wa svg { width: 26px; height: 26px; }
@media (min-width: 1000px) { .sticky-cta { display: none; } }
.is-product .ftr { padding-bottom: 80px; }
@media (min-width: 1000px) { .is-product .ftr { padding-bottom: 0; } }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; margin: 0; background: rgba(30, 22, 17, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: 12px; right: 12px; color: #fff; }

/* ---------- drawer richiesta */
.drawer { margin: 0 0 0 auto; width: min(480px, 100vw); height: 100%; background: var(--bg); box-shadow: -20px 0 60px rgba(0, 0, 0, .12); }
.drawer[open] { display: flex; flex-direction: column; animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 0 1rem 0 1.5rem; height: var(--hdr-h); border-bottom: 1px solid var(--line); flex: none; }
.drawer__head h2 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0; }
.drawer__body { overflow-y: auto; padding: 1.4rem 1.5rem 2rem; flex: 1; }
.drawer__toast { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; background: var(--bg-alt); color: var(--ink); font-size: .88rem; margin-bottom: 1rem; }
.req-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .8rem; }
.req-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding: .7rem; background: var(--surface); border: 1px solid var(--line); }
.req-item img { width: 64px; height: 80px; object-fit: cover; }
.req-item__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; text-decoration: none; }
.req-item__meta { display: block; font-size: .78rem; color: var(--muted); line-height: 1.45; margin-top: .2rem; }
.req-item__rm { background: none; border: 0; color: var(--muted); font-size: .75rem; text-decoration: underline; padding: .5rem; }
.req-empty { font-size: .9rem; color: var(--ink-2); padding: 1rem; background: var(--bg-alt); }
.drawer .link-btn { margin: 0 0 1.4rem; }

/* ---------- su misura, atelier */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steps li { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.steps p, .process p, .feature-grid p { color: var(--ink-2); font-size: .95rem; }
.steps__n { display: block; font: 500 .75rem/1 var(--sans); letter-spacing: .2em; color: var(--accent); margin-bottom: 1rem; }
.feature-grid { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-grid li { background: var(--surface); padding: 1.6rem; border: 1px solid var(--line); }
.finishes-title { margin-top: 1rem; }
.finish-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1rem; }
@media (min-width: 600px) { .finish-grid { grid-template-columns: repeat(4, minmax(0, 150px)); } }
@media (min-width: 1000px) { .finish-grid { grid-template-columns: repeat(6, minmax(0, 150px)); } }
.finish-grid li { display: grid; gap: .6rem; font-size: .82rem; color: var(--ink-2); line-height: 1.35; }
.finish-grid__sw { width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 70ch; padding-bottom: 1.2rem; }
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 1.2rem; }
.wide-img img { width: 100%; height: clamp(260px, 45vw, 560px); object-fit: cover; }

/* ---------- pagina contatti */
.cat-hero--contact { min-height: 50svh; }
.cat-hero--contact .cat-hero__img { object-position: 50% 45%; }
.cat-hero--contact .cat-hero__content { padding-bottom: calc(clamp(2.5rem, 6vw, 4.5rem) + 2.5rem); }
.cat-hero--contact .lead { max-width: 56ch; }
@media (min-width: 900px) { .cat-hero--contact { min-height: 58svh; } }
/* tre contatti rapidi che si sovrappongono al fondo della foto */
.quick { position: relative; z-index: 2; margin-top: -2.5rem; }
.quick__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
@media (min-width: 1100px) { .quick__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; } }
.quick__item { position: relative; display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.05rem 1.2rem; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: 0 12px 34px rgba(44, 33, 25, .07); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.quick__item:hover { transform: translateY(-3px); border-color: var(--taupe); box-shadow: 0 18px 42px rgba(44, 33, 25, .11); }
.quick__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-alt); color: var(--taupe-dark); transition: background .3s, color .3s; }
.quick__icon svg { width: 22px; height: 22px; }
.quick__item:hover .quick__icon { background: var(--dark); color: var(--bg); }
.quick__text { display: flex; flex-direction: column; min-width: 0; }
.quick__label { font: 500 .66rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.quick__value { font-family: var(--serif); font-size: clamp(1.08rem, 4.9vw, 1.28rem); line-height: 1.25; color: var(--ink); white-space: nowrap; }
@media (max-width: 819px) { .quick__item { padding: .85rem 1rem; } .quick__icon { width: 44px; height: 44px; } }
.quick__arrow { margin-left: auto; padding-left: .5rem; color: var(--taupe-dark); transition: transform .3s var(--ease); }
.quick__item:hover .quick__arrow { transform: translateX(4px); }
@media (min-width: 820px) { .quick__item { padding: 1.4rem 1.5rem; } }
/* modulo e riquadro scuro del laboratorio */
.contact-main { display: grid; gap: 1.6rem; padding-bottom: clamp(3.5rem, 7vw, 6rem); }
@media (min-width: 1000px) { .contact-main { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 2.4rem; align-items: start; } }
.contact-form .h3 { margin-bottom: .6rem; }
.contact-form__intro { font-size: .95rem; color: var(--ink-2); margin-bottom: 1.8rem; max-width: 58ch; }
.visit { background: var(--dark); color: var(--bg); overflow: hidden; }
@media (min-width: 1000px) { .visit { position: sticky; top: calc(var(--hdr-h) + 1.5rem); } }
.visit__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; }
.visit__body { padding: clamp(1.6rem, 3vw, 2.4rem); }
.visit .kicker { color: var(--taupe-light); }
.visit .h3 { color: var(--bg); margin-bottom: .9rem; }
.visit p { color: rgba(246, 243, 236, .78); font-size: .95rem; }
.visit address { display: flex; gap: .8rem; margin: 1.5rem 0 1.3rem; font-style: normal; line-height: 1.7; color: var(--bg); }
.visit address svg { color: var(--taupe-light); margin-top: .3em; }
.visit .btn svg { width: 1.1em; height: 1.1em; }
.visit a { text-decoration: none; }
.visit__phones { margin: 1.8rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(246, 243, 236, .15); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.visit__phones dt { font: 500 .66rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-light); margin-bottom: .2rem; }
.visit__phones dd { margin: 0; }
.visit__phones a:hover { text-decoration: underline; }
.visit__social { display: flex; align-items: center; gap: .6rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(246, 243, 236, .15); font: 500 .66rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-light); }
.visit__social span { margin-right: auto; }
.visit__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(246, 243, 236, .25); border-radius: 50%; color: var(--bg); transition: border-color .2s, background .2s; }
.visit__social a:hover { border-color: var(--bg); background: rgba(246, 243, 236, .08); }

/* ---------- grazie, legali */
.thanks { text-align: center; padding-block: calc(var(--hdr-h) + 2rem) 6rem; display: flex; flex-direction: column; align-items: center; }
.thanks .lead { margin-inline: auto; }
.thanks__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bg-alt); color: var(--taupe-dark); margin-bottom: 1.5rem; }
.thanks__icon svg { width: 34px; height: 34px; }
.thanks .hero__btns { justify-content: center; margin: 1rem 0 2rem; }
.thanks__urgent { font-size: .9rem; color: var(--muted); }
.legal { max-width: 820px; }
.legal p { color: var(--ink-2); }
.legal .h4 { margin-top: 2rem; }
.legal ul { color: var(--ink-2); padding-left: 1.2rem; display: grid; gap: .5rem; }
.legal__date { font-size: .85rem; color: var(--muted) !important; }
.legal__table { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--line); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .85rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 500; background: var(--bg-alt); }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-size: .8rem; }
.note { background: #fff6dd; padding: .7rem 1rem; font-size: .85rem; }

/* ---------- footer */
.ftr { background: var(--dark); color: rgba(255, 255, 255, .78); font-size: .9rem; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__grid { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }
.ftr__brand img { width: 170px; margin-bottom: 1.2rem; opacity: .95; }
.ftr__brand p { max-width: 34ch; }
.ftr__h { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin: 0 0 1.2rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ftr address { font-style: normal; line-height: 1.9; }
.ftr .link-btn { font-size: .9rem; text-decoration: none; color: inherit; }
.ftr__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.ftr__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; color: rgba(255, 255, 255, .55); }
.ftr__bottom p { margin: 0; }
.ftr__legal { flex: 1 1 520px; max-width: 900px; line-height: 1.7; }

/* avviso "email copiata" */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 28px; transform: translate(-50%, 12px); padding: .8rem 1.3rem; background: var(--dark); color: var(--bg); font-size: .88rem; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- banner cookie */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 580px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 1.3rem 1.4rem 1.2rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .15); font-size: .86rem; }
.consent__title { font: 500 1.35rem/1.2 var(--serif); margin: 0 2.5rem .6rem 0; }
.consent__text { margin-bottom: 1rem; color: var(--ink-2); }
.consent__x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink); }
.consent__x svg { width: 20px; height: 20px; }
.consent__prefs { display: grid; gap: .2rem; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.consent__opt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.consent__opt-text { display: grid; gap: .15rem; }
.consent__opt-text span { color: var(--muted); font-size: .8rem; }
.consent__always { flex: none; font-size: .75rem; color: var(--muted); }
.consent__btns { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; justify-content: flex-end; }
.consent__custom { margin-right: auto; font-size: .85rem; }
.consent__btns .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .consent__btns .btn { flex: 0 0 auto; } }
@media (min-width: 700px) { .consent { left: 24px; bottom: 24px; } }
/* interruttore on/off */
.switch { position: relative; flex: none; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__ui { position: absolute; inset: 0; border-radius: 13px; background: var(--line); transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch input:checked + .switch__ui { background: var(--dark); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
