/* ==========================================================================
   Borgarello theme — "Artistic Unified Canvas"
   Tema figlio di Classic: questo file viene caricato DOPO theme.css e ne
   sovrascrive solo l'aspetto. Struttura HTML, ID e classi js-* di PrestaShop
   restano invariati.
   ========================================================================== */

/* ---------- Token ---------- */
:root {
  --bf-ink: #0B0E13;
  --bf-text: #4A5160;
  --bf-muted: #5B6472;
  --bf-faint: #8A93A1;
  --bf-red: #C81E25;
  --bf-blue: #0080FF;
  --bf-card-grey: #E6E8EC; /* parte bassa delle card prodotto (titolo, prezzo) */
  --bf-blue-dark: #0062CC;
  --bf-bg: #FAFAFB;
  --bf-line: rgba(11, 14, 19, 0.08);
  --bf-font-head: 'Space Grotesk', system-ui, sans-serif;
  --bf-font-body: 'Work Sans', system-ui, sans-serif;
  --bf-font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --bf-max: 1320px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--bf-font-body);
  color: var(--bf-ink);
  background: var(--bf-bg);
}
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: var(--bf-font-head); color: var(--bf-ink); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--bf-blue-dark); outline-offset: 2px; }
.bf-mono { font-family: var(--bf-font-mono); }
.bf-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* Sfondo artistico (fisso, dietro a tutto) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 700px at 12% 8%, rgba(200, 30, 37, 0.11), transparent 60%),
    radial-gradient(1000px 850px at 88% 28%, rgba(0, 128, 255, 0.11), transparent 62%),
    radial-gradient(800px 700px at 28% 78%, rgba(0, 128, 255, 0.07), transparent 65%),
    radial-gradient(700px 600px at 85% 98%, rgba(200, 30, 37, 0.08), transparent 60%),
    linear-gradient(180deg, #FAFAFB 0%, #F2F3F5 40%, #F5F6F7 70%, #FAFAFB 100%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(rgba(11, 14, 19, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
#wrapper, main, #main, section#content-wrapper { background: transparent; }
#wrapper { padding-top: 0; overflow-x: clip; } /* come il mockup: niente scroll orizzontale da elementi decorativi o slide fuori campo */
.container { max-width: var(--bf-max); }
#wrapper .breadcrumb, #wrapper .breadcrumb[data-depth="1"] { background: transparent; }
body#index #wrapper .breadcrumb { display: none; }

/* ---------- Componenti riusabili ---------- */
.bf-glass {
  background: rgba(255, 255, 255, 0.64);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(11, 14, 19, 0.07);
  box-shadow: 0 10px 40px rgba(11, 14, 19, 0.06);
}
.bf-ghost { position: absolute; pointer-events: none; }

.bf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--bf-font-body); font-weight: 700; font-size: 14.5px; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; transition: opacity .15s ease;
}
.bf-btn:hover { opacity: 0.88; text-decoration: none; }
.bf-btn--red { background: var(--bf-red); color: #fff; }
.bf-btn--red:hover { color: #fff; }
.bf-btn--lg { padding: 0 30px; font-size: 15px; min-height: 50px; box-shadow: 0 14px 34px rgba(200, 30, 37, 0.3); }
.bf-btn--outline { color: var(--bf-ink); border-color: rgba(11, 14, 19, 0.18); font-weight: 600; background: transparent; }
.bf-btn--block { width: 100%; }

.bf-link { color: var(--bf-blue-dark); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.bf-link:hover { opacity: .6; text-decoration: none; color: var(--bf-blue-dark); }
.bf-link--dark { color: var(--bf-ink); font-size: 13.5px; margin-top: 4px; }
.bf-link--dark:hover { color: var(--bf-ink); }

.bf-eyebrow { color: var(--bf-blue-dark); font-family: var(--bf-font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 18px; text-transform: uppercase; }
.bf-eyebrow--red { color: var(--bf-red); }

.bf-chip { display: inline-flex; width: fit-content; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.bf-chip--red { background: rgba(200, 30, 37, 0.12); color: var(--bf-red); }

.bf-round-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(11, 14, 19, 0.04); border: 1px solid rgba(11, 14, 19, 0.14);
  color: var(--bf-ink); cursor: pointer; padding: 0; text-decoration: none;
}
.bf-round-btn:hover { color: var(--bf-ink); background: rgba(11, 14, 19, 0.08); }

.bf-input {
  height: 46px; min-width: 240px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(11, 14, 19, 0.16); background: rgba(11, 14, 19, 0.02);
  color: var(--bf-ink); font-size: 14.5px;
}

.bf-section { position: relative; padding: 0 0 90px; }
.bf-section__head { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.bf-section__title { position: relative; z-index: 2; font-size: 32px; font-weight: 700; margin: 0 0 28px; text-align: left; text-transform: none; }
.bf-section__head .bf-section__title { margin: 0; }
.bf-arrows { display: flex; gap: 10px; }
.bf-grid { position: relative; z-index: 2; display: grid; gap: 20px; }
.bf-grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Header ---------- */
/* Contenitore del mockup: max 1320px con 24px di margine interno (44px a 1360px). */
.container { width: 100%; max-width: var(--bf-max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

#header { position: relative; z-index: 30; background: transparent; box-shadow: none; border-bottom: 1px solid var(--bf-line); color: var(--bf-ink); }
#header .header-banner { padding: 0; }
#header .header-nav { background: transparent; border: 0; max-height: none; padding: 0; }
#header .header-top { padding: 0; background: transparent; }
#header .bf-nav1 { display: none; }
.bf-brand-h { margin: 0; font-size: inherit; line-height: 1; }
.bf-brand {
  font-family: var(--bf-font-head); font-weight: 700; font-size: 23px; letter-spacing: -0.01em;
  line-height: 1.2; color: var(--bf-ink); text-transform: uppercase; text-decoration: none;
}
.bf-brand { display: inline-block; }
.bf-brand__logo { display: block; height: 54px; width: auto; max-width: none; }
@media (max-width: 575px) { .bf-brand__logo { height: 42px; } }
#header .bf-brand:hover, .bf-brand:hover { color: var(--bf-ink); text-decoration: none; } /* #header: Classic colora gli a:hover dell'header di ciano */

/* azioni: accesso e carrello come testo/icona discreti, come nel mockup */
#header .bf-nav2 a, #header .bf-nav2 .user-info a { color: var(--bf-ink); font-size: 14px; font-weight: 600; }
#header .bf-nav2 { display: flex; align-items: center; gap: 16px; }
#header .bf-nav2 > div, #header .bf-nav2 .user-info { float: none; margin: 0; padding: 0; }
#header .bf-nav2 .user-info i, #header .bf-nav2 .cart-preview .hidden-sm-down { display: none; }
#header .bf-nav2 #_desktop_language_selector, #header .bf-nav2 #_desktop_currency_selector { display: none; }
#header .bf-nav2 .blockcart, #header .bf-nav2 .blockcart.inactive, #header .bf-nav2 .blockcart.active {
  display: inline-flex; align-items: center; height: auto; margin: 0; padding: 6px 10px; border-radius: 999px; background: transparent;
}
#header .bf-nav2 .blockcart i { display: inline-block; color: var(--bf-ink); font-size: 22px; }
#header .bf-nav2 .blockcart .cart-products-count { margin-left: 2px; color: var(--bf-ink); font-size: 13px; font-weight: 700; }
#header .bf-nav2 .blockcart.active { background: var(--bf-ink); }
#header .bf-nav2 .blockcart.active i, #header .bf-nav2 .blockcart.active .cart-products-count { color: #fff; }

/* il clearfix di Bootstrap (::before/::after) conterebbe come elemento flex */
#header .bf-bar::before, #header .bf-bar::after { content: none; display: none; }

/* barra come nel video: solo marchio, menu, Accedi e OFFERTE. Ricerca e carrello
   restano agganciati ai loro moduli ma nascosti (a tutte le larghezze): li ripristiniamo in un secondo momento. */
#header #search_widget { display: none; }
/* il carrello non sta nella barra (qualunque sia l'hook a cui e' agganciato): e' la pallina fissa .bf-cart-fab */
#header .blockcart, #header #_desktop_cart, #header #_mobile_cart { display: none !important; }

/* ---------- Carrello: pallina fissa in basso a destra, su ogni pagina ---------- */
.bf-cart-fab { position: fixed; right: 24px; bottom: 24px; z-index: 1040; }
.bf-cart-fab .blockcart, .bf-cart-fab .blockcart.active, .bf-cart-fab .blockcart.inactive {
  position: relative; display: block; width: 56px; height: 56px; margin: 0; padding: 0; border-radius: 50%;
  background: var(--bf-blue); box-shadow: 0 10px 30px rgba(0, 128, 255, 0.35); transition: transform .15s ease, background .15s ease;
}
.bf-cart-fab .blockcart:hover { background: var(--bf-blue-dark); transform: translateY(-2px); }
.bf-cart-fab .blockcart .header { height: 100%; margin: 0; padding: 0; background: transparent; }
.bf-cart-fab .blockcart .bf-cart-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; text-decoration: none; }
.bf-cart-fab .blockcart .bf-cart-link:focus-visible { outline: 2px solid var(--bf-blue-dark); outline-offset: 3px; }
.bf-cart-fab .blockcart svg { width: 26px; height: 26px; }
.bf-cart-fab .blockcart .cart-products-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; margin: 0; border: 2px solid #fff; border-radius: 999px;
  background: var(--bf-ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center;
}
.bf-cart-fab .blockcart.inactive .cart-products-count { display: none; }
@media (max-width: 575px) {
  .bf-cart-fab { right: 16px; bottom: 16px; }
  .bf-cart-fab .blockcart, .bf-cart-fab .blockcart.active, .bf-cart-fab .blockcart.inactive { width: 52px; height: 52px; }
}
#header .bf-offers-btn { min-height: 0; padding: 11px 20px; font-size: 13.5px; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; }
#header .bf-offers-btn, #header .bf-offers-btn:hover { color: #fff; }
/* il testo "Accedi" ha la classe hidden-sm-down di Classic: qui resta sempre visibile */
#header .bf-nav2 .user-info .hidden-sm-down { display: inline !important; }
#header .bf-bar__actions { display: flex; align-items: center; gap: 16px; }
/* "Chiamaci: numeri" (ps_contactinfo su displayNav2): non c'e' nella barra del video, i recapiti restano nel footer e in /contattaci */
#header .bf-nav2 #_desktop_contact_link, #header .bf-nav2 #_mobile_contact_link { display: none; }
/* il modulo ht_stickyheader (se attivo) aggiunge 85px sotto la barra quando si scorre: qui la barra e' gia' una sola */
#header.ht-menu-sticy > .header-top { margin-bottom: 0 !important; }

/* telefono e tablet: come il mockup, la barra va a capo (marchio / menu / Accedi e OFFERTE) */
@media (max-width: 991px) {
  #header .bf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
  #header .bf-bar__nav { display: flex; align-items: center; }
  #header .bf-bar__nav #_desktop_top_menu { margin: 0; }
}

@media (min-width: 992px) {
  #header .bf-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
  #header .bf-bar__nav { display: flex; align-items: center; justify-content: center; }
  #header .bf-bar__nav #_desktop_top_menu { margin: 0; }
  #header .bf-bar__actions { justify-content: flex-end; }

  /* ricerca: icona che si apre in un campo al click */
  #header #search_widget { position: relative; float: none; width: 40px; min-width: 0; max-width: none; height: 40px; margin: 0; border-radius: 999px; overflow: hidden; transition: width .2s ease, background .2s ease; }
  #header #search_widget form { position: relative; height: 40px; margin: 0; }
  #header #search_widget form i.search { position: absolute; left: 8px; top: 8px; z-index: 1; width: 24px; height: 24px; font-size: 24px; line-height: 24px; color: var(--bf-ink); pointer-events: none; }
  #header #search_widget form i.clear { display: none; }
  #header #search_widget form input[type="text"] {
    width: 100%; height: 40px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: 999px;
    background: transparent; color: var(--bf-ink); font-size: 14px; cursor: pointer;
  }
  #header #search_widget:focus-within { width: 240px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(11, 14, 19, 0.12); }
  #header #search_widget:focus-within input[type="text"] { cursor: text; }
  #header #search_widget form input[type="text"]::placeholder { color: transparent; }
  #header #search_widget:focus-within input[type="text"]::placeholder { color: var(--bf-faint); }
}

/* ---------- Menu (ps_mainmenu): voci di primo livello a tutte le larghezze ---------- */
#header .header-top #_desktop_top_menu { padding: 0; } /* Classic mette 15px a sinistra */
#_desktop_top_menu .bf-ul0 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; }
#_desktop_top_menu .bf-ul0 > li { position: relative; float: none; list-style: none; }
#_desktop_top_menu .hidden-md-up { display: none !important; } /* le icone + / - dell'accordion di Classic */
#header #_desktop_top_menu .bf-ul0 > li > a {
  display: flex; align-items: center; width: auto; min-height: 44px; padding: 14px;
  background: none; color: var(--bf-ink); font-size: 14px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.02em; text-transform: none; transition: opacity .15s ease;
}
#header #_desktop_top_menu .bf-ul0 > li > a:hover { opacity: 0.6; color: var(--bf-ink); }
/* voce con pannello (es. PRODOTTI): maiuscolo con freccia, come nel mockup */
#header #_desktop_top_menu .bf-ul0 > li.bf-has-children > a { text-transform: uppercase; gap: 8px; }
#header #_desktop_top_menu .bf-ul0 > li.bf-has-children > a::after {
  content: ''; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- Pannello Prodotti: telefono e tablet (si apre con un tocco, a fisarmonica sotto la barra) ---------- */
@media (max-width: 991px) {
  #_desktop_top_menu .bf-ul0 > li.bf-has-children { display: contents; }
  #_desktop_top_menu .bf-ul0 > li > .sub-menu {
    order: 10; flex: 0 0 100%; position: static; display: none !important; width: 100%; max-width: none; min-width: 0; margin: 8px 0 0; padding: 0;
    top: auto !important; border-radius: 14px; overflow: hidden;
    background: rgba(255, 255, 255, 0.64);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(11, 14, 19, 0.07); box-shadow: 0 10px 40px rgba(11, 14, 19, 0.06);
  }
  #_desktop_top_menu .bf-ul0 > li.bf-open > .sub-menu { display: block !important; }
  #_desktop_top_menu .sub-menu > .bf-ul1 { margin: 0; padding: 8px 0; }
  #_desktop_top_menu .bf-ul1 > .bf-l1 { position: static; float: none; display: block; margin: 0; list-style: none; }
  #_desktop_top_menu .bf-l1 > a svg { flex: 0 0 19px; }
  #_desktop_top_menu .bf-l1 > a {
    display: flex; align-items: center; gap: 12px; width: auto; clear: none; min-height: 44px; margin: 0 8px; padding: 12px 16px; line-height: 1.2;
    border-radius: 10px; color: var(--bf-muted); font-size: 14.5px; font-weight: 600; text-transform: none;
  }
  #_desktop_top_menu .bf-l1.is-active > a { background: rgba(0, 128, 255, 0.08); color: var(--bf-ink); }
  #_desktop_top_menu .bf-l1 > .collapse { display: none !important; position: static; padding: 8px 16px 14px 24px; }
  #_desktop_top_menu .bf-l1.is-active > .collapse { display: block !important; }
  #_desktop_top_menu .bf-ul2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
  #_desktop_top_menu .bf-l2 { display: contents; list-style: none; }
  #_desktop_top_menu .bf-l2 > a {
    order: 0; display: inline-flex; align-items: center; flex: 0 0 auto; width: auto; clear: none; margin-bottom: 8px;
    padding: 8px 14px; border-radius: 999px; line-height: 1.2;
    color: var(--bf-muted); font-size: 13.5px; font-weight: 600; text-transform: none;
  }
  #_desktop_top_menu .bf-l2.is-active > a { background: rgba(0, 128, 255, 0.1); color: var(--bf-ink); }
  #_desktop_top_menu .bf-l2 > .collapse { order: 1; flex: 0 0 100%; display: none !important; }
  #_desktop_top_menu .bf-l2.is-active > .collapse { display: block !important; }
  #_desktop_top_menu .bf-ul3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 20px; margin: 0; padding: 0; }
  #_desktop_top_menu .bf-l3 { float: none; margin: 0; list-style: none; }
  #_desktop_top_menu .bf-l3 > a { display: block; width: auto; clear: none; line-height: 1.2; padding: 6px 0; color: var(--bf-text); font-size: 14px; font-weight: 400; text-transform: none; }
}

