/* =========================================================================
   BERTOLINI — CATALOGO PRODOTTI (scheda prodotto + archivi)
   Stile dei mockup (tokens.css, components.css, pages.css) per i template
   PHP del tema child. Tutto sta dentro #bp-prd: l'ID batte i selettori del
   tema (JupiterX con il reset di Bootstrap, Hello Elementor) e del Kit
   Elementor (link, bottoni, tabelle, campi), che altrimenti cambierebbero
   colori e spaziature dei componenti.

   Indice: 1 token · 2 reset · 3 toni delle sezioni · 4 fogli e contenitore
   5 hero · 6 palco foto · 7 info prodotto · 8 dati chiave · 9 bottoni
   10 indice sezioni · 11 testate · 12 dati tecnici · 13 disegni
   14 elenchi · 15 tabella modelli · 16 card dei gruppi · 17 filtri
   18 lightbox · 19 pagine di settore · 20 confronto · 21 pagina
   Applicazioni · 22 responsive · 23 movimento ridotto
   ========================================================================= */

/* =========================================================================
   1. TOKEN (gli stessi di assets/css/tokens.css del mockup)
   --header-h: altezza dell'header Elementor che si sovrappone alla prima
   sezione. Se l'header non è sovrapposto (non fixed/sticky), mettere 0px.
   ========================================================================= */
#bp-prd {
  --c-red-600: #A62117;
  --c-red-400: #D63A28;
  --c-red-300: #EE6A55;
  --c-ink-900: #111113;
  --c-ink-800: #18181B;
  --c-ink-700: #222226;
  --c-ink-600: #2E2E33;
  --c-text-dark: #EDEAE4;
  --c-muted-dark: #9A968F;
  --c-line-dark: rgba(237, 234, 228, .10);
  --c-line-dark-strong: rgba(237, 234, 228, .18);
  --c-cream-100: #F3EFE7;
  --c-cream-200: #E8E2D6;
  --c-cream-300: #D9D1C1;
  --c-plate: #FBF9F5;
  --c-ink-on-cream: #141210;
  --c-muted-cream: #5E5A52;
  --c-line-cream: rgba(20, 18, 16, .12);
  --c-line-cream-strong: rgba(20, 18, 16, .22);
  --g-ember: linear-gradient(100deg, #A62117 0%, #CF3B27 100%);
  --g-ember-hover: linear-gradient(100deg, #B5261B 0%, #DB4530 100%);
  --shadow-cta: 0 14px 34px -14px rgba(166, 33, 23, .75);
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .06 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --f-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --f-text: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-num: var(--f-text); /* dati e codici: Manrope a cifre allineate, nessun font in più */
  --t-h2: clamp(2rem, 1.3rem + 2.35vw, 3.5rem);
  --t-h3: clamp(1.25rem, 1.05rem + .65vw, 1.75rem);
  --t-body-l: clamp(1.0625rem, 1rem + .25vw, 1.25rem);
  --t-label: .75rem; /* il testo più piccolo: niente sotto i 12px; descrizioni almeno 16px */
  --t-spec: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);

  --pad-frame: clamp(20px, 4vw, 64px);
  --section-y: clamp(64px, 8vw, 128px);
  --content-max: 1440px; /* box del contenuto (il mockup usa 1280) */
  --header-h: 88px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  /* Sezioni piatte. Con 40px tornano i "fogli" del mockup: angoli
     superiori arrotondati e risalita sulla sezione precedente. */
  --r-section: 0px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --d-fast: 160ms;
  --d-base: 280ms;
  --d-slow: 600ms;

  position: relative;
  z-index: 1;
  font-family: var(--f-text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* =========================================================================
   2. RESET (solo dentro #bp-prd)
   ========================================================================= */
#bp-prd *, #bp-prd *::before, #bp-prd *::after { box-sizing: border-box; }
#bp-prd :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, figcaption, table, fieldset, form) { margin: 0; }
#bp-prd :where(h1, h2, h3, h4) { font: inherit; color: inherit; line-height: 1.1; letter-spacing: normal; text-transform: none; word-spacing: normal; }
#bp-prd :where(figcaption) { padding: 0; font: inherit; font-style: normal; color: inherit; text-align: inherit; }
#bp-prd :where(ul, ol) { padding: 0; list-style: none; }
#bp-prd :where(a) { color: inherit; text-decoration: none; background: none; box-shadow: none; }
#bp-prd :where(img, svg) { display: block; max-width: 100%; }
#bp-prd :where(img) { height: auto; border: 0; border-radius: 0; box-shadow: none; }
#bp-prd :where(button, input, select, textarea) { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; }
#bp-prd :where(button) { width: auto; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; line-height: inherit; text-align: inherit; text-decoration: none; white-space: inherit; cursor: pointer; } /* Hello Elementor mette nowrap sui bottoni */
#bp-prd :where(table) { width: 100%; border-collapse: separate; border-spacing: 0; background: none; font-size: inherit; }
#bp-prd :where(th, td) { padding: 0; border: 0; background: none; font-weight: inherit; line-height: inherit; text-align: left; vertical-align: top; }
#bp-prd :where(fieldset) { min-width: 0; padding: 0; border: 0; }
#bp-prd :where(legend, label) { margin: 0; padding: 0; } /* Bootstrap (JupiterX) dà margine a label e legend */
#bp-prd [hidden] { display: none !important; }
#bp-prd [id] { scroll-margin-top: calc(var(--header-h) + 96px); } /* header + barra fissa della scheda */
#bp-prd :focus-visible { outline: 2px solid var(--focus, var(--c-red-300)); outline-offset: 3px; }
#bp-prd :focus:not(:focus-visible) { outline: none; } /* niente anello al clic del mouse (Bootstrap lo mette sui bottoni) */
#bp-prd .bp-ico { display: block; flex: none; width: 1em; height: 1em; }
#bp-prd .bp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
#bp-prd .bp-sr,
#bp-prd .bp-views.is-views .bp-head--view,
#bp-prd .bp-views.is-views #modelli .bp-head > .bp-h2 { /* titoli dei pannelli delle due viste (sezione 17) */
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   3. TONI DELLE SEZIONI
   Ogni sezione è dark o crema; i componenti leggono queste variabili e
   stanno bene su entrambe. Il PHP alterna i toni per le sezioni presenti.
   ========================================================================= */
#bp-prd .bp-frame--dark {
  --bg: var(--c-ink-900);
  --fg: var(--c-text-dark);
  --muted: var(--c-muted-dark);
  --line: var(--c-line-dark);
  --line-strong: var(--c-line-dark-strong);
  --surface: var(--c-ink-800);
  --surface-2: var(--c-ink-700);
  --field: var(--c-ink-900);
  --accent: var(--c-red-300);   /* testo e link rossi su dark (6.1:1) */
  --mark: var(--c-red-400);     /* grafiche rosse */
  --focus: var(--c-red-300);
  --ico-bg: var(--c-ink-700);
  --ico-fg: var(--c-text-dark);
  --table-bg: var(--c-ink-800);
  --row-hover: rgba(237, 234, 228, .045);
  --row-current: rgba(214, 58, 40, .14);
  --track: var(--c-ink-600);
  background-color: var(--bg);
  background-image: var(--tex-grain);
  color: var(--fg);
}
#bp-prd .bp-frame--cream {
  --bg: var(--c-cream-100);
  --fg: var(--c-ink-on-cream);
  --muted: var(--c-muted-cream);
  --line: var(--c-line-cream);
  --line-strong: var(--c-line-cream-strong);
  --surface: var(--c-cream-200);
  --surface-2: #DDD5C6;
  --field: var(--c-plate);
  --accent: var(--c-red-600);
  --mark: var(--c-red-600);
  --focus: var(--c-ink-on-cream);
  --ico-bg: var(--c-ink-on-cream);
  --ico-fg: var(--c-cream-100);
  --table-bg: var(--c-plate);
  --row-hover: rgba(20, 18, 16, .04);
  --row-current: rgba(166, 33, 23, .08);
  --track: var(--c-cream-300);
  background: var(--bg);
  color: var(--fg);
}

/* =========================================================================
   4. SEZIONI A TUTTA LARGHEZZA + CONTENUTO BOXATO (--content-max, 1440)
   Con --r-section: 0px (scelta attuale) le sezioni sono piatte; con un
   valore (es. 40px) ogni sezione risale sulla precedente con gli angoli
   superiori arrotondati, come i "fogli" del mockup.
   ========================================================================= */
#bp-prd .bp-frame {
  position: relative;
  width: 100%;
  margin-top: calc(-1 * var(--r-section));
  border-radius: var(--r-section) var(--r-section) 0 0;
  isolation: isolate;
}
#bp-prd .bp-frame__inner { padding: var(--section-y) var(--pad-frame) calc(var(--section-y) + var(--r-section)); }
#bp-prd .bp-container { width: 100%; max-width: var(--content-max); margin-inline: auto; }

/* =========================================================================
   5. HERO (prima sezione, dark): breadcrumb, titolo, griglia
   ========================================================================= */
#bp-prd .bp-hero { margin-top: 0; border-radius: 0; overflow: clip; }
#bp-prd .bp-hero::after { /* griglia tecnica, come il palco della home */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(237, 234, 228, .035) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(237, 234, 228, .035) 0 1px, transparent 1px 80px);
  -webkit-mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 75%);
  mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 75%);
}
#bp-prd .bp-hero > .bp-frame__inner {
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 80px));
  padding-bottom: calc(clamp(56px, 7vw, 112px) + var(--r-section));
}

#bp-prd .bp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
#bp-prd .bp-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
#bp-prd .bp-crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
#bp-prd .bp-crumbs a { display: inline-block; padding: 8px 0; transition: color var(--d-fast) var(--ease); }
#bp-prd .bp-crumbs a:hover { color: var(--fg); }
#bp-prd .bp-crumbs [aria-current="page"] { color: var(--fg); }

/* Scheda: fascia scura per l'header trasparente (testi chiari) + breadcrumb,
   poi l'hero chiaro che sale sulla fascia come gli altri fogli. */
#bp-prd .bp-topband {
  --fg: var(--c-text-dark);
  --muted: var(--c-muted-dark);
  --focus: var(--c-red-300);
  position: relative;
  padding: calc(var(--header-h) + clamp(12px, 1.6vw, 24px)) var(--pad-frame) calc(var(--r-section) + clamp(16px, 2vw, 28px));
  background-color: var(--c-ink-900);
  background-image: var(--tex-grain);
  color: var(--fg);
}
#bp-prd .bp-pdp > .bp-frame__inner { padding-top: clamp(36px, 4.5vw, 72px); padding-bottom: calc(clamp(48px, 6vw, 88px) + var(--r-section)); }
#bp-prd .bp-pdp .bp-hero__grid { margin-top: 0; }

