/* ==========================================================================
   Zefiro Materassi — foglio di stile condiviso
   ========================================================================== */

/* Caratteri ospitati nel sito (nessuna richiesta a Google: niente dati dei visitatori a terzi).
   Licenza SIL Open Font License, vedi assets/fonts/OFL-*.txt */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(../assets/fonts/cormorant-garamond-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../assets/fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(../assets/fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colori del marchio (dal logo) */
  --notte: #0b2d4e;        /* blu notte: titoli, sezioni scure, CTA */
  --notte-2: #123a61;      /* hover del blu */
  --sabbia: #a8916c;       /* oro sabbia: dettagli, linee, accenti */
  --sabbia-chiara: #c9b48f;

  /* Neutri */
  --lino: #f4f0e8;         /* sfondo pagina */
  --tortora: #e7dfd3;      /* superfici secondarie, footer */
  --bianco: #fbf9f5;
  --inchiostro: #1c2833;   /* testo */
  --pietra: #5f5d57;       /* testo secondario (5.9:1 su lino) */
  --linea: #cfc5b5;

  /* Titoli: Cormorant Garamond semigrassetto */
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --serif-peso: 600;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1280px;
  --header-h: 84px;

  --ease-out: cubic-bezier(.22, .61, .36, 1);

  /* Arrotondamento dei controlli (pulsanti, campi). Foto e riquadri restano squadrati. */
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* le ancore (#showroom, #marchi…) non finiscono sotto l'header fisso */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-variant-numeric: lining-nums;
  background: var(--lino);
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--sabbia);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--notte); color: var(--bianco);
  padding: .75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--serif);
  font-weight: var(--serif-peso);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.display--xl { font-size: clamp(2.3rem, 9.2vw, 7.6rem); }
.display--l  { font-size: clamp(2.4rem, 6vw, 5rem); }
.display--m  { font-size: clamp(1.8rem, 3.6vw, 3rem); }

.kicker {
  display: inline-block;
  font-size: .875rem;
  letter-spacing: .04em;
  color: var(--pietra);
  margin: 0 0 1.25rem;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  max-width: 34em;
}

p { margin: 0 0 1em; }
.prose { max-width: 38em; }

/* --------------------------------------------------------------------------
   Pulsanti e link
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  font-size: .9rem;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  touch-action: manipulation;
}
.btn:hover { background: var(--notte); color: var(--bianco); border-color: var(--notte); }

.btn--solid { background: var(--notte); color: var(--bianco); border-color: var(--notte); }
.btn--solid:hover { background: var(--notte-2); border-color: var(--notte-2); }

.btn--light { color: var(--bianco); }
.btn--light:hover { background: var(--bianco); color: var(--notte); border-color: var(--bianco); }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  font-size: .9rem; letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid var(--sabbia);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--notte); border-color: var(--notte); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--notte);
  background: rgba(244, 240, 232, .96);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--linea); }
.site-header.is-open { background: var(--lino); }

/* Sulla home l'header parte trasparente sopra l'hero */
.site-header--overlay:not(.is-scrolled):not(.is-open) {
  background: transparent;
  color: var(--bianco);
}

