/* ==========================================================================
   Fortunato Shop - restyling 2026
   Caricato per ultimo da templates/_partials/head.tpl.
   Per tornare all'aspetto precedente basta togliere la riga che lo carica.
   Indice: 1 Colori - 2 Testata - 3 Scheda prodotto negli elenchi
           4 Pagina categoria - 5 Pagina prodotto - 6 Blocchi della home
   ========================================================================== */

/* 1. Colori e misure ------------------------------------------------------ */
:root {
  --fs-navy: #202264;
  --fs-navy-dark: #15173f;
  --fs-navy-tint: #e9eaf4;
  --fs-red: #c8102e;
  --fs-red-dark: #a50d26;
  --fs-ink: #1d1d27;
  --fs-muted: #5a5f6e;
  --fs-line: #e3e5ec;
  --fs-line-strong: #8a8fa3;
  --fs-ground: #f5f6f9;
  --fs-green: #00704c;
  --fs-amber: #8a5300;
  --fs-radius: 12px;
}

/* 2. Testata -------------------------------------------------------------- */
#desktop-header .header-top { padding-top: 14px; padding-bottom: 14px; }

#search_widget .input-group {
  border: 2px solid var(--fs-navy);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
#search_widget .form-search-control {
  border: 0;
  box-shadow: none;
  height: 48px;
  padding-left: 18px;
  font-size: 15px;
  color: var(--fs-ink);
  background: #fff;
}
#search_widget .search-btn {
  background: var(--fs-navy);
  color: #fff;
  min-width: 56px;
  height: 48px;
  top: 0;
  right: 0;
  border-radius: 0;
}
#search_widget .search-btn:hover { background: var(--fs-navy-dark); }

#desktop-header #cart-toogle.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--fs-red);
  color: #fff;
}
#desktop-header #cart-toogle.header-cart-btn:hover { background: var(--fs-red-dark); color: #fff; }
#desktop-header #cart-toogle.header-cart-btn .icon,
#desktop-header #cart-toogle.header-cart-btn .info-wrapper,
#desktop-header #cart-toogle.header-cart-btn .info-wrapper * { color: #fff; }

/* 3. (spostato in fortunato-elenco.css) */

/* 4. (spostato in fortunato-elenco.css) */

/* 5. (spostato in fortunato-prodotto.css) */

/* 6. (home: spostato in fortunato-home.css) */

/* 7. (home: spostato in fortunato-home.css) */

/* 8. (spostato in fortunato-elenco.css) */

/* 9. (spostato in fortunato-prodotto.css) */

