/* ==========================================================================
   PANE IRPINO® — sito immersivo
   Palette: nero / bianco / marrone del pane. Oro solo come accento.
   ========================================================================== */

:root {
  --black:      #0b0a08;
  --black-2:    #131110;
  --black-3:    #1c1916;
  --white:      #f7f4ef;
  --stone:      #9a9288;
  --stone-dim:  #6b655c;
  --gold:       #c9a24b;

  --line:       rgba(247, 244, 239, 0.10);
  --line-gold:  rgba(201, 162, 75, 0.35);

  /* accento di default; ogni prodotto sovrascrive --accent */
  --accent:     #c08b4e;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Raggi: la morbidezza è la cifra visiva del sito */
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--white); color: var(--black); }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #332e28; }

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

/* ---------------------------------- */
/* Loader                              */
/* ---------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader img {
  width: 130px;
  opacity: 0;
  animation: loaderFade 1.4s var(--ease) forwards;
}
@keyframes loaderFade {
  0%   { opacity: 0; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------------------------------- */
/* Progress bar                        */
/* ---------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 500;
  transition: width .1s linear;
}

/* ---------------------------------- */
/* Header                              */
/* ---------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 10, 8, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 10px 0;
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Marchio registrato: immagine originale, mai ricomposta */
.logo img {
  height: 78px;
  width: auto;
  transition: height .4s var(--ease);
}
.site-header.is-scrolled .logo img { height: 54px; }

.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 38px;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
  position: relative;
  padding-bottom: 4px;
  transition: color .3s ease;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-desktop a:hover { color: var(--white); }
.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a.is-active { color: var(--gold); }
.nav-desktop a.is-active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-solid {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-solid:hover { background: transparent; color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 1px;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
}
.nav-mobile a:hover { color: var(--gold); }

/* ---------------------------------- */
/* Hero                                */
/* ---------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.6s ease, transform 7s linear;
  filter: grayscale(.25);
}
.hero-media img.is-active { opacity: 1; transform: scale(1); }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11,10,8,.72) 0%, rgba(11,10,8,.48) 45%, rgba(11,10,8,.9) 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 26px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--line-gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 88px);
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero-sub {
  max-width: 540px;
  margin: 0 auto 42px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: var(--stone);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--stone-dim);
}
.hero-scroll-cue .line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50%      { transform: scaleY(.6); opacity: 1; }
}

/* ---------------------------------- */
/* Reveal                              */
/* ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------- */
/* Sezioni — comuni                    */
/* ---------------------------------- */
section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--line-gold);
}
h2.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-lede {
  max-width: 60ch;
  color: var(--stone);
  font-size: 16.5px;
  line-height: 1.75;
}

/* ---------------------------------- */
/* Valori — quattro card, niente fascia scorrevole */
/* ---------------------------------- */
.values {
  padding: 56px 0;
  background: var(--black-2);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.value {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color .4s ease, background .4s ease;
}
.value:hover {
  border-color: var(--line-gold);
  background: #221e1a;
}
.value-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: rgba(201, 162, 75, 0.10);
  color: var(--gold);
}
.value-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-text { min-width: 0; }
.value h3 {
  margin: 0 0 2px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.value p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue .line { animation: none; }
  .value:hover { transform: none; }
}

/* ---------------------------------- */
/* Chi siamo                           */
/* ---------------------------------- */
.about { padding: 88px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-xl);
}
.about-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.3);
  transform: scale(1.06);
  transition: transform 1.1s var(--ease), filter 1.1s ease;
}
.about-media:hover img { transform: scale(1); filter: grayscale(0); }
/* didascalia: niente più card separata, il testo poggia direttamente
   sulla foto grazie a una sfumatura scura in basso */
.about-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 50px 24px 20px;
  background: linear-gradient(180deg, rgba(11,10,8,0) 0%, rgba(11,10,8,.85) 100%);
  color: var(--white);
}
.about-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
}
.about-caption span {
  font-size: 12.5px;
  color: var(--stone);
  letter-spacing: .02em;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.stat {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12px; color: var(--stone); letter-spacing: .04em; }

/* ==========================================================================
   PRODOTTI — scroller immersivo, 11 referenze
   ========================================================================== */
.products { background: var(--black-2); }

.products-intro {
  padding: 80px 0 50px;
  text-align: center;
}
.products-intro .eyebrow { justify-content: center; }
.products-intro .eyebrow::before { display: none; }
.products-intro h2 { max-width: 18ch; margin-inline: auto; }
.products-intro .section-lede { margin-inline: auto; }

/* filtri per famiglia di impasto */
.products-families {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.products-families span {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--stone);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.products-families span::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fam);
}