.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.brand { display: block; line-height: 0; }
.brand img { height: 58px; width: auto; }
.brand .brand__light { display: none; }
.site-header--overlay:not(.is-scrolled):not(.is-open) .brand__dark { display: none; }
.site-header--overlay:not(.is-scrolled):not(.is-open) .brand__light { display: block; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.nav__list { display: flex; gap: clamp(1.25rem, 2.5vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: .9rem; letter-spacing: .05em;
  border-bottom: 1px solid transparent;
}
.nav__list a:hover { border-bottom-color: currentColor; }
.nav__list a[aria-current="page"] { border-bottom-color: var(--sabbia); }

.nav__cta { color: inherit; }
.site-header:not(.site-header--overlay) .nav__cta,
.site-header.is-scrolled .nav__cta { background: var(--notte); color: var(--bianco); border-color: var(--notte); }
.site-header:not(.site-header--overlay) .nav__cta:hover,
.site-header.is-scrolled .nav__cta:hover { background: var(--notte-2); }
.site-header--overlay:not(.is-scrolled):not(.is-open) .nav__cta:hover { background: var(--bianco); color: var(--notte); border-color: var(--bianco); }

/* Icone social */
.social { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.social__link {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: inherit;
  border-radius: 50%;
  transition: color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.social__link:hover { color: var(--sabbia); }
.social--header { margin-left: -.5rem; }
.social--footer { margin-left: -10px; color: var(--notte); }
.social--footer .social__link:hover { color: var(--bianco); background: var(--notte); }
.site-footer h2.site-footer__follow { margin: 1.5rem 0 .25rem; }

.menu-toggle {
  display: none;
  align-items: center; gap: .75rem;
  min-height: 48px; padding: 0 .25rem;
  background: none; border: 0; cursor: pointer;
  font-size: .9rem; letter-spacing: .08em;
}
.menu-toggle__bars { position: relative; width: 30px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .3s var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { bottom: 0; }
.is-open .menu-toggle__bars::before { transform: translateY(4.5px) rotate(45deg); }
.is-open .menu-toggle__bars::after { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2rem;
    padding: 2.5rem var(--gutter);
    background: var(--lino); color: var(--notte);
    visibility: hidden; opacity: 0;
    transition: opacity .25s var(--ease-out), visibility 0s linear .25s;
  }
  .is-open .nav { visibility: visible; opacity: 1; transition: opacity .25s var(--ease-out); }
  .nav__list { flex-direction: column; gap: .5rem; }
  .nav__list a { font-family: var(--serif); font-weight: var(--serif-peso); font-size: 2rem; text-transform: uppercase; letter-spacing: .05em; }
  .nav__cta { border-radius: var(--radius); background: var(--notte); color: var(--bianco); border-color: var(--notte); }
  .social--header { margin-left: -10px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__list { gap: 1.1rem; }
  .social__link { width: 40px; height: 40px; }
}

/* --------------------------------------------------------------------------
   Sezioni generiche
   -------------------------------------------------------------------------- */

main { display: block; }
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tortora { background: var(--tortora); }
.section--notte { background: var(--notte); color: var(--bianco); }
.section--notte .kicker { color: var(--sabbia-chiara); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero .lead { margin-top: 1.75rem; color: var(--pietra); }

/* --------------------------------------------------------------------------
   Hero home
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--bianco);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 45, 78, .55) 0%, rgba(11, 45, 78, .18) 38%, rgba(20, 22, 26, .55) 100%);
}
.hero__content {
  text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 6rem;
}
.hero__wind {
  width: clamp(140px, 18vw, 220px); height: auto;
  margin: 0 auto 2rem;
  overflow: visible;
}
.hero__wind path {
  fill: none; stroke: var(--bianco); stroke-width: 2.2; stroke-linejoin: round;
}
.hero__wind .g { stroke: var(--sabbia-chiara); }
.hero__title { text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hero__sub {
  margin: 1.75rem auto 2.5rem;
  max-width: 32em;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  letter-spacing: .02em;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(251, 249, 245, .6);
  color: var(--bianco); text-decoration: none;
}
.hero__scroll:hover { background: rgba(251, 249, 245, .15); }

/* Sequenza d'ingresso: il vento si disegna, poi compare il testo */
@media (prefers-reduced-motion: no-preference) {
  .hero__wind path {
    stroke-dasharray: var(--len, 900);
    stroke-dashoffset: var(--len, 900);
    animation: draw 2.2s var(--ease-out) forwards;
  }
  .hero__wind path:nth-child(2) { animation-delay: .15s; }
  .hero__wind path:nth-child(3) { animation-delay: .3s; }
  .hero__wind path:nth-child(4) { animation-delay: .45s; }
  .hero__wind path:nth-child(5) { animation-delay: .6s; }
  .hero__wind path:nth-child(6) { animation-delay: .75s; }
  .hero__title, .hero__sub, .hero__actions {
    opacity: 0; transform: translateY(14px);
    animation: rise 1.1s var(--ease-out) forwards;
  }
  .hero__title { animation-delay: .9s; }
  .hero__sub { animation-delay: 1.15s; }
  .hero__actions { animation-delay: 1.35s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Storia (home) + numeri
   -------------------------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.story__text p { max-width: 30em; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: 0; list-style: none;
  text-align: center;
}
.facts__num {
  display: block;
  font-family: var(--serif); font-weight: var(--serif-peso);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--sabbia);
  font-variant-numeric: lining-nums;
}
.facts__label { display: block; margin-top: .9rem; font-size: .9rem; color: var(--pietra); max-width: 18em; margin-inline: auto; }

.wide-photo {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2.5rem; }
  .wide-photo { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   Carosello collezione (home)
   -------------------------------------------------------------------------- */

.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - 3 * 1.25rem) / 3.4));
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  /* spazio per sollevamento e ombra delle schede, che altrimenti verrebbero tagliati */
  padding-top: 14px; padding-bottom: 3rem;
  margin: -14px 0 -1.5rem; list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--sabbia) transparent;
}
.carousel__track > li { scroll-snap-align: start; }
.carousel__controls { display: flex; gap: .75rem; }
.icon-btn {
  border-radius: 50%;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--notte); background: transparent; color: var(--notte);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--notte); color: var(--bianco); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--notte); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative; overflow: hidden;
  background: var(--tortora);
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
}
.site-footer__ghost {
  position: absolute; left: 50%; top: clamp(1.5rem, 4vw, 3rem); transform: translateX(-50%);
  width: min(92%, 1200px); height: auto;
  opacity: .09; pointer-events: none;
}
.site-footer__grid {
  position: relative;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-top: clamp(4rem, 9vw, 9rem);
}
.site-footer h2 {
  font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: .06em;
  margin: 0 0 1rem; color: var(--notte);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; font-size: .95rem; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer address { font-style: normal; font-size: .95rem; }
.site-footer__logo { width: 150px; margin-bottom: 1.25rem; }
.site-footer__about { font-size: .95rem; max-width: 22em; color: var(--pietra); }
.site-footer__legal {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--linea);
  font-size: .85rem; color: var(--pietra);
}
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Riquadri segnaposto per le immagini (da sostituire con le foto vere)
   -------------------------------------------------------------------------- */