/* 10. Parte alta della pagina come nel mockup ------------------------------ */
/* barra blu in alto: i testi sono in _partials/header.tpl */
.fs-top { background: var(--fs-navy); color: #fff; font-size: 13px; line-height: 1.45; }
.fs-top > .container { max-width: 100%; padding-left: 15px; padding-right: 15px; }
.fs-top__in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.fs-top__left { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.fs-top__ship { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.fs-top__ship svg { flex-shrink: 0; }
.fs-top__right { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
#header .fs-top a { color: #fff; font-size: 13px; text-decoration: none; }
#header .fs-top a:hover { color: #fff; text-decoration: underline; }
#header .fs-top a.fs-top__puglia { text-decoration: underline; }
#header .fs-top a.fs-top__tel { font-weight: 600; }
@media (max-width: 991.98px) {
  .fs-top__more { display: none !important; }
  .fs-top__in { justify-content: center; padding: 8px 0; }
}

/* striscia "Vivi in Puglia?": l'invito e' ora un collegamento nella barra blu
   (su telefono nella home c'e' il riquadro dedicato). Gli altri stati della
   striscia, per chi e' gia' nel portale, restano visibili. */
#scontiregionali-bar.scontiregionali-bar--invite { display: none !important; }
#scontiregionali-bar {
  background: var(--fs-navy-tint) !important;
  color: var(--fs-navy) !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
}
#scontiregionali-bar .scontiregionali-bar-link,
#scontiregionali-bar .scontiregionali-bar-text { color: var(--fs-navy) !important; font-size: 13px !important; }
#scontiregionali-bar .scontiregionali-bar-cta {
  background: var(--fs-navy) !important;
  color: #fff !important;
  border-color: var(--fs-navy) !important;
  font-size: 12px !important;
  padding: 3px 12px !important;
}
#scontiregionali-bar svg, #scontiregionali-bar .sr-info-btn { color: var(--fs-navy) !important; border-color: var(--fs-navy) !important; }

@media (min-width: 992px) {
  /* ricerca larga con pulsante "Cerca" */
  #desktop-header #search_widget { width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; }
  #desktop-header #search_widget .form-search-control { padding-right: 130px; }
  #desktop-header #search_widget .search-btn { min-width: 112px; padding: 0 20px; font-size: 15px; font-weight: 600; }
  #desktop-header #search_widget .search-btn::after { content: "Cerca"; margin-left: 8px; font-family: Poppins, sans-serif; }

  /* "Accedi" con etichetta sotto l'icona */
  #desktop-header #header-user-btn .header-user-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-right: 18px;
    color: var(--fs-ink);
  }
  #desktop-header #header-user-btn .header-user-btn .title { display: block !important; font-size: 12px; font-weight: 500; }
  #desktop-header #cart-toogle.header-cart-btn .info-wrapper { display: inline-flex !important; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
  #desktop-header #cart-toogle.header-cart-btn .cart-separator { display: none; }

  /* menu su una riga: niente maiuscole, voci lunghe abbreviate.
     I numeri (36, 39, 44, 45, 47) sono quelli delle voci nel modulo del menu:
     la soluzione definitiva e' rinominare le voci nel modulo e togliere queste righe. */
  #cbp-hrmenu > ul { display: flex; flex-wrap: nowrap; align-items: center; }
  #cbp-hrmenu > ul > li { float: none; flex: 0 0 auto; }
  #cbp-hrmenu > ul > li > a { padding: 0 10px; }
  #cbp-hrmenu > ul > li > a .cbp-tab-title {
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
  }
  /* ordine delle voci: Offerte per prima (dal 1/12/2026), in rosso con il cartellino; Natale a destra */
  #cbp-hrmenu > ul > li { order: 20; }
  #cbp-hrmenu > ul > li.fs-allcats { order: 0; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-38 { order: 1; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-44 { order: 2; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-45 { order: 3; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-40 { order: 4; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-46 { order: 5; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-41 { order: 6; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-37 { order: 7; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-47 { order: 8; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-36 { order: 9; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-39 { order: 10; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-48 { order: 30; margin-left: auto; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-33 { order: -1; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-48 > a .cbp-tab-title { font-weight: 600; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-33 > a .cbp-tab-title { display: inline-flex; gap: 6px; align-items: center; color: var(--fs-red); font-weight: 700; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-33 > a .cbp-tab-title::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-36 > a .cbp-tab-title,
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-39 > a .cbp-tab-title,
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-44 > a .cbp-tab-title,
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-45 > a .cbp-tab-title,
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-47 > a .cbp-tab-title { font-size: 0; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-36 > a .cbp-tab-title::before { content: "Antinfortunistica"; font-size: 13.5px; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-39 > a .cbp-tab-title::before { content: "Falegnameria"; font-size: 13.5px; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-44 > a .cbp-tab-title::before { content: "Pitture e smalti"; font-size: 13.5px; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-45 > a .cbp-tab-title::before { content: "Trattamento superfici"; font-size: 13.5px; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-47 > a .cbp-tab-title::before { content: "Pavimenti"; font-size: 13.5px; }
  #cbp-hrmenu > ul > li > a .cbp-tab-title i { font-size: 12px; }

}

/* 11. (home: spostato in fortunato-home.css) */
#footer #footer-copyrights { background: var(--fs-navy-dark); }

/* categoria: l'elenco delle sottocategorie nella colonna a sinistra ripete i pulsanti sotto il titolo */
body#category #left-column .block-categories { display: none; }

/* 12. (spostato in fortunato-prodotto.css) */

/* 13. (spostato in fortunato-elenco.css) */

/* 14. Testata: Assistenza, "Tutte le categorie", nota nella barra in alto (aggiunti da fortunato.js) */
@media (min-width: 992px) {
  #desktop-header .fs-help-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-right: 18px;
    color: var(--fs-ink);
  }
  #desktop-header .fs-help-btn .title { display: block !important; font-size: 12px; font-weight: 500; }
  #cbp-hrmenu > ul > li.fs-allcats > a { padding: 0 16px; background: var(--fs-navy); }
  #cbp-hrmenu > ul > li.fs-allcats > a .cbp-tab-title { color: #fff; font-weight: 600; }
  #cbp-hrmenu > ul > li.fs-allcats > a .cbp-tab-title i { margin-right: 6px; font-size: 14px; }
  #cbp-hrmenu > ul > li > a { padding: 0 8px; }
  #cbp-hrmenu > ul > li > a .cbp-tab-title { font-size: 13px; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-36 > a .cbp-tab-title::before,
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-39 > a .cbp-tab-title::before,
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-44 > a .cbp-tab-title::before,
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-45 > a .cbp-tab-title::before,
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-47 > a .cbp-tab-title::before { font-size: 13px; }
}

/* 15. Telefono: ricerca sempre visibile, banner e "L'azienda" come nel mockup */
.fs-msearch { display: none; }
@media (max-width: 991px) {
  .fs-msearch {
    display: flex;
    margin: 0 16px 10px;
    border: 2px solid var(--fs-navy);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }
  .fs-msearch input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    font-size: 16px;
    color: var(--fs-ink);
    background: #fff;
  }
  .fs-msearch button { flex: 0 0 52px; border: 0; background: var(--fs-navy); color: #fff; font-size: 18px; }
  #mobile-header .col-mobile-btn-search { display: none; }
}

/* 16. Telefono: testata come nel mockup ---------------------------------------- */
/* menu a sinistra senza scritta, logo accanto, a destra solo le icone di
   accesso e carrello; sotto la ricerca; nella home le categorie a pillola */
.fs-mnav { display: none; }
@media (max-width: 991.98px) {
  #mobile-header .mobile-main-bar { padding: 8px 0 4px; }
  #mobile-header .row-mobile-header { flex-wrap: nowrap; }
  #mobile-header .m-nav-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--fs-ink); }
  #mobile-header .m-nav-btn > span { display: none; }
  #mobile-header .m-nav-btn > i { font-size: 24px; color: var(--fs-ink); }
  #mobile-header .col-mobile-logo { flex: 1 1 auto; text-align: left !important; }
  #mobile-header .col-mobile-logo img { width: auto; height: 34px; max-height: 34px; }
  #mobile-header #mobile-cart-products-count {
    position: absolute;
    top: -8px;
    right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--fs-red);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }
  #mobile-header .mobile-bag-icon { position: relative; }
  .fs-msearch { margin: 0 15px 12px; }
  .fs-mnav {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    border-top: 1px solid var(--fs-line);
    border-bottom: 1px solid var(--fs-line);
    overflow-x: auto;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .fs-mnav::-webkit-scrollbar { display: none; }
  #header .fs-mnav a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #c9ccd8;
    border-radius: 999px;
    color: var(--fs-ink);
    text-decoration: none;
  }
  #header .fs-mnav a.fs-mnav__offers { border-color: var(--fs-red); background: var(--fs-red); color: #fff; font-weight: 600; }
}

/* 17. Pie' di pagina ------------------------------------------------------------ */
/* fascia della newsletter */
#footer { margin: 0; padding: 0; border: 0; background: var(--fs-navy-dark); }
.fs-news { border-top: 1px solid var(--fs-line); background: var(--fs-ground); color: var(--fs-ink); }
.fs-news__in {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0;
}
.fs-news__text { flex: 1 1 360px; }
#footer .fs-news h2 { margin: 0; padding: 0; font-size: 22px; line-height: 1.45; font-weight: 700; text-align: left; text-transform: none; color: var(--fs-ink); }
.fs-news p { margin: 4px 0 0; font-size: 14px; color: var(--fs-muted); }
.fs-news__form { flex: 1 1 420px; min-width: 0; }
.fs-news__form form,
.fs-news__form .input-group { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.fs-news__form input[type="email"],
.fs-news__form input[type="text"] {
  flex: 1 1 240px;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--fs-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--fs-ink);
  font-size: 15px;
}
.fs-news__form button,
.fs-news__form input[type="submit"],
#footer a.fs-news__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--fs-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.fs-news__form button:hover,
#footer a.fs-news__btn:hover { background: var(--fs-navy-dark); color: #fff; }

/* colonne */
.fs-foot { background: var(--fs-navy-dark); color: #fff; font-size: 14px; line-height: 1.45; }
.fs-foot *,
.fs-foot *::before,
.fs-foot *::after { box-sizing: border-box; }
.fs-foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 48px 0 28px; }
.fs-foot__help { order: 4; display: flex; flex-direction: column; gap: 8px; }
.fs-foot__col { margin: 0; }
.fs-foot__title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #fff; list-style: none; }
.fs-foot__title::-webkit-details-marker { display: none; }
.fs-foot__title svg { display: none; flex-shrink: 0; }
.fs-foot__help .fs-foot__title { margin-bottom: 4px; }
.fs-foot__links { display: flex; flex-direction: column; gap: 8px; }
#footer .fs-foot a { color: #d5d8ec; font-size: 14px; text-decoration: none; }
#footer .fs-foot a:hover { color: #fff; text-decoration: underline; }
#footer .fs-foot a.fs-foot__phone { color: #fff; font-size: 20px; font-weight: 700; }
.fs-foot__help span { color: #d5d8ec; }
@media (min-width: 768px) { .fs-foot__col > summary { pointer-events: none; cursor: default; } }

/* moduli agganciati al pie' di pagina: restano, senza i vecchi elenchi */
.fs-foot__hooks { color: #d5d8ec; font-size: 12px; text-align: center; }
.fs-foot__hooks .block-iqitlinksmanager,
.fs-foot__hooks .block-iqitcontactpage,
.fs-foot__hooks #iqithtmlandbanners-block-3,
.fs-foot__hooks #iqithtmlandbanners-block-4,
.fs-foot__hooks .block-iqithtmlandbanners-html > .block-title { display: none !important; }
.fs-foot__hooks .block { float: none; width: 100%; max-width: none; margin: 0; padding: 0 0 12px; }
.fs-foot__hooks .block p { margin: 0; color: #d5d8ec; }

/* riga finale */
.fs-foot__bottom { border-top: 1px solid #3a3d75; }
.fs-foot__bottom-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 12px;
  color: #d5d8ec;
}
.fs-foot__legal { flex: 1 1 420px; }
.fs-foot__legal p { margin: 0; font-size: 12px; color: #d5d8ec; }
.fs-foot__legal .iubenda-cs-preferences-link { display: none; }
.fs-foot__policies { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; }
#footer .fs-foot .fs-foot__bottom a { font-size: 12px; }

@media (max-width: 767.98px) {
  .fs-news__in { flex-direction: column; align-items: stretch; gap: 14px; padding: 28px 0; }
  .fs-news__text { flex: 0 0 auto; }
  #footer .fs-news h2 { font-size: 19px; }
  .fs-news p { font-size: 13px; }
  .fs-news__form { flex: 0 0 auto; }
  .fs-news__form form,
  .fs-news__form .input-group { flex-direction: column; flex-wrap: nowrap; }
  .fs-news__form input[type="email"],
  .fs-news__form input[type="text"] { flex: 0 0 50px; width: 100%; font-size: 16px; }

  .fs-foot__cols { display: block; padding: 28px 0 0; }
  .fs-foot__help { gap: 6px; padding-bottom: 20px; }
  #footer .fs-foot a.fs-foot__phone { font-size: 22px; }
  .fs-foot__help > a:not(.fs-foot__phone) { padding: 4px 0; }
  .fs-foot__col { border-top: 1px solid #3a3d75; }
  .fs-foot__col:last-child { border-bottom: 1px solid #3a3d75; }
  .fs-foot__col > .fs-foot__title { height: 52px; margin: 0; cursor: pointer; }
  .fs-foot__title svg { display: block; transition: transform 0.15s ease; }
  .fs-foot__col[open] > .fs-foot__title svg { transform: rotate(180deg); }
  .fs-foot__links { padding: 0 0 16px; }
  .fs-foot__hooks { padding-top: 16px; }
  .fs-foot__bottom { border-top: 0; }
  .fs-foot__bottom-in { flex-direction: column-reverse; gap: 12px; padding: 18px 0 24px; }
  .fs-foot__legal { flex: 0 0 auto; }
  .fs-foot__policies { gap: 6px 16px; }
}

/* 18. Riquadro ufficiale di Trustpilot (vedi _partials/fs-trustpilot.tpl) -------- */
.fs-tp { min-height: 24px; max-width: 330px; }
.fs-tp--center { margin-left: auto; margin-right: auto; }
/* Il vecchio foglio "frizzo.css" colora di nero ogni riquadro Trustpilot (serviva
   nella vecchia fascia nera del pie' di pagina): qui lo sfondo va tolto.
   Visto sulla copia di prova il 27/11/2026. */
.fs-tp .trustpilot-widget { background-color: transparent; }
.fs-tp iframe { display: block; color-scheme: light; background: transparent; }
.fs-tp--center { text-align: center; }
#wrapper .fs-tp a { color: var(--fs-navy); font-size: 14px; font-weight: 600; text-decoration: underline; }
#wrapper .fs-tp a:hover { color: var(--fs-red); }

/* 19. Menu a tutta larghezza e sottomenu dei reparti (27/11/2026) ---------------
   Su computer le voci del menu si dividono tutta la riga, senza spazio vuoto.
   Il sottomenu e' un riquadro con la foto del reparto, il titolo, "Vedi tutto"
   e le sottocategorie. La parte con la foto la aggiunge fortunato.js
   (funzione "sottomenu"): se lo script non parte restano le sole sottocategorie. */
@media (min-width: 992px) {
  #cbp-hrmenu > ul { width: 100%; }
  #cbp-hrmenu > ul > li { position: relative; flex: 1 1 auto; }
  #cbp-hrmenu > ul > li.fs-allcats { flex: 0 0 auto; }
  #cbp-hrmenu > ul > li.cbp-hrmenu-tab-48 { margin-left: 0; }
  #cbp-hrmenu > ul > li > a { display: flex; align-items: center; justify-content: center; min-height: 43px; }

  /* trattino rosso sotto la voce aperta */
  #cbp-hrmenu > ul > li.cbp-has-submeu > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--fs-red);
    transition: left .2s ease, width .2s ease;
  }
  #cbp-hrmenu > ul > li.cbp-has-submeu.cbp-hropen > a::after,
  #cbp-hrmenu > ul > li.cbp-has-submeu:hover > a::after { left: 10px; width: calc(100% - 20px); }
  #cbp-hrmenu > ul > li.cbp-hropen > a .cbp-tab-title { color: var(--fs-navy); }

  /* il riquadro: parte sotto la propria voce; le ultime voci lo aprono verso sinistra
     (la classe "cbp-notfit" la mette il modulo del menu quando non c'e' spazio) */
  #cbp-hrmenu > ul > li > .cbp-hrsub {
    top: 100%;
    /* lo spostamento lo calcola fortunato.js, cosi' il riquadro non esce mai dallo schermo */
    left: var(--fs-sub-x, 0px) !important;
    right: auto !important;
    width: max-content !important;
    max-width: min(760px, 94vw);
    margin: 0;
    padding: 10px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  /* senza lo script: vale la regola del modulo, che apre verso sinistra quando non c'e' spazio */
  #cbp-hrmenu > ul > li > .cbp-hrsub.cbp-notfit:not(.fs-sub) { left: auto !important; right: 0 !important; }
  #cbp-hrmenu .cbp-hrsub .cbp-hrsub-inner {
    overflow: hidden;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid var(--fs-line) !important;
    border-radius: 16px;
    box-shadow: 0 28px 56px -16px rgba(21, 23, 63, .32), 0 2px 6px rgba(21, 23, 63, .06);
  }
  #cbp-hrmenu .cbp-hrsub .iqitmegamenu-submenu-container {
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  #cbp-hrmenu .cbp-hrsub.fs-sub .iqitmegamenu-submenu-container { grid-template-columns: 232px minmax(240px, 1fr); }
  #cbp-hrmenu .cbp-hrsub .menu_row { display: block; margin: 0; padding: 18px 18px 16px; }
  #cbp-hrmenu .cbp-hrsub .cbp-menu-column { flex: none; width: auto; max-width: none; padding: 0; }
  #cbp-hrmenu .cbp-hrsub .cbp-menu-column-inner::before {
    content: "Sottocategorie";
    display: block;
    margin: 0 0 8px 12px;
    color: var(--fs-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  #cbp-hrmenu .cbp-hrsub ul.cbp-links { display: grid; grid-template-columns: 1fr; gap: 2px 8px; margin: 0; padding: 0; list-style: none; }
  #cbp-hrmenu .cbp-hrsub.fs-sub--2col ul.cbp-links { grid-template-columns: 1fr 1fr; }
  #cbp-hrmenu .cbp-hrsub ul.cbp-links > li { margin: 0; padding: 0; border: 0 !important; }
  #cbp-hrmenu .cbp-hrsub ul.cbp-links > li::before { display: none; }
  #cbp-hrmenu .cbp-hrsub .cbp-category-link-w { margin: 0; padding: 0; }
  #cbp-hrmenu .cbp-hrsub ul.cbp-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 210px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--fs-ink);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, padding .15s ease;
  }
  #cbp-hrmenu .cbp-hrsub ul.cbp-links a::before { display: none; }
  #cbp-hrmenu .cbp-hrsub ul.cbp-links a::after {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .15s ease, transform .15s ease;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  #cbp-hrmenu .cbp-hrsub ul.cbp-links a:hover,
  #cbp-hrmenu .cbp-hrsub ul.cbp-links a:focus-visible { background: var(--fs-navy-tint); color: var(--fs-navy); padding-left: 16px; }
  #cbp-hrmenu .cbp-hrsub ul.cbp-links a:hover::after,
  #cbp-hrmenu .cbp-hrsub ul.cbp-links a:focus-visible::after { opacity: 1; transform: none; }

  /* la parte con la foto del reparto */
  #header #cbp-hrmenu a.fs-sub__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    min-height: 100%;
    padding: 18px;
    overflow: hidden;
    background: var(--fs-navy) center / cover no-repeat;
    color: #fff !important;
    text-decoration: none;
  }
  #header #cbp-hrmenu a.fs-sub__aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 23, 63, .15) 0%, rgba(21, 23, 63, .55) 45%, rgba(21, 23, 63, .94) 100%);
  }
  #header #cbp-hrmenu a.fs-sub__aside > * { position: relative; }
  #header #cbp-hrmenu a.fs-sub__aside .fs-sub__kicker { color: #fff !important; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
  #header #cbp-hrmenu a.fs-sub__aside .fs-sub__title { color: #fff !important; font-size: 19px; font-weight: 700; line-height: 1.2; }
  #header #cbp-hrmenu a.fs-sub__aside .fs-sub__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--fs-navy) !important;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s ease, color .15s ease, gap .15s ease;
  }
  #header #cbp-hrmenu a.fs-sub__aside .fs-sub__all svg { width: 15px; height: 15px; }
  #header #cbp-hrmenu a.fs-sub__aside:hover .fs-sub__all,
  #header #cbp-hrmenu a.fs-sub__aside:focus-visible .fs-sub__all { background: var(--fs-red); color: #fff !important; gap: 12px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #cbp-hrmenu .cbp-hrsub.fs-sub .iqitmegamenu-submenu-container { grid-template-columns: 190px minmax(220px, 1fr); }
}
/* comparsa morbida, solo per chi non ha chiesto di ridurre le animazioni */
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  #cbp-hrmenu .cbp-hropen > .cbp-hrsub .cbp-hrsub-inner { animation: fs-sub-in .22s ease both; }
  #cbp-hrmenu .cbp-hropen > .cbp-hrsub ul.cbp-links > li { animation: fs-sub-item .26s ease both; }
  #cbp-hrmenu .cbp-hropen > .cbp-hrsub ul.cbp-links > li:nth-child(2) { animation-delay: .03s; }
  #cbp-hrmenu .cbp-hropen > .cbp-hrsub ul.cbp-links > li:nth-child(3) { animation-delay: .06s; }
  #cbp-hrmenu .cbp-hropen > .cbp-hrsub ul.cbp-links > li:nth-child(4) { animation-delay: .09s; }
  #cbp-hrmenu .cbp-hropen > .cbp-hrsub ul.cbp-links > li:nth-child(5) { animation-delay: .12s; }
  #cbp-hrmenu .cbp-hropen > .cbp-hrsub ul.cbp-links > li:nth-child(n+6) { animation-delay: .15s; }
}
@keyframes fs-sub-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fs-sub-item { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* 20. Correzioni dal controllo su telefono e tablet (27/11/2026) -----------------
   Trovate provando il tema sulla copia di prova a 390, 820 e 1024 px. */
@media (max-width: 991.98px) {
  /* la riga della testata usciva di 9 px per lato: il numero del carrello era tagliato */
  #mobile-header .row-mobile-header { margin-left: 0; margin-right: 0; }
  #mobile-header .mobile-main-bar > .container,
  #mobile-header > .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 767.98px) {
  /* fuori dalla home restava uno spazio vuoto di 75 px tra la ricerca e il contenuto
     (su computer in quello spazio c'e' il percorso di navigazione) */
  body:not(#index) #wrapper { padding-top: 12px; }
  /* i titoli lunghi dei riquadri in alto ("Impermeabilizzazione") venivano tagliati */
  .fs-home .fs-hsec--hero .homecollage .hc-title {
    font-size: 15px;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  /* pagina prodotto: il pulsante dei cookie copriva la fine di "Aggiungi al carrello" */
  /* ":not(#fs-nessuno)" serve solo a dare piu' peso alla regola di quella di iubenda */
  body.fs-has-stickybuy .iubenda-tp-btn[data-tp-float]:not(#fs-nessuno) { bottom: 84px !important; }
}

/* 21. Modifiche del 27/11/2026 chieste "come da mockup" ---------------------------
   Tasto "Carrello", ricerca larga dal logo ad "Assistenza", campo della newsletter,
   valutazione Trustpilot. */
@media (min-width: 992px) {
  /* ricerca: occupa tutto lo spazio tra il logo e "Assistenza" */
  #desktop-header .col-header-center { padding-left: 28px; padding-right: 28px; }
  #desktop-header #search_widget { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }

  /* tasto rosso: icona, "Carrello" e numero di prodotti tra parentesi.
     "display: contents" sull'icona serve a mettere il numero dopo la scritta. */
  #desktop-header #cart-toogle.header-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 0 18px;
    border-radius: 10px;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
  #desktop-header #cart-toogle.header-cart-btn > i.icon { display: contents; }
  #desktop-header #cart-toogle.header-cart-btn > i.icon::before { order: 1; font-size: 20px; line-height: 1; }
  #desktop-header #cart-toogle.header-cart-btn .info-wrapper { order: 2; display: inline-flex !important; margin: 0; padding: 0; }
  #desktop-header #cart-toogle.header-cart-btn .info-wrapper .title { display: inline !important; color: #fff; font-family: Poppins, sans-serif; font-size: 14px; font-weight: 600; }
  #desktop-header #cart-toogle.header-cart-btn .cart-products-count-btn {
    order: 3;
    position: static;
    display: inline;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0 0 0 -5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transform: none;
  }
  #desktop-header #cart-toogle.header-cart-btn .cart-products-count-btn::before { content: "("; }
  #desktop-header #cart-toogle.header-cart-btn .cart-products-count-btn::after { content: ")"; }
}
/* il tema scrive in bianco il testo di esempio della ricerca: su fondo bianco non si leggeva */
#header #search_widget input.form-search-control::placeholder,
#header .fs-msearch input::placeholder { color: var(--fs-muted) !important; opacity: 1 !important; }

/* fuori dalla home Warehouse lascia 75 px vuoti sopra il contenuto: su computer
   restava un buco tra il menu e il percorso di navigazione */
@media (min-width: 768px) {
  body:not(#index) #wrapper { padding-top: 18px; }
}

/* campo della newsletter (modules/ps_emailsubscription/.../ps_emailsubscription.tpl) */
.fs-news__form .fs-nl form { display: block; }
.fs-nl__row { display: flex; flex-wrap: wrap; gap: 10px; }
.fs-nl__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fs-news__form .fs-nl__row input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  box-sizing: border-box;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--fs-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--fs-ink);
  font-family: Poppins, sans-serif;
  font-size: 15px;
}
.fs-news__form .fs-nl__row input[type="email"]:focus { outline: 2px solid var(--fs-navy); outline-offset: 1px; }
.fs-news__form .fs-nl__btn {
  flex: 0 0 auto;
  height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--fs-navy);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.fs-news__form .fs-nl__btn:hover { background: var(--fs-navy-dark); }
.fs-nl .block_newsletter_alert .alert { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.fs-nl__note,
.fs-nl__gdpr { margin: 10px 0 0; color: var(--fs-muted); font-size: 13px; line-height: 1.45; }
#footer .fs-nl__note a { color: var(--fs-navy); text-decoration: underline; }
.fs-nl__gdpr label { display: inline; margin: 0; font-size: 13px; font-weight: 400; color: var(--fs-muted); }
.fs-nl__gdpr .custom-checkbox, .fs-nl__gdpr .psgdpr_consent_message { display: flex; gap: 8px; align-items: flex-start; }
@media (max-width: 767.98px) {
  .fs-nl__row { flex-direction: column; flex-wrap: nowrap; }
  .fs-news__form .fs-nl__row input[type="email"] { flex: 0 0 50px; width: 100%; font-size: 16px; }
  .fs-news__form .fs-nl__btn { width: 100%; }
}

/* valutazione Trustpilot (_partials/fs-trustpilot.tpl) */
.fs-tp-star { flex-shrink: 0; fill: #008a5e; stroke: none; }
#wrapper a.fs-tp-line { display: inline-flex; gap: 8px; align-items: center; color: var(--fs-muted); font-size: 13px; text-decoration: none; }
#wrapper a.fs-tp-line strong { color: var(--fs-ink); font-weight: 600; }
#wrapper a.fs-tp-line:hover span { text-decoration: underline; }
.fs-tp-sum { display: flex; flex-direction: column; gap: 6px; }
.fs-tp-sum__stars { display: flex; gap: 2px; }
.fs-tp-sum__score { color: var(--fs-ink); font-size: 20px; font-weight: 700; line-height: 1.25; }
.fs-tp-sum__count { color: var(--fs-muted); font-size: 14px; }

/* 22. Modifiche del 27/11/2026, terzo giro ------------------------------------------
   Niente "Tutte le categorie" su computer; icone di profilo, carrello e assistenza
   come nei mockup; testata su telefono; nuovo menu su telefono. */
#cbp-hrmenu > ul > li.fs-allcats { display: none !important; }

/* Icone come nei mockup: il disegno e' una maschera, cosi' prende il colore del testo. */
#desktop-header #header-user-btn .header-user-btn > i.fa::before,
#desktop-header .fs-help-btn > i.fa::before,
#desktop-header #cart-toogle.header-cart-btn > i.icon::before,
#mobile-header .col-mobile-btn-menu .m-nav-btn > i.fa::before,
#mobile-header .col-mobile-btn-account .m-nav-btn > i.fa::before,
#mobile-header #mobile-cart-toogle > i.fa::before {
  content: "" !important;
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--fs-ico) center / contain no-repeat;
  mask: var(--fs-ico) center / contain no-repeat;
}
#desktop-header #header-user-btn .header-user-btn > i.fa,
#desktop-header .fs-help-btn > i.fa,
#mobile-header .col-mobile-btn .m-nav-btn > i.fa { display: inline-flex; align-items: center; justify-content: center; width: auto; height: auto; }
#desktop-header #header-user-btn .header-user-btn > i.fa,
#mobile-header .col-mobile-btn-account .m-nav-btn > i.fa {
  --fs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
}
#desktop-header .fs-help-btn > i.fa {
  --fs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0116 0v2'/%3E%3Crect x='2.5' y='13' width='4' height='6' rx='1.5'/%3E%3Crect x='17.5' y='13' width='4' height='6' rx='1.5'/%3E%3Cpath d='M19.5 19c0 1.7-2 2.5-5 2.5'/%3E%3C/svg%3E");
}
#desktop-header #cart-toogle.header-cart-btn > i.icon,
#mobile-header #mobile-cart-toogle > i.fa {
  --fs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11h10.2L20 7H6.2'/%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3C/svg%3E");
}
#desktop-header #cart-toogle.header-cart-btn > i.icon::before { width: 22px; height: 22px; }
#mobile-header .col-mobile-btn-menu .m-nav-btn > i.fa {
  --fs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
  /* testata su telefono come nel mockup: 16 px ai lati, logo a sinistra alto 34 px
     (prima era schiacciato a 100 px di larghezza), carrello non piu' attaccato al bordo */
  #mobile-header #mobile-header-sticky > .container,
  #mobile-header .container { padding-left: 16px; padding-right: 16px; }
  #mobile-header .row-mobile-header { margin-left: 0; margin-right: 0; flex-wrap: nowrap; }
  #mobile-header .col-mobile-btn-menu { margin-left: -10px; }
  #mobile-header .col-mobile-btn-cart { margin-right: -8px; }
  #mobile-header .col-mobile-logo { min-width: 0; padding-left: 4px; text-align: left !important; }
  #mobile-header .col-mobile-logo a { display: inline-flex; }
  #mobile-header .col-mobile-logo img.logo {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: 34px !important;
    object-fit: contain;
    object-position: left center;
  }
  #mobile-header .col-mobile-btn .m-nav-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--fs-ink); }
  #mobile-header .col-mobile-btn .m-nav-btn > span:not(.cart-products-count) { display: none; }
  #mobile-header #mobile-cart-toogle { position: relative; }
  #mobile-header #mobile-cart-products-count {
    position: absolute;
    top: 3px;
    right: 1px;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 18px;
    width: auto;
    height: 18px;
    margin: 0;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--fs-red);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  /* ---- menu su telefono ---- */
  #mobile_menu_click_overlay { background: rgba(21, 23, 63, .5) !important; }
  #_mobile_iqitmegamenu-mobile.dropdown-menu { width: min(88vw, 348px) !important; max-width: none; padding: 0; border: 0; background: #fff; box-shadow: 0 0 40px rgba(21, 23, 63, .35); }
  #iqitmegamenu-mobile.mobile-menu { background: #fff !important; color: var(--fs-ink); font-family: Poppins, sans-serif; }
  #iqitmegamenu-mobile .mobile-menu__header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 8px 8px 8px 20px !important;
    background: var(--fs-navy);
    color: #fff;
  }
  #iqitmegamenu-mobile .mobile-menu__header-wrapper::before { content: "Categorie"; font-size: 18px; font-weight: 700; }
  #iqitmegamenu-mobile .mobile-menu__header { display: none !important; }
  #iqitmegamenu-mobile .mobile-menu__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; }
  #iqitmegamenu-mobile .mobile-menu__close .fa::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  #iqitmegamenu-mobile .mobile-menu__content { margin: 0 !important; }
  #iqitmegamenu-mobile ul.mm-panel__scroller { display: flex; flex-direction: column; gap: 0; padding: 10px 12px 16px; list-style: none; }
  #iqitmegamenu-mobile li.mobile-menu__above-content,
  #iqitmegamenu-mobile li.mobile-menu__below-content { display: none; }
  #iqitmegamenu-mobile li.mobile-menu__tab { margin: 0; padding: 0; border: 0 !important; background: none !important; }
  #iqitmegamenu-mobile li.mobile-menu__tab::before,
  #iqitmegamenu-mobile li.mobile-menu__tab::after { content: none !important; }
  #iqitmegamenu-mobile li.mobile-menu__tab > a.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 6px 8px !important;
    border: 0;
    border-radius: 12px;
    background: none !important;
    color: var(--fs-ink) !important;
    font-family: Poppins, sans-serif;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.25;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none !important;
  }
  #iqitmegamenu-mobile li.mobile-menu__tab > a.mobile-menu__link::before { content: none !important; }
  #iqitmegamenu-mobile li.mobile-menu__tab > a.mobile-menu__link:active,
  #iqitmegamenu-mobile li.mobile-menu__tab > a.mobile-menu__link:focus-visible { background: var(--fs-navy-tint) !important; color: var(--fs-navy) !important; }
  #iqitmegamenu-mobile li.mobile-menu__tab + li.mobile-menu__tab { box-shadow: 0 -1px 0 var(--fs-line); }
  /* se lo script non parte: almeno niente maiuscole */
  #iqitmegamenu-mobile li.mobile-menu__tab:not(.fs-mm) > a.mobile-menu__link { text-transform: lowercase !important; }
  #iqitmegamenu-mobile li.mobile-menu__tab:not(.fs-mm) > a.mobile-menu__link::first-letter { text-transform: uppercase; }
  .fs-mm__thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; background: var(--fs-ground) center / cover no-repeat; }
  .fs-mm__label { flex: 1 1 auto; min-width: 0; }
  .fs-mm__go { flex: 0 0 18px; width: 18px; height: 18px; color: var(--fs-line-strong); }
  #iqitmegamenu-mobile li.fs-mm--offerte > a.mobile-menu__link { color: var(--fs-red) !important; font-weight: 700 !important; }
  #iqitmegamenu-mobile li.fs-mm--offerte .fs-mm__thumb {
    background: var(--fs-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='8.5' r='1.5'/%3E%3C/svg%3E") center / 22px no-repeat;
  }
  #iqitmegamenu-mobile li.fs-mm--info .fs-mm__thumb {
    background: var(--fs-navy-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202264' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V9l8-5 8 5v12M9 21v-6h6v6'/%3E%3C/svg%3E") center / 22px no-repeat;
  }
  /* fondo del menu: accesso e assistenza */
  #iqitmegamenu-mobile .mobile-menu__footer { display: flex !important; flex-direction: column; gap: 10px; padding: 14px 16px 18px !important; border-top: 1px solid var(--fs-line); background: var(--fs-ground); }
  #iqitmegamenu-mobile .mobile-menu__language-currency { display: none !important; }
  #iqitmegamenu-mobile .mobile-menu__user { width: 100%; }
  #iqitmegamenu-mobile .mobile-menu__user a,
  #iqitmegamenu-mobile a.fs-mm__help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 2px solid var(--fs-navy);
    border-radius: 10px;
    background: #fff;
    color: var(--fs-navy) !important;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }
  #iqitmegamenu-mobile .mobile-menu__user a .fa { display: none; }
  #iqitmegamenu-mobile a.fs-mm__help { border-color: transparent; background: var(--fs-navy); color: #fff !important; }
}

