@import url("hotspots.css");

:root{
    --primary: 54, 58, 58;
    --secondary: 227, 24, 25;
}
#module-iqitelementor-Preview .d-none {
  display: block !important;
}
.text-primary-custom {
color: rgb(var(--primary)) !important;
}

.text-secondary-custom,
.text-secondary-link,
.text-secondary-link a {
    color: rgb(var(--secondary)) !important;
}

.bg-primary-custom {
    background-color: rgb(var(--primary)) !important;
}

.bg-secondary-custom {
    background-color: rgb(var(--secondary)) !important;
}

.w-8 {
  width: 2rem;
}
.h-8 {
  height: 2rem;
}

/* menu */

.header-top {
  padding-bottom: 0px !important;
}

#cbp-hrmenu > ul {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

#cbp-hrmenu > ul > li {
  float: none;
}

#desktop-header {
  box-shadow: 0px 3px 5px rgba(104, 104, 104, 0.15);
  background: #ffffff !important;
}
/*  */

/* body.page-cms .breadcrumb {
  display: none !important;
} */

/* */

/* .cbp-hrmenu-tab-3 .cbp-hrsub-inner {
  background: transparent;
  border: 0px solid;
  box-shadow: none;
  padding: 0 !important;
} */

/* .cbp-hrmenu-tab-3 .cbp-menu-column {
  margin-top: -3px;
} */

/* .stuck-header .cbp-hrmenu-tab-3 .cbp-menu-column {
  margin-top: 9px;
} */

/* .cbp-hrmenu-tab-3 .cbp-categories-row {
  flex-direction: row;
  flex-wrap: nowrap;
  border-top: 3px solid #cc0000;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin: 0;
  padding: 0;
  overflow-x: auto;
} */

/* .cbp-hrmenu-tab-3 .cbp-categories-row .col-12 {
  width: auto;
  flex: 0 0 auto;
  padding: 0;
  margin-top: 0;
  border-right: 1px solid #e8e8e8;
} */

/* .cbp-hrmenu-tab-3 .cbp-categories-row .col-12:last-child {
  border-right: none;
} */

/* .cbp-hrmenu-tab-3 .cbp-category-link-w {
  padding: 0;
  height: 100%;
} */

/* .cbp-hrmenu-tab-3 .cbp-category-link-w a.cbp-category-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  color: #222;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
  position: relative;
  height: 100%;
} */

/* .cbp-hrmenu-tab-3 .cbp-category-link-w a.cbp-category-title::before {
  content: '\203A';
  font-size: 1rem;
  color: #cc0000;
  font-weight: 900;
  line-height: 1;
} */

/* .cbp-hrmenu-tab-3 .cbp-category-link-w a.cbp-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #cc0000;
  transition: width 0.25s ease;
} */

/* .cbp-hrmenu-tab-3 .cbp-category-link-w a.cbp-category-title:hover {
  color: #cc0000;
  background-color: #fafafa;
} */

/* .cbp-hrmenu-tab-3 .cbp-category-link-w a.cbp-category-title:hover::after {
  width: 100%;
} */
.cbp-hrmenu .cbp-menu-column {
  margin-top: 10px;
}
.cbp-hropen .cbp-hrsub {
  left: 0;
  border-top: 3px solid rgb(var(--secondary));
}
.cbp-hrmenu .cbp-hrsub-inner .iqitmegamenu-submenu-container > .row:last-child {
  margin-bottom: 0px;
}
/* ---- */

/* Overlay scuro su main#main-page-content quando megamenu aperto */
body:has(.cbp-hrmenu-tab.cbp-hropen.cbp-has-submeu) main#main-page-content {
  position: relative;
  min-height: 100vh;
}

body:has(.cbp-hrmenu-tab.cbp-hropen.cbp-has-submeu):not(:has(#_desktop_blockcart-content.show)):not(:has(.header-btn.show)) main#main-page-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  pointer-events: none;
  z-index: 99;
}

.button-p-0 a.elementor-button-link {
  padding: 0 !important;
}

.button-p-0 a.elementor-button-link .elementor-align-icon-right.elementor-button-icon i {
  margin-right: 0;
}

#index #wrapper,
body.page-cms #wrapper {
    padding: 0;
}

#rev_slider_1_1_forcefullwidth,
#rev_slider_1_1_wrapper,
#rev_slider_1_1 {
    height: calc(100vh - 150px) !important;
}