/* ---------- Pannello Prodotti: desktop (si apre al passaggio del mouse) ---------- */
@media (min-width: 992px) {
  /* pannello */
  #_desktop_top_menu .bf-ul0 > li > .sub-menu {
    position: absolute; top: 55px !important; left: 0; z-index: 31; /* !important: il JS di Classic imposta un top inline in hover */
    display: flex !important; width: 760px; max-width: 86vw; min-width: 0; min-height: 0; /* l'altezza la calcola borgarello.js (fitPanel) */
    margin: 0; padding: 0; border-radius: 14px; overflow: hidden;
    background: rgba(255, 255, 255, 0.64);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(11, 14, 19, 0.07); box-shadow: 0 10px 40px rgba(11, 14, 19, 0.06);
    visibility: hidden !important; opacity: 0 !important;
    transition: opacity .15s ease .3s, visibility 0s linear .45s;
  }
  #_desktop_top_menu .bf-ul0 > li > .sub-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
  #_desktop_top_menu .bf-ul0 > li:hover > .sub-menu,
  #_desktop_top_menu .bf-ul0 > li:focus-within > .sub-menu,
  #_desktop_top_menu .bf-ul0 > li.bf-open > .sub-menu {
    visibility: visible !important; opacity: 1 !important; transition-delay: 0s;
  }

  /* colonna macro categorie */
  #_desktop_top_menu .sub-menu > .bf-ul1 { flex: 0 0 250px; width: 250px; min-width: 0; align-self: flex-start; margin: 0; padding: 12px 0; }
  #_desktop_top_menu .bf-ul1 > .bf-l1 { position: static; float: none; display: block; margin: 0; list-style: none; }
  #_desktop_top_menu .bf-l1 > a svg { flex: 0 0 19px; }
  #_desktop_top_menu .bf-l1 > a {
    display: flex; align-items: center; gap: 12px; width: auto; clear: none; min-height: 44px; margin: 0 8px; padding: 12px 16px; line-height: 1.2;
    border-radius: 10px; color: var(--bf-muted); font-size: 14.5px; font-weight: 600; text-transform: none;
  }
  #_desktop_top_menu .bf-l1.is-active > a { background: rgba(0, 128, 255, 0.08); color: var(--bf-ink); }
  #_desktop_top_menu .bf-l1 > .collapse {
    display: none !important; position: absolute; top: 0; bottom: 0; left: 250px; right: 0; padding: 22px 26px; overflow: auto;
    border-left: 1px solid var(--bf-line);
  }
  #_desktop_top_menu .bf-l1.is-active > .collapse { display: block !important; }

  /* linee = tab; sottocategorie = griglia */
  #_desktop_top_menu .bf-ul2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
  #_desktop_top_menu .bf-l2 { display: contents; list-style: none; }
  #_desktop_top_menu .bf-l2 > a {
    order: 0; display: inline-flex; align-items: center; flex: 0 0 auto; width: auto; clear: none; margin-bottom: 8px;
    padding: 8px 14px; border-radius: 999px; line-height: 1.2;
    color: var(--bf-muted); font-size: 13.5px; font-weight: 600; text-transform: none;
  }
  #_desktop_top_menu .bf-l2.is-active > a { background: rgba(0, 128, 255, 0.1); color: var(--bf-ink); }
  #_desktop_top_menu .bf-l2 > .collapse { order: 1; flex: 0 0 100%; display: none !important; }
  #_desktop_top_menu .bf-l2.is-active > .collapse { display: block !important; }
  #_desktop_top_menu .bf-ul3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 20px; margin: 0; padding: 0; }
  #_desktop_top_menu .bf-l3 { float: none; margin: 0; list-style: none; }
  #_desktop_top_menu .bf-l3 > a { display: block; width: auto; clear: none; line-height: 1.2; padding: 5px 0; color: var(--bf-text); font-size: 14px; font-weight: 400; text-transform: none; }
  #_desktop_top_menu .bf-l3 > a:hover { opacity: .6; }
}