#bp-prd .bp-hero__grid { display: grid; gap: 32px 64px; align-items: center; margin-top: clamp(24px, 3.5vw, 48px); }
#bp-prd .bp-hero__grid--product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#bp-prd .bp-hero__grid--media { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
#bp-prd .bp-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
#bp-prd .bp-hero__grid--solo .bp-info { max-width: 980px; }

#bp-prd .bp-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.1rem + 4.6vw, 5.5rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
#bp-prd .bp-title--long { font-size: clamp(2rem, .9rem + 3.4vw, 4.25rem); line-height: 1.02; }
#bp-prd .bp-title--product { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: .95; letter-spacing: -.045em; }

/* =========================================================================
   6. PALCO FOTO (piastra crema: il bianco dei JPG sparisce con multiply)
   ========================================================================= */
#bp-prd .bp-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 620px;
  border-radius: var(--r-lg);
  background: var(--c-cream-100);
  overflow: hidden;
  isolation: isolate;
}
#bp-prd .bp-stage::before { /* quadrettatura da tavola tecnica */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(20, 18, 16, .05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(20, 18, 16, .05) 0 1px, transparent 1px 40px);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000, transparent 100%);
  mask-image: radial-gradient(75% 75% at 50% 50%, #000, transparent 100%);
}
#bp-prd .bp-stage--hero { aspect-ratio: 4 / 3; max-height: 480px; }
/* Hero chiaro della scheda: niente piastra, griglia né contorno, foto più
   grande. Il bianco dei JPG sparisce con multiply sul crema del foglio: per
   questo il palco non deve isolare (con isolation il multiply non vede lo sfondo). */
#bp-prd .bp-frame--cream .bp-stage { max-height: 700px; border-radius: 0; background: none; box-shadow: none; overflow: visible; isolation: auto; }
#bp-prd .bp-frame--cream .bp-stage::before { display: none; }
#bp-prd .bp-frame--cream .bp-stage__img { inset: 0; width: 100%; height: 100%; }
#bp-prd .bp-stage__img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
#bp-prd .bp-stage__zoom {
  position: absolute; right: 16px; bottom: 16px;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-ink-900); color: var(--c-text-dark);
  transition: background var(--d-base) var(--ease);
}
#bp-prd .bp-stage__zoom .bp-ico { width: 20px; height: 20px; }
#bp-prd .bp-stage__zoom:hover { background: var(--c-red-600); }

/* =========================================================================
   7. INFO PRODOTTO: tag, codice, descrizione, applicazioni
   ========================================================================= */
#bp-prd .bp-info { display: grid; gap: 24px; align-content: center; justify-items: start; min-width: 0; }
#bp-prd .bp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#bp-prd .bp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: .8125rem; font-weight: 600; line-height: 1;
  white-space: nowrap;
  color: var(--fg);
  transition: background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
#bp-prd a.bp-pill:hover { border-color: var(--muted); background: var(--surface); }
#bp-prd .bp-pill .bp-ico { width: 16px; height: 16px; color: var(--accent); }
#bp-prd .bp-pill--sm { height: 30px; padding: 0 12px; font-size: .75rem; }

#bp-prd .bp-code {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px dashed var(--line-strong);
  font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .8125rem; letter-spacing: .04em;
  white-space: nowrap;
  color: var(--muted);
  transition: border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
#bp-prd .bp-code b { font-weight: 700; letter-spacing: .02em; color: var(--fg); -webkit-user-select: text; user-select: text; }
#bp-prd .bp-code .bp-ico { width: 16px; height: 16px; }
#bp-prd .bp-code:hover { border-color: var(--muted); color: var(--fg); }
#bp-prd .bp-code__ok { display: none; color: var(--accent); }
#bp-prd .bp-code.is-copied { border-style: solid; border-color: var(--accent); }
#bp-prd .bp-code.is-copied .bp-code__copy { display: none; }
#bp-prd .bp-code.is-copied .bp-code__ok { display: block; }

#bp-prd .bp-lead { display: grid; gap: .8em; max-width: 56ch; font-size: var(--t-body-l); line-height: 1.55; color: var(--muted); }
#bp-prd .bp-lead a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

#bp-prd .bp-apps { display: grid; gap: 10px; }
#bp-prd .bp-apps__label { font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* =========================================================================
   8. DATI CHIAVE (hero) e NUMERI (archivi)
   ========================================================================= */
#bp-prd .bp-specs {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 24px 16px;
  width: 100%;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
#bp-prd .bp-spec { display: grid; gap: 8px; align-content: start; min-width: 0; }
#bp-prd .bp-spec dt { font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#bp-prd .bp-spec dd { font-family: var(--f-display); font-weight: 400; font-size: var(--t-spec); line-height: 1.05; letter-spacing: -.03em; color: var(--fg); }
#bp-prd .bp-spec dd small { margin-left: .4em; font-family: var(--f-text); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
#bp-prd .bp-spec__alt { display: block; margin-top: 8px; font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
/* numeri degli archivi: ogni valore prende la larghezza che gli serve ("17–379 l/min" non va a capo) */
#bp-prd .bp-specs--stats { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 4vw, 64px); }
#bp-prd .bp-specs--stats dd { white-space: nowrap; }

/* =========================================================================
   9. BOTTONI E LINK
   ========================================================================= */
#bp-prd .bp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#bp-prd .bp-btn {
  --btn-h: 56px;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--btn-h);
  padding: 0 8px 0 26px;
  border-radius: var(--r-pill);
  font-family: var(--f-text); font-weight: 700; font-size: 1rem; line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: background var(--d-base) var(--ease), color var(--d-base) var(--ease), border-color var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
#bp-prd .bp-btn__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  transition: transform var(--d-base) var(--ease), background var(--d-base) var(--ease);
}
#bp-prd .bp-btn__icon .bp-ico { width: 18px; height: 18px; }
#bp-prd .bp-btn:hover .bp-btn__icon { transform: translatey(5px); }
#bp-prd .bp-btn--down:hover .bp-btn__icon { transform: translateY(3px); }
#bp-prd .bp-btn--noicon { padding: 0 26px; }
#bp-prd .bp-btn--primary { background: var(--g-ember); color: #fff; box-shadow: var(--shadow-cta); }
#bp-prd .bp-btn--primary .bp-btn__icon { background: rgba(255, 255, 255, .16); }
#bp-prd .bp-btn--primary:hover { background: var(--g-ember-hover); color: #fff; box-shadow: 0 18px 40px -14px rgba(166, 33, 23, .9); }
#bp-prd .bp-btn--secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); }
#bp-prd .bp-btn--secondary .bp-btn__icon { background: var(--surface-2); }
#bp-prd .bp-btn--secondary:hover { background: var(--surface-2); border-color: var(--muted); color: var(--fg); }
#bp-prd .bp-btn--sm { --btn-h: 44px; gap: 10px; padding: 0 6px 0 18px; font-size: .9375rem; }
#bp-prd .bp-btn--sm .bp-btn__icon { width: 32px; height: 32px; }
#bp-prd .bp-btn--sm.bp-btn--noicon { padding: 0 20px; }

#bp-prd .bp-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
#bp-prd .bp-link .bp-ico { width: 16px; height: 16px; transition: transform var(--d-base) var(--ease); }
#bp-prd .bp-link:hover .bp-ico { transform: translateX(4px); }

/* =========================================================================
   10. INDICE DELLE SEZIONI DELLA SCHEDA
   Barra scura numerata in fondo all'hero chiaro. Quando esce dallo schermo,
   prodotti.js mostra la stessa barra fissa sotto l'header (.bp-stickybar),
   con nome del modello, scheda PDF e "Richiedi informazioni"; la voce della
   sezione che si sta leggendo è evidenziata (aria-current="location").
   ========================================================================= */
#bp-prd .bp-subnav,
#bp-prd .bp-stickybar__nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
#bp-prd .bp-subnav::-webkit-scrollbar,
#bp-prd .bp-stickybar__nav::-webkit-scrollbar { display: none; }
#bp-prd .bp-subnav {
  margin-top: clamp(36px, 4.5vw, 64px);
  padding: 8px;
  border-radius: var(--r-pill);
  background: var(--c-ink-900);
  box-shadow: 0 26px 50px -30px rgba(20, 18, 16, .65);
}
#bp-prd .bp-subnav a,
#bp-prd .bp-stickybar__nav a {
  flex: 1 0 auto; justify-content: center;
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 700; white-space: nowrap;
  color: var(--c-text-dark);
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
#bp-prd .bp-subnav a i,
#bp-prd .bp-stickybar__nav a i { font-style: normal; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--c-red-300); }
#bp-prd .bp-subnav a:hover,
#bp-prd .bp-stickybar__nav a:hover { background: var(--c-ink-700); color: var(--c-text-dark); }
#bp-prd .bp-subnav a[aria-current],
#bp-prd .bp-stickybar__nav a[aria-current] { background: var(--c-cream-100); color: var(--c-ink-on-cream); }
#bp-prd .bp-subnav a[aria-current] i,
#bp-prd .bp-stickybar__nav a[aria-current] i { color: var(--c-red-600); }
#bp-prd .bp-subnav a:focus-visible,
#bp-prd .bp-stickybar a:focus-visible { outline-color: var(--c-red-300); outline-offset: -2px; }

#bp-prd .bp-stickybar {
  position: fixed; z-index: 40;
  top: var(--bp-stick-top, 12px); left: 50%;
  width: min(var(--content-max), calc(100% - 2 * var(--pad-frame)));
  transform: translate(-50%, -14px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform var(--d-base) var(--ease), opacity var(--d-base) var(--ease), visibility var(--d-base);
}
#bp-prd .bp-stickybar.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
#bp-prd .bp-stickybar__in {
  display: flex; align-items: center; gap: 8px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(17, 17, 19, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--c-line-dark-strong);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  color: var(--c-text-dark);
}
#bp-prd .bp-stickybar__name { flex: none; max-width: 22ch; padding: 0 10px 0 18px; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); font-size: 1.0625rem; letter-spacing: -.02em; white-space: nowrap; }
#bp-prd .bp-stickybar__nav { position: relative; flex: 1; min-width: 0; }
#bp-prd .bp-stickybar__nav a { height: 44px; padding: 0 12px; font-size: .875rem; }
#bp-prd .bp-stickybar__nav a i { display: none; } /* i numeri restano nell'indice dell'hero */
#bp-prd .bp-stickybar__cta { flex: none; display: flex; align-items: center; gap: 6px; }
#bp-prd .bp-stickybar__cta .bp-btn { --btn-h: 44px; gap: 10px; padding: 0 6px 0 18px; font-size: .875rem; box-shadow: none; }
#bp-prd .bp-stickybar__cta .bp-btn__icon { width: 32px; height: 32px; }
/* il PDF nella barra: solo l'icona (il testo resta per gli screen reader) */
#bp-prd .bp-stickybar__cta [data-bp-pdf] { width: 224px; font-size: 12px!important; padding: 0; justify-content: center; font-size: 0; background: var(--c-ink-700); border: 1px solid var(--c-line-dark-strong); }
#bp-prd .bp-stickybar__cta [data-bp-pdf] .bp-btn__icon { background: none; }
#bp-prd .bp-stickybar__cta [data-bp-pdf]:hover { background: var(--c-red-600); }

