/* Colors */
:root {
  --maodev-color-primary: #d30000;
  --maodev-color-secondary: #bfb7b7;
  --maodev-color-third: #212529;
}

.header-nav {
  background-color: var(--maodev-color-third);
  border-bottom: 3px solid var(--maodev-color-primary);
}

.header-top__badge,
.display-toggle__link.active,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--maodev-color-primary);
}

.btn-outline-primary,
.nav-pills .nav-link:not(.active),
#_desktop_search_from .search-form .search-form__input,
.checkout-option-block.selected .card {
  border-color: var(--maodev-color-primary);
}

a:hover,
a:focus,
.btn-link,
.btn-outline-primary,
.search-form__btn,
.featured-products .featured-products__title a:active,
.featured-products .featured-products__title a:focus,
.featured-products .featured-products__title a:hover,
.swiper-button-custom,
.homeslider .swiper-button-custom:hover .material-icons,
.page-my-account #content .links a:hover,
.page-my-account #content .links a:hover i,
.comments-pagination span,
.page-link,
.product-main-images__modal-trigger-layer:hover,
.product-main-images .swiper-button-custom:hover,
.nav-tabs .nav-link:hover {
  color: var(--maodev-color-primary);
}

.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle,
.btn-primary.disabled,
.btn-primary:disabled,
.nav-pills .nav-link:not(.active):hover,
.nav-pills .nav-link:not(.active):active,
.attribute-radio__input:checked ~ .attribute-radio__text,
.noUi-handle,
.comments-pagination .page-item.active span,
.comments-pagination li.active .page-link,
.comments-pagination li.active span,
.page-item.active .comments-pagination span,
.page-item.active .page-link {
  background-color: var(--maodev-color-primary);
  border-color: var(--maodev-color-primary);
}

.btn-primary.focus,
.btn-primary:focus,
.btn-primary:hover,
.nav-pills .nav-link.active:hover,
.nav-pills .show > .nav-link:hover {
  background-color: var(--maodev-color-secondary);
  border-color: var(--maodev-color-secondary);
}

.btn-link:hover,
.comments-pagination span:hover,
.page-link:hover {
  color: #e24711;
}

.noUi-connect {
  background-color: var(--maodev-color-secondary);
}

.text-primary {
  color: var(--maodev-color-primary) !important;
}

a,
.nav-tabs .nav-link {
  color: var(--maodev-color-third);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:active {
  background-color: var(--maodev-color-primary);
  border-bottom-color: var(--maodev-color-primary);
  color: #fff;
}

.btn-primary:focus,
.custom-select:focus,
.show > .btn-outline-primary.dropdown-toggle:focus,
.show > .btn-primary.dropdown-toggle:focus,
.comments-pagination span:focus,
.page-link:focus {
  box-shadow: 0 0 0 0.2rem rgb(255 116 81 / 0.25);
}

.form-control:focus,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem rgb(72 202 178 / 0.25);
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--maodev-color-secondary);
}

.nav-pills .nav-link:not(.active):hover,
.nav-pills .nav-link:not(.active):active {
  color: #fff;
}

/* Generic */
.homeslider .homeslider__caption,
.hover-mosaic .hover-overlay .hover-intro {
  display: none;
}

#product-information-prices {
  color: var(--maodev-color-secondary);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.product-tabs .product-manufacturer img {
  max-height: 100%;
  width: auto;
}

#product .product-discounts {
  margin-top: 2rem;
}

#product .product-discounts .table td,
#product .product-discounts .table th {
  padding: 0.3rem 0.75rem;
}

#product .product-add-to-cart .product-quantity .btn.btn-main {
  text-transform: uppercase;
}

.product-main-images__modal-trigger-layer,
.search-form__btn:hover {
  color: var(--maodev-color-primary);
}

.product-main-images__modal-trigger-layer:hover,
.search-form__btn {
  color: #000000;
}

.product-list-reviews {
  background: hsla(0, 0%, 100%, 0.7);
  bottom: -10px;
}

.product-miniature {
  border: 1px solid #aaa;
}

.product-miniature .product-miniature__title {
  height: 4em;
}

.product-miniature .product-miniature__brand {
  display: none;
}

#subcategories .subcategories-list .card-title {
  color: #000000;
  font-size: 0.8rem;
}

#mobile_filters {
  z-index: 10000000000;
}

.header-top__link--user {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-align: center;
}

.header-top__link--user .header-top__greeting,
.header-top__link--user .header-top__login-text {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 100%;
}

.header-top__link--user .header-top__greeting {
  margin: 0;
}

@media (max-width: 767.98px) {
  .header-top__link--user {
    gap: 0.15rem;
  }
}

#footer .footer-container {
  background-color: #dbdbdb;
}

.blockcart__dropdown .remove-from-cart,
.product-line-grid .remove-from-cart {
  font-size: 1.5rem;
}

.header-top__badge {
  font-size: 0.6rem;
}

.header-top__icon-container .icon-svg {
  font-size: 1.75rem;
}