/* 23. Modifiche del 27/11/2026, quarto giro ------------------------------------------
   Assistenza, Accedi e Carrello allineati; carrello a comparsa ridisegnato
   (modules/ps_shoppingcart/ps_shoppingcart-content.tpl). */
@media (min-width: 992px) {
  #desktop-header .col-header-right > .row { align-items: center; flex-wrap: nowrap; }
  #desktop-header .col-header-right .header-btn-w { display: flex; align-items: center; }
  #desktop-header .fs-help-btn,
  #desktop-header #header-user-btn .header-user-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 50px;
    margin: 0 22px 0 0;
    padding: 0;
    color: var(--fs-ink);
    line-height: 1;
    text-decoration: none;
  }
  #desktop-header .fs-help-btn > i.fa,
  #desktop-header #header-user-btn .header-user-btn > i.fa { width: 24px; height: 24px; margin: 0; padding: 0; font-size: 0; line-height: 1; }
  #desktop-header .fs-help-btn .title,
  #desktop-header #header-user-btn .header-user-btn .title {
    display: block !important;
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
  }
  #desktop-header #ps-shoppingcart-wrapper { display: flex; align-items: center; }
  #desktop-header #cart-toogle.header-cart-btn { margin: 0; }
}

/* ---- carrello a comparsa ---- */
#blockcart-content.fs-sc { padding: 20px; background: #fff; color: var(--fs-ink); font-family: Poppins, sans-serif; font-size: 14px; line-height: 1.45; }
#blockcart-content.fs-sc .fs-sc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--fs-line); }
#blockcart-content.fs-sc .fs-sc__head .modal-title { color: var(--fs-ink); font-family: Poppins, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.2; text-transform: none; }
#blockcart-content.fs-sc .fs-sc__n { color: var(--fs-muted); font-weight: 500; }
#blockcart-content.fs-sc #js-cart-close { position: static; display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; margin: -6px -8px -6px 0; padding: 0; border: 0; border-radius: 50%; background: var(--fs-ground); color: var(--fs-ink); font-size: 24px; line-height: 1; opacity: 1; float: none; }
#blockcart-content.fs-sc #js-cart-close:hover { background: var(--fs-navy-tint); color: var(--fs-navy); }
#blockcart-content.fs-sc .fs-sc__ok { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; padding: 10px 12px; border-radius: 10px; background: #e8f5ef; color: var(--fs-green); font-size: 13px; font-weight: 500; }
#blockcart-content.fs-sc .fs-sc__ok svg { flex-shrink: 0; }
#blockcart-content.fs-sc ul.cart-products { margin: 0; padding: 0; list-style: none; }
#blockcart-content.fs-sc ul.cart-products > li { margin: 0; padding: 14px 0; border: 0; border-bottom: 1px solid var(--fs-line); }
#blockcart-content.fs-sc ul.cart-products .product-image img { border: 1px solid var(--fs-line); border-radius: 10px; background: #fff; }
#blockcart-content.fs-sc ul.cart-products .col-info { padding-left: 12px; }
#blockcart-content.fs-sc ul.cart-products .col-info a { color: var(--fs-ink); font-size: 14px; font-weight: 500; line-height: 1.35; text-decoration: none; }
#blockcart-content.fs-sc ul.cart-products .col-info a:hover { color: var(--fs-navy); text-decoration: underline; }
#blockcart-content.fs-sc ul.cart-products .product-attributes { color: var(--fs-muted); font-size: 12.5px; }
#blockcart-content.fs-sc ul.cart-products .product-attributes .label { color: var(--fs-muted); font-weight: 400; }
#blockcart-content.fs-sc ul.cart-products .col > span { font-size: 14px; font-weight: 600; }
#blockcart-content.fs-sc ul.cart-products .col > span.text-muted { font-weight: 400; }
#blockcart-content.fs-sc ul.cart-products input.form-control { height: 38px; border: 1px solid var(--fs-line-strong); border-radius: 8px; font-family: Poppins, sans-serif; font-size: 14px; font-weight: 600; text-align: center; }
#blockcart-content.fs-sc ul.cart-products .bootstrap-touchspin .btn { border-color: var(--fs-line-strong); color: var(--fs-ink); background: #fff; }
#blockcart-content.fs-sc ul.cart-products a.remove-from-cart { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: var(--fs-muted); font-size: 17px; }
#blockcart-content.fs-sc ul.cart-products a.remove-from-cart:hover { background: #fdecef; color: var(--fs-red); }
#blockcart-content.fs-sc .cart-subtotals { margin: 0; padding: 14px 0 6px; border: 0; }
#blockcart-content.fs-sc .cart-summary-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 6px; color: var(--fs-muted); font-size: 14px; }
#blockcart-content.fs-sc .cart-summary-line .label { color: var(--fs-muted); font-size: 14px; font-weight: 400; }
#blockcart-content.fs-sc .cart-summary-line .value { float: none; color: var(--fs-ink); font-weight: 600; }
#blockcart-content.fs-sc #cart-subtotal-shipping .value { color: var(--fs-green); }
#blockcart-content.fs-sc .cart-totals { margin: 0 0 14px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--fs-line); }
#blockcart-content.fs-sc .cart-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
#blockcart-content.fs-sc .cart-totals .label { color: var(--fs-ink); font-size: 15px; font-weight: 600; }
#blockcart-content.fs-sc .cart-totals .value { float: none; color: var(--fs-ink); font-size: 20px; font-weight: 700; }
#blockcart-content.fs-sc .cart-buttons { margin: 0; padding: 0; }
#blockcart-content.fs-sc .cart-buttons .btn,
#blockcart-content.fs-sc .fs-sc__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 0 0 10px;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
}
#header #blockcart-content.fs-sc .cart-buttons .fs-sc__go,
#header #blockcart-content.fs-sc a.fs-sc__btn--red { border-color: var(--fs-red); background: var(--fs-red); color: #fff; }
#header #blockcart-content.fs-sc .cart-buttons .fs-sc__go:hover,
#header #blockcart-content.fs-sc a.fs-sc__btn--red:hover { border-color: var(--fs-red-dark); background: var(--fs-red-dark); color: #fff; }
#header #blockcart-content.fs-sc .cart-buttons .fs-sc__cart,
#header #blockcart-content.fs-sc a.fs-sc__btn--line { min-height: 46px; border-color: var(--fs-navy); background: #fff; color: var(--fs-navy); }
#header #blockcart-content.fs-sc .cart-buttons .fs-sc__cart:hover,
#header #blockcart-content.fs-sc a.fs-sc__btn--line:hover { background: var(--fs-navy); color: #fff; }
#header #blockcart-content.fs-sc a.fs-sc__more { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--fs-ground); color: var(--fs-ink); font-size: 13.5px; text-decoration: none; }
#header #blockcart-content.fs-sc a.fs-sc__more strong { font-weight: 600; }
#header #blockcart-content.fs-sc a.fs-sc__more svg { flex-shrink: 0; color: var(--fs-red); transition: transform .15s ease; }
#header #blockcart-content.fs-sc a.fs-sc__more:hover { background: var(--fs-navy-tint); color: var(--fs-navy); }
#header #blockcart-content.fs-sc a.fs-sc__more:hover svg { transform: translateX(3px); }
/* carrello vuoto */
#blockcart-content.fs-sc .fs-sc__empty { display: flex; flex-direction: column; align-items: center; padding: 10px 0 0; text-align: center; }
#blockcart-content.fs-sc .fs-sc__empty-ico { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: 6px 0 14px; border-radius: 50%; background: var(--fs-navy-tint); color: var(--fs-navy); }
#blockcart-content.fs-sc .fs-sc__empty-title { display: block; margin: 0 0 6px; padding: 0; color: var(--fs-ink); font-size: 19px; font-weight: 700; line-height: 1.25; }
#blockcart-content.fs-sc .fs-sc__empty-text { max-width: 300px; margin: 0 0 18px; color: var(--fs-muted); font-size: 14px; }
#blockcart-content.fs-sc .fs-sc__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; margin: 10px 0 0; padding: 16px 0 0; border-top: 1px solid var(--fs-line); }
#blockcart-content.fs-sc .fs-sc__cats-title { flex: 0 0 100%; margin: 0 0 2px; color: var(--fs-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
#header #blockcart-content.fs-sc .fs-sc__cats a { padding: 8px 14px; border: 1px solid var(--fs-line-strong); border-radius: 999px; background: #fff; color: var(--fs-ink); font-size: 13.5px; font-weight: 500; text-decoration: none; }
#header #blockcart-content.fs-sc .fs-sc__cats a:hover { border-color: var(--fs-navy); background: var(--fs-navy-tint); color: var(--fs-navy); }
#blockcart-content.fs-sc .fs-sc__trust { display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--fs-ground); color: var(--fs-muted); font-size: 13px; list-style: none; text-align: left; }
#blockcart-content.fs-sc .fs-sc__trust li { position: relative; margin: 0; padding: 0 0 0 24px; }
#blockcart-content.fs-sc .fs-sc__trust li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300704C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
#header #blockcart-content.fs-sc .fs-sc__trust a { color: var(--fs-navy); font-weight: 600; text-decoration: underline; }