/* =========================================================================
   11. TESTATA DI SEZIONE (titolo a sinistra, testo a destra) e SPLIT
   ========================================================================= */
#bp-prd .bp-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
#bp-prd .bp-h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, var(--t-h2), 40px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
#bp-cta-title {text-align:center;}
#bp-prd .bp-head__text { display: grid; gap: 14px; justify-items: start; max-width: 46ch; font-size: var(--t-body-l); line-height: 1.55; color: var(--muted); }
#bp-prd .bp-h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 1.05rem + 1.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
/* blocco dentro una sezione (modelli della serie sotto i dati tecnici) */
#bp-prd .bp-subsection { margin-top: clamp(64px, 7vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
#bp-prd .bp-subsection--first { margin-top: 0; padding-top: 0; border-top: 0; }

#bp-prd .bp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
#bp-prd .bp-split__aside { display: grid; gap: 28px; align-content: start; justify-items: start; }
#bp-prd .bp-split__aside--sticky { position: sticky; top: calc(var(--header-h) + 190px); }

/* =========================================================================
   12. DATI TECNICI (tabella a due colonne) + DOWNLOAD
   ========================================================================= */
#bp-prd .bp-sheet { display: grid; border-top: 1px solid var(--line-strong); }
#bp-prd .bp-sheet__row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 6px 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
#bp-prd .bp-sheet dt { font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#bp-prd .bp-sheet dd { font-size: 1.0625rem; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
#bp-prd .bp-sheet dd.is-mono { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.125rem; letter-spacing: 0; }
#bp-prd .bp-sheet dd small { font-size: .75em; letter-spacing: .02em; color: var(--muted); }
#bp-prd .bp-sheet__alt { display: inline-block; margin-left: 14px; font-size: .8125rem; letter-spacing: .02em; color: var(--muted); }
#bp-prd .bp-sheet dd a { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color var(--d-fast) var(--ease); }
#bp-prd .bp-sheet dd a:hover { text-decoration-color: var(--accent); }

#bp-prd .bp-dl { display: grid; width: 100%; border-top: 1px solid var(--line-strong); }
#bp-prd .bp-dl a {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: background var(--d-fast) var(--ease);
}
#bp-prd .bp-dl a:hover { background: var(--row-hover); }
#bp-prd .bp-dl__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ico-bg); color: var(--ico-fg); }
#bp-prd .bp-dl__ico .bp-ico { width: 22px; height: 22px; }
#bp-prd .bp-dl b { display: block; font-weight: 700; }
#bp-prd .bp-dl small { display: block; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
#bp-prd .bp-dl__go { width: 20px; height: 20px; color: var(--accent); }

/* =========================================================================
   13. DISEGNO TECNICO E GRAFICO PRESTAZIONI
   ========================================================================= */
#bp-prd .bp-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#bp-prd .bp-figs--1 { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
#bp-prd .bp-figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* disegno, grafico e video */
@media (max-width: 1199px) { #bp-prd .bp-figs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Video del funzionamento (pompe a membrana): stessa card dei disegni, si guarda in pagina */
#bp-prd .bp-fig__media--video { cursor: auto; background: #000; }
#bp-prd .bp-fig__media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#bp-prd .bp-fig { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
#bp-prd .bp-fig__media {
  --pad: clamp(16px, 3vw, 36px);
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-plate);
  cursor: zoom-in;
}
/* immagine assoluta: entra intera nel 4:3 qualunque sia la proporzione (anche SVG senza dimensioni) */
#bp-prd .bp-fig__media img {
  position: absolute; inset: var(--pad);
  width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad));
  object-fit: contain; mix-blend-mode: multiply;
  transition: transform var(--d-slow) var(--ease);
}
#bp-prd .bp-fig__media:hover img { transform: scale(1.02); }
#bp-prd .bp-fig__media:focus-visible { outline-offset: -4px; }
#bp-prd .bp-fig__zoom { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-ink-900); color: var(--c-text-dark); transition: background var(--d-base) var(--ease); }
#bp-prd .bp-fig__zoom .bp-ico { width: 18px; height: 18px; }
#bp-prd .bp-fig__media:hover .bp-fig__zoom { background: var(--c-red-600); }
#bp-prd .bp-fig__cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; color: var(--fg); }
#bp-prd .bp-fig__title { font-family: var(--f-display); font-size: 1.125rem; line-height: 1.2; letter-spacing: -.02em; }
#bp-prd .bp-fig__dl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; font-weight: 700; color: var(--accent); }
#bp-prd .bp-fig__dl .bp-ico { width: 16px; height: 16px; transition: transform var(--d-base) var(--ease); }
#bp-prd .bp-fig__dl:hover .bp-ico { transform: translateY(2px); }

/* =========================================================================
   14. VANTAGGI TECNICI, OPTIONAL, ACCESSORI
   ========================================================================= */
#bp-prd .bp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
#bp-prd .bp-feats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#bp-prd .bp-feats--1 { grid-template-columns: minmax(0, 1fr); }
#bp-prd .bp-feat { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
#bp-prd .bp-feat__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1.05rem + .65vw, 1.625rem); line-height: 1.15; letter-spacing: -.02em; }
#bp-prd .bp-list li {
  display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem; font-weight: 600; line-height: 1.45; letter-spacing: .01em;
  break-inside: avoid;
}
#bp-prd .bp-list li::before { content: ""; width: 6px; height: 6px; margin-top: .5em; background: var(--mark); }
#bp-prd .bp-feats--1 .bp-list { display: block; column-count: 2; column-gap: 48px; }

/* =========================================================================
   15. TABELLA MODELLI
   Prima colonna fissa durante lo scorrimento orizzontale; intestazioni =
   bottoni di ordinamento (aria-sort); riga del modello aperto evidenziata.
   ========================================================================= */
#bp-prd .bp-tablewrap {
  position: relative;
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--table-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
#bp-prd .bp-tablewrap.is-scrollable:not(.is-end) {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
/* Niente larghezze in % sulle colonne: nel layout automatico gonfierebbero la tabella */
#bp-prd .bp-table th,
#bp-prd .bp-table td { padding: 14px; white-space: nowrap; vertical-align: top; background-color: var(--table-bg); }
#bp-prd .bp-table thead th {
  padding-block: 16px 14px;
  vertical-align: bottom;
  white-space: normal; /* le etichette lunghe vanno su due righe, i valori no */
  border-bottom: 1px solid var(--line-strong);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
#bp-prd .bp-table thead th small { display: block; margin-top: 4px; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }
#bp-prd .bp-table tbody tr + tr > * { border-top: 1px solid var(--line); }
#bp-prd .bp-table :is(thead th:first-child, tbody th) { position: sticky; left: 0; z-index: 1; }
#bp-prd .bp-table thead th:first-child { z-index: 2; }
#bp-prd .bp-tablewrap.is-scrolled .bp-table :is(thead th:first-child, tbody th) { box-shadow: 12px 0 16px -12px rgba(0, 0, 0, .45); }

#bp-prd .bp-sort { display: inline-flex; align-items: flex-end; gap: 8px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; transition: color var(--d-fast) var(--ease); }
#bp-prd .bp-sort > span { display: block; }
#bp-prd .bp-sort:hover { color: var(--fg); }
#bp-prd .bp-sort .bp-ico { width: 14px; height: 14px; margin-bottom: 1px; }
#bp-prd .bp-sort__ico { opacity: .45; }
#bp-prd .bp-sort__dir { display: none; color: var(--accent); }
#bp-prd .bp-table th[aria-sort] .bp-sort { color: var(--fg); }
#bp-prd .bp-table th[aria-sort] .bp-sort__ico { display: none; }
#bp-prd .bp-table th[aria-sort] .bp-sort__dir { display: block; }
#bp-prd .bp-table th[aria-sort="descending"] .bp-sort__dir { transform: scaleY(-1); }

#bp-prd .bp-table tbody th { font-size: .9375rem; font-weight: 700; color: var(--fg); }
#bp-prd .bp-table__model { display: inline-block; }
#bp-prd a.bp-table__model,
#bp-prd .bp-table__link { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color var(--d-fast) var(--ease); }
#bp-prd a.bp-table__model:hover,
#bp-prd .bp-table__link:hover { text-decoration-color: var(--accent); }
#bp-prd .bp-table__here { display: block; margin-top: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; white-space: normal; color: var(--accent); }
#bp-prd .bp-table td { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .9375rem; font-weight: 600; color: var(--fg); }
#bp-prd .bp-table td.is-txt { font-family: var(--f-text); font-weight: 600; }
#bp-prd .bp-table td.is-code { font-size: .8125rem; letter-spacing: .02em; }
#bp-prd .bp-table td.is-wrap { min-width: 8em; white-space: normal; }
#bp-prd .bp-table .is-num { text-align: right; }
#bp-prd .bp-table .is-pdf { text-align: center; }
#bp-prd .bp-alt { display: block; margin-top: 3px; font-size: .75rem; font-weight: 400; color: var(--muted); }
#bp-prd .bp-na { color: var(--muted); }
#bp-prd .bp-iconlink {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin: -8px 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  transition: background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
#bp-prd .bp-iconlink .bp-ico { width: 16px; height: 16px; }
#bp-prd .bp-iconlink:hover { background: var(--c-red-600); border-color: transparent; color: #fff; }

#bp-prd .bp-table tbody tr:hover > * { background-image: linear-gradient(var(--row-hover), var(--row-hover)); }
#bp-prd .bp-table tbody tr.is-current > * { background-image: linear-gradient(var(--row-current), var(--row-current)); }
#bp-prd .bp-table tbody tr.is-current > th { box-shadow: inset 3px 0 0 var(--mark); }
#bp-prd .bp-tablewrap.is-scrolled .bp-table tbody tr.is-current > th { box-shadow: inset 3px 0 0 var(--mark), 12px 0 16px -12px rgba(0, 0, 0, .45); }

/* =========================================================================
   16. CARD DEI GRUPPI (serie, categorie, tipologie)
   ========================================================================= */
#bp-prd .bp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 16px; }
/* Serie (archivi, pillole dei settori): 6 per fila, meno su schermi stretti (sezione 21).
   prodotti.js legge --cards-cols per mostrare "righe_serie" file, poi "Mostra altre". */