@media (min-width: 576px) {
  .header-top__badge {
    font-size: 0.7rem;
  }

  .header-top__icon-container .icon-svg {
    font-size: 2.3rem;
  }

  #product #product-availability {
    vertical-align: top;
  }

  .product-information .product-reference {
    margin-right: 1rem;
  }
}

/* Faced search */
#left-column .card .card-title {
  color: var(--maodev-color-primary);
}

#left-column .card .icon-collapse .material-icons {
  color: #fff !important;
  background-color: var(--maodev-color-primary);
  border-radius: 50%;
}

.list-group-flush > .list-group-item {
  border-color: rgb(from var(--maodev-color-primary) r g b / 30%);
}

/* Modules */
/* iqti megamenu */
#iqitmegamenu-accordion li .contact-us i {
  color: var(--maodev-color-primary);
}

#iqitmegamenu-accordion li a::before {
  border-color: var(--maodev-color-primary);
}

.cbp-hrmenu .cbp-tab-title {
  top: 0;
}

@media (min-width: 1320px) {
    #cbp-hrmenu .cbp-onlyicon .cbp-tab-title {
      top: -2px;
    }
}

#topsocials {
  text-align: right;
}

/* topcontacts */
#topcontacts .list-inline-item:nth-child(4) .topcontacts-phone {
  font-weight: bold;
}

#topcontacts .list-inline-item a:hover,
#topcontacts .list-inline-item a:focus,
#topsocials .list-inline-item a:hover,
#topsocials .list-inline-item a:focus {
  color: var(--maodev-color-primary);
}

#topcontacts .list-inline-item:nth-child(1) a:hover,
#topcontacts .list-inline-item:nth-child(1) a:focus {
  color: #ffd815;
}

#topcontacts .list-inline-item:nth-child(2) a:hover,
#topcontacts .list-inline-item:nth-child(2) a:focus {
  color: #68f4f2;
}

/* Opzionale: aggiunge un effetto al passaggio del mouse per coerenza */
#topcontacts .list-inline-item:nth-child(3) a:hover,
#topcontacts .list-inline-item:nth-child(3) a:focus,
#topcontacts .list-inline-item:nth-child(3) a:active {
  color: #06b606; /* Un verde leggermente più scuro per l'hover */
}

/* Colore verde per l'icona telefono e il testo del numero (quarto elemento) */
#topcontacts .list-inline-item:nth-child(4) a,
#topcontacts .list-inline-item:nth-child(4) .topcontacts-phone {
  color: #06b606;
}

#topcontacts .list-inline-item:nth-child(4) a:hover,
#topcontacts .list-inline-item:nth-child(4) .topcontacts-phone:hover,
#topcontacts .list-inline-item:nth-child(4) a:focus,
#topcontacts .list-inline-item:nth-child(4) .topcontacts-phone:focus {
  color: #fff;
}

#topsocials .list-inline-item:nth-child(1) a:hover,
#topsocials .list-inline-item:nth-child(1) a:focus {
  color: #2769fc;
}

/* infoblocks */
#footer .mao-infoblocks-box-figure i {
  color: var(--maodev-color-primary);
}

@media (min-width: 1199px) {
  #footer .mao-infoblocks-box-figure i {
    font-size: 2.8rem;
  }
}

/* custom text */
#custom-text {
  margin-top: 5rem;
  max-height: 100%;
  overflow-x: auto;
  overflow-y: auto;
}

#custom-text h1,
#custom-text h2,
#custom-text h3,
#custom-text p,
#custom-text ul {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

#custom-text h1,
#custom-text h3 {
  color: var(--maodev-color-primary);
}

#custom-text ul {
  list-style-type: disc;
  list-style-position: inside;
  padding-left: 20px;
  margin-bottom: 15px;
}

/* whatsapp-contact */
#whatsapp-button-text {
  display: none;
}

@media (min-width: 992px) {
  #whatsapp-contact {
    display: none;
  }
}

/* modulo blcco sconti */
@media (min-width: 992px) {
  .plqd table th {
    font-size: 12px;
  }

  .plqd table td {
    font-size: 18px;
  }
}

/* blockreassurance */
.blockreassurance_product .block-title {
  font-weight: bold;
}

/* footer_contact_list */
#footer_contact_list a {
  color: var(--maodev-color-primary);
}

#footer_contact_list a:hover,
#footer_contact_list a:focus {
  color: var(--maodev-color-third);
}


/* FEATURED PRODUCTS STABILIZATION - NO JS */
#index .featured-products .swiper.product-slider {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

#index .featured-products .swiper.product-slider.swiper-initialized {
  visibility: visible;
  opacity: 1;
}

#index .product-slide-pair {
  width: 100%;
  max-width: 100%;
}

#index .product-slide-pair .product-slider__item {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin-bottom: 10px !important;
}

/* Nascondere testo (Opzionale) nel form degli indirizzi */
.form-fields label[for^="f-company_"] small.text-muted,
.form-fields label[for^="f-dni_"] small.text-muted,
.form-fields label[for^="f-vat_number_"] small.text-muted,
.form-fields label[for^="f-phone_mobile_"] small.text-muted,
.form-fields label[for^="f-sdi_"] small.text-muted,
.form-fields label[for^="f-pec_"] small.text-muted {
    display: none;
}