.ph {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem;
  width: 100%;
  padding: clamp(.9rem, 2vw, 1.4rem);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(11, 45, 78, .045) 14px 15px),
    var(--tortora);
  border: 1px dashed rgba(11, 45, 78, .28);
  color: var(--notte);
  overflow: hidden;
}
.ph::before {
  /* icona "foto" in alto a sinistra */
  content: ""; flex: 0 0 auto; margin-bottom: auto;
  width: 26px; height: 20px;
  border: 1.4px solid currentColor; border-radius: 3px; opacity: .55;
  background:
    radial-gradient(circle at 70% 32%, currentColor 0 2px, transparent 2.5px),
    linear-gradient(135deg, transparent 52%, currentColor 52% 56%, transparent 56%) 0 6px / 100% 100% no-repeat;
}
.ph__what { font-size: .88rem; margin-top: .75rem; line-height: 1.4; font-weight: 500; max-width: 34em; }
.ph__size { font-size: .78rem; letter-spacing: .02em; color: var(--pietra); }
/* foto vera sopra il riquadro segnaposto: compare quando il file esiste */
.ph__photo { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }

.wide-ph { aspect-ratio: 21 / 9; border-left: 0; border-right: 0; }
@media (max-width: 700px) { .wide-ph { aspect-ratio: 4 / 3 !important; } }

/* Hero senza foto: fondo blu con nota sul formato richiesto */
.hero--ph .hero__placeholder {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201, 180, 143, .22), transparent 60%),
    linear-gradient(180deg, #0b2d4e 0%, #12395f 55%, #0a2643 100%);
}
.hero--ph::after { display: none; }
.ph-note {
  position: absolute; left: var(--gutter); bottom: 1.5rem; z-index: 1;
  max-width: min(38em, calc(100% - 7rem));
  margin: 0; padding: .6rem .8rem;
  font-size: .78rem; line-height: 1.4;
  color: var(--bianco);
  border: 1px dashed rgba(251, 249, 245, .45);
}
@media (max-width: 700px) { .ph-note { display: none; } }

/* --------------------------------------------------------------------------
   Categorie (home)
   -------------------------------------------------------------------------- */

.tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem; margin: 0; padding: 0; list-style: none;
}
/* Scheda categoria: foto con fascia del nome, ombra e sollevamento al passaggio */
.tile {
  --lift: 0px;
  position: relative; display: block; overflow: hidden;
  text-decoration: none; color: var(--bianco);
  box-shadow: 0 2px 4px rgba(11, 45, 78, .08), 0 12px 28px -8px rgba(11, 45, 78, .28);
  transform: translateY(var(--lift));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
  will-change: transform;
}
.tile .ph { border: 0; padding-bottom: 5rem; }
.tile__photo {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.tile__band {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem;
  background: rgba(11, 45, 78, .55);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
  border-top: 1px solid rgba(201, 180, 143, .55);
  transition: background-color .45s var(--ease-out), padding .45s var(--ease-out);
}
.tile__name {
  font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase; letter-spacing: .07em;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.1;
}
.tile__go {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(251, 249, 245, .6);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .45s var(--ease-out);
}
.tile:hover, .tile:focus-visible {
  --lift: -8px;
  box-shadow: 0 4px 8px rgba(11, 45, 78, .1), 0 28px 50px -12px rgba(11, 45, 78, .45);
}
.tile:hover .tile__photo, .tile:focus-visible .tile__photo { transform: scale(1.06); }
.tile:hover .tile__band, .tile:focus-visible .tile__band { background: rgba(11, 45, 78, .82); padding-block: 1.3rem; }
.tile:hover .tile__go, .tile:focus-visible .tile__go { background: var(--sabbia-chiara); border-color: var(--sabbia-chiara); color: var(--notte); transform: translateX(4px); }
.tile:focus-visible { outline: 2px solid var(--sabbia); outline-offset: 4px; }
.tile:active { --lift: -3px; transition-duration: .15s; }

/* Comparsa allo scorrimento (attivata dallo script solo se il movimento è consentito) */
.reveal-ready .tiles > li, .reveal-ready .grid > li, .reveal-ready .carousel__track > li, .reveal-ready .posts > li { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal-ready .tiles > li.is-visible, .reveal-ready .grid > li.is-visible, .reveal-ready .carousel__track > li.is-visible, .reveal-ready .posts > li.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .tiles { gap: .9rem; }
  .tiles .ph__what { font-size: .8rem; }
  .tile__band { padding: .75rem .8rem; }
  .tile__name { font-size: 1rem; }
  .tile__go { width: 32px; height: 32px; }
}

/* Pilastri del marchio */
.pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem;
  margin: clamp(3.5rem, 7vw, 6rem) 0 0; padding: 2.5rem 0 0; list-style: none;
  border-top: 1px solid var(--linea);
}
.pillars h3, .steps h3 {
  font-family: var(--serif); font-weight: var(--serif-peso); font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--notte); margin: 0 0 .75rem;
}
.pillars p, .steps p { color: var(--pietra); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.carousel__bar { display: flex; justify-content: flex-end; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Scheda prodotto (card)
   -------------------------------------------------------------------------- */

.product {
  --lift: 0px;
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--bianco);
  color: var(--notte);
  /* profondità: ombra corta e nitida + ombra lunga e morbida */
  box-shadow: 0 1px 2px rgba(11, 45, 78, .06), 0 14px 30px -12px rgba(11, 45, 78, .28);
  transform: translateY(var(--lift));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.product:hover, .product:focus-within {
  --lift: -8px;
  box-shadow: 0 4px 10px rgba(11, 45, 78, .08), 0 34px 60px -18px rgba(11, 45, 78, .45);
}
.product__media { position: relative; overflow: hidden; }
/* luce che attraversa la foto, come un riflesso sulla seta */
.product__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease-out);
}
.product:hover .product__media::after { transform: translateX(120%); }
/* leggera vignettatura che fonde la foto con la scheda */
.product__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 -40px 50px -30px rgba(11, 45, 78, .28);
}
img.product__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease-out); }
.product:hover img.product__img { transform: scale(1.06); }
.product__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product__name {
  display: flex; align-items: center; gap: .9rem;
  margin: 0;
  font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase;
  font-size: 1.35rem; letter-spacing: .05em; line-height: 1.15;
}
.product__type { font-size: .9rem; color: var(--pietra); margin: 0; }
.product__cta {
  display: flex; align-items: center; gap: .7rem;
  margin: auto 0 0; padding-top: 1.1rem;
  font-size: .85rem; letter-spacing: .04em;
}
.product__cta::after { content: ""; flex: 0 0 28px; height: 1px; background: var(--sabbia); transition: flex-basis .3s var(--ease-out); }
.product:hover .product__cta::after { flex-basis: 52px; }
.product__link { color: inherit; text-decoration: none; }
.product__link::before { content: ""; position: absolute; inset: 0; }
.product:focus-within { outline: 2px solid var(--sabbia); outline-offset: 3px; }
.product__link:focus-visible { outline: none; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem 1.5rem; margin: 0; padding: 0; list-style: none;
}

.note {
  margin-top: 3rem; padding: 1.5rem 1.75rem;
  border-left: 2px solid var(--sabbia);
  background: var(--bianco);
  max-width: 46em;
}

/* Glossario (tipologie, finiture) */
.glossario { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 2.5rem; margin: 0; }
.glossario > div { padding: 1.4rem 0; border-top: 1px solid var(--linea); }
.glossario dt { margin-bottom: .45rem; font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase;
  letter-spacing: .05em; font-size: 1.25rem; color: var(--notte); }
.glossario dd { margin: 0; color: var(--pietra); }