/* riga sopra le sotto-voci: a quale pillola appartengono + link alla pagina della linea */
#_desktop_top_menu .bf-l2-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 12px; padding-top: 12px;
  border-top: 1px solid var(--bf-line);
}
#_desktop_top_menu .bf-l2-head__title { font-family: var(--bf-font-head); font-size: 14px; font-weight: 700; color: var(--bf-ink); letter-spacing: 0.01em; }
#_desktop_top_menu .bf-l2-head__all { padding: 0; font-size: 13px; font-weight: 600; color: var(--bf-blue); text-transform: none; }
#_desktop_top_menu .bf-l2-head__all::after { content: ' \2192'; }
#_desktop_top_menu .bf-l2-head__all:hover { color: var(--bf-blue-dark); opacity: 1; }
/* Voci annidate (es. Rilevatori > Movimento, Apertura): niente sotto-elenco, finiscono nella stessa griglia, in ordine */
#_desktop_top_menu .bf-l3.bf-has-children { display: contents; }
#_desktop_top_menu .bf-l3 > .collapse,
#_desktop_top_menu .bf-ul4 { display: contents !important; }
#_desktop_top_menu .bf-l4 { float: none; margin: 0; list-style: none; }
#_desktop_top_menu .bf-l4 > a { display: block; width: auto; clear: none; line-height: 1.2; padding: 5px 0; color: var(--bf-text); font-size: 14px; font-weight: 400; text-transform: none; }
#_desktop_top_menu .bf-l4 > a:hover { opacity: .6; }
/* linea senza voci (es. Prese intelligenti, Ricambi > Ajax): pillola che porta alla categoria */
#_desktop_top_menu .bf-l2:not(.bf-has-children) > a { cursor: pointer; }
#_desktop_top_menu .bf-l2:not(.bf-has-children) > a:hover { background: rgba(0, 128, 255, 0.1); color: var(--bf-ink); }

