/* custom.css */
/* HOME: la prima voce NON deve sembrare attiva a riposo */
body#index nav li:first-child > a:not(:hover),
body#index nav li:first-child > a.nav-link:not(:hover),
body#index .leo-megamenu li:first-child > a:not(:hover),
body#index .leo-megamenu li:first-child > a.nav-link:not(:hover),
body#index .megamenu li:first-child > a:not(:hover),
body#index .megamenu li:first-child > a.nav-link:not(:hover) {
  color: #000 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

 /* ESCLUDE i sottomenu widget-links dall'override del first-child */
  body#index .widget-links nav li:first-child > a:not(:hover),
  body#index .widget-links .nav-links li:first-child > a:not(:hover) {
    color: inherit !important; /* lascia il colore normale del tema */
  } 

/* Se il tema mette l'evidenziazione sul LI e non solo sul link */
body#index nav li:first-child:not(:hover),
body#index .leo-megamenu li:first-child:not(:hover),
body#index .megamenu li:first-child:not(:hover) {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* LI container: nessun sfondo 
body#index li.menu__collections.active:not(:hover),
body#index [id^='memgamenu-form'] > li:first-child.active:not(:hover) {
  background: transparent !important;
} */

/* transparent header
.keep-header #page {
    padding-top: 0 !important;
} */

/* Ripristina le unordered list nel contenuto della pagina 
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ul li,
.page-content ul,
.cms-content ul {
  list-style: disc !important;
  padding-left: 1.5em !important;
  margin-left: 0 !important;
} */

/* Classe custom per elenchi puntati visibili, usare questa classe nelle pagine */
.has-bullets ul {
  list-style: disc outside none !important;
  padding-left: 1.5em !important;
}

.has-bullets ul li {
  display: list-item !important;
}

.has-bullets ol {
  list-style: decimal outside none !important;
  padding-left: 1.5em !important;
}

.has-bullets ol li {
  display: list-item !important;
}

/* Personalizzazione product page */
#wrapper .breadcrumb-bg {
    margin-bottom: 50px !important;
} 

.product-detail .page-content {
    margin-bottom: 0px !important;
} 

.lSSlideOuter {
    margin-bottom: 0px !important;
} 

/* Funzioni separate da virgola + JS in modulo */
.data-sheet dd.value br {
  display: none;
}

/* Nasconde il contenitore sizechart */
.w-full .sizechart {
    display: none !important;
}

/* Forza le texture rotonde anche dopo refresh AJAX */
section[data-type="attribute_group"] span.color.texture,
section[data-type="attribute_group"] span.color {
    border-radius: 50% !important;
}

/* FIX post-AJAX: il tema perde la classe .color sui label texture
   Replico io le regole tooltip nativo del tema su tutti i .facet-label */
section[data-type="attribute_group"] label.facet-label {
    position: relative; 
}

section[data-type="attribute_group"] label.facet-label a.search-link {
    position: absolute !important;
    opacity: 0 !important;
    visibility: hidden !important;
    max-width: 200px;
    font-size: 0.75rem !important;
    padding: 0 8px !important;
    line-height: 23px !important;
    color: rgb(255, 255, 255) !important;
    text-align: center;
    white-space: nowrap !important;
    background-color: rgb(33, 37, 41) !important;
    border-radius: 0.1875rem !important;
    bottom: calc(100% + 20px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: none !important;
    overflow: visible !important;
    transition: 0.25s !important;
    width: auto !important;
    height: auto !important;
}

section[data-type="attribute_group"] label.facet-label a.search-link::before {
    content: "";
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: rgb(33, 37, 41);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

section[data-type="attribute_group"] label.facet-label:hover a.search-link {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: calc(100% + 10px) !important;
}

/* Forza il checkbox a essere flex container con dimensione fissa */
section[data-type="attribute_group"] label.facet-label .custom-checkbox {
    display: flex !important;
    width: 24px !important;
    height: 24px !important;
    justify-content: center;
    align-items: center;
    border: 1px solid rgb(225, 225, 225);
    border-radius: 50%;
}

/* Span pallino: dimensioni esplicite, riempie il checkbox */
section[data-type="attribute_group"] label.facet-label .custom-checkbox span.color {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    border-radius: 50% !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Resetta il top: -7px che il tema applica al custom-checkbox */
section[data-type="attribute_group"] label.facet-label .custom-checkbox {
    top: 0 !important;
}

