/*
 * Custom style goes here.
 * A template should always ship with an empty custom.css
 */

#scrollTopButton {
  display: none !important;
}

#banner_dsktp {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

#banner_dsktp img {
  width: 100%;
}

#banner_mobile {
  width: 100%;
  height: auto;
  margin-top: 10px;
}

#banner_mobile img {
  width: 100%;
}

.language-selector-wrapper,
#js-language-sidebar.sidebar-language {
  display: none !important;
}

body#category #left-column .column-wrapper .left-categories.column-block.md-bottom,
body#module-emotori-ApplicabilitaProducts #left-column .column-wrapper .left-categories.column-block.md-bottom,
body#module-emotori-AssemblyGroupProducts #left-column .column-wrapper .left-categories.column-block.md-bottom {
  display: none !important;
}

body#category.category-abbigliamento-moto-e-caschi #left-column .column-wrapper .left-categories.column-block.md-bottom,
body#category.category-bici #left-column .column-wrapper .left-categories.column-block.md-bottom {
  display: block !important;
}

body#category.category-bici #left-column .column-wrapper .column-block #_desktop_search_filters #search_filters section.facet.clearfix:first-of-type,
body#category.category-abbigliamento-moto-e-caschi #left-column .column-wrapper .column-block #_desktop_search_filters #search_filters section.facet.clearfix:first-of-type {
  display: none !important;
}

.cambia_categoria {
  position: relative !important;
  right: 0 !important;
  top: 0 !important;
  width: auto !important;
}

#featured-category-products-block-center .products.row.products-grid {
  display: grid !important;
  padding: 10px !important;
  grid-template-columns: auto auto auto !important;
}

#featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature {
  max-width: 400px !important;
  width: 400px !important;
  padding: 0 !important;
  margin: 0 0 20px 20px !important;
}

#featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature:nth-child(3n+1) {
  margin: 0 0 20px 0 !important;
}

.first-block,
.second-third-block {
  padding: 10px !important;
}

.ui-autocomplete.ui-menu .search-menu-item .search-item .pprice {
  display: none !important;
}

/****PRODOTTO*****/

#banner-category {
  display: none;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

#banner-category a img {
  width: 100%;
  transition: 0.3s;
}

body.page-product #content-wrapper section {
  display: flex;
  flex-direction: column;
}

body.page-product #content-wrapper section .main-product-details {
  order: 1;
  -webkit-order: 1;
}

body.page-product #content-wrapper section .main-product-bottom {
  order: 2;
  -webkit-order: 2;
}

body.page-product #content-wrapper section #featured-category-products-block-center {
  order: 4;
  -webkit-order: 4;
}

body.page-product #content-wrapper section .block.md-bottom.module-product-comments-list {
  order: 3;
  -webkit-order: 3;
}

.featured-products:nth-of-type(2) {
  display: none;
}

/*Custom overlay*/

#customAlertOverlay {
  display: none;
  /* Nascondi di default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Sfondo trasparente scuro */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Stile per il contenitore dell'alert */
#customAlertBox {
  background-color: white;
  padding: 20px;
  border-radius: 8px !important;
  text-align: center;
  width: 450px;
  max-width: 80%;
  border: 2px solid black;
  color: black;
}

/* Stile per il pulsante */
#customAlertButton {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 4px;
  border: 1px solid red;
  cursor: pointer;
  font-size: 16px;
  transition: 0.6s;
  -webkit-transition: 0.6s;
}

#customAlertButton:hover {
  background-color: #fff;
  color: red;
}

/*********/

@media (min-width: 1220px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1200px !important;
  }
}

@media (min-width: 1420px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1200px !important;
  }
}

.PM_ASCriterionDisable {
  opacity: 1 !important
}

.PM_ASCriterionDisable>ul {
  opacity: .5
}

.PM_ASCriterionGroupImage {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .1rem;
}

.PM_ASCriterionGroupImage.gradient {
  -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
  height: 15em;
}

.PM_ASCriterionGroupImage_Readmore {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%
}

.PM_ASCriterionGroupImage>li {
  width: 20%;
  text-align: center;
  border: 1px solid;
  padding: 1em 0;
  margin: 1em 0;
}

.PM_ASCriterionGroupImage li {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.product-not-available {
  background: #dadada;
  padding: 10px;
  margin-top: 20px;
}

.product-not-available span {
  padding-left: 10px;
}

.product-not-available .material-icons {
  color: #ee1c24;
}

@media screen and (max-width: 1024px) {
  #featured-category-products-block-center .products.row.products-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  #featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature:nth-child(3n+1) {
    margin: 0 0 20px 20px !important;
  }

  #featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature:nth-child(2n+1) {
    margin: 0 0 20px 0 !important;
  }

  #featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature {
    max-width: 350px !important;
    width: 350px !important;
  }
}


@media screen and (max-width: 600px) {
  #featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature {
    max-width: 100% !important;
    width: 100% !important;
  }

  #featured-category-products-block-center .products.row.products-grid {
    grid-template-columns: 1fr !important;
  }

  #featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature,
  #featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature:nth-child(2n+1),
  #featured-category-products-block-center .products.row.products-grid .product-miniature.js-product-miniature:nth-child(3n+1) {
    margin: 0 auto 20px auto !important;
  }
}