/* ---------- Hero (ps_imageslider) ---------- */
/* sotto i 992px Classic allarga .carousel a tutto lo schermo (width:100vw; left:50%): qui deve restare nel contenitore */
.bf-hero { position: relative; width: auto; left: 0; padding: 69px 0 63px; margin: 0; background: transparent; } /* 60% dell'altezza originale (120/110) */
.bf-hero .carousel-inner { position: relative; z-index: 2; height: auto; overflow: visible; padding: 0; margin: 0; list-style: none; }
.bf-hero .carousel-item { height: auto; margin: 0; padding: 0; list-style: none; }
/* Altezza uniforme: tutte le slide sono sovrapposte nella stessa cella e restano nel layout (invisibili se non attive),
   cosi' il contenitore ha sempre l'altezza della slide piu' alta e la pagina non si ridimensiona al cambio slide. */
.bf-hero .carousel-inner { display: grid; }
.bf-hero .carousel-item {
  display: block !important; grid-area: 1 / 1; position: relative !important; left: 0 !important; float: none !important;
  transform: none !important; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s ease, visibility 0s linear .5s !important;
}
.bf-hero .carousel-item.active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .5s ease, visibility 0s !important; }
.bf-hero__slide { max-width: 680px; }
/* Foto della slide: a destra, a tutta altezza dello slider (padding compreso), a tutta larghezza fino al bordo della pagina,
   con dissolvenza verso il testo. Il punto di interesse (object-position) arriva dalla legenda della slide. */