/* palcoscenico: 11 slide, una per prodotto */
.products-stage {
  position: relative;
  /* 100vh di sticky + una porzione di scroll per ogni prodotto */
  height: calc(100vh + var(--slides, 11) * 88vh);
}
.products-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.product-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  /* lo stage è staccato dai bordi perché gli angoli tondi si vedano */
  padding: 104px 40px 62px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.product-slide.is-active { opacity: 1; pointer-events: auto; }

/* --- lato sinistro: il pane su fondo neutro ombrato --- */
.p-stage {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r-xl);
  /* sweep da studio fotografico: neutro caldo, ombrato ai bordi */
  background:
    radial-gradient(115% 85% at 50% 32%,
      #f0ebe2 0%,
      #e2dbcf 42%,
      #c9c0b1 74%,
      #a89e8d 100%);
}
/* vignettatura per staccare lo stage dal nero della pagina */
.p-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 75% at 50% 45%, transparent 55%, rgba(40,34,28,.28) 100%);
  pointer-events: none;
}
/* velo del colore del prodotto: il marrone/oro dell'impasto */
.p-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 50% 60%, var(--accent) 0%, transparent 70%);
  opacity: .16;
  pointer-events: none;
}

/* I pani sono mostrati in scala relativa fra loro (--shot-ratio, ricavato dal
   peso) e mai oltre i pixel nativi della foto (--shot-max): un bocconcino da
   50gr resta piccolo accanto a un filoncino da 500gr. */
.p-shot {
  position: relative;
  z-index: 2;
  width: min(calc(var(--shot-ratio, 1) * min(72%, 620px)), var(--shot-max, 620px));
  transform: translateY(26px) scale(.94);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.product-slide.is-active .p-shot {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition-delay: .05s;
}
.p-shot img {
  width: 100%;
  /* ombra portata morbida, coerente con il fondo neutro */
  filter:
    drop-shadow(0 18px 22px rgba(48, 38, 28, 0.30))
    drop-shadow(0 44px 60px rgba(48, 38, 28, 0.22));
}
/* ombra di contatto ellittica sotto il pane */
.p-shot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  width: 76%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(48,38,28,.34) 0%, transparent 72%);
  filter: blur(5px);
  z-index: -1;
}

/* numerazione grande, filigrana sullo stage */
.p-stage-num {
  position: absolute;
  left: 40px;
  bottom: 28px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(40, 34, 28, .5);
  font-variant-numeric: tabular-nums;
}

/* --- lato destro: la scheda --- */
.p-detail {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3vw;
}
.p-cat {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease .08s, transform .45s var(--ease) .08s;
}
.p-cat::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.product-slide.is-active .p-cat { opacity: 1; transform: translateY(0); }

.p-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease .12s, transform .45s var(--ease) .12s;
}
.product-slide.is-active .p-name { opacity: 1; transform: translateY(0); }

/* il peso specifico, in evidenza */
.p-weight {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 0 0 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease .16s, transform .45s var(--ease) .16s;
}
.p-weight span {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.product-slide.is-active .p-weight { opacity: 1; transform: translateY(0); }

/* scheda tecnica */
.p-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--black-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px 18px;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease .2s, transform .45s var(--ease) .2s;
}
.product-slide.is-active .p-specs { opacity: 1; transform: translateY(0); }
.p-spec {
  padding: 16px 18px 16px 0;
}
.p-spec dt {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone-dim);
  margin-bottom: 6px;
}
.p-spec dd {
  margin: 0;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.p-description {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--stone);
  max-width: 52ch;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s ease .24s, transform .45s var(--ease) .24s;
}
.product-slide.is-active .p-description { opacity: 1; transform: translateY(0); }

/* --- rail di navigazione: 11 tacche --- */
.p-rail {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
}
.p-rail button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  color: var(--stone-dim);
  font-size: 10px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.p-rail button i {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease), background .3s ease;
}
/* L'etichetta compare solo al passaggio del mouse: a riposo restano le tacche,
   così il rail non invade mai la colonna della scheda. */
.p-rail button span {
  opacity: 0;
  white-space: nowrap;
  background: var(--black);
  padding: 4px 8px;
  transition: opacity .25s ease;
  pointer-events: none;
}
.p-rail button:hover { color: var(--white); }
.p-rail button:hover span { opacity: 1; }
.p-rail button.is-active { color: var(--white); }
.p-rail button.is-active i { width: 30px; background: var(--gold); }