/* 24. Ritocchi dopo la prova sulla copia (27/11/2026) -------------------------------- */
@media (min-width: 992px) {
  /* "Assistenza" usava una disposizione diversa da "Accedi": icone e scritte non erano alla stessa altezza */
  #desktop-header a.fs-help-btn,
  #desktop-header #header-user-btn a.header-user-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 50px !important;
    margin: 0 22px 0 0 !important;
    padding: 0 !important;
  }
  #desktop-header a.fs-help-btn > i.fa,
  #desktop-header #header-user-btn a.header-user-btn > i.fa { display: flex !important; width: 24px; height: 24px; margin: 0 !important; padding: 0 !important; }
  #desktop-header a.fs-help-btn .title,
  #desktop-header #header-user-btn a.header-user-btn .title { margin: 0 !important; padding: 0 !important; line-height: 1.2 !important; }
  /* "Carrello" e "(2)" sulla stessa riga */
  #desktop-header #cart-toogle.header-cart-btn .info-wrapper,
  #desktop-header #cart-toogle.header-cart-btn .info-wrapper .title,
  #desktop-header #cart-toogle.header-cart-btn .cart-products-count-btn {
    position: static !important;
    top: auto !important;
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
  }
  #desktop-header #cart-toogle.header-cart-btn .info-wrapper { align-items: center; height: auto; }
  /* a carrello vuoto il numero non si mostra: resta solo "Carrello" */
  #desktop-header #cart-toogle.header-cart-btn .cart-products-count-btn.d-none { display: none !important; }
}
/* carrello a comparsa: importi a destra, elenco che scorre senza schiacciarsi */
#blockcart-content.fs-sc .cart-summary-line .label,
#blockcart-content.fs-sc .cart-totals .label { flex: 1 1 auto; width: auto; float: none; text-align: left; }
#blockcart-content.fs-sc .cart-summary-line .value,
#blockcart-content.fs-sc .cart-totals .value { flex: 0 0 auto; width: auto; margin-left: auto; text-align: right; }
#blockcart-content.fs-sc ul.cart-products { max-height: calc(100vh - 440px); min-height: 150px; overflow-y: auto; }