.bf-hero { isolation: isolate; }
.bf-hero .carousel-inner, .bf-hero .carousel-item { position: static !important; perspective: none !important; transform-style: flat !important; will-change: auto !important; } /* la foto si riferisce all'intero slider (anche sotto frecce e pallini) */
.bf-hero__bg { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; margin: 0; width: 58%; border-radius: 0 18px 18px 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 10%, #000 24%); mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.5) 10%, #000 24%); }
.bf-hero__bg img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }
body { overflow-x: clip; }
@media (max-width: 767px) {
  /* telefono: la foto copre tutto lo slider, molto tenue, cosi' il testo resta leggibile */
  .bf-hero__bg { width: 100%; border-radius: 18px; opacity: .22; -webkit-mask-image: none; mask-image: none; }
}
.bf-hero__title { font-size: min(35px, 9vw); /* 60% di 58px; sui telefoni stretti scala per non spezzare le parole */ line-height: 1.06; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; text-align: left; text-transform: none; }
.bf-hero__text { font-size: 15px; line-height: 1.5; color: var(--bf-text); max-width: 480px; margin-bottom: 14px; }
.bf-hero__text p { margin: 0; }
.bf-hero__controls { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.bf-hero .carousel-indicators.bf-dots {
  position: static; display: flex; align-items: center; gap: 10px; width: auto; margin: 0; padding: 0; list-style: none;
}
.bf-hero .bf-dots li {
  display: block; width: 8px; height: 8px; margin: 0; border: 0; border-radius: 999px; text-indent: -9999px;
  background: rgba(11, 14, 19, 0.2); cursor: pointer; transition: width .2s ease;
}
.bf-hero .bf-dots li.active { width: 26px; height: 8px; margin: 0; background: var(--bf-ink); }

/* ---------- Value props ---------- */
.bf-value-props__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 8px; border-radius: 18px; }
.bf-value-props__item { padding: 24px; }
.bf-value-props__title { margin: 10px 0 3px; font-weight: 600; font-size: 14.5px; color: var(--bf-ink); }
.bf-value-props__text { font-size: 12.5px; color: var(--bf-muted); }