.p-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone-dim);
}

/* ---------------------------------- */
/* Gallery                             */
/* ---------------------------------- */
.gallery { padding: 140px 0 88px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
  margin-top: 50px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.45) brightness(.85);
  transform: scale(1.05);
  transition: transform .9s var(--ease), filter .9s ease;
}
.gallery-item:hover img { transform: scale(1); filter: grayscale(0) brightness(1); }

/* ---------------------------------- */
/* Contatti                            */
/* ---------------------------------- */
.contact {
  padding: 88px 0 64px;
  text-align: center;
}
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::before { display: none; }
.contact h2 { max-width: 20ch; margin-inline: auto; }
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin-inline: auto;
}
.contact-card {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  text-align: left;
  transition: transform .4s var(--ease), border-color .4s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
}
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.contact-card p { margin: 0; color: var(--stone); line-height: 1.65; font-size: 15px; }
.contact-card a:hover { color: var(--white); }

/* ---------------------------------- */
/* Distributori                        */
/* ---------------------------------- */
.distributors {
  padding: 64px 0 88px;
  text-align: center;
}
.distributors .eyebrow { justify-content: center; }
.distributors .eyebrow::before { display: none; }
.distributors h2 { max-width: 20ch; margin-inline: auto; }
.distributors .section-lede { max-width: 60ch; margin-inline: auto; }
.distributors-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  max-width: 600px;
  margin-inline: auto;
  margin-top: 40px;
}
.distributor-card {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  text-align: left;
  transition: transform .4s var(--ease), border-color .4s ease;
}
.dist-logo {
  margin: 0 auto 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 320px;
  height: 160px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: var(--black);
}
.dist-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.distributor-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
}
.distributor-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--white);
}
.distributor-card .dist-subtitle {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.distributor-card p {
  margin: 0 0 14px;
  color: var(--stone);
  line-height: 1.65;
  font-size: 15px;
}
.distributor-card p:last-of-type { margin-bottom: 24px; }
.distributor-card p strong { color: var(--white); }
.dist-map {
  margin: 24px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--black-3);
  text-align: center;
}
.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
  transition: color .3s ease;
}
.map-link:hover {
  color: var(--white);
}
.map-link svg {
  color: var(--gold);
  transition: color .3s ease;
}
.map-link:hover svg {
  color: var(--white);
}
.dist-phone {
  margin: 0 0 4px;
  font-size: 15px;
}
.dist-phone a {
  color: var(--white);
  font-weight: 500;
  transition: color .3s ease;
}
.dist-phone a:hover {
  color: var(--gold);
}
.dist-contact {
  margin-top: 20px;
}
.btn-small {
  font-size: 13px;
  padding: 10px 20px;
  letter-spacing: .08em;
  display: inline-block;
}

/* ---------------------------------- */
/* Footer                              */
/* ---------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.footer-grid img { height: 76px; width: auto; }
.footer-addr {
  font-size: 13px;
  line-height: 1.7;
  color: var(--stone);
}
.footer-social {
  display: flex;
  gap: 18px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
}
.footer-social a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--stone-dim);
  letter-spacing: .04em;
}
.footer-bottom a:hover { color: var(--stone); }

/* ---------------------------------- */
/* Responsive                          */
/* ---------------------------------- */
@media (max-width: 1024px) {
  .nav-desktop, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .distributors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }

  .values-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }

  /* su mobile la scheda scorre sotto la foto, dentro la stessa slide */
  .product-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 36vh 1fr;
    gap: 18px;
    padding: 84px 16px 20px;
  }
  .p-stage { height: 100%; border-radius: var(--r-lg); }
  .p-detail {
    height: 100%;
    padding: 0 6px;
    justify-content: flex-start;
    overflow-y: auto;
  }
  .p-name { font-size: 30px; }
  .p-weight { font-size: 24px; margin-bottom: 18px; }
  .p-specs { grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
  .p-spec { padding: 12px 12px 12px 0; }
  .p-stage-num { left: 20px; bottom: 12px; }
  .p-rail { right: 12px; gap: 6px; }
  .p-rail button span { display: none; }
  .p-rail button i { width: 10px; }
  .p-rail button.is-active i { width: 20px; }
  .p-hint { display: none; }
  .products-stage { height: calc(100vh + var(--slides, 11) * 72vh); }
}