#_desktop_blockcart-content.show::before,
.header-btn.show + .dropdown-user-show::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}
body:has(#_desktop_blockcart-content.show),
body:has(.header-btn.show) {
    overflow: hidden;
}

body:has(#_desktop_blockcart-content.show) .cbp-hrsub,
body:has(.header-btn.show) .cbp-hrsub {
  display: none !important;
}

.dropdown-menu.dropdown-menu-right.show {
    inset: 0 0 auto auto !important;
}

.product-list .elementor-element-populated .elementor-widget-wrap {
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
}
/* Category */

#category #products .alert.alert-warning {
    display: none;
}

/* Prodotto correlato (accol) separato visivamente dentro il wrapper */
.js-product-miniature-wrapper .js-product-miniature-wrapper {
    /* margin-top: 0.75rem;
    border-top: 1px dashed #d0d0d0;
    padding-top: 0.75rem; */
}


/* FAQ */
.elementor-widget-toggle.faq .elementor-toggle .elementor-toggle-title {
  position: relative;
  padding: 30px 15px 30px 0;
  border-width: 0 !important;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  display: flex;
  align-items: center;
}
.elementor-widget-toggle.faq .elementor-toggle .elementor-toggle-title:not(:first-child) {
    border-top: 1px solid #d4d4d4 !important;
}


.elementor-widget-toggle.faq .elementor-toggle .elementor-toggle-title .elementor-toggle-icon {
  display: inline-block;
  width: 1em;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.elementor-widget-toggle.faq .elementor-toggle .elementor-toggle-content {
    border-width: 0 !important
}

.elementor-widget-toggle.faq .elementor-toggle .elementor-toggle-title .elementor-toggle-icon .fa::before {
  content: "\f078";
}
.elementor-widget-toggle.faq .elementor-toggle .elementor-toggle-title.active .elementor-toggle-icon .fa::before {
  content: "\f077";
}

/* custom widget */
.icon-text .elementor-icon-box-wrapper {
  display: flex;
}
.icon-text .elementor-icon-box-title {display: none;}
.icon-text .elementor-icon-box-wrapper .elementor-icon-box-icon {
  margin: 0 10px 0 0 !important;
}
.icon-text .elementor-icon-box-wrapper .elementor-icon-box-icon {
    flex: 0 0 auto;
    width: auto;
}

.tooltip.show {
  opacity: 1;
}
.tooltip-inner {
  opacity: 1;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
}

/* ─── Breadcrumb Chevron ─────────────────────────────── */
.breadcrumb--chevron {
  background: transparent;
  padding: 8px 0;
  border: 0;
  margin: 0;
}

/* Kill slash iniettata dal tema */
.bc-chevron-item::after,
.bc-chevron-item::before { content: none !important; }

.bc-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.bc-after { align-self: flex-end; }

/* Tasto indietro */
.bc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #d0d0d0;
  color: #444;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  padding: 7px 12px;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  flex-shrink: 0;
}

.bc-back-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: transparent;
}

.bc-back-btn i { font-size: 9px; }

/* Lista chevron */
.bc-chevron-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bc-chevron-item {
  display: flex;
  align-items: stretch;
}

.bc-chevron-item:not(:first-child) {
  margin-left: -8px;
}

.bc-chevron-link {
  display: flex;
  align-items: center;
  padding: 5px 18px 5px 12px;
  background: #ebebeb;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
  transition: background .15s ease, color .15s ease;
}

.bc-chevron-item:first-child .bc-chevron-link {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  padding-left: 14px;
}

.bc-chevron-link:hover {
  background: #dedede;
  color: #111;
  text-decoration: none;
}

.bc-chevron-link--current {
  background: #c0392b;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.bc-chevron-item:not(:first-child) span {
  padding-left: 10px;
}
.bc-chevron-item--current span {
  padding-left: 20px !important;
  font-weight: 800;
}

@media (max-width: 767px) {
  .bc-row { gap: 6px; }
  .bc-chevron-list { flex-wrap: wrap; gap: 4px; }
  .bc-chevron-item:not(:first-child) { margin-left: 0; }
  .bc-chevron-link,
  .bc-chevron-item:first-child .bc-chevron-link {
    clip-path: none;
    padding: 6px 10px;
    font-size: 11px;
  }
  .bc-chevron-link--current {
    background: #c0392b;
    color: #fff;
  }
}