#bp-prd .bp-cards--grid { --cards-cols: 6; grid-template-columns: repeat(var(--cards-cols), minmax(0, 1fr)); gap: 14px; }
#bp-prd .bp-cards--grid .bp-card__media img { inset: 14px 8%; width: 84%; height: calc(100% - 28px); }
#bp-prd .bp-cards--grid .bp-card__count { left: 10px; top: 10px; height: 26px; padding: 0 9px; }
#bp-prd .bp-cards--grid .bp-card__go { right: 10px; top: 10px; width: 36px; height: 36px; }
#bp-prd .bp-cards--grid .bp-card__go .bp-ico { width: 16px; height: 16px; }
#bp-prd .bp-cards--grid .bp-card__body { gap: 8px; padding: 16px 16px 18px; }
#bp-prd .bp-cards--grid .bp-card__name { font-size: 1.125rem; overflow-wrap: anywhere; }
/* descrizione a 16px, al massimo 3 righe: intera nella pagina della serie (e per gli screen reader) */
#bp-prd .bp-cards--grid .bp-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
#bp-prd .bp-cards--grid .bp-card__meta { gap: 2px 10px; margin-top: 2px; }
#bp-prd .bp-card {
  position: relative;
  display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--d-base) var(--ease);
}
#bp-prd .bp-card:hover { border-color: var(--line-strong); }
#bp-prd .bp-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-plate); }
#bp-prd .bp-card__media img { position: absolute; inset: 20px 7%; width: 86%; height: calc(100% - 40px); object-fit: contain; mix-blend-mode: multiply; transition: transform var(--d-slow) var(--ease); }
#bp-prd .bp-card:hover .bp-card__media img { transform: scale(1.04); }
#bp-prd .bp-card__media.is-empty .bp-ico { width: 56px; height: 56px; color: var(--c-muted-cream); opacity: .45; }
#bp-prd .bp-card__count {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 11px;
  border-radius: var(--r-pill);
  background: rgba(243, 239, 231, .92);
  border: 1px solid var(--c-line-cream-strong);
  color: var(--c-ink-on-cream);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
#bp-prd .bp-card__body { display: grid; gap: 10px; align-content: start; padding: 22px 22px 24px; }
#bp-prd .bp-card__name { font-family: var(--f-display); font-weight: 600; font-size: 1.375rem; line-height: 1.12; letter-spacing: -.025em; }
#bp-prd .bp-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
#bp-prd .bp-card__link:focus-visible { outline: none; }
#bp-prd .bp-card:has(.bp-card__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
#bp-prd .bp-card__text { font-size: 1rem; line-height: 1.5; color: var(--muted); } /* descrizione (della serie): testo corrente a 16px */
#bp-prd .bp-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .8125rem; letter-spacing: .04em; color: var(--muted); }
#bp-prd .bp-card__meta b { font-weight: 500; color: var(--fg); }
#bp-prd .bp-card__go {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-ink-900); color: var(--c-text-dark);
  pointer-events: none;
  transition: background var(--d-base) var(--ease);
}
#bp-prd .bp-card__go .bp-ico { width: 18px; height: 18px; }
#bp-prd .bp-card:hover .bp-card__go { background: var(--c-red-600); color: #fff; }

/* /prodotti/: le categorie principali (4-5) in card larghe, foto e testo affiancati, due per
   fila. Con un numero dispari l'ultima prende tutta la riga, con la foto larga come le altre.
   Le sottocategorie sono link sopra il link che copre la card (z-index 2). */
#bp-prd .bp-cards--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#bp-prd .bp-card--feature { --feat-img: minmax(0, 5fr); grid-template-rows: none; grid-template-columns: var(--feat-img) minmax(0, 7fr); min-height: 300px; }
#bp-prd .bp-cards--feature > .bp-card--feature:last-child:nth-child(odd) { grid-column: 1 / -1; --feat-img: calc((100% - 16px) * 5 / 24); }
#bp-prd .bp-card--feature .bp-card__media { aspect-ratio: auto; min-height: 260px; background: var(--surface-2); }
#bp-prd .bp-card--feature .bp-card__media img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
#bp-prd .bp-card--feature .bp-card__body { display: flex; flex-direction: column; gap: 12px; padding: 28px 32px; }
#bp-prd .bp-card--feature .bp-card__name { padding-right: 48px; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); }
#bp-prd .bp-card--feature .bp-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
#bp-prd .bp-card--feature .bp-card__meta { margin-top: auto; padding-top: 6px; font-size: .875rem; }
#bp-prd .bp-card--feature .bp-card__go { right: 20px; top: 20px; }
#bp-prd .bp-card__links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }

/* Card prodotto (accessori consigliati, correlati) */
#bp-prd .bp-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#bp-prd .bp-pcard {
  position: relative;
  display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--d-base) var(--ease);
}
#bp-prd .bp-pcard:hover { border-color: var(--line-strong); }
#bp-prd .bp-pcard__media { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; background: var(--c-plate); }
#bp-prd .bp-pcard__media img { position: absolute; inset: 8% 9%; width: 82%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform var(--d-slow) var(--ease); }
#bp-prd .bp-pcard:hover .bp-pcard__media img { transform: scale(1.04); }
#bp-prd .bp-pcard__media.is-empty .bp-ico { width: 48px; height: 48px; color: var(--c-muted-cream); opacity: .45; }
#bp-prd .bp-pcard__body { display: grid; gap: 8px; align-content: start; padding: 18px 18px 20px; }
#bp-prd .bp-pcard__label { font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#bp-prd .bp-pcard__name { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; line-height: 1.12; letter-spacing: -.02em; }
#bp-prd .bp-pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
#bp-prd .bp-pcard__link:focus-visible { outline: none; }
#bp-prd .bp-pcard:has(.bp-pcard__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
#bp-prd .bp-pcard__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
#bp-prd .bp-pcard__specs div { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; min-width: 0; } /* valori allineati anche se un'etichetta va a capo */
#bp-prd .bp-pcard__specs dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#bp-prd .bp-pcard__specs dd { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .9375rem; font-weight: 600; white-space: nowrap; }
#bp-prd .bp-pcard__specs dd small { margin-left: 3px; font-size: .75rem; color: var(--muted); }
#bp-prd .bp-pcard__go {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-ink-900); color: var(--c-text-dark);
  pointer-events: none;
  transition: background var(--d-base) var(--ease);
}
#bp-prd .bp-pcard__go .bp-ico { width: 16px; height: 16px; }
#bp-prd .bp-pcard:hover .bp-pcard__go { background: var(--c-red-600); color: #fff; }

/* "I modelli" degli archivi (mockup pompe-membrana.html): griglia di card
   con il piede "Confronta" e la freccia, al posto della freccia in alto */
#bp-prd .bp-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
#bp-prd .bp-mgrid > li { display: grid; min-width: 0; }
#bp-prd .bp-pcard--foot .bp-pcard__body { display: flex; flex-direction: column; gap: 10px; }
#bp-prd .bp-pcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
#bp-prd .bp-pcard__more { position: relative; z-index: 2; display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: auto; border-radius: 50%; background: var(--c-ink-900); color: var(--c-text-dark); pointer-events: none; transition: background var(--d-base) var(--ease); }
#bp-prd .bp-frame--cream .bp-pcard__more { background: var(--c-ink-on-cream); color: var(--c-cream-100); }
#bp-prd .bp-pcard__more .bp-ico { width: 16px; height: 16px; }
#bp-prd .bp-pcard:hover .bp-pcard__more { background: var(--c-red-600); color: #fff; }
#bp-prd .bp-pcard.is-picked { border-color: var(--mark); box-shadow: inset 0 0 0 1px var(--mark); }
/* "Confronta": sopra il link esteso della card; compare solo con JavaScript */
#bp-prd .bp-cmp-toggle { position: relative; z-index: 2; display: none; align-items: center; gap: 10px; min-height: 44px; font-size: .875rem; font-weight: 700; color: var(--muted); cursor: pointer; }
#bp-prd.has-cmp .bp-cmp-toggle { display: inline-flex; }
#bp-prd .bp-cmp-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#bp-prd .bp-cmp-toggle input:checked ~ .bp-cmp-toggle__txt { color: var(--fg); }
#bp-prd .bp-cmp-toggle input:focus-visible + .bp-pick__box { outline: 2px solid var(--focus); outline-offset: 2px; }
#bp-prd .bp-cmp-toggle:hover .bp-pick__box { border-color: var(--fg); }

/* Categorie e applicazioni a riquadri, affiancate (pagine di tipologia) */
#bp-prd .bp-navcols { display: grid; gap: clamp(40px, 5vw, 72px); }
#bp-prd .bp-navcols--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
#bp-prd .bp-navcol { display: grid; gap: 24px; align-content: start; }
#bp-prd .bp-navcols--2 .bp-appgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
#bp-prd .bp-navcols--2 .bp-h3 { font-size: clamp(1.375rem, .9rem + 1.1vw, 2rem); } /* affiancati: i titoli stanno su una riga e i riquadri partono insieme */

/* =========================================================================
   17. FILTRI DELL'ARCHIVIO: ricerca, cursori doppi, chip, applicazione
   ========================================================================= */
#bp-prd .bp-filters { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; } /* --cols: cursori */
#bp-prd .bp-filters--chips > .bp-filter--chips { grid-column: 1 / -1; } /* chip dei gruppi a tutta larghezza, sotto i cursori affiancati */
#bp-prd .bp-filter {
  display: grid; gap: 14px; align-content: start;
  min-width: 0; margin: 0;
  padding: 18px 20px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
#bp-prd fieldset.bp-filter { display: block; }
#bp-prd fieldset.bp-filter > legend { float: left; width: 100%; margin-bottom: 14px; }
#bp-prd .bp-filter__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  width: 100%;
  font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg);
}
#bp-prd .bp-filter__val { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }

#bp-prd .bp-search {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--field);
  border: 1px solid var(--line-strong);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
#bp-prd .bp-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(238, 106, 85, .16); }
#bp-prd .bp-search .bp-ico { width: 18px; height: 18px; color: var(--muted); }
#bp-prd .bp-search__input {
  flex: 1; min-width: 0; width: auto; height: 100%;
  padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; outline: none;
  font-size: 1rem; font-weight: 500; color: var(--fg);
}
#bp-prd .bp-search__input::placeholder { color: var(--muted); opacity: 1; }

/* Cursore doppio: due input range sovrapposti, solo le maniglie ricevono il puntatore */
#bp-prd .bp-range { --a: 0%; --b: 100%; position: relative; height: 28px; cursor: pointer; touch-action: pan-y; }
#bp-prd .bp-range__track { position: absolute; left: 12px; right: 12px; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--track); }
#bp-prd .bp-range__fill { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border-radius: 4px; background: var(--mark); }
#bp-prd .bp-range__input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none;
  -webkit-appearance: none; appearance: none;
  pointer-events: none;
}
#bp-prd .bp-range__input::-webkit-slider-runnable-track { height: 4px; background: transparent; border: 0; }
#bp-prd .bp-range__input::-moz-range-track { height: 4px; background: transparent; border: 0; }
#bp-prd .bp-range__input::-moz-range-progress { background: transparent; }
#bp-prd .bp-range__input::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 24px; height: 24px; margin-top: -10px;
  border-radius: 50%;
  background: var(--c-cream-100);
  border: 4px solid var(--mark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  cursor: grab;
}
#bp-prd .bp-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c-cream-100);
  border: 4px solid var(--mark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  cursor: grab;
}
#bp-prd .bp-range__input:focus-visible { outline: none; }
#bp-prd .bp-range__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--focus); }
#bp-prd .bp-range__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--focus); }