/* Gruppi per collezione nelle pagine di categoria */
.collezione + .collezione { margin-top: clamp(3.5rem, 7vw, 6rem); }
.collezione__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--linea); }
.collezione__intro { margin: 0; max-width: 40em; color: var(--pietra); }
.collezione__count { display: inline-block; margin-left: .5rem; padding: .1rem .7rem; border-radius: 999px;
  background: var(--tortora); color: var(--notte); font-size: .82rem; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Pagina prodotto
   -------------------------------------------------------------------------- */

.pdp { padding-top: calc(var(--header-h) + 2rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.crumbs { font-size: .85rem; color: var(--pietra); margin-bottom: 2rem; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.pdp__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
/* Foto nella scheda del prodotto: ombra profonda */
.pdp__media { position: relative; }
.pdp__stage { position: relative; }
.pdp__img {
  position: relative; z-index: 1;
  display: block; width: 100%;
  box-shadow: 0 2px 6px rgba(11, 45, 78, .12), 0 40px 70px -25px rgba(11, 45, 78, .55);
  transform: translateZ(40px);
}
/* Galleria della scheda prodotto */
.galleria__viewport {
  position: relative; overflow: hidden;
  background: var(--tortora);
  box-shadow: 0 2px 6px rgba(11, 45, 78, .12), 0 40px 70px -25px rgba(11, 45, 78, .5);
}
.galleria__track {
  display: flex; margin: 0; padding: 0; list-style: none;
  aspect-ratio: var(--formato, 16 / 9);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.galleria__track::-webkit-scrollbar { display: none; }
.galleria__track:focus-visible { outline: 2px solid var(--sabbia); outline-offset: -2px; }
.galleria__slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; }
/* la foto resta dentro il riquadro: le verticali si vedono intere, centrate */
.galleria__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--adatta, contain); }
.galleria__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(251, 249, 245, .88); color: var(--notte); cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 45, 78, .18);
  transition: background-color .2s var(--ease-out), opacity .2s var(--ease-out);
}
.galleria__nav:hover { background: var(--bianco); }
.galleria__nav:disabled { opacity: 0; pointer-events: none; }
.galleria__nav--prev { left: .75rem; }
.galleria__nav--next { right: .75rem; }
.galleria__count {
  position: absolute; right: .75rem; bottom: .75rem;
  padding: .2rem .65rem; border-radius: 999px;
  background: rgba(11, 45, 78, .7); color: var(--bianco); font-size: .8rem; font-variant-numeric: tabular-nums;
}
.galleria__punti { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem; margin-top: .9rem; }
.galleria__punto {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.galleria__punto::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--linea); transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.galleria__punto[aria-current="true"]::before { background: var(--notte); transform: scale(1.25); }
.galleria__punto:focus-visible { outline: 2px solid var(--sabbia); border-radius: 50%; }

/* segnaposto nella scena: mantiene l'impaginazione del riquadro (icona in alto, testo in basso) */
.ph.pdp__img { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .pdp__stage { animation: scena 1.1s var(--ease-out) both; }
}
@keyframes scena { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.pdp__info .display { margin-bottom: 1rem; }
.pdp__sub { color: var(--pietra); }
.pdp__desc { max-width: 34em; }
.pdp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.pdp__spec { margin-top: clamp(3.5rem, 7vw, 6rem); }
.pdp__spec .display { margin-bottom: 2rem; }
.spec {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  margin: 0; border-top: 1px solid var(--inchiostro);
}
.spec > div { padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--linea); }
.spec dt { font-size: .85rem; color: var(--pietra); margin-bottom: .3rem; }
.spec dd { margin: 0; font-size: 1.05rem; }
@media (max-width: 860px) { .pdp__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Punti vendita
   -------------------------------------------------------------------------- */

.shops {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem; margin: 0; padding: 0; list-style: none;
}
.shop {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--bianco); color: var(--inchiostro);
  border-top: 2px solid var(--sabbia);
}
.shop__city { margin: 0 0 .5rem; font-size: .9rem; letter-spacing: .04em; color: var(--pietra); }
.shop__name {
  margin: 0 0 1.25rem;
  font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: .05em; line-height: 1.1;
  color: var(--notte);
}
/* Logo del rivenditore al posto del nome scritto */
.shop__name--logo { display: flex; align-items: center; height: 84px; margin-bottom: 1.5rem; line-height: 0; }
.shop__logo { display: block; width: auto; height: auto; max-width: min(100%, 300px); max-height: 100%; }
.shop__address { font-style: normal; margin-bottom: 1rem; }
.shop__meta { color: var(--pietra); margin: 0 0 2rem; }
.shop__meta a { color: inherit; text-underline-offset: 4px; }
.shop__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (max-width: 760px) { .shops { grid-template-columns: 1fr; } }

