/*
Theme Name: Flatsome Child
Description: Child theme per le personalizzazioni di Polaris Audio
Author: UX Themes
Template: flatsome
Version: 3.38
*/

/******************************************************************************
 * INDICE RAPIDO
 *
 * 00. Palette colori e variabili
 * 01. Header e casella di ricerca
 * 02. Scheda prodotto: struttura, galleria e riepilogo
 * 03. Titolo e breadcrumb sopra la galleria
 * 04. Archivi prodotto: categorie, marchi e negozio
 * 05. Contenuti e pulsanti delle schede archivio
 * 06. Filtri del catalogo
 * 07. Tab prodotto a fisarmonica su smartphone
 * 08. Barra di acquisto fissa su smartphone
 * 09. Quantità e disponibilità
 * 10. Prodotti correlati
 * 11. FAQ prodotto X4SHOP AI
 * 12. Vetrina prodotti della home page
 * 13. Logo marchio nella scheda prodotto mobile
 * 14. Nav drawer desktop e mobile
 * 15. Footer Polaris Audio — ibrido premium
 * 16. Sottomenu header desktop — avorio editoriale
 * 17. Palette commercio — gerarchia ibrida e navy satinato
 *
 * Per cambiare il colore di tutti i pulsanti principali, modificare soltanto
 * le variabili della sezione 00. I colori funzionali (disponibilità, FAQ e
 * pulsanti secondari) restano volutamente separati.
 ******************************************************************************/

/* ==========================================================================
   00. PALETTE COLORI E VARIABILI
   ========================================================================== */
:root {
  --polaris-cta: #ddb867;
  --polaris-cta-hover: #c99a43;
  --polaris-cta-active: #b98a35;
  --polaris-cta-text: #111827;
  --polaris-cta-focus: rgba(221, 184, 103, 0.32);
  --polaris-cta-shadow: rgba(185, 138, 53, 0.24);
  --polaris-navy: #0d263a;
  --polaris-navy-hover: #173e59;
  --polaris-ivory: #f4efe4;
  --polaris-border-gold: #d8c9ab;
  --polaris-heading-gradient: linear-gradient(118deg, #071827 0%, #103650 58%, #1c4b67 100%);
}

/* ==========================================================================
   01. HEADER E CASELLA DI RICERCA
   ========================================================================== */
.header-search-form-wrapper .searchform > .flex-row { min-height: 50px; overflow: hidden; background: rgb(255, 255, 255); border: 1px solid rgb(229, 231, 235); border-radius: 999px; transition: box-shadow 0.2s, border-color 0.2s; }
.header-search-form-wrapper .searchform > .flex-row:focus-within { border-color: rgb(156, 163, 175); box-shadow: rgba(255, 255, 255, 0.18) 0px 0px 0px 3px; }
#header .header-search-form-wrapper .searchform input.search-field { height: 50px; padding: 0px 18px 0px 24px; border: 0 !important; border-radius: 999px 0px 0px 999px; outline: 0; background: transparent; box-shadow: none !important; -webkit-box-shadow: none !important; font-size: 16px; }
#header .header-search-form-wrapper .searchform input.search-field:focus { border: 0 !important; outline: 0; box-shadow: none !important; -webkit-box-shadow: none !important; }
.header-search-form-wrapper .searchform button.ux-search-submit { width: 50px; min-width: 50px; height: 50px; min-height: 50px; margin: 0px; padding: 0px; border: 0px; border-radius: 0px 999px 999px 0px; background: rgb(255, 255, 255); color: rgb(16, 18, 20); box-shadow: none; }
.header-search-form-wrapper .searchform button.ux-search-submit:hover { background: rgb(243, 244, 246); color: var(--polaris-cta); }
@media (max-width: 849px) {
  .header-search-form-wrapper .searchform > .flex-row { min-height: 44px; }
  .header-search-form-wrapper .searchform input.search-field { height: 44px; padding-right: 12px; padding-left: 16px; font-size: 15px; }
  .header-search-form-wrapper .searchform button.ux-search-submit { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
}
/* ==========================================================================
   02. SCHEDA PRODOTTO: STRUTTURA, GALLERIA E RIEPILOGO
   ========================================================================== */
body.single-product .product-main { padding: 46px 20px 38px; background: rgb(255, 255, 255); }
body.single-product .product-main .content-row { display: grid; grid-template-columns: minmax(0px, 2fr) minmax(350px, 400px); gap: 32px; align-items: start; width: 100%; max-width: 1280px; margin-right: auto; margin-left: auto; }
body.single-product .product-gallery, body.single-product .product-info { width: 100%; max-width: none; padding: 0px; }
body.single-product .product-gallery { min-width: 0px; }
body.single-product .product-gallery .woocommerce-product-gallery__image { background: rgb(255, 255, 255); }
body.single-product .product-gallery .woocommerce-product-gallery__image img { display: block; width: 100%; max-height: 600px; margin: 0px auto; object-fit: contain; }
body.single-product .product-gallery .product-thumbnails a { overflow: hidden; border: 1px solid rgb(215, 220, 226); border-radius: 2px; background: rgb(255, 255, 255); opacity: 1; }
body.single-product .product-gallery .product-thumbnails .is-selected a, body.single-product .product-gallery .product-thumbnails a:hover { border-color: rgb(23, 105, 194); box-shadow: rgb(23, 105, 194) 0px 0px 0px 1px inset; }
body.single-product .product-info { position: relative; padding: 26px 22px; border: 1px solid rgb(215, 220, 226); border-radius: 3px; background: rgb(255, 255, 255); }
body.single-product .product-info .woocommerce-breadcrumb { margin: 0px 0px 18px; color: rgb(105, 113, 123); font-size: 12px; font-weight: 500; line-height: 1.45; text-transform: none; }
body.single-product .product-info .ux-product-brands { position: absolute; top: 22px; right: 22px; width: 112px; height: 62px; margin: 0px; justify-content: flex-end; }
body.single-product .product-info .ux-product-brands img { width: auto; max-width: 112px; height: 62px; object-fit: contain; }
body.single-product .product-info h1.product-title { max-width: calc(100% - 120px); margin: 0px 0px 8px; color: rgb(23, 25, 28); font-size: 30px; font-weight: 750; line-height: 1.12; letter-spacing: -0.02em; }
body.single-product .product-info h1.product-title::after { display: none; }
body.single-product .product-info .price { margin: 18px 0px 4px; color: rgb(23, 105, 194); font-size: 34px; font-weight: 750; line-height: 1.15; }
body.single-product .product-info .product-short-description { margin: 16px 0px; color: rgb(64, 70, 77); font-size: 15px; line-height: 1.55; }
body.single-product .product-info .stock { display: inline-flex; align-items: center; width: auto; min-height: 30px; margin: 6px 0px 18px; padding: 5px 11px; border-radius: 999px; background: rgb(238, 242, 246); color: rgb(60, 70, 81); font-size: 13px; font-weight: 700; }
body.single-product .product-info .stock.in-stock { background: rgb(232, 247, 238); color: rgb(24, 115, 58); }
body.single-product .product-info .stock.available-on-backorder { background: rgb(255, 243, 216); color: rgb(138, 91, 0); }
body.single-product .product-info form.cart { display: flex; gap: 10px; margin: 12px 0px 22px; }
body.single-product .product-info form.cart .quantity { flex: 0 0 74px; }
body.single-product .product-info form.cart .qty { height: 52px; border-color: rgb(207, 213, 220); border-radius: 3px; }
body.single-product .product-info form.cart .single_add_to_cart_button { flex: 1 1 auto; min-height: 52px; margin: 0px; border: 0px; border-radius: 3px; background: var(--polaris-cta); color: var(--polaris-cta-text); font-size: 14px; font-weight: 750; letter-spacing: 0.02em; text-transform: uppercase; }
body.single-product .product-info form.cart .single_add_to_cart_button:hover,
body.single-product .product-info form.cart .single_add_to_cart_button:focus { background: var(--polaris-cta-hover); color: var(--polaris-cta-text); }
body.single-product .product-info .product_meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgb(227, 230, 234); color: rgb(105, 113, 123); font-size: 12px; line-height: 1.65; }
body.single-product .product-info .social-icons { margin-top: 14px; opacity: 0.72; }
body.single-product .product-footer { border-top: 1px solid rgb(226, 229, 233); background: rgb(255, 255, 255); }
body.single-product .product-footer > .container, body.single-product .product-footer .woocommerce-tabs { width: 100%; max-width: 1280px; }
body.single-product .product-tabs { gap: 30px; width: 100%; margin: 0px; border-bottom: 1px solid rgb(220, 225, 230); }
body.single-product .product-tabs > li { margin: 0px; }
body.single-product .product-tabs > li > a { padding: 18px 0px 15px; color: rgb(77, 86, 96); font-size: 14px; font-weight: 700; letter-spacing: 0px; text-transform: none; }
body.single-product .product-tabs > li.active > a { color: rgb(23, 105, 194); }
body.single-product #tab-description { max-width: 980px; margin: 0px auto; padding: 44px 0px 70px; color: rgb(51, 57, 65); font-size: 17px; line-height: 1.72; }
body.single-product #tab-description h2 { margin-top: 48px; color: rgb(24, 27, 31); font-size: 30px; line-height: 1.2; }
body.single-product #tab-description h3 { margin-top: 36px; color: rgb(24, 27, 31); font-size: 23px; line-height: 1.25; }
body.single-product #tab-description figure, body.single-product #tab-description .x4pa-editorial-media { margin-top: 34px; margin-bottom: 34px; }
body.single-product #tab-description img { border-radius: 3px; }
body.single-product #tab-description figcaption { margin-top: 9px; color: rgb(107, 115, 124); font-size: 13px; line-height: 1.45; }
body.single-product #tab-description table { overflow: hidden; width: 100%; border: 1px solid rgb(223, 227, 232); border-radius: 3px; border-collapse: separate; border-spacing: 0px; font-size: 14px; }
body.single-product #tab-description tr:nth-child(2n) { background: rgb(246, 247, 249); }
body.single-product #tab-description th, body.single-product #tab-description td { padding: 12px 14px; border-width: 0px 0px 1px; border-style: none none solid; border-color: currentcolor currentcolor rgb(226, 229, 233); border-image: none; text-align: left; }
body.single-product #tab-description th { width: 38%; color: rgb(34, 39, 45); font-weight: 700; }
@media (max-width: 849px) {
  body.single-product .product-main { padding: 22px 15px 28px; }
  body.single-product .product-main .content-row { display: block; max-width: 100%; }
  body.single-product .product-gallery { margin-bottom: 24px; }
  body.single-product .product-info { padding: 22px 18px; }
  body.single-product .product-info .woocommerce-breadcrumb { padding-right: 0px; }
  body.single-product .product-info .ux-product-brands { top: 18px; right: 18px; width: 82px; height: 48px; }
  body.single-product .product-info .ux-product-brands img { max-width: 82px; height: 48px; }
  body.single-product .product-info h1.product-title { max-width: calc(100% - 92px); font-size: 26px; }
  body.single-product .product-info .price { font-size: 30px; }
  body.single-product .product-tabs { flex-wrap: nowrap; gap: 24px; overflow-x: auto; padding: 0px 15px; scrollbar-width: none; }
  body.single-product .product-tabs::-webkit-scrollbar { display: none; }
  body.single-product .product-tabs > li { flex: 0 0 auto; }
  body.single-product #tab-description { padding: 30px 15px 50px; font-size: 16px; line-height: 1.65; }
  body.single-product #tab-description h2 { margin-top: 38px; font-size: 26px; }
  body.single-product #tab-description h3 { font-size: 21px; }
  body.single-product #tab-description table { display: block; overflow-x: auto; white-space: normal; }
}
body.single-product .product-info .ux-product-brands a { padding: 0px; border: 0px; background: transparent; box-shadow: none; }
body.single-product .product-top-heading { margin-top: 30px; margin-bottom: 10px; }
body.single-product .product-top-heading .woocommerce-breadcrumb { margin-bottom: 8px; color: rgb(105, 113, 123); font-size: 13px; text-transform: none; }
body.single-product .product-top-heading .product-title { margin-bottom: 0px; font-size: 32px; line-height: 1.15; }
@media (max-width: 849px) {
  body.single-product .product-top-heading { margin-top: 20px; }
  body.single-product .product-top-heading .product-title { font-size: 26px; }
}

/* ==========================================================================
   03. TITOLO E BREADCRUMB SOPRA LA GALLERIA
   ========================================================================== */
body.single-product .product-main {
  padding-top: 24px;
}
body.single-product .product-main .content-row {
  column-gap: 32px;
  row-gap: 14px;
}
body.single-product .polaris-product-heading {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  margin: 0;
  padding: 0;
}
body.single-product .polaris-product-heading .woocommerce-breadcrumb {
  margin: 0 0 8px;
  color: #69717b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
}
body.single-product .polaris-product-heading .product-title {
  margin: 0;
  color: #17191c;
  font-size: 32px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
body.single-product .product-gallery {
  grid-column: 1;
  grid-row: 1;
}
body.single-product .product-info {
  grid-column: 2;
  grid-row: 1;
}
body.single-product .product-info > .woocommerce-breadcrumb {
  display: none;
}
@media (max-width: 849px) {
  body.single-product .product-main {
    padding-top: 18px;
  }
  body.single-product .product-main .content-row {
    display: block;
  }
  body.single-product .polaris-product-heading {
    margin-bottom: 14px;
  }
  body.single-product .polaris-product-heading .product-title {
    font-size: 26px;
  }
}


/* Immagini prodotto nitide e senza deformazioni */
body.single-product .product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: 600px;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 849px) {
  body.single-product .product-gallery .woocommerce-product-gallery__image img {
    height: min(90vw, 420px);
  }
}


/* Prevale sulle vecchie regole del Personalizzatore */
body.single-product .product-gallery .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: 600px !important;
  max-height: none !important;
  object-fit: contain !important;
}