#bp-prd .bp-chips { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
#bp-prd .bp-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
  transition: background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
#bp-prd .bp-chip::after { content: ""; position: absolute; inset: -4px -2px; } /* area di tocco ≥ 44px */
#bp-prd .bp-chip span { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: .75rem; font-weight: 600; opacity: .7; }
#bp-prd .bp-chip:hover { border-color: var(--muted); }
#bp-prd .bp-chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

#bp-prd .bp-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
#bp-prd .bp-count { font-weight: 700; }
#bp-prd .bp-count b { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); }
#bp-prd .bp-toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#bp-prd .bp-toolbar__info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
#bp-prd .bp-active { display: flex; flex-wrap: wrap; gap: 6px; }
#bp-prd .bp-chip--active { gap: 6px; padding: 0 10px 0 14px; background: var(--surface); }
#bp-prd .bp-chip--active .bp-ico { width: 14px; height: 14px; }
#bp-prd .bp-chip--active:hover { border-color: var(--accent); }
#bp-prd .bp-search--sm { width: 240px; max-width: 100%; height: 44px; }
#bp-prd .bp-search--sm .bp-search__input { font-size: .9375rem; }
#bp-prd .bp-select { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
#bp-prd .bp-select select {
  -webkit-appearance: none; appearance: none;
  width: auto; max-width: 100%; height: 44px;
  padding: 0 44px 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: none;
  color: var(--fg);
  font-size: .875rem; font-weight: 600; line-height: 1;
  cursor: pointer;
}
#bp-prd .bp-select option { background: #fff; color: #141210; }
#bp-prd .bp-select .bp-ico { position: absolute; right: 16px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
#bp-prd .bp-reset {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: .875rem; font-weight: 700; white-space: nowrap;
  transition: border-color var(--d-fast) var(--ease);
}
#bp-prd .bp-reset .bp-ico { width: 14px; height: 14px; }
#bp-prd .bp-reset:hover { border-color: var(--muted); }

#bp-prd .bp-more { display: flex; justify-content: center; margin-top: 24px; }
#bp-prd .bp-empty { display: grid; gap: 14px; justify-items: start; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); border: 1px dashed var(--line-strong); color: var(--muted); }
#bp-prd .bp-empty .bp-empty__title { font-family: var(--f-display); font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.02em; color: var(--fg); }
#bp-prd .bp-empty .bp-actions { margin-top: 6px; }

/* Due viste degli archivi: card delle categorie o tutti i modelli (prodotti.js 5c).
   Pillole grandi con icona e numero; accanto, il testo che dice cosa cambia
   con l'altra vista. .bp-seg.bp-seg--views batte le regole di .bp-seg (sezione 19). */
#bp-prd .bp-viewbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line-strong); }
#bp-prd .bp-seg.bp-seg--views { flex: none; padding: 6px; }
#bp-prd .bp-seg.bp-seg--views [role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 20px 0 18px; font-size: 1.0625rem; }
#bp-prd .bp-seg.bp-seg--views [role="tab"] .bp-ico { width: 22px; height: 22px; }
#bp-prd .bp-seg.bp-seg--views [role="tab"]:not([aria-selected="true"]):hover { background: var(--surface-2); color: var(--fg); }
#bp-prd .bp-seg__n { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--fg); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#bp-prd .bp-seg [aria-selected="true"] .bp-seg__n { background: var(--mark); color: #fff; }
#bp-prd .bp-viewbar__hint { flex: 1 1 34ch; max-width: 62ch; font-size: 1rem; line-height: 1.55; color: var(--muted); }
/* Con le pillole il titolo del pannello lo dice già la pillola: resta per gli screen reader (vedi .bp-sr) */
#bp-prd .bp-views.is-views #modelli .bp-head { grid-template-columns: minmax(0, 1fr); }
#bp-prd .bp-views.is-views #modelli .bp-head:not(:has(.bp-head__text)) { margin-bottom: 0; }
#bp-prd .bp-views:not(.is-views) .bp-viewpanel + .bp-viewpanel { margin-top: var(--section-y); } /* senza JS: le due viste in colonna */
/* Nelle due viste il testo della testata ("Usa i filtri…") sta nel riquadro dei chip, a destra
   di "Categoria" (catalogo.php, 'note'). La legend è float: è un elemento qualunque della griglia. */
#bp-prd fieldset.bp-filter--note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34%); column-gap: clamp(24px, 3vw, 48px); align-items: start; }
#bp-prd fieldset.bp-filter--note > legend { grid-column: 1; grid-row: 1; width: auto; }
#bp-prd fieldset.bp-filter--note > .bp-chips { grid-column: 1; grid-row: 2; }
#bp-prd .bp-filter__note { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 1024px) {
  /* poco spazio: il testo va sotto i chip */
  #bp-prd fieldset.bp-filter--note { grid-template-columns: minmax(0, 1fr); }
  #bp-prd .bp-filter__note { grid-column: 1; grid-row: 3; margin-top: 14px; font-size: .875rem; }
}
@media (max-width: 600px) {
  /* due pillole a metà larghezza: l'etichetta può andare su due righe, l'icona lascia spazio */
  #bp-prd .bp-seg.bp-seg--views [role="tab"] { flex: 1 1 0; min-width: 0; height: auto; min-height: 56px; padding: 8px 10px; gap: 8px; font-size: .875rem; line-height: 1.15; white-space: normal; text-align: center; }
  #bp-prd .bp-seg.bp-seg--views [role="tab"] .bp-ico { display: none; }
}

/* =========================================================================
   17b. PAGINA DOWNLOAD: viste, filtri e card documento
   ========================================================================= */
#bp-prd .bp-download { display: grid; gap: clamp(18px, 2.6vw, 32px); }
#bp-prd .bp-download__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#bp-prd .bp-download__panel { display: grid; gap: 18px; }
#bp-prd .bp-download__panel[hidden] { display: none; }
#bp-prd .bp-download__toolbar { margin-bottom: 0; }
#bp-prd .bp-download__tools { justify-content: flex-end; }
#bp-prd .bp-download__search { width: 300px; }
#bp-prd .bp-download__chips { margin: 0; }
#bp-prd .bp-download__chips .bp-chips { min-width: 0; }
#bp-prd .bp-docgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 16px; }
#bp-prd .bp-docitem { display: grid; min-width: 0; }
#bp-prd .bp-doc {
  position: relative;
  display: grid; grid-template-rows: auto 1fr;
  min-width: 0; height: 100%;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--d-base) var(--ease), border-color var(--d-fast) var(--ease), box-shadow var(--d-base) var(--ease);
}
#bp-prd .bp-doc:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 50px -34px rgba(0, 0, 0, .55);
}
#bp-prd .bp-doc__cover {
  position: relative;
  display: grid; place-items: center;
  min-height: 236px; aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-ink-900);
  color: var(--c-cream-100);
}
#bp-prd .bp-doc__cover::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  opacity: .55;
}
#bp-prd .bp-doc__cover img {
  position: relative; z-index: 1;
  width: min(74%, 260px); max-height: 78%;
  object-fit: contain;
  transform: rotate(-4deg);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .32));
  transition: transform var(--d-slow) var(--ease);
}
#bp-prd .bp-doc:hover .bp-doc__cover img { transform: rotate(-2deg) scale(1.03); }
#bp-prd .bp-doc__cover--product {
  background: var(--c-plate);
  color: var(--c-muted-cream);
}
#bp-prd .bp-doc__cover--product::before { opacity: .2; }
#bp-prd .bp-doc__cover--product img {
  width: 84%; max-height: 76%;
  transform: none;
  filter: none;
  mix-blend-mode: multiply;
}
#bp-prd .bp-doc:hover .bp-doc__cover--product img { transform: scale(1.04); }
#bp-prd .bp-doc__cover--file .bp-ico {
  position: relative; z-index: 1;
  width: 72px; height: 72px;
  opacity: .86;
}
#bp-prd .bp-doc__ext {
  position: absolute; z-index: 2; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; height: 30px; padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--c-red-600);
  color: #fff;
  font-family: var(--f-num); font-size: .75rem; font-weight: 700; letter-spacing: .06em;
}
#bp-prd .bp-doc__body { display: grid; gap: 12px; align-content: start; padding: 22px; }
#bp-prd .bp-doc__tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
#bp-prd .bp-doc__title {
  min-width: 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.25rem, 1rem + .5vw, 1.625rem);
  line-height: 1.12; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
#bp-prd .bp-doc__link { color: var(--fg); text-decoration: none; }
#bp-prd .bp-doc__link:hover { color: var(--accent); }
#bp-prd .bp-doc__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
#bp-prd .bp-doc__link:focus-visible { outline: none; }
#bp-prd .bp-doc:has(.bp-doc__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
#bp-prd .bp-doc__sub { color: var(--muted); line-height: 1.45; }
#bp-prd .bp-doc__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  align-self: end; margin-top: 4px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
#bp-prd .bp-doc__meta {
  min-width: 0;
  font-family: var(--f-num); font-size: .8125rem; font-weight: 600; line-height: 1.35;
  color: var(--muted);
}
#bp-prd .bp-doc__go {
  flex: none;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--fg);
  transition: background var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
#bp-prd .bp-doc__go .bp-ico { width: 18px; height: 18px; }
#bp-prd .bp-doc:hover .bp-doc__go { background: var(--c-red-600); color: #fff; }

/* =========================================================================
   18. LIGHTBOX (disegni e foto a piena grandezza, video dei settori)
   ========================================================================= */
#bp-prd .bp-lightbox {
  width: min(1200px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--c-plate);
  color: var(--c-ink-on-cream);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85);
  --focus: var(--c-ink-on-cream);
}
#bp-prd .bp-lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
#bp-prd .bp-lightbox::backdrop { background: rgba(5, 5, 6, .84); }
#bp-prd .bp-lightbox__img { width: 100%; height: 100%; max-height: calc(100dvh - 112px); padding: clamp(12px, 3vw, 32px); object-fit: contain; mix-blend-mode: multiply; }
#bp-prd .bp-lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; border-top: 1px solid var(--c-line-cream); }
#bp-prd .bp-lightbox__cap { font-size: .9375rem; font-weight: 700; }
#bp-prd .bp-lightbox__close { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-ink-on-cream); color: var(--c-cream-100); transition: background var(--d-fast) var(--ease); }
#bp-prd .bp-lightbox__close:hover { background: var(--c-red-600); }
#bp-prd .bp-lightbox__close .bp-ico { width: 20px; height: 20px; }
/* Video (pagine di settore): lo stesso popup su fondo scuro, grande quanto lo schermo
   permette. --ar è il rapporto del video (dal PHP), --bar-h la barra sotto (48 + 2 × 10 + 1) */