/* 25. Barra in fondo su due righe (27/11/2026): sopra il mini menu (privacy, cookie...),
       sotto i dati dell'azienda, su una riga sola quando lo schermo e' abbastanza largo. */
.fs-foot__bottom-in { flex-direction: column-reverse; flex-wrap: nowrap; align-items: center; gap: 10px; padding: 18px 0 20px; }
.fs-foot__policies { justify-content: center; gap: 6px 22px; }
.fs-foot__legal { flex: 0 0 auto; width: 100%; text-align: center; }
.fs-foot__legal p { display: inline; }
#footer .fs-foot .fs-foot__bottom .fs-foot__policies a { font-size: 13px; font-weight: 500; }
@media (min-width: 1200px) {
  .fs-foot__legal, .fs-foot__legal p { white-space: nowrap; }
}
@media (max-width: 767.98px) {
  .fs-foot__bottom-in { gap: 12px; padding: 18px 0 24px; }
}


/* 26. Barra blu in alto: piu' margine a sinistra e a destra (27/11/2026).
       Prima le scritte arrivavano quasi al bordo dello schermo. */
#header .fs-top > .container { padding-left: 48px; padding-right: 48px; }
@media (max-width: 1199.98px) {
  #header .fs-top > .container { padding-left: 32px; padding-right: 32px; }
}
/* schermi medi: per restare su una riga sola si mostrano le voci principali */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #header .fs-top__in { flex-wrap: nowrap; }
  #header .fs-top__left, #header .fs-top__right { flex-wrap: nowrap; white-space: nowrap; }
  #header .fs-top__left .fs-top__more:last-child,
  #header .fs-top__right a:not(.fs-top__puglia):not(.fs-top__tel) { display: none !important; }
}
@media (max-width: 767.98px) {
  #header .fs-top > .container { padding-left: 16px; padding-right: 16px; }
}


