/* ==========================================================================
   Catalogo Xerox — reparto, scaffali e confezioni.
   Riprende i token di subpage.css e la metafora del supermercato usata nel
   resto del sito: scaffale, gusto, etichetta con i valori, alla cassa.
   ========================================================================== */

.pd-cat-hdr {
  position: static;
  background: var(--paper, #fff);
  border-bottom: 1px solid var(--hair, #e4e6f0);
}

/* --------------------------------------------------------------------------
   Palette: il catalogo è il seguito naturale dello "scaffale zuppe" della
   pagina Prodotti, quindi ne eredita gli stessi colori — rosso lattina, oro
   dell'etichetta e fondo crema — al posto dell'arancio delle altre sottopagine.
   -------------------------------------------------------------------------- */
.pd-cat {
  --soup-red: #c5172e;
  --soup-red-deep: #9c0f20;
  --soup-gold: #b1882f;
  --cream: #f6f1e6;
  --accent: var(--soup-red);
  --accent-deep: var(--soup-red-deep);
  background: var(--cream);
}

/* Le sottopagine hanno un hero scuro, quindi l'intestazione parte trasparente
   con il logo bianco e diventa opaca allo scroll. Le pagine del catalogo hanno
   invece fondo chiaro fin da subito: l'intestazione deve essere già "solid",
   altrimenti il logo bianco sparisce sul bianco. */
body.pd-catalogo header#hdr {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(20, 21, 43, 0.10);
  color: var(--ink, #14152b);
}
body.pd-catalogo header#hdr .brand .logo-white { display: none; }
body.pd-catalogo header#hdr .brand .logo-color { display: block; }
body.pd-catalogo header#hdr .nav-links a.active { color: var(--accent-deep, #d4540c); }

/* L'intestazione è fissa: il contenuto deve partire più in basso. */
.pd-cat { padding-top: 94px; }

/* subpage.css fissa in alto ogni <header>: dentro il contenuto non deve
   accadere, altrimenti le testate di sezione si sovrappongono al testo. */
.pd-cat header { position: static; padding: 0; display: block; }

.pd-cat .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pd-cat-page, .pd-sheet { padding-bottom: 90px; }

/* --- briciole --- */
.pd-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--mono, monospace); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted, #6b6e85); padding: 26px 0 6px;
}
.pd-crumb a { color: inherit; text-decoration: none; }
.pd-crumb a:hover { color: var(--accent-deep, #d4540c); }
.pd-crumb span[aria-hidden] { opacity: .4; }
.pd-crumb-now { color: var(--ink, #14152b); font-weight: 600; }

/* --- etichetta occhiello --- */
.pd-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-deep, #d4540c);
  border: 1px solid currentColor; border-radius: 100px; padding: 6px 13px;
  align-self: flex-start;
}
.pd-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; display: inline-block;
}

/* --- testata di reparto --- */
.pd-hero { display: flex; flex-direction: column; gap: 16px; padding: 16px 0 44px; }
.pd-hero-copy { display: flex; flex-direction: column; gap: 16px; }

/* Quando si arriva da una lattina dello scaffale, la si ripropone in alto a
   destra: piccola, accanto al primo paragrafo, per riconoscere il passaggio. */
.pd-hero--can {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 32px;
  align-items: start;
}
.pd-hero-can { justify-self: end; }
.pd-hero-can img {
  display: block; width: 100%; height: auto; max-width: 180px;
  filter: drop-shadow(0 18px 26px rgba(80, 0, 10, .18));
}

@media (max-width: 720px) {
  .pd-hero--can { grid-template-columns: minmax(0, 1fr) 110px; gap: 18px; }
  .pd-hero-can img { max-width: 110px; }
}
.pd-hero h1 {
  font-family: var(--display, sans-serif); font-weight: 700;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.03;
  letter-spacing: -.035em; color: var(--ink, #14152b); text-wrap: balance;
}
.pd-hero-lede {
  font-family: var(--body, sans-serif); font-size: 17px; line-height: 1.65;
  color: #3c3f56; max-width: 68ch;
}

/* --- scaffale delle famiglie --- */
.pd-shelf { padding: 10px 0 20px; position: relative; overflow: hidden; }

/* La stessa filigrana della pagina Prodotti: fa da sfondo allo scaffale. */
.pd-watermark {
  position: absolute; top: -4%; left: 50%; transform: translateX(-50%);
  font-family: var(--display, sans-serif); font-weight: 700;
  font-size: clamp(110px, 20vw, 300px); letter-spacing: -.04em;
  color: rgba(197, 23, 46, .05);
  white-space: nowrap; pointer-events: none; z-index: 0;
}
.pd-shelf > .pd-shelf-head, .pd-shelf > .pd-shelf-grid { position: relative; z-index: 1; }
.pd-shelf > .pd-shelf-head { text-align: center; align-items: center; }
.pd-shelf-head, .pd-label-head, .pd-listing-head {
  display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px;
}
.pd-shelf-head .mono, .pd-label-head .mono { color: var(--soup-red); }
.pd-listing-head .mono { color: var(--soup-gold); }
.pd-shelf-head h2, .pd-label-head h2 {
  font-family: var(--display, sans-serif); font-weight: 600;
  font-size: clamp(22px, 3vw, 30px); letter-spacing: -.025em;
  color: var(--ink, #14152b); text-wrap: balance;
}
.pd-shelf-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hair, #e4e6f0);
}
.pd-family {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff;
  border: 1px solid rgba(197, 23, 46, .10);
  box-shadow: 0 10px 30px rgba(80, 0, 10, .06);
  border-radius: 20px; padding: 24px 24px 20px;
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pd-family:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(80, 0, 10, .14); }
.pd-family-gusto {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--soup-gold);
}
.pd-family h3 {
  font-family: var(--display, sans-serif); font-weight: 600;
  font-size: 20px; line-height: 1.2; letter-spacing: -.015em;
  color: var(--ink, #14152b); text-wrap: balance;
}
.pd-family p { font-family: var(--body, sans-serif); font-size: 14.5px; line-height: 1.55; color: var(--muted, #6b6e85); }
.pd-family-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair, #e4e6f0);
}
.pd-go {
  font-family: var(--mono, monospace); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-deep, #d4540c); white-space: nowrap;
}
.pd-go .arr { transition: transform .2s ease; display: inline-block; }
.pd-family:hover .pd-go .arr, .pd-card-link:hover .pd-go .arr { transform: translateX(3px); }

/* --- impaginazione a due colonne: filtri + scaffale --- */
.pd-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-top: 34px;
}
.pd-layout--nofilters { grid-template-columns: minmax(0, 1fr); }

/* --- colonna dei filtri --- */
.pd-filters {
  position: sticky; top: 96px;
  background: #fff;
  border: 1px solid rgba(197, 23, 46, .10);
  box-shadow: 0 10px 30px rgba(80, 0, 10, .05);
  border-radius: 18px;
  padding: 18px 18px 8px;
}
.pd-filters-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--hair, #e4e6f0);
}
.pd-filters-head .mono { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink, #14152b); font-weight: 600; }
.pd-filters-reset, .pd-linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--mono, monospace); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep, #d4540c); text-decoration: underline;
  text-underline-offset: 2px;
}
.pd-facet { border-bottom: 1px solid var(--hair, #e4e6f0); padding: 12px 0; }
.pd-facet:last-of-type { border-bottom: 0; }
.pd-facet summary {
  cursor: pointer; list-style: none;
  font-family: var(--body, sans-serif); font-size: 13.5px; font-weight: 600;
  color: var(--ink, #14152b);
  display: flex; align-items: center; justify-content: space-between;
}
.pd-facet summary::-webkit-details-marker { display: none; }
.pd-facet summary::after {
  content: "+"; font-family: var(--mono, monospace); color: var(--muted, #6b6e85); font-weight: 400;
}
.pd-facet[open] summary::after { content: "–"; }
.pd-facet ul { list-style: none; display: flex; flex-direction: column; gap: 3px; padding-top: 9px; }
.pd-facet label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--body, sans-serif); font-size: 13px; line-height: 1.35;
  color: #3c3f56; padding: 3px 0;
}
.pd-facet label:hover { color: var(--ink, #14152b); }
.pd-facet input { accent-color: var(--accent, #f2691b); flex: none; }
.pd-facet label > span:first-of-type { flex: 1; }
.pd-facet-n {
  font-family: var(--mono, monospace); font-size: 10px;
  color: var(--muted, #6b6e85); font-variant-numeric: tabular-nums;
}

/* --- elenco schede --- */
.pd-listing { padding: 0; min-width: 0; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.pd-grid--rel { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.pd-card {
  background: #fff;
  border: 1px solid rgba(197, 23, 46, .10);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(80, 0, 10, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pd-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(80, 0, 10, .14); }
.pd-card-link {
  display: flex; flex-direction: column; gap: 9px; height: 100%;
  padding: 20px 20px 18px; text-decoration: none; color: inherit;
}
.pd-card-media { height: 170px; display: flex; align-items: center; justify-content: center; }
.pd-card-media img { max-height: 100%; max-width: 86%; object-fit: contain; }
.pd-card-title {
  font-family: var(--display, sans-serif); font-weight: 600;
  font-size: 17px; line-height: 1.25; letter-spacing: -.012em;
  color: var(--ink, #14152b); text-wrap: balance;
}
.pd-card-sub { font-family: var(--body, sans-serif); font-size: 14px; line-height: 1.5; color: var(--muted, #6b6e85); }
.pd-card-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
  font-family: var(--body, sans-serif); font-size: 13px; line-height: 1.45; color: #4a4d63;
}
.pd-card-bullets li { display: flex; gap: 7px; }
.pd-card-bullets li::before { content: "·"; color: var(--accent, #f2691b); font-weight: 700; }

/* etichetta nutrizionale: stessa idea delle card in home */
.pd-nutri { display: flex; flex-direction: column; margin-top: 4px; }
.pd-nutri-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--mono, monospace); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 0; border-top: 1px solid var(--hair, #e4e6f0);
}
.pd-nutri-row span { color: var(--muted, #6b6e85); }
.pd-nutri-row b { color: var(--ink, #14152b); text-align: right; font-variant-numeric: tabular-nums; }

.pd-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hair, #e4e6f0);
}
.pd-ref { font-size: 10px; letter-spacing: .1em; color: var(--muted, #6b6e85); }

/* --- segnaposto immagine --- */
.pd-noimg {
  width: 100%; height: 100%; min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg,
    var(--paper-2, #f6f7fb) 0 10px, var(--paper, #fff) 10px 20px);
  border: 1px dashed var(--hair, #e4e6f0); border-radius: 14px;
  color: var(--muted, #6b6e85);
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
}
.pd-noimg--sm { min-height: 140px; }

/* --- scheda: la confezione --- */
.pd-sheet-top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px; align-items: center; padding: 14px 0 50px;
}
.pd-sheet-media {
  background: #fff; border-radius: 24px;
  box-shadow: 0 24px 50px rgba(80, 0, 10, .10);
  padding: 34px; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.pd-sheet-media img {
  max-width: 100%; max-height: 380px; object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(20, 21, 43, .16));
}
.pd-sheet-intro { display: flex; flex-direction: column; gap: 15px; }
.pd-sheet-intro h1 {
  font-family: var(--display, sans-serif); font-weight: 700;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.05;
  letter-spacing: -.032em; color: var(--ink, #14152b); text-wrap: balance;
}
.pd-sub { font-family: var(--body, sans-serif); font-size: 17.5px; line-height: 1.55; color: #3c3f56; max-width: 52ch; }

.pd-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  font-family: var(--body, sans-serif); font-size: 15px; line-height: 1.55; color: #2c2e44;
}
.pd-bullets li { display: flex; gap: 11px; }
.pd-bullets li::before {
  content: "✓"; color: var(--accent, #f2691b); font-weight: 700; flex: none;
}

/* badge di sintesi */
.pd-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pd-badge {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid rgba(197, 23, 46, .14);
  border-radius: 12px; padding: 10px 15px; min-width: 96px;
}
.pd-badge > span:first-child { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #6b6e85); }
.pd-badge b {
  font-family: var(--display, sans-serif); font-size: 19px; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink, #14152b); font-variant-numeric: tabular-nums;
}
.pd-badge-suf { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6b6e85); }

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* riga del codice, con il codice a barre del sito */
.pd-ref-line { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.pd-ref-line .mono { font-size: 10.5px; letter-spacing: .12em; color: var(--muted, #6b6e85); }
.pd-ref-line .barcode { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.pd-ref-line .barcode span { width: 2px; height: 100%; background: var(--ink, #14152b); display: block; }
.pd-ref-line .barcode span:nth-child(3n) { width: 4px; }
.pd-ref-line .barcode span:nth-child(4n) { height: 68%; }
.pd-ref-line .barcode span:nth-child(5n) { width: 1px; }

/* --- pulsanti --- */
.pd-cat .btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono, monospace); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: 15px 24px; border-radius: 100px; text-decoration: none;
  transition: transform .2s ease;
}
.pd-cat .btn:hover { transform: translateY(-2px); }
.pd-cat .btn--accent { background: var(--accent, #f2691b); color: #fff; }
.pd-cat .btn--ghost { border: 1.5px solid var(--ink, #14152b); color: var(--ink, #14152b); }
.pd-cat .btn .arr { display: inline-block; transition: transform .2s ease; }
.pd-cat .btn:hover .arr { transform: translateX(3px); }

/* --- sezioni della scheda --- */
.pd-label, .pd-docs-sec, .pd-related { padding: 40px 0; border-top: 1px solid var(--hair, #e4e6f0); }

.pd-table-wrap { overflow-x: auto; border: 1px solid rgba(197, 23, 46, .14); border-radius: 16px; background: #fff; }
.pd-label table { width: 100%; border-collapse: collapse; font-family: var(--body, sans-serif); font-size: 15px; }
.pd-label th, .pd-label td {
  text-align: left; padding: 14px 20px;
  border-bottom: 1px solid rgba(197, 23, 46, .12); vertical-align: top;
}
.pd-label tr:last-child th, .pd-label tr:last-child td { border-bottom: 0; }
.pd-label th {
  width: 40%; font-weight: 600; color: var(--soup-red-deep);
  background: var(--cream);
}
.pd-label td { color: var(--ink, #14152b); }

.pd-docs { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.pd-docs a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body, sans-serif); font-size: 15px;
  color: var(--accent-deep, #d4540c); text-decoration: none;
}
.pd-docs a::before { content: "↓"; font-family: var(--mono, monospace); opacity: .7; }
.pd-docs a:hover { text-decoration: underline; }

/* --- alla cassa --- */
.pd-cta {
  text-align: center; padding: 58px 26px;
  margin-top: 48px; border-radius: 24px;
  background: var(--soup-red); border: 0; color: #fff;
  box-shadow: 0 26px 60px rgba(80, 0, 10, .22);
}
.pd-cta h2 {
  font-family: var(--display, sans-serif); font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.03em;
  color: #fff; margin-bottom: 10px; text-wrap: balance;
}
.pd-cta p { font-family: var(--body, sans-serif); font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.9); max-width: 58ch; margin: 0 auto 22px; }
.pd-cta .btn--accent { background: #fff; color: var(--soup-red-deep); }
.pd-cta .btn--accent:hover { background: var(--cream); }

/* --- paginazione --- */
.pd-pager { display: flex; justify-content: center; padding-top: 36px; }
.pd-pager .page-numbers {
  display: inline-block; padding: 9px 14px; margin: 0 3px;
  font-family: var(--mono, monospace); font-size: 12px;
  border: 1px solid var(--hair, #e4e6f0); border-radius: 9px;
  color: var(--ink, #14152b); text-decoration: none;
}
.pd-pager .page-numbers.current { background: var(--accent, #f2691b); border-color: var(--accent, #f2691b); color: #fff; }

.pd-empty { font-family: var(--body, sans-serif); color: var(--muted, #6b6e85); padding: 40px 0 60px; }

/* --- accessibilità e movimento --- */
.pd-cat a:focus-visible { outline: 2px solid var(--accent, #f2691b); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .pd-card, .pd-family, .pd-cat .btn, .pd-go .arr, .pd-cat .btn .arr { transition: none; }
  .pd-card:hover, .pd-family:hover, .pd-cat .btn:hover { transform: none; }
}

/* --- responsive --- */
@media (max-width: 900px) {
  .pd-sheet-top { grid-template-columns: 1fr; gap: 30px; }
  .pd-sheet-media { min-height: 250px; padding: 26px; }
  .pd-label th { width: 46%; }
  /* i filtri passano sopra l'elenco e si possono richiudere */
  .pd-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pd-filters { position: static; }
  .pd-facet { padding: 10px 0; }
}
@media (max-width: 560px) {
  .pd-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
  .pd-cat .wrap { padding: 0 18px; }
  .pd-cta { padding: 38px 20px; }
}