#bp-prd .bp-lightbox--video {
  --bar-h: 69px;
  --focus: var(--c-red-300);
  width: min(1440px, calc(100vw - 32px), calc((100dvh - 32px - var(--bar-h)) * var(--ar, 1.7778)));
  background: var(--c-ink-900);
  color: var(--c-text-dark);
}
#bp-prd .bp-lightbox__video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); background: #000; }
#bp-prd .bp-lightbox--video .bp-lightbox__bar { border-top-color: var(--c-line-dark); }
#bp-prd .bp-lightbox--video .bp-lightbox__close { background: var(--c-cream-100); color: var(--c-ink-on-cream); }
#bp-prd .bp-lightbox--video .bp-lightbox__close:hover { background: var(--c-red-600); color: #fff; }
html:has(#bp-prd .bp-lightbox[open]) { overflow: hidden; }

/* =========================================================================
   19. PAGINE DI SETTORE (archive-settore.php)
   Mockup applicazioni-agricole/-industriali.html: titolo con la parte
   rossa, foto in duotone, citazione e materiali, pillole delle soluzioni,
   richiamo di una tipologia, fascia del configuratore, CTA finale.
   ========================================================================= */
#bp-prd .bp-title--page { font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4rem); line-height: 1.02; }
#bp-prd .bp-title span { color: var(--accent); }
#bp-prd .bp-lead strong { font-weight: 700; color: var(--fg); }
#bp-prd .bp-hero__grid--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Foto del settore: lo stesso trattamento delle foto del mockup (duotone caldo + grana) */
#bp-prd .bp-photo { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--c-ink-800); }
#bp-prd .bp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.78); }
#bp-prd .bp-photo::before,
#bp-prd .bp-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#bp-prd .bp-photo::before { background: linear-gradient(160deg, rgba(200, 161, 101, .38), rgba(166, 33, 23, .22)); mix-blend-mode: soft-light; }
#bp-prd .bp-photo::after { background-image: linear-gradient(180deg, rgba(10, 10, 11, 0) 45%, rgba(10, 10, 11, .72) 100%), var(--tex-grain); }
#bp-prd .bp-photo__cap { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
#bp-prd .bp-photo__cap .bp-pill { height: 30px; padding: 0 12px; border-color: var(--c-line-dark-strong); background: rgba(17, 17, 19, .72); color: var(--c-text-dark); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Il racconto: citazione grande, materiali, testo con il grassetto della copy */
#bp-prd .bp-quote blockquote { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; quotes: none; } /* niente stili del tema sui blockquote */
#bp-prd .bp-quote blockquote::before { content: "“"; display: block; height: .5em; margin-bottom: .1em; font-family: var(--f-display); font-size: clamp(4rem, 3rem + 4vw, 7rem); line-height: 1; color: var(--mark); }
#bp-prd .bp-quote blockquote::after { content: none; }
#bp-prd .bp-quote p { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.625rem, 1rem + 1.8vw, 2.75rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; color: var(--fg); }
#bp-prd .bp-pill--mat::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mat, #A7ADB4); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
#bp-prd .bp-prose { display: grid; gap: 1.1em; max-width: 64ch; font-size: var(--t-body-l); line-height: 1.6; color: var(--muted); }
#bp-prd .bp-prose strong { font-weight: 700; color: var(--fg); }
#bp-prd .bp-story { display: grid; gap: 32px; max-width: 880px; }

/* Video del racconto: anteprima 16:9 con lo stesso trattamento delle foto (.bp-photo) e il
   tasto play rosso dei bottoni principali. Al passaggio la foto torna a colori */
#bp-prd .bp-video { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; color: #fff; }
#bp-prd .bp-video img { transition: filter var(--d-slow) var(--ease), transform var(--d-slow) var(--ease); }
#bp-prd .bp-video:is(:hover, :focus-visible) img { filter: grayscale(0) contrast(1.04) brightness(.86); transform: scale(1.03); }
#bp-prd .bp-video__play {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: clamp(64px, 3vw + 40px, 88px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--g-ember);
  box-shadow: var(--shadow-cta), 0 0 0 0 rgba(255, 255, 255, .16);
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
#bp-prd .bp-video__play .bp-ico { width: 44%; height: 44%; }
#bp-prd .bp-video:is(:hover, :focus-visible) .bp-video__play {
  transform: scale(1.08);
  background: var(--g-ember-hover);
  box-shadow: 0 18px 40px -14px rgba(166, 33, 23, .9), 0 0 0 12px rgba(255, 255, 255, .16);
}

/* Pillole delle soluzioni (tab) */
#bp-prd .bp-tabbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
#bp-prd .bp-seg { display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; scrollbar-width: none; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
#bp-prd .bp-seg::-webkit-scrollbar { display: none; }
#bp-prd .bp-seg :is([role="tab"], [aria-pressed]) { flex: none; height: 48px; padding: 0 22px; border-radius: var(--r-pill); font-size: .9375rem; font-weight: 700; white-space: nowrap; color: var(--muted); transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
/*#bp-prd .bp-seg :is([role="tab"], [aria-pressed]):hover { color: var(--fg); }*/
#bp-prd .bp-seg :is([aria-selected="true"], [aria-pressed="true"]) { background: var(--fg); color: var(--bg); }
#bp-prd .bp-seg :is([role="tab"], [aria-pressed]):focus-visible { outline-offset: 2px; }
#bp-prd .bp-tabpanel:focus-visible { outline-offset: 8px; border-radius: var(--r-md); }
#bp-prd [data-bp-tabs]:not(.is-tabs) .bp-tabpanel + .bp-tabpanel { margin-top: 48px; } /* senza JS: pannelli in colonna */
#bp-prd .bp-panel__more { margin-top: 20px; }

/* Richiamo di una tipologia (il settore non ha prodotti di quella pillola) */
#bp-prd .bp-callout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
#bp-prd .bp-callout__media { position: relative; min-height: 300px; background: var(--c-plate); }
#bp-prd .bp-callout__media img { position: absolute; inset: 28px 10%; width: 80%; height: calc(100% - 56px); object-fit: contain; mix-blend-mode: multiply; }
#bp-prd .bp-callout__media.is-empty { display: grid; place-items: center; }
#bp-prd .bp-callout__media.is-empty .bp-ico { width: 56px; height: 56px; color: var(--c-muted-cream); opacity: .45; }
#bp-prd .bp-callout__body { display: grid; gap: 18px; align-content: center; justify-items: start; padding: clamp(24px, 4vw, 56px); }
#bp-prd .bp-callout__text { display: grid; gap: .8em; max-width: 60ch; color: var(--muted); }

/* "I nostri prodotti per applicazione": icona (come nel configuratore), nome, modelli del settore */
#bp-prd .bp-appsec { margin-top: clamp(56px, 7vw, 104px); }
#bp-prd .bp-appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
#bp-prd .bp-appgrid > li { display: grid; } /* riquadri della stessa fila alti uguali, anche con un nome su due righe */
#bp-prd .bp-appcard {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 36px; column-gap: 14px; align-items: center;
  min-height: 76px; padding: 12px 14px 12px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--d-fast) var(--ease), background var(--d-fast) var(--ease);
}
#bp-prd .bp-appcard:hover { border-color: var(--line-strong); background: var(--surface-2); }
#bp-prd .bp-appcard__ico { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ico-bg); color: var(--ico-fg); }
#bp-prd .bp-frame--dark .bp-appcard__ico { background: var(--c-ink-900); color: var(--c-red-300); }
#bp-prd .bp-appcard__ico .bp-ico { width: 26px; height: 26px; }
#bp-prd .bp-appcard__name { grid-column: 2; grid-row: 1; align-self: end; font-weight: 700; line-height: 1.25; }
#bp-prd .bp-appcard__count { grid-column: 2; grid-row: 2; align-self: start; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
#bp-prd .bp-appcard__go { grid-column: 3; grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--fg); transition: background var(--d-base) var(--ease), color var(--d-base) var(--ease); }
#bp-prd .bp-appcard__go .bp-ico { width: 16px; height: 16px; }
#bp-prd .bp-appcard:hover .bp-appcard__go { background: var(--c-red-600); color: #fff; }

/* Fascia "Non hai trovato…" + configuratore */
#bp-prd .bp-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; margin-top: clamp(48px, 6vw, 96px); padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-strong); }
#bp-prd .bp-band__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.375rem, 1rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }

/* CTA finale: foglio del tono opposto con la barra a tutta larghezza */
#bp-prd .bp-frame--cta > .bp-frame__inner { padding-block: clamp(32px, 4vw, 64px); }
#bp-prd .bp-cta { display: grid; gap: clamp(24px, 3vw, 40px); padding: clamp(28px, 5vw, 72px); border-radius: var(--r-lg); }
/*#bp-prd .bp-cta .bp-h2 { max-width: 26ch; }*/
#bp-prd .bp-btnbar {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  width: 100%; min-height: 88px; padding: 18px 32px;
  border-radius: var(--r-pill);
  background: var(--g-ember); background-size: 140% 100%;
  color: #fff;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); line-height: 1.15; letter-spacing: -.02em; text-align: center;
  box-shadow: var(--shadow-cta);
  transition: background-position var(--d-slow) var(--ease), box-shadow var(--d-base) var(--ease);
}
#bp-prd .bp-btnbar .bp-ico { width: 28px; height: 28px; transition: transform var(--d-base) var(--ease); }
#bp-prd .bp-btnbar:hover { color: #fff; background-position: 100% 0; box-shadow: 0 22px 50px -18px rgba(166, 33, 23, .95); }
#bp-prd .bp-btnbar:hover .bp-ico { transform: translate(4px, -4px); }

/* =========================================================================
   20. CONFRONTO FINO A 3 MODELLI (inc/confronto.php)
   Riquadro chiaro come nel mockup, anche dentro le sezioni scure; caselle
   "Confronta" nella tabella dei modelli e nell'elenco per serie; vassoio in
   basso mentre si sceglie. Leggibilità: valori a 20px, testi a 16px,
   etichette e unità a 13px, contrasto almeno 5:1 sul crema.
   ========================================================================= */
#bp-prd .bp-hero__grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
#bp-prd .bp-btn__count { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#bp-prd .bp-btn__count b { font-weight: 700; }
#bp-prd .bp-subhead { display: grid; gap: 8px; margin-bottom: 24px; }
#bp-prd .bp-subhead__text { max-width: 70ch; color: var(--muted); }