@media (max-width: 849px) {
  body.single-product .product-gallery .woocommerce-product-gallery__image img {
    height: min(90vw, 420px) !important;
  }
}


/* ==========================================================================
   04. ARCHIVI PRODOTTO: CATEGORIE, MARCHI E NEGOZIO
   ========================================================================== */

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #main {
  background: #f5f6f8;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title.category-page-title {
  height: auto;
  padding: 24px 20px 20px;
  border-bottom: 3px solid var(--polaris-cta);
  background: linear-gradient(135deg, #071827 0%, #0d263a 100%);
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title .page-title-inner {
  align-items: flex-end;
  min-height: 0;
  padding: 0;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title h1.shop-page-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title .woocommerce-breadcrumb,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title .woocommerce-breadcrumb a {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title .woocommerce-breadcrumb .divider {
  color: rgba(255, 255, 255, .58);
  opacity: 1;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title .woocommerce-result-count {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title .woocommerce-ordering select {
  min-height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid #cfd5dc;
  border-radius: 3px;
  background-color: #fff;
  box-shadow: none;
  font-size: 14px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-row {
  max-width: 1280px;
  padding-top: 30px;
  padding-bottom: 56px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-row > .large-3 {
  flex-basis: 260px;
  max-width: 260px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-row > .large-9 {
  flex-basis: calc(100% - 260px);
  max-width: calc(100% - 260px);
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar {
  overflow: hidden;
  border: 1px solid #d7dce2;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(25 33 45 / 6%);
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget {
  margin: 0;
  padding: 0 18px 20px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget-title.shop-sidebar {
  display: block;
  margin: 0 -18px 18px;
  padding: 13px 18px;
  border-bottom: 2px solid var(--polaris-cta);
  background: var(--polaris-heading-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .is-divider {
  display: none;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .product-categories > li > a,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .product-categories .children a {
  color: #414a55;
  font-size: 14px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .product-categories .current-cat > a {
  color: #8a642b;
  font-weight: 750;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .product-categories .children {
  border-left-color: #dfe4ea;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-container .term-description {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #fff;
  color: #2f3740;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 2px 8px rgb(25 33 45 / 5%);
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-container .term-description p:last-child {
  margin-bottom: 0;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products.row {
  display: block;
  margin: 0;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products.row > .product {
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 0;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product .col-inner {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 9px rgb(25 33 45 / 6%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product .col-inner:hover {
  border-color: #c6d3e3;
  box-shadow: 0 7px 18px rgb(25 33 45 / 11%);
  transform: translateY(-1px);
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product-small.box {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: stretch;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image {
  width: 270px;
  min-height: 220px;
  border-right: 1px solid #e4e7eb;
  background: #fff;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image .image-fade_in_back,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image a {
  height: 100%;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-text-products {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto !important;
  min-height: 220px;
  padding: 22px 24px !important;
  text-align: left;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product-cat {
  margin-bottom: 7px;
  color: #8a642b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .035em;
  text-transform: uppercase;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product-title {
  height: auto !important;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product-title a {
  color: #242a31;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .price-wrapper {
  height: auto !important;
  margin-top: 4px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .price {
  color: #172630;
  font-size: 22px;
  font-weight: 750;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-cta {
  align-self: flex-start;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px solid #c7cdd4;
  border-radius: 3px;
  background: #fff;
  color: #454d57;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-cta:hover {
  border-color: #8f99a5;
  background: #f1f3f5;
  color: #20262d;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .out-of-stock-label {
  top: 12px;
  right: auto;
  bottom: auto;
  left: 12px;
  width: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: #8d3434;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

@media (max-width: 849px) {
  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title.category-page-title {
    padding: 18px 15px 16px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-page-title h1.shop-page-title {
    font-size: 28px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-row {
    display: block;
    padding: 18px 15px 40px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-row > .large-9 {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .shop-container .term-description {
    padding: 15px 16px;
    font-size: 18px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product-small.box {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image {
    width: 120px;
    min-height: 170px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image img {
    height: 170px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-text-products {
    min-height: 170px;
    padding: 15px 14px !important;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product-title {
    margin-bottom: 7px;
    font-size: 16px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .price {
    font-size: 18px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-cta {
    margin-top: 12px;
    padding: 7px 10px;
    font-size: 10px;
  }
}


/* ==========================================================================
   05. CONTENUTI E PULSANTI DELLE SCHEDE ARCHIVIO
   ========================================================================== */
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image {
  display: flex;
  align-items: stretch;
  min-height: 270px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image .image-fade_in_back,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image img:not(.back-image) {
  width: 100%;
  height: 100%;
  max-height: 300px;
  padding: 18px;
  object-fit: contain;
  object-position: center;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image img.back-image {
  display: none !important;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-text-products {
  min-height: 270px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 12px;
  color: #5f6873;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .polaris-category-product-cta,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 9px 16px;
  border-radius: 3px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .015em;
  text-transform: uppercase;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .polaris-category-product-cta {
  border: 1px solid #c7cdd4;
  background: #fff;
  color: #454d57;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .polaris-category-product-cta:hover,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .polaris-category-product-cta:focus {
  border-color: #8f99a5;
  background: #f1f3f5;
  color: #20262d;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .button {
  border: 1px solid var(--polaris-cta);
  background: var(--polaris-cta);
  color: var(--polaris-cta-text);
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .button:hover,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .button:focus {
  border-color: var(--polaris-cta-hover);
  background: var(--polaris-cta-hover);
  color: var(--polaris-cta-text);
}

@media (max-width: 849px) {
  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .product-small.box {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image {
    width: 118px;
    min-height: 230px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-image img:not(.back-image) {
    height: 100%;
    max-height: 230px;
    padding: 8px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .products .box-text-products {
    min-height: 230px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-excerpt {
    margin: 6px 0 9px;
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions {
    display: grid;
    gap: 6px;
    margin-top: 11px;
  }

  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .polaris-category-product-cta,
  :is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .polaris-category-product-actions .button {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 10px;
  }
}


/* ==========================================================================
   06. FILTRI DEL CATALOGO
   ========================================================================== */
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-title .category-filtering .filter-button,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-title .category-filtering .filter-button strong,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-title .category-filtering .filter-button i {
  color: #fff !important;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-title .category-filtering .filter-button:hover,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) .category-page-title .category-filtering .filter-button:focus {
  color: var(--polaris-cta) !important;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar {
  display: flex;
  flex-direction: column;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_layered_nav_filters {
  order: 1;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_brand_nav {
  order: 2;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_price_filter {
  order: 3;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .woocommerce-widget-layered-nav {
  order: 4;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_product_categories {
  order: 10;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_layered_nav_filters ul,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .woocommerce-widget-layered-nav-list,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_brand_nav ul {
  margin-bottom: 0;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_layered_nav_filters li,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .woocommerce-widget-layered-nav-list li,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_brand_nav li {
  padding: 7px 0;
  border-bottom: 1px solid #edf0f3;
  font-size: 14px;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_layered_nav_filters li:last-child,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .woocommerce-widget-layered-nav-list li:last-child,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .widget_brand_nav li:last-child {
  border-bottom: 0;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .price_slider_wrapper .button {
  margin: 12px 0 0;
  border: 1px solid var(--polaris-cta);
  border-radius: 3px;
  background: var(--polaris-cta);
  color: var(--polaris-cta-text);
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .price_slider_wrapper .button:hover,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product) #shop-sidebar .price_slider_wrapper .button:focus {
  border-color: var(--polaris-cta-hover);
  background: var(--polaris-cta-hover);
  color: var(--polaris-cta-text);
}


/* Nel singolo archivio marchio il filtro Marchi sarebbe ridondante. */
body.tax-product_brand #shop-sidebar .widget_brand_nav {
  display: none;
}

/* ==========================================================================
   07. TAB PRODOTTO A FISARMONICA SU SMARTPHONE
   ========================================================================== */
body.single-product .polaris-mobile-tab-toggle {
  display: none;
}

@media (max-width: 849px) {
  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active {
    padding-top: 16px;
    padding-bottom: 34px;
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .product-tabs {
    display: none !important;
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .polaris-mobile-tab-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 54px;
    margin: 10px 0 0;
    padding: 14px 16px;
    border: 1px solid rgb(215, 220, 226);
    border-radius: 4px;
    background: rgb(255, 255, 255);
    color: rgb(37, 43, 50);
    box-shadow: none;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    cursor: pointer;
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .polaris-mobile-tab-toggle::after {
    content: "+";
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(221, 184, 103, 0.16);
    color: var(--polaris-cta);
    font-size: 22px;
    font-weight: 500;
    line-height: 27px;
    text-align: center;
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .polaris-mobile-tab-toggle[aria-expanded="true"] {
    border-color: var(--polaris-cta);
    background: rgba(221, 184, 103, 0.10);
    color: var(--polaris-cta-active);
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .polaris-mobile-tab-toggle[aria-expanded="true"]::after {
    content: "−";
    background: var(--polaris-cta);
    color: var(--polaris-cta-text);
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .polaris-mobile-tab-toggle:hover,
  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .polaris-mobile-tab-toggle:focus-visible {
    border-color: var(--polaris-cta);
    color: var(--polaris-cta-active);
    outline: none;
    box-shadow: 0 0 0 2px var(--polaris-cta-focus);
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .woocommerce-Tabs-panel,
  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active #tab-description {
    box-sizing: border-box;
    overflow: visible;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px 16px 30px;
    border: 1px solid rgb(215, 220, 226);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    background: rgb(255, 255, 255);
    color: rgb(51, 57, 65);
    font-size: 16px;
    line-height: 1.65;
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .woocommerce-Tabs-panel[hidden] {
    display: none !important;
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .polaris-mobile-tab-toggle[aria-expanded="true"] + .woocommerce-Tabs-panel {
    display: block !important;
  }

  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active .woocommerce-Tabs-panel > :first-child,
  body.single-product .woocommerce-tabs.polaris-tabs-accordion-active #tab-description > :first-child {
    margin-top: 0;
  }
}

/* ==========================================================================
   08. BARRA DI ACQUISTO FISSA SU SMARTPHONE
   ========================================================================== */
@media (max-width: 849px) {
  body.single-product .sticky-add-to-cart.sticky-add-to-cart--active {
    bottom: 0;
    border-top: 1px solid rgb(210, 217, 225);
    background: rgb(255, 255, 255);
    box-shadow: 0 -6px 22px rgba(20, 35, 52, 0.18);
    opacity: 1;
    z-index: 999;
  }

  body.single-product .sticky-add-to-cart.sticky-add-to-cart--active .sticky-add-to-cart__product {
    box-sizing: border-box;
    display: grid;
    grid-template-areas:
      "image title cart"
      "image price cart"
      "image stock cart";
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 9px;
    row-gap: 2px;
    width: 100%;
    max-width: none;
    min-height: 82px;
    margin: 0;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgb(255, 255, 255);
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart-img {
    grid-area: image;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 3px;
    border: 1px solid rgb(225, 229, 234);
    border-radius: 4px;
    background: rgb(255, 255, 255);
    object-fit: contain;
  }

  body.single-product .sticky-add-to-cart .product-title-small {
    display: block !important;
    grid-area: title;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    color: rgb(36, 42, 49);
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.single-product .sticky-add-to-cart .stock {
    grid-area: stock;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    color: rgb(24, 115, 58);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.single-product .sticky-add-to-cart form.cart {
    display: block;
    grid-area: cart;
    margin: 0;
    padding: 0;
  }

  body.single-product .sticky-add-to-cart form.cart .single_add_to_cart_button {
    display: block;
    width: auto;
    min-width: 154px;
    min-height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--polaris-cta);
    border-radius: 4px;
    background: var(--polaris-cta);
    color: var(--polaris-cta-text);
    box-shadow: 0 3px 9px var(--polaris-cta-shadow);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
  }

  body.single-product .sticky-add-to-cart form.cart .single_add_to_cart_button:hover,
  body.single-product .sticky-add-to-cart form.cart .single_add_to_cart_button:focus-visible {
    border-color: var(--polaris-cta-hover);
    background: var(--polaris-cta-hover);
    color: var(--polaris-cta-text);
    outline: none;
    box-shadow: 0 0 0 3px var(--polaris-cta-focus), 0 3px 9px var(--polaris-cta-shadow);
  }
}

@media (max-width: 360px) {
  body.single-product .sticky-add-to-cart.sticky-add-to-cart--active .sticky-add-to-cart__product {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    column-gap: 7px;
    padding-right: 9px;
    padding-left: 9px;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart-img {
    width: 40px;
    height: 40px;
  }

  body.single-product .sticky-add-to-cart .product-title-small {
    font-size: 12px;
  }

  body.single-product .sticky-add-to-cart form.cart .single_add_to_cart_button {
    min-width: 142px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
  }
}


/* ==========================================================================
   09. QUANTITÀ E DISPONIBILITÀ
   ========================================================================== */

/* Quantità sempre implicita a 1 nelle schede prodotto. */
body.single-product form.cart .quantity,
body.single-product form.cart .ux-quantity,
body.single-product form.cart input.qty {
  display: none !important;
}

/* La disponibilità resta sempre leggibile nel riepilogo prodotto. */
body.single-product .product-info .woocommerce-variation-availability,
body.single-product .product-info .stock {
  visibility: visible !important;
  opacity: 1 !important;
}

body.single-product .product-info .stock {
  display: inline-flex !important;
}

@media (max-width: 849px) {
  body.single-product .product-info .woocommerce-variation-availability {
    display: block !important;
    min-height: 30px;
    margin: 8px 0 14px;
  }

  body.single-product .sticky-add-to-cart .woocommerce-Price-amount {
    grid-area: price;
    overflow: hidden;
    min-width: 0;
    color: rgb(36, 42, 49);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.single-product .sticky-add-to-cart .polaris-sticky-stock {
    display: block !important;
    grid-area: stock;
    overflow: hidden;
    min-width: 0;
    margin: 0;
    color: rgb(24, 115, 58);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart-select-options-button {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-area: cart;
    width: auto;
    min-width: 154px;
    min-height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--polaris-cta);
    border-radius: 4px;
    background: var(--polaris-cta);
    color: var(--polaris-cta-text);
    box-shadow: 0 3px 9px var(--polaris-cta-shadow);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
  }

  body.single-product .sticky-add-to-cart .sticky-add-to-cart-select-options-button:hover,
  body.single-product .sticky-add-to-cart .sticky-add-to-cart-select-options-button:focus-visible {
    border-color: var(--polaris-cta-hover);
    background: var(--polaris-cta-hover);
    color: var(--polaris-cta-text);
    outline: none;
    box-shadow: 0 0 0 3px var(--polaris-cta-focus), 0 3px 9px var(--polaris-cta-shadow);
  }
}

@media (max-width: 360px) {
  body.single-product .sticky-add-to-cart .sticky-add-to-cart-select-options-button {
    min-width: 142px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
  }
}


/* ==========================================================================
   10. PRODOTTI CORRELATI
   ========================================================================== */
body.single-product .related-products-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 42px auto 0;
  padding: 48px 24px 68px;
  border-top: 1px solid rgb(224, 228, 233);
  background: rgb(255, 255, 255);
}
body.single-product .related-products-wrapper .product-section-title-related {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 26px;
  padding: 0;
  color: rgb(24, 27, 31);
  font-size: 27px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
}
body.single-product .related-products-wrapper .product-section-title-related::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: rgb(224, 228, 233);
}
body.single-product .related-products-wrapper .row-slider {
  margin-right: -9px;
  margin-left: -9px;
}
body.single-product .related-products-wrapper .product-small {
  padding: 9px;
}
body.single-product .related-products-wrapper .product-small > .col-inner {
  overflow: hidden;
  height: 100% !important;
  border: 1px solid rgb(221, 226, 232) !important;
  border-radius: 6px;
  background: rgb(255, 255, 255);
  box-shadow: 0 2px 8px rgba(27, 36, 47, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.single-product .related-products-wrapper .product-small > .col-inner:hover {
  border-color: rgb(190, 199, 209);
  box-shadow: 0 10px 24px rgba(27, 36, 47, 0.12);
  transform: translateY(-3px);
}
body.single-product .related-products-wrapper .product-small.box,
body.single-product .related-products-wrapper .product-small .product-small.box {
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 100%;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.single-product .related-products-wrapper .box-image {
  height: 236px;
  border-bottom: 1px solid rgb(234, 237, 241);
  background: rgb(248, 249, 251);
}
body.single-product .related-products-wrapper .box-image .image-fade_in_back,
body.single-product .related-products-wrapper .box-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
body.single-product .related-products-wrapper .box-image a {
  padding: 20px;
}
body.single-product .related-products-wrapper .box-image img:not(.back-image) {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.single-product .related-products-wrapper .box-image img.back-image {
  object-fit: contain;
}
body.single-product .related-products-wrapper .box-text-products {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto !important;
  padding: 20px;
  text-align: left;
}
body.single-product .related-products-wrapper .title-wrapper,
body.single-product .related-products-wrapper .price-wrapper {
  height: auto !important;
}
body.single-product .related-products-wrapper .product-cat {
  margin-bottom: 7px;
  overflow: hidden;
  color: rgb(23, 105, 194);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.single-product .related-products-wrapper .product-title {
  min-height: 46px;
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
}
body.single-product .related-products-wrapper .product-title a {
  color: rgb(28, 32, 37);
}
body.single-product .related-products-wrapper .polaris-category-product-excerpt {
  display: -webkit-box;
  min-height: 62px;
  margin: 11px 0 14px;
  overflow: hidden;
  color: rgb(88, 96, 106);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.single-product .related-products-wrapper .price-wrapper {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
body.single-product .related-products-wrapper .price {
  margin: auto 0 7px;
  color: rgb(26, 31, 37);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
body.single-product .related-products-wrapper .polaris-related-product-availability {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 25px;
  margin: 0 0 14px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}
body.single-product .related-products-wrapper .polaris-related-product-availability.is-in-stock {
  background: rgb(232, 247, 238);
  color: rgb(24, 115, 58);
}
body.single-product .related-products-wrapper .polaris-related-product-availability.is-on-backorder {
  background: rgb(255, 243, 216);
  color: rgb(138, 91, 0);
}
body.single-product .related-products-wrapper .polaris-related-product-availability.is-out-of-stock {
  background: rgb(241, 243, 246);
  color: rgb(93, 101, 111);
}
body.single-product .related-products-wrapper .polaris-category-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: auto;
}
body.single-product .related-products-wrapper .polaris-category-product-actions .polaris-category-product-cta,
body.single-product .related-products-wrapper .polaris-category-product-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}
body.single-product .related-products-wrapper .polaris-category-product-actions .polaris-category-product-cta {
  border: 1px solid rgb(198, 204, 212);
  background: rgb(255, 255, 255);
  color: rgb(54, 61, 69);
}
body.single-product .related-products-wrapper .polaris-category-product-actions .polaris-category-product-cta:hover,
body.single-product .related-products-wrapper .polaris-category-product-actions .polaris-category-product-cta:focus {
  border-color: rgb(143, 153, 165);
  background: rgb(241, 243, 245);
  color: rgb(32, 38, 45);
}
body.single-product .related-products-wrapper .polaris-category-product-actions .button {
  border: 1px solid var(--polaris-cta);
  background: var(--polaris-cta);
  color: var(--polaris-cta-text);
}
body.single-product .related-products-wrapper .polaris-category-product-actions .button:hover,
body.single-product .related-products-wrapper .polaris-category-product-actions .button:focus {
  border-color: var(--polaris-cta-hover);
  background: var(--polaris-cta-hover);
  color: var(--polaris-cta-text);
}
body.single-product .related-products-wrapper .out-of-stock-label {
  top: 12px;
  right: auto;
  bottom: auto;
  left: 12px;
  width: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(48, 55, 64, 0.9);
  color: rgb(255, 255, 255);
  font-size: 11px;
  font-weight: 750;
}
body.single-product .related-products-wrapper .flickity-prev-next-button {
  border: 1px solid rgb(215, 221, 228);
  background: rgb(255, 255, 255);
  color: rgb(38, 45, 53);
  box-shadow: 0 3px 12px rgba(27, 36, 47, 0.12);
}
@media (max-width: 849px) {
  body.single-product .related-products-wrapper {
    margin-top: 30px;
    padding: 38px 15px 52px;
  }
  body.single-product .related-products-wrapper .product-section-title-related {
    margin-bottom: 20px;
    font-size: 23px;
  }
  body.single-product .related-products-wrapper .box-image {
    height: 210px;
  }
  body.single-product .related-products-wrapper .box-text-products {
    padding: 17px;
  }
}
@media (max-width: 549px) {
  body.single-product .related-products-wrapper .row-slider {
    margin-right: -6px;
    margin-left: -6px;
  }
  body.single-product .related-products-wrapper .row-slider .product-small {
    width: 84% !important;
    max-width: 84% !important;
    padding: 6px;
    flex-basis: 84% !important;
  }
  body.single-product .related-products-wrapper .box-image {
    height: 220px;
  }
  body.single-product .related-products-wrapper .product-title {
    min-height: 0;
    font-size: 18px;
  }
  body.single-product .related-products-wrapper .polaris-category-product-excerpt {
    min-height: 0;
  }
  body.single-product .related-products-wrapper .flickity-prev-next-button {
    display: none;
  }
}

/* ===========================================11. FAQ PRODOTTO X4SHOP AI
   Una sequenza leggera di pannelli: nessun riquadro esterno.
   ========================================================================== */
body.single-product #tab-description .x4pa-product-faq.polaris-faq-accordion {
  max-width: 900px;
  margin: 42px auto 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.single-product #tab-description .x4pa-product-faq.polaris-faq-accordion > h2 {
  margin: 0 0 20px;
  color: #071827;
}

body.single-product .x4pa-product-faq .polaris-faq-item {
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 67, 0.42);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(7, 24, 39, 0.05);
}

body.single-product .x4pa-product-faq .polaris-faq-toggle {
  position: relative;
  display: block;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 15px 62px 15px 20px;
  border: 0;
  background: linear-gradient(90deg, #fff 0%, #f8f6f0 100%);
  color: #071827;
  box-shadow: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  transition: background-color .18s ease, color .18s ease;
}

body.single-product .x4pa-product-faq .polaris-faq-toggle::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid #ddb867;
  border-radius: 50%;
  place-items: center;
  background: #ddb867;
  color: #071827;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
}

body.single-product .x4pa-product-faq .polaris-faq-toggle:hover,
body.single-product .x4pa-product-faq .polaris-faq-toggle[aria-expanded="true"] {
  background: #071827;
  color: #fff;
}

body.single-product .x4pa-product-faq .polaris-faq-toggle[aria-expanded="true"]::after {
  content: "−";
  border-color: #ddb867;
  background: #ddb867;
  color: #071827;
}

body.single-product .x4pa-product-faq .polaris-faq-toggle:focus-visible {
  outline: 3px solid rgba(221, 184, 103, 0.34);
  outline-offset: -3px;
}

body.single-product .x4pa-product-faq .polaris-faq-answer {
  padding: 18px 20px 20px;
  border-top: 1px solid #e5e1d8;
  background: #fff;
  color: #17212b;
  animation: polaris-faq-reveal .18s ease-out;
}

body.single-product .x4pa-product-faq .polaris-faq-answer > :last-child {
  margin-bottom: 0;
}

@keyframes polaris-faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 549px) {
  body.single-product #tab-description .x4pa-product-faq.polaris-faq-accordion {
    margin-top: 28px;
  }

  body.single-product .x4pa-product-faq .polaris-faq-toggle {
    min-height: 56px;
    padding: 14px 54px 14px 15px;
    font-size: 15px;
  }

  body.single-product .x4pa-product-faq .polaris-faq-toggle::after {
    right: 13px;
    width: 29px;
    height: 29px;
    font-size: 21px;
  }

  body.single-product .x4pa-product-faq .polaris-faq-answer {
    padding: 15px;
  }
}

/* Immagini complete nei prodotti correlati */
body.single-product .related-products-wrapper .image-fade_in_back .back-image {
  display: none !important;
}

body.single-product .related-products-wrapper .image-fade_in_back > a:hover > img:not(.back-image) {
  opacity: 1 !important;
}

/* ==========================================================================
   ===============================
   12. VETRINA PRODOTTI DELLA HOME PAGE
   ========================================================================== */
body.home .polaris-home-showroom {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(18, 120, 199, 0.09), transparent 30%),
    linear-gradient(145deg, rgb(247, 250, 252) 0%, rgb(255, 255, 255) 58%, rgb(239, 247, 249) 100%);
}

body.home .polaris-home-showroom .section-title-container {
  margin-bottom: 30px;
}

body.home .polaris-home-showroom .section-title {
  color: rgb(18, 31, 42);
  font-size: clamp(27px, 3vw, 40px);
  letter-spacing: -0.025em;
  text-transform: none;
}

body.home .polaris-home-showroom .section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(12, 117, 207), rgb(15, 105, 109));
}

body.home .polaris-home-showroom .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(430px, auto);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto !important;
}

body.home .polaris-home-showroom .row > .col {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
  flex-basis: auto !important;
}

body.home .polaris-home-showroom .row > .col:first-child {
  grid-row: span 2;
  grid-column: span 2;
}

body.home .polaris-home-showroom .col-inner,
body.home .polaris-home-showroom .product-small {
  height: 100%;
}

body.home .polaris-home-showroom .product-small {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgb(226, 232, 237);
  border-radius: 16px;
  background: rgb(255, 255, 255);
  box-shadow: 0 12px 34px rgba(27, 48, 64, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.home .polaris-home-showroom .product-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(27, 48, 64, 0.15);
}

body.home .polaris-home-showroom .row > .col:first-child .product-small::before {
  content: "In evidenza";
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgb(15, 105, 109);
  color: rgb(255, 255, 255);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(15, 105, 109, 0.25);
}

body.home .polaris-home-showroom .box-image {
  height: 220px;
  min-height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgb(231, 236, 240);
  background:
    radial-gradient(circle at 50% 46%, rgb(255, 255, 255) 0%, rgb(247, 249, 251) 58%, rgb(237, 242, 246) 100%);
}

body.home .polaris-home-showroom .row > .col:first-child .box-image {
  height: 600px;
  min-height: 600px;
}

body.home .polaris-home-showroom .box-image > div,
body.home .polaris-home-showroom .box-image a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

body.home .polaris-home-showroom .box-image a {
  padding: 24px;
}

body.home .polaris-home-showroom .row > .col:first-child .box-image a {
  padding: 48px;
}

body.home .polaris-home-showroom .box-image img:not(.back-image) {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  transform: scale(1);
  transition: transform 0.35s ease;
}

body.home .polaris-home-showroom .box-image .back-image {
  display: none !important;
}

body.home .polaris-home-showroom .product-small:hover .box-image img:not(.back-image) {
  transform: scale(1.035);
}

body.home .polaris-home-showroom .box-text {
  display: flex;
  height: auto !important;
  min-height: 0;
  padding: 18px 18px 20px;
  flex: 1 1 auto;
  flex-direction: column;
  text-align: left;
}

body.home .polaris-home-showroom .row > .col:first-child .box-text {
  padding: 27px 30px 30px;
}

body.home .polaris-home-showroom .title-wrapper,
body.home .polaris-home-showroom .price-wrapper,
body.home .polaris-home-showroom .product-title {
  height: auto !important;
}

body.home .polaris-home-showroom .polaris-home-product-brand {
  margin-bottom: 6px;
  color: rgb(12, 117, 207);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.home .polaris-home-showroom .product-title {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

body.home .polaris-home-showroom .row > .col:first-child .product-title {
  font-size: 27px;
}

body.home .polaris-home-showroom .product-title a {
  color: rgb(21, 31, 39);
}

body.home .polaris-home-showroom .price-wrapper {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body.home .polaris-home-showroom .price {
  margin-bottom: 9px;
  color: rgb(14, 24, 32);
  font-size: 19px;
  font-weight: 800;
}

body.home .polaris-home-showroom .row > .col:first-child .price {
  font-size: 26px;
}

body.home .polaris-home-showroom .polaris-home-product-availability {
  position: relative;
  margin: 0 0 15px;
  padding-left: 14px;
  color: rgb(46, 111, 69);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

body.home .polaris-home-showroom .polaris-home-product-availability::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(42, 161, 82);
  box-shadow: 0 0 0 3px rgba(42, 161, 82, 0.13);
}

body.home .polaris-home-showroom .polaris-home-product-availability.is-unavailable {
  color: rgb(119, 126, 132);
}

body.home .polaris-home-showroom .polaris-home-product-availability.is-unavailable::before {
  background: rgb(136, 143, 149);
  box-shadow: 0 0 0 3px rgba(136, 143, 149, 0.13);
}

body.home .polaris-home-showroom .polaris-home-product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

body.home .polaris-home-showroom .polaris-home-product-actions a {
  display: inline-flex;
  min-height: 38px;
  margin: 0 !important;
  padding: 9px 11px;
  border-radius: 7px;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
}

body.home .polaris-home-showroom .polaris-home-product-details {
  border: 1px solid rgb(189, 198, 205);
  background: rgb(255, 255, 255);
  color: rgb(60, 70, 77);
}

body.home .polaris-home-showroom .polaris-home-product-details:hover {
  border-color: rgb(95, 108, 118);
  background: rgb(244, 246, 248);
  color: rgb(29, 38, 44);
}

body.home .polaris-home-showroom .polaris-home-product-actions .add_to_cart_button {
  border: 1px solid var(--polaris-cta);
  background: var(--polaris-cta);
  color: var(--polaris-cta-text);
  box-shadow: none;
}

body.home .polaris-home-showroom .polaris-home-product-actions .add_to_cart_button:hover {
  border-color: var(--polaris-cta-hover);
  background: var(--polaris-cta-hover);
  color: var(--polaris-cta-text);
}

body.home .polaris-home-showroom .row > .col:first-child .polaris-home-product-actions a {
  min-height: 46px;
  padding: 12px 17px;
  font-size: 13px;
}

body.home .polaris-home-blog {
  background: rgb(255, 255, 255);
}

@media (max-width: 1099px) and (min-width: 850px) {
  body.home .polaris-home-showroom .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .polaris-home-showroom .row > .col:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  body.home .polaris-home-showroom .row > .col:first-child .box-image {
    height: 480px;
    min-height: 480px;
  }
}

@media (max-width: 849px) {
  body.home .polaris-home-showroom .section-title-container {
    margin-bottom: 22px;
  }

  body.home .polaris-home-showroom .row {
    display: flex !important;
    width: auto;
    max-width: none;
    margin-right: -20px !important;
    padding: 0 20px 16px 0;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.home .polaris-home-showroom .row::-webkit-scrollbar {
    display: none;
  }

  body.home .polaris-home-showroom .row > .col,
  body.home .polaris-home-showroom .row > .col:first-child {
    width: 82% !important;
    max-width: 82% !important;
    min-width: 82%;
    padding: 0 !important;
    flex: 0 0 82% !important;
    scroll-snap-align: start;
  }

  body.home .polaris-home-showroom .box-image,
  body.home .polaris-home-showroom .row > .col:first-child .box-image {
    height: 310px;
    min-height: 310px;
  }

  body.home .polaris-home-showroom .row > .col:first-child .box-image a,
  body.home .polaris-home-showroom .box-image a {
    padding: 28px;
  }

  body.home .polaris-home-showroom .box-text,
  body.home .polaris-home-showroom .row > .col:first-child .box-text {
    padding: 20px;
  }

  body.home .polaris-home-showroom .row > .col:first-child .product-title,
  body.home .polaris-home-showroom .product-title {
    font-size: 20px;
  }

  body.home .polaris-home-showroom .row > .col:first-child .price,
  body.home .polaris-home-showroom .price {
    font-size: 21px;
  }

  body.home .polaris-home-showroom .row > .col:first-child .polaris-home-product-actions a,
  body.home .polaris-home-showroom .polaris-home-product-actions a {
    min-height: 42px;
    font-size: 12px;
  }
}

@media (max-width: 549px) {
  body.home .polaris-home-showroom .row > .col,
  body.home .polaris-home-showroom .row > .col:first-child {
    width: 88% !important;
    max-width: 88% !important;
    min-width: 88%;
    flex-basis: 88% !important;
  }

  body.home .polaris-home-showroom .box-image,
  body.home .polaris-home-showroom .row > .col:first-child .box-image {
    height: 275px;
    min-height: 275px;
  }

  body.home .polaris-home-showroom .polaris-home-product-actions {
    flex-direction: column;
  }

  body.home .polaris-home-showroom .polaris-home-product-actions a {
    width: 100%;
    flex-basis: auto;
  }
}

body.home .polaris-home-showroom .row::before,
body.home .polaris-home-showroom .row::after {
  display: none !important;
  content: none !important;
}

/* ==========================================================================
   13. LOGO MARCHIO NELLA SCHEDA PRODOTTO MOBILE
   ========================================================================== */
@media (max-width: 849px) {
  body.single-product .product-info .ux-product-brands {
    position: static;
    display: flex;
    width: 100%;
    height: 78px;
    margin: -2px 0 14px;
    align-items: center;
    justify-content: flex-end;
  }

  body.single-product .product-info .ux-product-brands a {
    display: inline-flex;
    width: 150px;
    height: 78px;
    align-items: center;
    justify-content: center;
  }

  body.single-product .product-info .ux-product-brands img {
    width: auto !important;
    max-width: 150px !important;
    height: 78px !important;
    object-fit: contain;
    filter: contrast(1.04);
  }

  body.single-product .product-info h1.product-title {
    max-width: 100%;
  }
}

@media (max-width: 549px) {
  body.single-product .product-info .ux-product-brands,
  body.single-product .product-info .ux-product-brands a {
    height: 72px;
  }

  body.single-product .product-info .ux-product-brands a {
    width: 142px;
  }

  body.single-product .product-info .ux-product-brands img {
    max-width: 142px !important;
    height: 72px !important;
  }
}

/* ==========================================================================
   14. NAV DRAWER DESKTOP E MOBILE
   Modulo unico per tutte le dimensioni dello schermo.
   ========================================================================== */
.main-menu-overlay.off-canvas-left {
  background: #020810;
  opacity: .78;
}

.off-canvas-left .mfp-content {
  width: 87vw;
  max-width: 340px;
  border-right: 1px solid rgba(221, 184, 103, .28);
  background: linear-gradient(155deg, #071827 0%, #0d263a 100%);
  box-shadow: 18px 0 50px rgba(0, 0, 0, .3);
  color: #f8f6f0;
}

.off-canvas-left .mobile-sidebar,
.off-canvas-left .sidebar-menu {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
}

.off-canvas-left .sidebar-menu::before {
  content: "POLARIS AUDIO";
  display: block;
  margin: 22px 22px 14px;
  padding: 3px 0 3px 11px;
  border-left: 3px solid #ddb867;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .16em;
}

.off-canvas-left .nav-sidebar {
  box-sizing: border-box;
  width: 100%;
  padding: 0 0 34px;
}

.off-canvas-left .nav-sidebar > li {
  width: calc(100% - 40px);
  margin: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.off-canvas-left .nav-sidebar > li > a {
  display: flex;
  min-height: 51px;
  padding: 13px 3px;
  align-items: center;
  color: #f8f6f0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .045em;
  text-transform: none;
  transition: color .16s ease, padding-left .16s ease;
}

.off-canvas-left .nav-sidebar > li > a:hover,
.off-canvas-left .nav-sidebar > li.active > a {
  padding-left: 8px;
  color: #e7c985;
}

.off-canvas-left .header-search-form {
  width: calc(100% - 40px) !important;
  margin: 0 20px 13px !important;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.off-canvas-left .header-search-form-wrapper,
.off-canvas-left .searchform {
  width: 100%;
}

.off-canvas-left .searchform > .flex-row {
  border-color: rgba(221, 184, 103, .44);
  box-shadow: none;
}

.off-canvas-left .searchform .search-field {
  border: 0 !important;
  background: #fff;
  color: #16202a;
  box-shadow: none !important;
}

.off-canvas-left .nav-sidebar .children {
  margin: 0 0 12px;
  padding: 7px 0 8px;
  border-left: 2px solid #ddb867;
  background: rgba(0, 0, 0, .16);
}

.off-canvas-left .nav-sidebar .children a {
  min-height: 39px;
  padding: 11px 14px;
  color: #b9c2ca;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}

.off-canvas-left .nav-sidebar .children a:hover {
  color: #e7c985;
}

.off-canvas-left .header-newsletter-item > a,
.off-canvas-left .header-social-icons a {
  color: #e7c985 !important;
}

.off-canvas-left .mfp-close {
  top: 7px;
  right: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(221, 184, 103, .32);
  border-radius: 50%;
  background: #071827;
  color: #e7c985;
  line-height: 40px;
  opacity: 1;
}

.off-canvas-left .mfp-close:hover {
  background: #ddb867;
  color: #071827;
}

@media (max-width: 360px) {
  .off-canvas-left .mfp-content { width: 86vw; }
  .off-canvas-left .sidebar-menu::before,
  .off-canvas-left .nav-sidebar > li,
  .off-canvas-left .header-search-form {
    margin-right: 16px !important;
    margin-left: 16px !important;
  }
  .off-canvas-left .nav-sidebar > li,
  .off-canvas-left .header-search-form {
    width: calc(100% - 32px) !important;
  }
}



/* ==========================================================================
   15. FOOTER POLARIS AUDIO — IBRIDO PREMIUM
   Contenuti gestiti tramite widget e menu WordPress per inclusione.
   ========================================================================== */

#footer {
  background: #071827;
  color: #f7f3e9;
}

#footer .footer-widgets.footer-1 {
  overflow: hidden;
  padding: 0 !important;
  border-top: 2px solid #ddb867;
  background: linear-gradient(145deg, #071827 0%, #0b2234 58%, #0d263a 100%);
  color: #f7f3e9;
}

#footer .footer-1 > .row {
  display: grid !important;
  grid-template-columns: minmax(230px, 1.35fr) minmax(145px, .72fr) minmax(190px, .96fr) minmax(225px, 1.15fr);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 0 28px 48px;
  gap: 34px clamp(28px, 4vw, 56px);
  align-items: start;
}

#footer .footer-1 > .row::before,
#footer .footer-1 > .row::after {
  display: none !important;
  content: none !important;
}

#footer .footer-1 .widget {
  width: auto !important;
  max-width: none !important;
  margin: 0;
  padding: 0 !important;
  flex: none !important;
  color: #f7f3e9;
}

#footer #custom_html-2 {
  position: relative;
  left: 50%;
  grid-column: 1 / -1;
  width: 100vw !important;
  margin-left: -50vw;
  background: #0d263a;
  border-bottom: 1px solid rgba(221, 184, 103, .22);
}

#footer .polaris-footer-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

#footer .polaris-footer-services > div {
  position: relative;
  display: flex;
  min-height: 78px;
  padding: 17px 18px 17px 43px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

#footer .polaris-footer-services > div:first-child {
  border-left: 1px solid rgba(255, 255, 255, .1);
}

#footer .polaris-footer-services > div::before {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 9px;
  height: 9px;
  border: 2px solid #ddb867;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(221, 184, 103, .08);
}

#footer .polaris-footer-services strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .025em;
}

#footer .polaris-footer-services span {
  margin-top: 3px;
  color: #aebcc7;
  font-size: 11px;
  line-height: 1.25;
}

#footer #custom_html-3,
#footer #nav_menu-2,
#footer #nav_menu-3,
#footer #custom_html-4 {
  padding-top: 8px !important;
}

#footer .polaris-footer-wordmark {
  display: inline-flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .15em;
}

#footer .polaris-footer-wordmark::before {
  display: inline-block;
  width: 27px;
  height: 27px;
  border: 2px solid #ddb867;
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 0 6px #071827, inset 0 0 0 8px rgba(221, 184, 103, .55);
}

#footer .polaris-footer-wordmark:hover {
  color: #e7c985;
}

#footer .polaris-footer-brand > p {
  max-width: 310px;
  margin: 0 0 16px;
  color: #c0c9d0;
  font-size: 14px;
  line-height: 1.65;
}

#footer .polaris-footer-contact {
  color: #9fadb8 !important;
  font-size: 13px !important;
}

#footer .polaris-footer-contact a {
  display: inline;
  color: #f7f3e9;
}

#footer .polaris-footer-contact a:hover {
  color: #e7c985;
}

#footer .footer-1 .widget-title,
#footer .polaris-footer-cta h3 {
  display: block;
  margin: 0 0 15px;
  color: #ddb867;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#footer .footer-1 .is-divider {
  display: none;
}

#footer .footer-1 .menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .footer-1 .menu > li {
  margin: 0;
  border: 0;
}

#footer .footer-1 .menu > li > a {
  position: relative;
  display: inline-block;
  padding: 5px 0;
  color: #c4cdd4;
  font-size: 14px;
  line-height: 1.35;
  transition: color .18s ease, transform .18s ease;
}

#footer .footer-1 .menu > li > a:hover,
#footer .footer-1 .menu > li.current-menu-item > a {
  color: #fff;
  transform: translateX(4px);
}

#footer .footer-1 .menu > li > a::after {
  position: absolute;
  right: 100%;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: #ddb867;
  content: "";
  transition: right .18s ease;
}

#footer .footer-1 .menu > li > a:hover::after {
  right: 0;
}

#footer .polaris-footer-cta {
  padding-left: 24px;
  border-left: 1px solid rgba(221, 184, 103, .22);
}

#footer .polaris-footer-cta p {
  max-width: 280px;
  margin: 0 0 20px;
  color: #c0c9d0;
  font-size: 14px;
  line-height: 1.6;
}

#footer .polaris-footer-button {
  display: inline-flex;
  min-height: 42px;
  margin: 0;
  padding: 11px 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddb867;
  border-radius: 3px;
  background: #ddb867;
  color: #071827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

#footer .polaris-footer-button:hover {
  border-color: #efd28e;
  background: #efd28e;
  color: #071827;
  transform: translateY(-2px);
}

#footer .absolute-footer {
  padding: 19px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: #050f18;
  color: #9fadb8;
}

#footer .absolute-footer > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 1280px;
  gap: 16px 28px;
  align-items: center;
}

#footer .absolute-footer .footer-primary,
#footer .absolute-footer .footer-secondary {
  float: none;
  width: auto;
}

#footer .absolute-footer .footer-primary {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

#footer .absolute-footer .footer-secondary {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

#footer .absolute-footer .footer-nav {
  display: flex;
  margin: 0 0 8px;
  gap: 9px 20px;
  flex-wrap: wrap;
}

#footer .absolute-footer .footer-nav li {
  margin: 0;
}

#footer .absolute-footer .footer-nav a {
  color: #dce2e6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: none;
}

#footer .absolute-footer .footer-nav a:hover {
  color: #e7c985;
}

#footer .absolute-footer .copyright-footer {
  max-width: 920px;
  color: #84939f;
  font-size: 11px;
  line-height: 1.55;
}

#footer .absolute-footer .payment-icons {
  opacity: .72;
  filter: grayscale(1) brightness(1.9);
}

#footer .absolute-footer .payment-icon {
  margin: 2px;
}

@media (max-width: 849px) {
  #footer .footer-1 > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 24px;
    padding-bottom: 40px;
    padding-left: 24px;
    gap: 30px 36px;
  }

  #footer .polaris-footer-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 24px;
  }

  #footer .polaris-footer-services > div:nth-child(2) {
    border-right: 0;
  }

  #footer .polaris-footer-services > div:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  #footer #custom_html-3 {
    grid-column: 1 / -1;
  }

  #footer .polaris-footer-cta {
    padding-left: 0;
    border-left: 0;
  }

  #footer .absolute-footer > .container {
    grid-template-columns: 1fr;
  }

  #footer .absolute-footer .footer-primary,
  #footer .absolute-footer .footer-secondary {
    grid-column: 1;
    text-align: center;
  }

  #footer .absolute-footer .footer-primary {
    grid-row: 1;
  }

  #footer .absolute-footer .footer-secondary {
    grid-row: 2;
  }

  #footer .absolute-footer .footer-nav {
    justify-content: center;
  }

  #footer .absolute-footer .copyright-footer {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 549px) {
  #footer .footer-1 > .row {
    grid-template-columns: 1fr;
    padding-right: 22px;
    padding-bottom: 34px;
    padding-left: 22px;
    gap: 27px;
  }

  #footer .polaris-footer-services {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }

  #footer .polaris-footer-services > div,
  #footer .polaris-footer-services > div:first-child {
    min-height: 61px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  #footer .polaris-footer-services > div:last-child {
    border-bottom: 0;
  }

  #footer #custom_html-3,
  #footer #nav_menu-2,
  #footer #nav_menu-3,
  #footer #custom_html-4 {
    grid-column: 1;
  }

  #footer #nav_menu-2,
  #footer #nav_menu-3 {
    padding-top: 22px !important;
    border-top: 1px solid rgba(221, 184, 103, .17);
  }

  #footer .polaris-footer-button {
    width: 100%;
  }

  #footer .absolute-footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}


/* Selettore lingua WPML integrato nella barra inferiore del footer. */
.wpml-ls-statics-footer {
  margin: 0 !important;
  padding: 13px 16px 17px !important;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: #050f18;
}

.wpml-ls-statics-footer ul {
  margin: 0 !important;
  padding: 0 !important;
}

.wpml-ls-statics-footer .wpml-ls-link {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 12px !important;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(221, 184, 103, .24);
  border-radius: 3px;
  background: #0d263a;
  color: #dce2e6;
  font-size: 12px;
  line-height: 1;
}

.wpml-ls-statics-footer .wpml-ls-link:hover {
  border-color: #ddb867;
  background: #142f44;
  color: #fff;
}

/* ==========================================================================
   16. SOTTOMENU HEADER DESKTOP — AVORIO EDITORIALE
   Interessa esclusivamente i dropdown del menu orizzontale principale.
   Il menu principale e il drawer mobile restano invariati.
   ========================================================================== */

@media (min-width: 850px) {
  #header .header-bottom-nav {
    --polaris-submenu-bg: #f4efe4;
    --polaris-submenu-hover: #ebe2d2;
    --polaris-submenu-border: #d8c9ab;
    --polaris-submenu-text: #173044;
    --polaris-submenu-accent: #b88a3f;
  }

  #header .header-bottom-nav > li.menu-item-has-children > .sub-menu.nav-dropdown {
    min-width: 300px;
    padding: 11px 0;
    border: 1px solid var(--polaris-submenu-border);
    border-top: 3px solid var(--polaris-cta);
    border-radius: 0 0 7px 7px;
    background: var(--polaris-submenu-bg);
    box-shadow: 0 20px 45px rgba(7, 24, 39, .22);
  }

  #header .header-bottom-nav > li.menu-item-has-children > .sub-menu.nav-dropdown > li {
    margin: 0;
    border: 0;
  }

  #header .header-bottom-nav > li.menu-item-has-children > .sub-menu.nav-dropdown > li + li > a {
    border-top: 1px solid rgba(23, 48, 68, .11);
  }

  #header .header-bottom-nav > li.menu-item-has-children > .sub-menu.nav-dropdown > li > a {
    position: relative;
    display: flex;
    min-height: 44px;
    padding: 10px 21px 10px 24px;
    align-items: center;
    border-left: 3px solid transparent;
    background: transparent;
    color: var(--polaris-submenu-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    transition:
      border-color .18s ease,
      background-color .18s ease,
      color .18s ease,
      padding-left .18s ease;
  }

  #header .header-bottom-nav > li.menu-item-has-children > .sub-menu.nav-dropdown > li > a:hover,
  #header .header-bottom-nav > li.menu-item-has-children > .sub-menu.nav-dropdown > li.current-menu-item > a,
  #header .header-bottom-nav > li.menu-item-has-children > .sub-menu.nav-dropdown > li.current-menu-ancestor > a {
    padding-left: 29px;
    border-left-color: var(--polaris-submenu-accent);
    background: var(--polaris-submenu-hover);
    color: #071827;
  }

  body.nav-dropdown-has-arrow #header .header-bottom-nav > li.menu-item-has-children::before {
    border-bottom-color: var(--polaris-submenu-border);
  }

  body.nav-dropdown-has-arrow #header .header-bottom-nav > li.menu-item-has-children::after {
    border-bottom-color: var(--polaris-submenu-bg);
  }
}

/* ==========================================================================
   17. PALETTE COMMERCIO — GERARCHIA IBRIDA E NAVY SATINATO
   Struttura e operazioni in navy; acquisto e conferma in oro;
   azioni secondarie in bianco/avorio. Include archivi, ricerca,
   anteprima carrello, carrello WooCommerce Blocks e checkout classico.
   ========================================================================== */

/* Filtri catalogo: azioni operative */
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product, body.search-results)
#shop-sidebar .widget_price_filter .button,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product, body.search-results)
#shop-sidebar .woocommerce-widget-layered-nav-dropdown__submit {
  border: 1px solid var(--polaris-navy);
  border-radius: 3px;
  background: var(--polaris-navy);
  color: #fff;
  box-shadow: none;
}

:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product, body.search-results)
#shop-sidebar .widget_price_filter .button:hover,
:is(body.tax-product_cat, body.tax-product_brand, body.post-type-archive-product, body.search-results)
#shop-sidebar .woocommerce-widget-layered-nav-dropdown__submit:hover {
  border-color: var(--polaris-navy-hover);
  background: var(--polaris-navy-hover);
  color: #fff;
}

/* Anteprima carrello: secondaria bianca, conversione oro */
.widget_shopping_cart .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout),
.widget_shopping_cart .buttons .button.wc-forward:not(.checkout) {
  border: 1px solid #b8c0c4;
  background: #fff;
  color: #34444e;
  box-shadow: none;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout):hover,
.widget_shopping_cart .buttons .button.wc-forward:not(.checkout):hover {
  border-color: var(--polaris-cta);
  background: var(--polaris-ivory);
  color: var(--polaris-navy);
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button.checkout,
.widget_shopping_cart .buttons .button.checkout {
  border: 1px solid var(--polaris-cta);
  background: var(--polaris-cta);
  color: var(--polaris-cta-text);
  box-shadow: none;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button.checkout:hover,
.widget_shopping_cart .buttons .button.checkout:hover {
  border-color: var(--polaris-cta-hover);
  background: var(--polaris-cta-hover);
  color: var(--polaris-cta-text);
}

/* Carrello WooCommerce Blocks */
.wc-block-cart .wc-block-cart__totals-title {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 2px solid var(--polaris-cta);
  border-radius: 3px 3px 0 0;
  background: var(--polaris-heading-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wc-block-cart .wc-block-cart__submit-button {
  border: 1px solid var(--polaris-cta);
  border-radius: 3px;
  background: var(--polaris-cta);
  color: var(--polaris-cta-text);
  box-shadow: none;
}

.wc-block-cart .wc-block-cart__submit-button:hover {
  border-color: var(--polaris-cta-hover);
  background: var(--polaris-cta-hover);
  color: var(--polaris-cta-text);
}

.wc-block-cart .wc-block-components-quantity-selector__button {
  color: var(--polaris-navy);
}

.wc-block-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
  color: var(--polaris-navy);
}

.wc-block-cart input[type="radio"],
.wc-block-cart input[type="checkbox"] {
  accent-color: var(--polaris-navy);
}


/* Carrello classico /shopping-cart/ */
body.woocommerce-cart .cart_totals > h2,
body.woocommerce-cart .cart_totals table > thead > tr > th {
  margin: 0 0 14px;
  padding: 13px 16px;
  border-bottom: 2px solid var(--polaris-cta);
  border-radius: 3px 3px 0 0;
  background: var(--polaris-heading-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.woocommerce-cart .button-continue-shopping {
  border: 1px solid #b8c0c4;
  background: #fff;
  color: #34444e;
  box-shadow: none;
}

body.woocommerce-cart .button-continue-shopping:hover {
  border-color: var(--polaris-cta);
  background: var(--polaris-ivory);
  color: var(--polaris-navy);
}

body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart button[name="calc_shipping"] {
  border: 1px solid var(--polaris-navy);
  background: var(--polaris-navy);
  color: #fff;
  box-shadow: none;
}

body.woocommerce-cart button[name="update_cart"]:hover,
body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart button[name="calc_shipping"]:hover {
  border-color: var(--polaris-navy-hover);
  background: var(--polaris-navy-hover);
  color: #fff;
}

body.woocommerce-cart .checkout-button {
  border: 1px solid var(--polaris-cta);
  background: var(--polaris-cta);
  color: var(--polaris-cta-text);
  box-shadow: none;
}

body.woocommerce-cart .checkout-button:hover {
  border-color: var(--polaris-cta-hover);
  background: var(--polaris-cta-hover);
  color: var(--polaris-cta-text);
}

body.woocommerce-cart input[type="radio"],
body.woocommerce-cart input[type="checkbox"] {
  accent-color: var(--polaris-navy);
}

body.woocommerce-cart .quantity input:focus,
body.woocommerce-cart .coupon input:focus {
  border-color: var(--polaris-border-gold);
  box-shadow: 0 0 0 2px rgba(221, 184, 103, .16);
}

/* Checkout classico — intestazioni principali */
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout #order_review_heading {
  margin: 0 0 18px;
  padding: 13px 16px;
  border-bottom: 2px solid var(--polaris-cta);
  border-radius: 3px 3px 0 0;
  background: var(--polaris-heading-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Checkout classico — riepilogo ordine con margini interni */
body.woocommerce-checkout .checkout-sidebar {
  padding: 0 14px 16px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(7, 24, 39, .09);
}

body.woocommerce-checkout #order_review_heading {
  margin-right: -14px;
  margin-left: -14px;
  padding-right: 20px;
  padding-left: 20px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th:first-child,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td:first-child {
  padding-left: 8px;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th:last-child,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td:last-child {
  padding-right: 8px;
}

/* Checkout classico — selettore indirizzo di spedizione */
body.woocommerce-checkout .woocommerce-shipping-fields > h3 {
  margin: 22px 0 18px;
  padding: 11px 15px !important;
  border: 1px solid var(--polaris-border-gold);
  border-left: 4px solid var(--polaris-cta);
  border-radius: 4px;
  background: linear-gradient(118deg, #fffdf8 0%, var(--polaris-ivory) 100%);
  color: var(--polaris-navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  box-shadow: 0 4px 12px rgba(7, 24, 39, .05);
}

body.woocommerce-checkout .woocommerce-shipping-fields > h3 label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--polaris-navy);
  line-height: 1.35;
  cursor: pointer;
}

body.woocommerce-checkout .woocommerce-shipping-fields > h3 input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
}

body.woocommerce-checkout .woocommerce-shipping-fields > h3:hover {
  border-color: var(--polaris-cta);
  background: #fbf5e8;
}

body.woocommerce-checkout .large-5 > .col-inner.has-border {
  border-color: var(--polaris-border-gold) !important;
}

@media (max-width: 549px) {
  body.woocommerce-checkout .large-5 > .col-inner.has-border {
    padding: 20px !important;
  }

  body.woocommerce-checkout .checkout-sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }

  body.woocommerce-checkout #order_review_heading {
    margin-right: -10px;
    margin-left: -10px;
  }
}

body.woocommerce-checkout .polaris-customer-choice.is-selected {
  border-color: var(--polaris-navy) !important;
  background: var(--polaris-navy) !important;
  color: #fff !important;
  box-shadow: inset 0 -2px 0 var(--polaris-cta) !important;
}

body.woocommerce-checkout .polaris-customer-choice:not(.is-selected):hover {
  border-color: var(--polaris-border-gold);
  background: var(--polaris-ivory);
  color: var(--polaris-navy);
}

body.woocommerce-checkout #place_order {
  border: 1px solid var(--polaris-cta);
  border-radius: 3px;
  background: var(--polaris-cta);
  color: var(--polaris-cta-text);
  box-shadow: none;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus {
  border-color: var(--polaris-cta-hover);
  background: var(--polaris-cta-hover);
  color: var(--polaris-cta-text);
}

body.woocommerce-checkout input[type="radio"],
body.woocommerce-checkout input[type="checkbox"] {
  accent-color: var(--polaris-navy);
}

body.woocommerce-checkout .ux-free-shipping__bar {
  background: var(--polaris-ivory);
}

body.woocommerce-checkout .ux-free-shipping__bar-progress {
  background: linear-gradient(90deg, var(--polaris-cta-active), var(--polaris-cta));
}