/* ---------- Nuovi arrivi / miniature ---------- */
.featured-products.bf-section { margin-top: 0; }
.bf-track {
  position: relative; z-index: 2; display: flex; gap: 20px; padding: 4px 2px 20px; margin: 0 -2px;
  overflow-x: auto; scrollbar-width: none; overflow-anchor: none; /* niente snap/anchor: lo scorrimento automatico e' continuo (borgarello.js) */
}
.bf-track::-webkit-scrollbar { display: none; }
.bf-track > .bf-slide { flex: 0 0 292px; width: 292px; max-width: 100%; padding: 0; margin: 0; float: none; }
.featured-products .all-product-link { display: inline-block; margin-top: 8px; color: var(--bf-blue-dark); }

.product-miniature.bf-product { border-radius: 16px; overflow: hidden; margin-bottom: 20px; background: var(--bf-card-grey); }
.bf-product .thumbnail-container { margin: 0; background: transparent; overflow: visible; }
.bf-product .thumbnail-top {
  display: flex; align-items: center; justify-content: center; height: 180px; overflow: hidden;
  background: #fff; border-bottom: 0;
}
/* La foto sta sempre intera nel riquadro, qualunque sia il formato del file (es. 350x519 del tema precedente):
   riquadro a posizione relativa e immagine che lo riempie con object-fit, senza dipendere dalle miniature rigenerate. */