.dealers { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.dealer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  background: var(--bianco);
  border-top: 2px solid var(--sabbia);
}
.dealer__media .ph, .dealer__img { height: 100%; min-height: 280px; border: 0; }
.dealer__img { width: 100%; object-fit: cover; }
.dealer__body { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; }
.dealer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin-bottom: 2rem; }
.dealer h3 { font-size: .95rem; font-weight: 500; letter-spacing: .03em; margin: 1.25rem 0 .4rem; color: var(--notte); }
.dealer__cols > div > h3:first-child { margin-top: 0; }
.dealer address { font-style: normal; }
.dealer p { margin: 0; color: var(--pietra); }
.dealer a { text-underline-offset: 4px; }
.dealer .social { margin: 1.25rem 0 0 -10px; color: var(--notte); }
.dealer__map { grid-column: 1 / -1; aspect-ratio: 21 / 7; }
@media (max-width: 960px) {
  .dealer { grid-template-columns: 1fr; }
  .dealer__media .ph { min-height: 0; aspect-ratio: 3 / 2 !important; }
  .dealer__map { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .dealer__cols { grid-template-columns: 1fr; } .dealer__cols > div + div { margin-top: 1.25rem; } }

.map { width: 100%; border: 0; display: block; filter: grayscale(.4) sepia(.15); }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.posts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem 1.5rem; margin: 0; padding: 0; list-style: none;
}
/* Scheda articolo: stessa profondità delle schede dei materassi */
.post {
  --lift: 0px;
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--bianco);
  box-shadow: 0 1px 2px rgba(11, 45, 78, .06), 0 14px 30px -12px rgba(11, 45, 78, .28);
  transform: translateY(var(--lift));
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.post:hover, .post:focus-within {
  --lift: -8px;
  box-shadow: 0 4px 10px rgba(11, 45, 78, .08), 0 34px 60px -18px rgba(11, 45, 78, .45);
}
.post__media { position: relative; overflow: hidden; }
.post__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease-out);
}
.post:hover .post__media::after { transform: translateX(120%); }
.post__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 -40px 50px -30px rgba(11, 45, 78, .28);
}
.post__img { display: block; width: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.post:hover img.post__img { transform: scale(1.06); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.5rem; }
/* Pagina dell'articolo aperto: schede ferme, senza animazioni */
.pagina-statica .post, .pagina-statica .post:hover, .pagina-statica .post:focus-within {
  transform: none; transition: none;
  box-shadow: 0 1px 2px rgba(11, 45, 78, .06), 0 14px 30px -12px rgba(11, 45, 78, .28);
}
.pagina-statica .post__media::after { display: none; }
.pagina-statica .post:hover img.post__img { transform: none; }
.post__date { margin: 0 0 .5rem; font-size: .85rem; color: var(--pietra); }
.post__title {
  margin: 0 0 .75rem;
  font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: .04em; line-height: 1.15; color: var(--notte);
  text-wrap: balance;
}
.post__title a { color: inherit; text-decoration: none; }
.post__title a::before { content: ""; position: absolute; inset: 0; }
.post__excerpt { margin: 0 0 1rem; color: var(--pietra); }
.post__more { margin-top: auto; display: flex; align-items: center; gap: .7rem; font-size: .85rem; letter-spacing: .04em; color: var(--notte); }
.post__more::after { content: ""; flex: 0 0 28px; height: 1px; background: var(--sabbia); transition: flex-basis .3s var(--ease-out); }
.post:hover .post__more::after { flex-basis: 52px; }
.post:focus-within { outline: 2px solid var(--sabbia); outline-offset: 3px; }
.post__title a:focus-visible { outline: none; }

.article { padding-top: calc(var(--header-h) + 2rem); }
.article__wrap { max-width: 820px; }
.article__wrap .display { margin-bottom: 1.25rem; }
.article__lead { color: var(--pietra); margin-bottom: 2.5rem; }
.article__img { display: block; width: 100%; object-fit: cover; margin-bottom: 2.5rem; }
.article__body { font-size: 1.08rem; line-height: 1.8; max-width: 40em; }
.article__body h2 {
  font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.6rem; color: var(--notte); margin: 2.5rem 0 1rem; line-height: 1.15;
}
.article__body h3 { font-size: 1.15rem; font-weight: 500; margin: 2rem 0 .75rem; color: var(--notte); }
.article__body ul, .article__body ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.article__body li { margin-bottom: .4em; }
.article__body img { margin: 2rem 0; }
.article__body a { color: var(--notte); text-underline-offset: 4px; }
.article__body blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--sabbia); font-family: var(--serif); font-weight: var(--serif-peso); font-size: 1.35rem; color: var(--notte); }
.article__back { margin-top: 3rem; }

/* --------------------------------------------------------------------------
   Azienda
   -------------------------------------------------------------------------- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(251,249,245,.25); }
.timeline li {
  display: grid; grid-template-columns: minmax(110px, 220px) minmax(0, 1fr); gap: 1.5rem 3rem;
  padding: 2rem 0; border-bottom: 1px solid rgba(251,249,245,.25);
}
.timeline__year { font-family: var(--serif); font-weight: var(--serif-peso); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: var(--sabbia-chiara); }
.timeline h3 { margin: 0 0 .5rem; font-weight: 500; font-size: 1.1rem; letter-spacing: .03em; }
.timeline p { margin: 0; max-width: 40em; opacity: .9; }
.section--notte .todo { background: rgba(201, 180, 143, .25); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: .75rem; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3 { margin-top: 1.25rem; }
.steps h3::before { content: counter(step) "  "; color: var(--sabbia); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   Modulo "Richiedi informazioni"
   -------------------------------------------------------------------------- */