#bp-prd .bp-cmp { display: grid; gap: 14px; }
#bp-prd .bp-cmpsec { margin-top: clamp(56px, 7vw, 104px); } /* settori: il confronto sotto la tabella */
#bp-prd .bp-cmp__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; min-height: 44px; }
#bp-prd .bp-cmp__count { font-weight: 700; }
#bp-prd .bp-cmp__count[data-warn] { color: var(--accent); }
#bp-prd .bp-cmp__wrap { position: relative; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--c-plate); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
#bp-prd .bp-cmp__wrap.is-scrollable:not(.is-end) {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
#bp-prd .bp-cmp__table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
#bp-prd .bp-cmp__table:focus { outline: none; }
#bp-prd .bp-cmp__table th,
#bp-prd .bp-cmp__table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
#bp-prd .bp-cmp__table thead th,
#bp-prd .bp-cmp__table thead td { vertical-align: bottom; background: var(--c-cream-200); }
#bp-prd .bp-cmp__corner { width: 220px; }
/* etichette delle righe: fisse durante lo scorrimento orizzontale */
#bp-prd .bp-cmp__table tbody th,
#bp-prd .bp-cmp__corner { position: sticky; left: 0; z-index: 1; }
#bp-prd .bp-cmp__table tbody th { font-size: .8125rem; font-weight: 700; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--c-cream-100); }
#bp-prd .bp-cmp__table td { font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--fg); overflow-wrap: anywhere; }
#bp-prd .bp-cmp__table td.is-num b { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
#bp-prd .bp-cmp__table td.is-num small { font-size: .8125rem; font-weight: 600; color: var(--muted); }
#bp-prd .bp-cmp__table td.is-best b { color: var(--c-red-600); }
#bp-prd .bp-cmp__table td.is-na { color: var(--muted); }
#bp-prd .bp-cmp__table td.bp-cmp__slot { background: var(--c-plate); }
#bp-prd .bp-cmp__table tbody tr:last-child > * { border-bottom: 0; }
#bp-prd .bp-cmp__max { display: inline-block; margin-left: 10px; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(166, 33, 23, .55); font-size: .75rem; font-weight: 800; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--c-red-600); vertical-align: 3px; }
#bp-prd .bp-cmp__table .bp-link { color: var(--c-red-600); }
#bp-prd .bp-cmp__prod { display: grid; gap: 8px; justify-items: start; }
#bp-prd .bp-cmp__img { display: grid; place-items: center start; width: 100%; height: 132px; }
#bp-prd .bp-cmp__img img { width: auto; max-width: 100%; max-height: 132px; object-fit: contain; mix-blend-mode: multiply; }
#bp-prd .bp-cmp__img .bp-ico { width: 48px; height: 48px; color: var(--muted); opacity: .5; }
#bp-prd .bp-cmp__label { font-size: .8125rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#bp-prd .bp-cmp__name { font-family: var(--f-display); font-weight: 400; font-size: 1.375rem; line-height: 1.1; letter-spacing: -.02em; color: var(--fg); text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: text-decoration-color var(--d-fast) var(--ease); }
#bp-prd .bp-cmp__name:hover { text-decoration-color: var(--c-red-600); }
#bp-prd .bp-cmp__rm { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .875rem; font-weight: 700; color: var(--muted); transition: color var(--d-fast) var(--ease); }
#bp-prd .bp-cmp__rm .bp-ico { width: 14px; height: 14px; }
#bp-prd .bp-cmp__rm:hover { color: var(--c-red-600); }
#bp-prd .bp-cmp__empty { display: grid; place-items: center; min-height: 200px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); font-size: .9375rem; font-weight: 600; line-height: 1.4; text-align: center; color: var(--muted); }

/* Casella "Confronta" (card dei modelli e elenco per serie): la spunta del mockup */
#bp-prd .bp-pickcard input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#bp-prd .bp-pick__box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--muted); background: var(--field); pointer-events: none; transition: background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), opacity var(--d-fast) var(--ease); }
#bp-prd .bp-pick__box .bp-ico { width: 14px; height: 14px; color: #fff; opacity: 0; }
#bp-prd input:checked + .bp-pick__box { background: var(--c-red-600); border-color: var(--c-red-600); }
#bp-prd input:checked + .bp-pick__box .bp-ico { opacity: 1; }
#bp-prd.is-cmp-full input:not(:checked) + .bp-pick__box { opacity: .35; } /* già 3 modelli: prima se ne toglie uno */

/* Elenco per serie (pagina "Pompe a confronto").
   Le serie si affiancano sulle colonne delle card (min 220px): una serie
   occupa tante colonne quanti modelli mostra (data-n), al massimo la riga.
   Ogni serie prende due righe della griglia (titolo, card): i titoli della
   stessa fila stanno su una riga comune, quindi le card restano allineate. */
#bp-prd .bp-picker__tools { margin-bottom: clamp(28px, 3.4vw, 44px); }
#bp-prd .bp-picker__search { flex: 0 1 380px; min-width: min(100%, 280px); }
#bp-prd .bp-picker {
  container: bp-picker / inline-size;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  column-gap: 10px;
}
#bp-prd .bp-picker__group { display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; grid-row: span 2; }
#bp-prd .bp-picker__title {
  grid-column: 1 / -1; align-self: end; /* vicino alle sue card anche se il vicino va a capo */
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 12px;
  font-family: var(--f-display); font-weight: 400; font-size: 1.125rem; line-height: 1.2; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
#bp-prd .bp-picker__title span { order: -1; font-family: var(--f-text); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } /* tipologia sopra al nome */
#bp-prd .bp-picker__list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 10px; margin-bottom: clamp(24px, 2.6vw, 36px); }
#bp-prd .bp-picker__list > li { display: grid; } /* card della stessa fila alte uguali */
/* Colonne di una serie con più modelli: n colonne ci stanno da 230n − 10 px */
@container bp-picker (min-width: 450px) {
  #bp-prd .bp-picker__group:not([data-n="1"]) { grid-column: span 2; }
}
@container bp-picker (min-width: 680px) {
  #bp-prd .bp-picker__group:not([data-n="1"], [data-n="2"]) { grid-column: span 3; }
}
@container bp-picker (min-width: 910px) {
  #bp-prd .bp-picker__group:not([data-n="1"], [data-n="2"], [data-n="3"]) { grid-column: span 4; }
}
@container bp-picker (min-width: 1140px) {
  #bp-prd .bp-picker__group:not([data-n="1"], [data-n="2"], [data-n="3"], [data-n="4"]) { grid-column: span 5; }
}
@container bp-picker (min-width: 1370px) {
  #bp-prd .bp-picker__group:not([data-n="1"], [data-n="2"], [data-n="3"], [data-n="4"], [data-n="5"]) { grid-column: span 6; }
}
/* Browser senza subgrid: le serie si affiancano lo stesso, le card si allineano dentro la serie */
@supports not (grid-template-columns: subgrid) {
  #bp-prd .bp-picker__group { display: block; }
  #bp-prd .bp-picker__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
}
#bp-prd .bp-pickcard {
  position: relative;
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 14px; align-items: center; align-content: center; /* nome e dati uniti anche nella card allungata */
  min-height: 68px; padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
#bp-prd .bp-pickcard:hover { border-color: var(--muted); }
#bp-prd .bp-pickcard .bp-pick__box { grid-row: 1 / span 2; }
#bp-prd .bp-pickcard__name { font-weight: 700; line-height: 1.25; }
#bp-prd .bp-pickcard__data { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
#bp-prd .bp-pickcard.is-picked { background: var(--c-plate); border-color: var(--mark); }
#bp-prd .bp-pickcard:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Vassoio in basso con i modelli scelti */
#bp-prd .bp-tray {
  --fg: var(--c-text-dark);
  --muted: var(--c-muted-dark);
  --focus: var(--c-red-300);
  position: fixed; z-index: 40; left: 50%; bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  width: min(780px, calc(100% - 32px)); padding: 8px 8px 8px 20px;
  border-radius: var(--r-pill);
  background: rgba(17, 17, 19, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--c-line-dark-strong);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  color: var(--c-text-dark);
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform var(--d-base) var(--ease), opacity var(--d-base) var(--ease), visibility var(--d-base);
}
#bp-prd .bp-tray.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
#bp-prd .bp-tray__label { flex: none; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted-dark); }
#bp-prd .bp-tray.is-warn .bp-tray__label { flex: 1; font-size: .9375rem; letter-spacing: 0; text-transform: none; color: var(--c-red-300); }
#bp-prd .bp-tray.is-warn .bp-tray__list { display: none; }
#bp-prd .bp-tray__list { flex: 1; display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#bp-prd .bp-tray__list::-webkit-scrollbar { display: none; }
#bp-prd .bp-tray__list li { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 2px 0 14px; border-radius: var(--r-pill); background: var(--c-ink-700); font-size: .875rem; font-weight: 600; white-space: nowrap; }
#bp-prd .bp-tray__list button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--c-muted-dark); transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
#bp-prd .bp-tray__list button:hover { background: var(--c-ink-600); color: #fff; }
#bp-prd .bp-tray__list .bp-ico { width: 14px; height: 14px; }
#bp-prd .bp-tray .bp-btn { flex: none; box-shadow: none; }

/* =========================================================================
   21. PAGINA APPLICAZIONI (page-applicazioni.php)
   Mockup applicazioni.html: titolo e testo affiancati nell'hero, poi un
   blocco per settore. La card del settore è del tono opposto alla sezione,
   con la foto in duotone e l'angolo in basso a destra ritagliato (il
   "notch" del mockup) dove sta la freccia rossa verso la pagina del
   settore. Sotto, i riquadri delle applicazioni (sezione 19).
   ========================================================================= */
#bp-prd .bp-hero__sub { max-width: 50ch; font-size: var(--t-body-l); font-weight: 600; line-height: 1.5; color: var(--fg); }
/* Bottoni dell'hero: la card del settore arriva 24px sotto l'header fisso (il margine
   generale degli id serve alla barra della scheda e la lascerebbe troppo in basso) */
#bp-prd .bp-sec-settore { scroll-margin-top: max(0px, calc(var(--header-h) + 24px - var(--section-y))); }

/* Notch: la maschera toglie l'angolo dalla card (la sezione si vede sotto),
   la freccia è sorella della card e sta nel ritaglio, 8px di aria intorno */
#bp-prd .bp-notch { --notch-d: 56px; --notch-box: 84px; position: relative; display: grid; isolation: isolate; }
#bp-prd .bp-notch > .bp-notch__card { grid-area: 1 / 1; }
#bp-prd .bp-notch__card {
  --notch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cpath d='M84 0A20 20 0 0 1 64 20H56A36 36 0 0 0 20 56V64A20 20 0 0 1 0 84H84Z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--notch-mask), linear-gradient(#000 0 0);
  -webkit-mask-position: right bottom, 0 0;
  -webkit-mask-size: var(--notch-box) var(--notch-box), 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: var(--notch-mask), linear-gradient(#000 0 0);
  mask-position: right bottom, 0 0;
  mask-size: var(--notch-box) var(--notch-box), 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: exclude;
}
#bp-prd .bp-notch__btn {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  display: grid; place-items: center;
  width: var(--notch-d); height: var(--notch-d);
  border-radius: 50%;
  background: var(--c-red-600); color: #fff;
  transition: background var(--d-base) var(--ease);
}
#bp-prd .bp-notch__btn .bp-ico { width: 22px; height: 22px; transition: transform var(--d-base) var(--ease); }