input[name="product"][readonly] {
  pointer-events: none;
  background-color: #e9ecef;
}
.wpcfu h3 {
  text-transform: unset;
}
.ets_cfu_input_submit.ets_cfu_input {
  text-align: right;
}

/* Prodotto */
.product-reference span {
  font-weight: bold;
}

/* Checkout */
#cart-subtotal-products-blockcart .value,
#cart-subtotal-products .value,
button[name="confirmDeliveryOption"],
#cart-subtotal-shipping,
#cart-subtotal-shipping-blockcart,
.delivery-options,
#checkout-payment-step .payment-options,
#checkout-payment-step #order-summary-content .row:nth-child(4),
#checkout-payment-step #order-items table tbody tr:nth-child(2),
.wk_field_opt_container > .wk_field_opt_group_label,
.wk_field_opt_group_mandate,
/* Tasse: mini-cart */
#blockcart-content .cart-totals .clearfix:nth-child(2),
/* Tasse: pagina carrello */
.cart-summary-totals .cart-total,
.cart-summary-totals .cart-total + .cart-summary-line,
/* Tasse: checkout order summary */
#order-items table .total-value,
#order-items table .sub.taxes,
/* Totale parziale: ripetitivo nel checkout */
#order-items table tbody tr:first-child,
body#checkout #cart-subtotal-products,
.cart-summary-subtotals-container {
  display: none !important;
}

#order-confirmation #order-items table tbody tr:not(:last-child),
#order-confirmation .order-confirmation-details ul li:not(:first-child),
#order-confirmation .wk_additional_information_title .material-icons,
#order-confirmation .wk_custom_display_container table thead,
#order-confirmation .wk_custom_display_container table tbody > tr:nth-child(1) > td:nth-child(3),
#order-confirmation #content-hook_payment_return
{
  display: none;
}


button.wk_save_checkout_field {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 16px;
}

.wk-custom-group-div .wk-product-custom-fields-item,
.wk-custom-group-div-action .wk_field_opt_group_label {
  padding: 0;
}

.wk-custom-group-div {
  border: 0;
}

#hook-display-before-carrier {
    margin-top: 15px;
}

/* Checkout step 3: lista matricole */
.matricola-wrapper {
  margin-bottom: 8px;
}
.matricola-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.matricola-row {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  gap: 8px;
}
.matricola-row .form-control {
  border: none;
  box-shadow: none;
  padding: 0;
  height: auto;
}
.matricola-row .form-control:focus {
  outline: none;
  box-shadow: none;
}
.matricola-row__del {
  background: none;
  border: none;
  color: #dc3545;
  padding: 0 4px;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}
.matricola-row__del:hover {
  color: #a71d2a;
}
.matricola-footer {
  text-align: right;
}
@media (min-width: 992px) {
  .elementor-widget.faq .elementor-toggle-title {
    scroll-margin-top: 170px;
  }
}

/* Fix altezza sticky-desktop-wrapper */
.sticky-desktop-wrapper {
  height: 138px !important;
}

/* Selettore lingua moderno */
.bv-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #363a3a;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none !important;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.bv-lang-btn:hover {
  color: #000;
  background: rgba(0,0,0,0.05);
}
.bv-lang-btn .fa-earth-europe {
  font-size: 1rem;
  opacity: 0.7;
}
.bv-lang-btn::after {
  display: none; /* rimuove caret Bootstrap */
}
.bv-lang-btn .bv-lang-name {
  letter-spacing: 0.02em;
}
.bv-lang-selector .dropdown-menu {
  min-width: 130px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 0.25rem 0;
}
.bv-lang-selector .dropdown-item {
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  color: #363a3a !important;
  border-bottom: none !important;
}
.bv-lang-selector .dropdown-item.active,
.bv-lang-selector .dropdown-item:hover {
  background: rgba(0,0,0,0.04) !important;
  color: #000 !important;
}
.bv-lang-selector .dropdown-item .fa-earth-europe {
  opacity: 0.5;
  font-size: 0.875rem;
}

/* Checkout step 3: nasconde il testo "Si" accanto al checkbox "Materiale per scorta" */
.wk-product-custom-fields-item:has(#wk_custom_checkbox_1_4_4_Si) .col-md-9 > label {
  font-size: 0;
}