.bf-product .thumbnail-top { position: relative; }
.bf-product .thumbnail-top .product-thumbnail { display: block !important; position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; }
.bf-product .thumbnail-top picture { display: block !important; position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
.bf-product .thumbnail-top img {
  position: absolute !important; inset: 8px !important; width: calc(100% - 16px) !important; height: calc(100% - 16px) !important;
  max-width: none !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important;
}
.bf-product .product-description { padding: 18px; background: var(--bf-card-grey); text-align: left; }
.bf-product__brand { margin-bottom: 6px; font-size: 11px; color: var(--bf-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.bf-product .product-title { margin: 0 0 8px; text-align: left; text-transform: none; font-size: 15.5px; }
.bf-product .product-title a { color: var(--bf-ink); font-size: 15.5px; font-weight: 600; text-align: left; }
.bf-product .product-price-and-shipping { margin-bottom: 10px; text-align: left; font-size: 18px; font-weight: 700; color: var(--bf-ink); }
.bf-product .product-price-and-shipping .regular-price { font-size: 14px; font-weight: 400; color: var(--bf-faint); }
.bf-product .highlighted-informations { background: rgba(255, 255, 255, 0.9); }

/* nel carosello tutte le card hanno la stessa altezza, qualunque sia la lunghezza del nome */
.bf-track > .bf-slide { display: flex; }
.bf-track > .bf-slide > .product-miniature.bf-product { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; margin-bottom: 0; }
.bf-track .bf-product .thumbnail-container { display: flex; flex: 1 1 auto; flex-direction: column; }
.bf-track .bf-product .product-description { flex: 1 1 auto; }
/* cuore "lista desideri" (blockwishlist) in basso a destra della card */
.bf-product .thumbnail-container { position: relative; }
.bf-product .wishlist-button-add { position: absolute; top: auto; left: auto; right: 12px; bottom: 12px; }

/* prodotto non disponibile: tutta la card opacizzata, tranne il nome */
.product-miniature.bf-product--out { background: rgba(255, 255, 255, 0.34); box-shadow: none; }
.bf-product--out .thumbnail-top img,
.bf-product--out .wishlist-button-add,
.bf-product--out .product-description > *:not(.product-title) { opacity: 0.45; }

/* badge: Classic li colora con selettori piu' forti, qui si impongono i colori del tema */
.bf-flags li.product-flag.bf-flag--red { background: var(--bf-red); }
.bf-flags li.product-flag.bf-flag--blue { background: var(--bf-blue); }

/* badge */
.bf-flags { top: 10px; left: 10px; width: auto; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bf-flags li.product-flag.bf-flag { margin: 0; min-width: 0; min-height: 0; }
.bf-flag {
  padding: 4px 10px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; width: fit-content;
}
.bf-flag--red { background: var(--bf-red); }
.bf-flag--blue { background: var(--bf-blue); }
.bf-flag--right { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* disponibilita' */
.bf-stock { display: flex; align-items: center; gap: 7px; }
.bf-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: #0F7B5B; }
.bf-stock--mid .bf-stock__dot { background: #E68A2E; }
.bf-stock--low .bf-stock__dot { background: var(--bf-red); }
.bf-stock__label { font-size: 12px; color: var(--bf-muted); }

/* ---------- Sezioni editoriali ---------- */
.bf-card-lg { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 200px; padding: 32px; border-radius: 18px; }
.bf-card-lg--red { box-shadow: inset 0 0 70px rgba(200, 30, 37, 0.08), 0 10px 40px rgba(11, 14, 19, 0.06); }
.bf-card-lg__name { font-family: var(--bf-font-head); font-weight: 700; font-size: 22px; color: var(--bf-ink); }
.bf-card-lg p { margin: 10px 0 0; color: var(--bf-text); font-size: 14.5px; }

.bf-promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 48px; border-radius: 20px; box-shadow: inset 0 0 110px rgba(200, 30, 37, 0.1), 0 10px 40px rgba(11, 14, 19, 0.06);
}
.bf-promo__text { max-width: 560px; }
.bf-promo h2 { font-size: 28px; font-weight: 700; margin: 0 0 10px; text-align: left; text-transform: none; }
.bf-promo p { margin: 0; color: var(--bf-text); font-size: 15.5px; }

.bf-story { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.bf-story__text { position: relative; z-index: 2; flex: 1 1 420px; }
.bf-story__text h2 { font-size: 30px; font-weight: 700; max-width: 460px; margin: 0 0 18px; text-align: left; text-transform: none; }
.bf-story__text p { max-width: 460px; margin-bottom: 24px; color: var(--bf-text); font-size: 15.5px; line-height: 1.6; }
.bf-story__team { position: relative; z-index: 2; flex: 1 1 320px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.bf-person { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; }
.bf-person__avatar { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(11, 14, 19, 0.05); }
.bf-person__name { font-weight: 600; font-size: 15px; color: var(--bf-ink); }
.bf-person__role { font-size: 12.5px; color: var(--bf-muted); }

.bf-card-md { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 16px; }
.bf-card-md__tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--bf-faint); }
.bf-card-md__tag--red { color: var(--bf-red); }
.bf-card-md__title { font-size: 17px; font-weight: 600; color: var(--bf-ink); }
.bf-card-md p { margin: 0; font-size: 14px; color: var(--bf-muted); }

/* ---------- Newsletter band (ps_emailsubscription) ---------- */
#footer .block_newsletter.bf-newsletter {
  display: block; width: calc(100% - 30px); max-width: none; margin: 0 15px 90px; padding: 36px 40px; border-radius: 18px; /* 15px: compensa il .row di Bootstrap */
}
.bf-newsletter__form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 0; }
.bf-newsletter__title { margin: 0 0 4px; font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--bf-ink); }
.bf-newsletter__sub { font-size: 14px; color: var(--bf-muted); }
.bf-newsletter__fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bf-newsletter__fields .input-wrapper { overflow: visible; margin: 0; }
.bf-newsletter__fields .bf-btn { height: 46px; border: 0; }
.bf-newsletter__extra { flex: 0 0 100%; font-size: 12.5px; color: var(--bf-muted); }
.block_newsletter .bf-newsletter__extra p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.bf-newsletter__extra:empty, .bf-newsletter__extra:not(:has(*)) { display: none; }

/* ---------- Footer ---------- */
#footer { padding-top: 0; background: transparent; }
#wrapper { padding-bottom: 0; }
body:not(#index) #wrapper { padding-bottom: 40px; }
.footer-container { margin-top: 0; padding: 40px 0 24px; background: transparent; border-top: 1px solid var(--bf-line); box-shadow: none; color: var(--bf-muted); }
.footer-container .h3, .footer-container .h4, .footer-container .block-contact .h4,
.footer-container .footer__title, .footer-container .links .h3 {
  color: var(--bf-ink); font-family: var(--bf-font-body); font-size: 14px; font-weight: 600; text-transform: none;
}
.footer-container li a, .footer-container .block-contact, .footer-container a { color: var(--bf-muted); font-size: 13.5px; }
.footer-container li a:hover { color: var(--bf-ink); }
.footer-container .links ul, .footer-container ul { background: transparent; }
.footer-container .text-sm-center { margin: 0; text-align: left; }
.bf-legal { font-family: var(--bf-font-mono); font-size: 11.5px; color: var(--bf-faint); }

/* colonne del footer come nel mockup: Prodotti | Azienda | Assistenza | Il tuo account */
@media screen {
  /* telefono: come nel mockup le colonne sono tutte aperte, niente accordion di Classic */
  .footer-container .title.hidden-md-up { display: none !important; }
  /* i link di Classic su telefono sono righe grandi in grassetto con un bordo: qui restano link semplici */
  .footer-container .wrapper ul > li { border: 0; padding: 0; }
  .footer-container .wrapper ul > li > a, .footer-container .account-list a { display: inline; padding: 0; border: 0; font-weight: 400; font-size: 13.5px; color: var(--bf-muted); line-height: 1.3; }
  .footer-container ul.collapse { margin: 0; padding: 0; }
  .footer-container .wrapper .h3 { padding: 0; font-size: 14px; }
  .footer-container .wrapper .h3.hidden-sm-down { display: block !important; }
  .footer-container .wrapper ul.collapse { display: flex !important; }
  .footer-container > .container > .row:first-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; margin: 0; padding-bottom: 28px; }
  .footer-container > .container > .row:not(:first-child) { margin: 0; }
  .footer-container .container { padding-left: 24px; padding-right: 24px; }
  .footer-container .container > .row > div[class*="col-"]:not(.wrapper), .footer-container .container > .row > .links:not(.wrapper) { display: contents; }
  /* Bootstrap mette !important su .text-uppercase e .text-sm-center */
  #footer .footer-container .text-uppercase { text-transform: none !important; }
  #footer .footer-container .text-sm-center { text-align: left !important; }
  /* elementi non-colonna nella riga (es. i contenitori dei popup della lista desideri) non devono occupare una colonna */
  .footer-container > .container > .row:first-child { position: relative; }
  .footer-container .container > .row > :not(.links):not(.wrapper):not([class*="col-"]) { position: absolute; }
  .footer-container .links > .row, .footer-container .block-contact > .row { display: contents; }
  /* il clearfix di Bootstrap (::before/::after) conterebbe come elemento della griglia */
  .footer-container .row::before, .footer-container .row::after { content: none; display: none; }
  .footer-container .wrapper, .footer-container .block-contact { float: none; width: auto; max-width: none; margin: 0; padding: 0; }
  .footer-container .wrapper .h3, .footer-container .block-contact .h4 { margin: 0 0 14px; line-height: 1.3; }
  .footer-container .wrapper ul { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
  .footer-container .wrapper li { margin: 0; padding: 0; list-style: none; }
  .footer-container .wrapper li a { display: inline; padding: 0; line-height: 1.3; }
}

/* ---------- Popup newsletter ---------- */
.bf-popup {
  position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(11, 14, 19, 0.45);
}
.bf-popup[hidden] { display: none; }
.bf-popup__box { position: relative; width: 100%; max-width: 420px; padding: 36px 32px; border-radius: 20px; }
.bf-popup__text, .bf-popup__box p.bf-popup__text { margin: 0 0 24px; padding-right: 36px; font-size: 20px; line-height: 1.45; font-weight: 400; color: var(--bf-ink); }
.bf-popup__text strong { font-weight: 700; color: var(--bf-ink); }
.bf-popup__text:hover, .bf-popup__text strong:hover { color: var(--bf-ink); text-decoration: none; cursor: default; }
.bf-popup .bf-popup__cta, .bf-popup .bf-popup__cta:hover, .bf-popup .bf-popup__cta:focus, .bf-popup .bf-popup__cta:active, .footer-container .bf-popup .bf-popup__cta { color: #fff !important; text-align: center; text-decoration: none; }
.bf-popup__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(11, 14, 19, 0.06); color: var(--bf-ink); cursor: pointer;
}

/* ---------- Mobile ----------
   Il mockup non cambia misure sul telefono (stesse dimensioni dei testi e degli spazi): si va a capo
   e basta. Qui solo cio' che serve perche' non si rompa su schermi molto stretti. */
.bf-hero__title { overflow-wrap: break-word; }
@media (max-width: 400px) {
  .bf-popup__box { padding: 32px 24px; }
}

/* Spazio tra lo slider e il primo carosello ("Dal nostro catalogo") */
.bf-hero + .bf-section { margin-top: 72px; }
@media (max-width: 767px) { .bf-hero + .bf-section { margin-top: 48px; } }

/* Card uniformi anche negli elenchi prodotti (categorie, ricerca...): stessa altezza di riga, con o senza disponibilita' */
.bf-stock--placeholder { visibility: hidden; }
.products .product > .product-miniature.bf-product,
#js-product-list .product > .product-miniature.bf-product { height: 100%; display: flex; flex-direction: column; margin-bottom: 0; }
.products .product { display: flex; margin-bottom: 1.5rem; }
.products .product > .product-miniature.bf-product { width: 100%; }
.products .bf-product .thumbnail-container { display: flex; flex: 1 1 auto; flex-direction: column; height: auto; }
.products .bf-product .product-description { flex: 1 1 auto; }

/* Nessun bordo/spazio laterale dentro le card: Classic centra il contenuto della card (justify-content:center) e lo lascia stretto.
   Qui il contenuto riempie sempre tutta la larghezza, in qualsiasi elenco o carosello. */
.product-miniature.bf-product { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.product-miniature.bf-product .thumbnail-container { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