/* 27. Metodi di pagamento (30/11/2026): pie' di pagina, carrello a comparsa, pagina carrello.
       L'immagine del negozio ha i loghi grigi su fondo nero: su fondo scuro il nero
       sparisce (screen), su fondo chiaro la si rovescia e sparisce il bianco (multiply). */
img.fs-pay { display: block; width: auto; max-width: 100%; height: auto; margin: 0; border: 0; }
img.fs-pay--dark { mix-blend-mode: screen; filter: brightness(1.7); }
img.fs-pay--light { filter: invert(1) contrast(1.15); mix-blend-mode: multiply; }
.fs-foot__pay { border-top: 1px solid #3a3d75; }
#footer .fs-foot a.fs-foot__pay-in { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: center; padding: 18px 0; color: #d5d8ec; text-decoration: none; }
.fs-foot__pay-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #d5d8ec; }
.fs-foot__pay img.fs-pay { width: 389px; }
#blockcart-content.fs-sc .fs-sc__pay { display: flex; flex-direction: column; gap: 8px; align-items: center; margin: 4px 0 12px; padding: 12px 0 0; border-top: 1px solid var(--fs-line); color: var(--fs-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
#blockcart-content.fs-sc .fs-sc__pay img.fs-pay { width: 300px; }
body#cart #wrapper .fs-cart__pay { display: flex; justify-content: center; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--fs-line); }
body#cart #wrapper .fs-cart__pay img.fs-pay { width: 320px; }
@media (max-width: 575.98px) {
  .fs-foot__pay img.fs-pay { width: 320px; }
}