.book { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label, .field legend { font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.field .req { color: var(--notte); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px;
  padding: .75rem .9rem;
  font: inherit; font-size: 1rem; color: var(--inchiostro);
  background: var(--bianco);
  border: 1px solid var(--linea); border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sabbia); outline-offset: 0; border-color: var(--sabbia); }
.field [aria-invalid="true"] { border-color: #a3261b; }
.field__hint { font-size: .85rem; color: var(--pietra); margin: 0; }
.field__error { font-size: .85rem; color: #a3261b; margin: 0; }
.field__error:empty { display: none; }

fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .2rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  border-radius: 999px;
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem;
  border: 1px solid var(--linea); background: var(--bianco); cursor: pointer; font-size: .92rem;
}
.choice input:checked + span { background: var(--notte); border-color: var(--notte); color: var(--bianco); }
.choice input:focus-visible + span { outline: 2px solid var(--sabbia); outline-offset: 2px; }
.choice input[aria-invalid="true"] + span { border-color: #a3261b; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--pietra); }
.consent input { width: 20px; height: 20px; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--notte); }

.form-status {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem; border-left: 2px solid var(--sabbia); background: var(--bianco);
}
.form-status:empty { display: none; }
.form-status--error { border-left-color: #a3261b; }
.form-status--ok { border-left-color: #2f6b45; color: #1f4d31; }
.form-status:focus { outline: none; }

.visit { background: var(--bianco); padding: clamp(1.75rem, 3vw, 2.5rem); }
.visit h2 { font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase; letter-spacing: .06em; font-size: 1.7rem; color: var(--notte); margin: 0 0 1.25rem; }
.trial__steps {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: 1.1rem;
  counter-reset: step;
}
.trial__steps li { display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline; counter-increment: step; }
.trial__steps li::before { content: counter(step); font-family: var(--serif); font-weight: var(--serif-peso); font-size: 1.4rem; color: var(--sabbia); }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 400; padding: .35rem 1rem .35rem 0; }
.hours td { text-align: right; padding: .35rem 0; }
.hours tr + tr { border-top: 1px solid var(--tortora); }

/* --------------------------------------------------------------------------
   Domande frequenti (fisarmonica)
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--inchiostro); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 64px; padding: 1.1rem 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem); font-weight: 500; color: var(--notte);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 18px; height: 18px;
  background:
    linear-gradient(currentColor, currentColor) center / 18px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 18px no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 3rem 1.6rem 0; color: var(--pietra); max-width: 46em; }
.faq__answer p { margin: 0; }
.faq__answer a { color: var(--notte); text-underline-offset: 3px; }
.faq-group + .faq-group { margin-top: clamp(3rem, 6vw, 5rem); }
.faq-group .display { margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Tabelle (confronto materassi, articoli)
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; background: var(--bianco); }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid var(--linea); }
.table-wrap thead th { font-weight: 500; color: var(--notte); border-bottom: 1px solid var(--inchiostro); background: var(--lino); }
.table-wrap tbody th { font-weight: 500; }
.table-wrap a { color: var(--notte); text-underline-offset: 3px; }
.compare tbody th a { font-family: var(--serif); font-weight: var(--serif-peso); font-size: 1.1rem; letter-spacing: .03em; text-decoration: none; }
.compare tbody th a:hover { text-decoration: underline; }
.compare__note { color: var(--pietra); font-size: .92rem; }

/* --------------------------------------------------------------------------
   Scheda prodotto: rigidità, "ideale per", domande
   -------------------------------------------------------------------------- */

.pdp__h { margin: 0 0 .75rem; font-size: .95rem; font-weight: 500; letter-spacing: .03em; color: var(--notte); }
.pdp__desc p { max-width: 36em; }
.pdp__ideal { margin-top: 1.5rem; padding: 1.1rem 1.25rem; background: var(--bianco); border-left: 2px solid var(--sabbia); }
.pdp__ideal p { margin: 0; }
.pdp__rigidity { margin-bottom: 2rem; max-width: 640px; }
.scale { display: grid; grid-template-columns: minmax(80px, auto) 1fr auto; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.scale__label { font-weight: 500; }
.scale__bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale__tick { height: 10px; border-radius: 2px; background: var(--tortora); }
.scale__tick.is-on { background: var(--notte); }
.scale__value { font-variant-numeric: tabular-nums; color: var(--pietra); }
.scale__legend { display: flex; justify-content: space-between; margin: .25rem 0 0; font-size: .82rem; color: var(--pietra); padding-left: calc(80px + 1rem); padding-right: 3rem; }
.pdp__faq { margin-top: clamp(3rem, 6vw, 5rem); }
.pdp__faq .display { margin-bottom: 1.5rem; }
@media (max-width: 560px) { .scale__legend { padding-left: 0; padding-right: 0; } }

/* Nome del negozio cliccabile nelle schede */
.shop__namelink { color: inherit; text-decoration: none; }

/* Riquadro finale negli articoli */
.article__cta {
  margin-top: 3rem; padding: 1.5rem 1.75rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--bianco); border-top: 2px solid var(--sabbia);
}
.article__cta p { margin: 0; max-width: 34em; }
.article__cta a:not(.btn) { color: var(--notte); }

/* --------------------------------------------------------------------------
   Banner e preferenze cookie
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed; z-index: 200;
  left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 560px;
  padding: 1.5rem 1.6rem 1.4rem;
  background: var(--bianco); color: var(--inchiostro);
  border: 1px solid var(--linea); border-top: 2px solid var(--sabbia);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(11, 45, 78, .18);
}
.cookie-banner__title, .cookie-dialog h2 {
  margin: 0 0 .6rem;
  font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase; letter-spacing: .06em;
  font-size: 1.35rem; color: var(--notte);
}
.cookie-banner p { margin: 0 0 1.1rem; font-size: .92rem; line-height: 1.6; padding-right: 1.5rem; }
.cookie-banner a { color: var(--notte); text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.cookie-banner__actions .btn { min-width: 120px; }
.cookie-banner__actions .text-link, .linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.cookie-banner__actions .text-link { border-bottom: 1px solid var(--sabbia); }
.cookie-banner__close {
  position: absolute; top: .6rem; right: .6rem;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; border-radius: 50%; color: var(--pietra); cursor: pointer;
}
.cookie-banner__close:hover { color: var(--notte); background: var(--tortora); }

.cookie-dialog {
  width: min(600px, calc(100% - 2 * var(--gutter)));
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--bianco); color: var(--inchiostro);
}
.cookie-dialog::backdrop { background: rgba(11, 45, 78, .55); }
.cookie-dialog__form { padding: clamp(1.5rem, 4vw, 2.25rem); }
.cc-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1.25rem; align-items: start;
  padding: 1.1rem 0; border-top: 1px solid var(--tortora);
}
.cc-row:last-of-type { margin-bottom: 1.25rem; border-bottom: 1px solid var(--tortora); }
.cc-row h3 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 500; color: var(--notte); }
.cc-row p { margin: 0; font-size: .9rem; color: var(--pietra); }
.cc-row a { color: var(--notte); }
.cc-switch { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; white-space: nowrap; min-height: 44px; cursor: pointer; }
.cc-switch input { width: 20px; height: 20px; accent-color: var(--notte); }
.cc-switch input:disabled + span { color: var(--pietra); }

.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer__links a, .linklike { color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--notte); }

/* Mappa in attesa di consenso */
.map-slot { background: var(--tortora); }
.map-slot .map { height: 100%; }
.map-consent {
  height: 100%; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 2rem var(--gutter); text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(11, 45, 78, .045) 14px 15px),
    var(--tortora);
}
.map-consent p { margin: 0; max-width: 32em; color: var(--pietra); }
.map-consent__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; }

/* --------------------------------------------------------------------------
   Pagine legali
   -------------------------------------------------------------------------- */

.legal { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)); }
.legal__wrap { max-width: 820px; }
.legal__wrap .display { margin-bottom: 1rem; }
.legal__updated { color: var(--pietra); font-size: .9rem; }
.legal h2 {
  margin: 3rem 0 1rem;
  font-family: var(--serif); font-weight: var(--serif-peso); text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.45rem; color: var(--notte); line-height: 1.2;
}
.legal h3 { margin: 1.75rem 0 .5rem; font-size: 1.05rem; font-weight: 500; color: var(--notte); }
.legal p, .legal li { max-width: 42em; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--notte); text-underline-offset: 3px; }
.legal__table { overflow-x: auto; margin: 1.5rem 0; }
.legal__table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--linea); }
.legal__table th { font-weight: 500; color: var(--notte); border-bottom-color: var(--inchiostro); }

.form__privacy { margin: 0; font-size: .9rem; color: var(--pietra); }
.form__privacy a { color: var(--notte); }

/* --------------------------------------------------------------------------
   Testi da completare (evidenziati per il proprietario)
   -------------------------------------------------------------------------- */

.todo { background: rgba(168, 145, 108, .22); padding: 0 .2em; }

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