/* Card del settore: foto a sinistra, testo a destra; tutta la card è il link del titolo */
#bp-prd .bp-settore__card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(340px, 28vw, 440px);
  border-radius: var(--r-lg);
  overflow: hidden;
}
#bp-prd .bp-settore__card--solo { grid-template-columns: minmax(0, 1fr); }
#bp-prd .bp-settore__media { aspect-ratio: auto; border-radius: 0; } /* alta quanto la card */
#bp-prd .bp-settore__media img { transition: filter var(--d-slow) var(--ease), transform var(--d-slow) var(--ease); }
#bp-prd .bp-settore__body {
  display: grid; gap: 24px; align-content: center; justify-items: start;
  padding: clamp(28px, 4vw, 56px);
  padding-right: calc(var(--notch-box) + 24px);
}
#bp-prd .bp-settore__label { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
#bp-prd .bp-settore__label .bp-ico { width: 18px; height: 18px; }
#bp-prd .bp-settore .bp-h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3.25rem); overflow-wrap: break-word; }
#bp-prd .bp-settore__link { transition: color var(--d-fast) var(--ease); }
#bp-prd .bp-settore__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
#bp-prd .bp-settore .bp-specs { max-width: 520px; padding: 18px 0; }
#bp-prd .bp-settore .bp-actions { position: relative; z-index: 2; } /* sopra il link della card */
/* Passando sulla card: titolo rosso, foto a colori, freccia che gira (non sul bottone dei commerciali) */
#bp-prd .bp-settore:has(.bp-settore__link:hover, .bp-notch__btn:hover) .bp-settore__link { color: var(--accent); }
#bp-prd .bp-settore:has(.bp-settore__link:hover, .bp-notch__btn:hover) .bp-settore__media img { filter: grayscale(0) contrast(1.04) brightness(.86); transform: scale(1.03); }
#bp-prd .bp-settore:has(.bp-settore__link:hover, .bp-notch__btn:hover) .bp-notch__btn { background: var(--c-red-400); }
#bp-prd .bp-settore:has(.bp-settore__link:hover, .bp-notch__btn:hover) .bp-notch__btn .bp-ico { transform: rotate(45deg); }
/* Anello del fuoco intorno a tutta la card, sul contenitore (la maschera lo taglierebbe).
   Senza :has() resta quello normale intorno al titolo */
@supports selector(:has(*)) {
  #bp-prd .bp-settore__link:focus-visible { outline: none; }
  #bp-prd .bp-settore:has(.bp-settore__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-lg); }
}
#bp-prd .bp-settore__apps { margin-top: clamp(16px, 2vw, 24px); }

/* =========================================================================
   22. RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  #bp-prd .bp-hero__grid--product,
  #bp-prd .bp-hero__grid--media,
  #bp-prd .bp-head,
  #bp-prd .bp-split { grid-template-columns: minmax(0, 1fr); }
  #bp-prd .bp-head { align-items: start; }
  #bp-prd .bp-split__aside--sticky { position: static; }
  #bp-prd .bp-stage { max-height: 520px; }
  #bp-prd .bp-frame--cream .bp-stage { max-height: 560px; }
  #bp-prd .bp-hero__grid--media .bp-stage { order: -1; max-height: 360px; }
  #bp-prd .bp-feats { grid-template-columns: minmax(0, 1fr); }
  #bp-prd .bp-filters,
  #bp-prd .bp-filters--chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* chip a tutta larghezza, e il cursore rimasto solo sull'ultima riga */
  #bp-prd .bp-filters--chips > :first-child,
  #bp-prd .bp-filters--chips > :last-child:nth-child(even),
  #bp-prd .bp-filters:not(.bp-filters--chips) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  #bp-prd .bp-navcols--2 { grid-template-columns: minmax(0, 1fr); }
  #bp-prd .bp-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #bp-prd .bp-stickybar__name { display: none; }
  #bp-prd .bp-hero__grid--photo,
  #bp-prd .bp-hero__grid--split,
  #bp-prd .bp-callout { grid-template-columns: minmax(0, 1fr); }
  /* card del settore: foto sopra, testo sotto; sotto il testo lo spazio per l'angolo ritagliato */
  #bp-prd .bp-settore__card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  #bp-prd .bp-settore__media { aspect-ratio: 16 / 9; }
  #bp-prd .bp-settore__body { padding-right: clamp(24px, 4vw, 56px); padding-bottom: calc(var(--notch-box) + 16px); }
}
/* Serie: 6 per fila sopra i 1200px, poi 4, 3 e 2 sul telefono */
@media (max-width: 1199px) {
  #bp-prd .bp-cards--grid { --cards-cols: 4; }
}
@media (max-width: 899px) {
  #bp-prd .bp-cards--grid { --cards-cols: 3; }
}
@media (max-width: 599px) {
  #bp-prd .bp-cards--grid { --cards-cols: 2; gap: 10px; }
  #bp-prd .bp-cards--grid .bp-card__go { display: none; } /* card strette: il link è tutta la card */
  #bp-prd .bp-cards--grid .bp-card__body { padding: 12px 12px 14px; }
  #bp-prd .bp-cards--grid .bp-card__name { font-size: 1rem; }
}
/* Categorie principali di /prodotti/: una per riga sotto i 1024px, foto sopra il testo sul telefono */
@media (max-width: 1024px) {
  #bp-prd .bp-cards--feature { grid-template-columns: minmax(0, 1fr); }
  #bp-prd .bp-cards--feature > .bp-card--feature:last-child:nth-child(odd) { --feat-img: minmax(0, 5fr); }
}
@media (max-width: 599px) {
  #bp-prd .bp-card--feature { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  #bp-prd .bp-card--feature .bp-card__media { aspect-ratio: 16 / 9; min-height: 0; }
  #bp-prd .bp-card--feature .bp-card__body { padding: 18px 18px 20px; }
  #bp-prd .bp-card--feature .bp-card__name { padding-right: 0; } /* la freccia sta sulla foto */
  #bp-prd .bp-card--feature .bp-card__go { right: 14px; top: 14px; }
}
@media (max-width: 767px) {
  #bp-prd .bp-figs { grid-template-columns: minmax(0, 1fr); }
  #bp-prd .bp-feats--1 .bp-list { column-count: 1; }
  #bp-prd .bp-filters { grid-template-columns: minmax(0, 1fr); }
  /* chip dei gruppi in una riga che scorre di lato: i filtri restano bassi (6px sopra e sotto per fuoco e area di tocco) */
  #bp-prd .bp-filter--chips .bp-chips { flex-wrap: nowrap; overflow-x: auto; margin: -6px -20px; padding: 6px 20px; scroll-padding-inline: 20px; scrollbar-width: none; }
  #bp-prd .bp-filter--chips .bp-chips::-webkit-scrollbar { display: none; }
  #bp-prd .bp-sheet__row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4px 16px; padding: 14px 0; }
  #bp-prd .bp-sheet__alt { display: block; margin: 4px 0 0; }
  #bp-prd .bp-toolbar__tools { width: 100%; }
  #bp-prd .bp-search--sm { width: 100%; }
  #bp-prd .bp-select { flex: 1 1 240px; } /* telefono: uno per riga; più largo: due per riga. Il testo non si taglia */
  #bp-prd .bp-select select { width: 100%; }
  #bp-prd .bp-download__top { align-items: stretch; }
  #bp-prd .bp-download__tools { justify-content: flex-start; }
  #bp-prd .bp-docgrid { grid-template-columns: minmax(0, 1fr); }
  #bp-prd .bp-doc__cover { min-height: 200px; }
  #bp-prd .bp-doc__body { padding: 18px; }
  /* card in fila che scorrono di lato */
  #bp-prd .bp-pgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  #bp-prd .bp-pcard { scroll-snap-align: start; }
  /* indice: voci a scorrimento, barra fissa con solo voci + contatto a icona */
  #bp-prd .bp-subnav a { flex: none; height: 46px; padding: 0 16px; font-size: .875rem; }
  #bp-prd .bp-stickybar { width: calc(100% - 16px); }
  #bp-prd .bp-stickybar__nav a { flex: none; }
  #bp-prd .bp-stickybar__cta [data-bp-pdf] { display: none; }
  #bp-prd .bp-stickybar__cta [data-bp-cta] { width: 44px; padding: 0; justify-content: center; font-size: 0; }
  #bp-prd .bp-seg :is([role="tab"], [aria-pressed]) { height: 44px; padding: 0 16px; font-size: .875rem; }
  #bp-prd .bp-callout__media { min-height: 220px; }
  #bp-prd .bp-band { grid-template-columns: minmax(0, 1fr); }
  #bp-prd .bp-band .bp-btn { width: 100%; justify-content: space-between; }
  #bp-prd .bp-btnbar { min-height: 64px; padding: 16px 24px; font-size: 1.0625rem; }
  #bp-prd .bp-btnbar .bp-ico { flex: none; width: 20px; height: 20px; }
  /* "Parla con uno dei nostri commerciali" va a capo invece di uscire dalla card */
  #bp-prd .bp-settore .bp-btn { height: auto; min-height: 56px; padding-block: 8px; line-height: 1.25; white-space: normal; text-align: left; }
  #bp-prd .bp-settore__body { padding-inline: 24px; }
  /* confronto: colonna delle etichette più stretta, vassoio su due righe */
  #bp-prd .bp-cmp__table { min-width: 640px; }
  #bp-prd .bp-cmp__corner { width: 140px; }
  #bp-prd .bp-cmp__table th,
  #bp-prd .bp-cmp__table td { padding: 14px 16px; }
  #bp-prd .bp-cmp__img { height: 96px; }
  #bp-prd .bp-cmp__img img { max-height: 96px; }
  #bp-prd .bp-cmp__name { font-size: 1.125rem; }
  #bp-prd .bp-tray { flex-wrap: wrap; gap: 8px; padding: 10px; border-radius: var(--r-lg); }
  #bp-prd .bp-tray__label { display: none; }
  #bp-prd .bp-tray.is-warn .bp-tray__label { display: block; padding: 0 6px; }
  #bp-prd .bp-tray__list { flex-basis: 100%; }
  #bp-prd .bp-tray .bp-btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
  #bp-prd .bp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #bp-prd .bp-actions { width: 100%; }
  #bp-prd .bp-actions .bp-btn { width: 100%; justify-content: space-between; }
  #bp-prd .bp-hero__grid--media .bp-stage { max-height: 280px; }
  /* pillole a tutta larghezza: le tre etichette stanno in fila anche a 360px */
  #bp-prd .bp-seg { display: flex; width: 100%; }
  #bp-prd .bp-seg :is([role="tab"], [aria-pressed]) { flex: 1 0 auto; padding: 0 10px; font-size: .8125rem; }
}

/* =========================================================================
   23. MOVIMENTO RIDOTTO
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  #bp-prd *, #bp-prd *::before, #bp-prd *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
