/* GRID 4 COLONNE */
.domain-filter-style-1 .domain-filter-grid {
  display: block;
}
.domain-filter-style-4 .domain-filter-grid {
  display: grid;
  gap: 5px;
  width: 100%;
}

.field-search {
  grid-area: 1 / 1 / 2 / 2;
}
.field-estension {
  grid-area: 1 / 2 / 2 / 3;
}
.field-caratteri {
  grid-area: 1 / 3 / 2 / 4;
}
.field-submit {
  grid-area: 2 / 1 / 3 / 4;
}

/* BLOCCO CAMPO */
.domain-filter-grid .field-block {
  display: flex;
  flex-direction: column;
}

/* INPUT / SELECT */
.domain-filter-grid input[type="text"],
.domain-filter-grid input[type="number"],
.domain-filter-grid select {
  padding: 10px;
  font-size: 15px;
  width: 100%;
}

/* SUBMIT */
.filter-submit,
.filter-reset {
  padding: 8px;
  cursor: pointer;
  border: none !important;
  width: 100% !important;
  text-align: center;
  margin-top: 10px;
  display: block;
}

/* FILTRI */
.domain-filter-divider-yes .field-block {
  border-top: 1.5px solid;
  border-color: #d7d7d7;
  padding: 30px 0;
}
.price-filter,
.field-taxonomy {
  display: flex;
  flex-direction: column;
}
.price-checkbox-list,
.taxonomy-checkbox-list {
  display: contents;
}

.price-checkbox-list label,
.taxonomy-checkbox-list label {
  margin: 6px 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .domain-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .domain-results {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .domain-filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.domain-filter-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
}

.domain-filter-flex .field-block {
  display: flex;
  flex-direction: column;
  min-width: 180px; /* Ogni filtro non va sotto una certa larghezza */
  flex: 1; /* Si adatta allo spazio */
}

.domain-filter-flex .field-submit,
.domain-filter-flex .field-reset {
  min-width: 100px;
  flex: 0 0 auto; /* il pulsante non si allarga */
}

.domain-filter-flex select, .domain-filter-flex input, .domain-filter-flex button, .domain-filter-flex .filter-reset {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px !important;
  background: #fff;
  height: 50px;
}

.field-title {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 600;
}

.filter-popup {
  background: #2c427b;
  border: 1px solid #2c427b;
  font-family: "Blink Mac System", Sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 16px !important;
  color: #fff;
  padding: 8px 15px;
  box-shadow: 1px 1px 1px 1px #00000024 !important;
  cursor: pointer;
  text-align: center;
	min-height: 50px;
	line-height: 2;
}
.filter-popup:hover {
  box-shadow: none !important;
  color: #2c427b;
  background: #fff;
}

.filter-popup i {
  font-size: 20px;
  margin-right: 15px;
}

/* FORZA EVENTI SLIDER */
.noUi-target,
.noUi-connect,
.noUi-handle {
  pointer-events: auto !important;
}

/* RIMUOVE OVERLAY POPUP */
.elementor-popup-modal *,
.elementor-popup-modal {
  pointer-events: auto !important;
}

.noUi-horizontal {
  height: 6px !important;
}

.noUi-handle {
  width: 20px !important;
  height: 20px !important;
  top: -7px !important;
}
/* Paginazione */
.domain-pagination {
  margin: 30px 0 !important;
}
span.page-numbers.current {
  font-size: 20px;
  color: #2f95b9;
  font-weight: 900;
}
a.page-numbers {
  font-size: 20px;
  color: #000;
  font-weight: 100;
  margin: 0 5px;
}
a.next.page-numbers,
a.prev.page-numbers {
  color: #000;
  font-weight: 400;
}

/* DOMINI POPOLARI */

.domini-results {
  position: relative;
  min-height: 120px;
}

.slick-slide {
  margin: 0 5px;
}
.slick-list {
  margin: 0 -5px;
}

.domini-card {
  border: 1px solid #0000001c;
  padding: 25px;
  min-height: 180px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 16px 32px -12px rgb(14 18 27 / 7%);
  transition: transform .16s ease, box-shadow .16s ease;
}
article.domini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0,0,0,.10);
}
.domini-slider .slick-slide {
  display: flex !important;
}

.domini-slider .slick-slide > .domini-card {
  width: 100%;
}

h3.domini-card__title {
  font-size: 16px;
}
button.domini-arrow.domini-prev.slick-arrow {
  position: absolute;
  bottom: -49px;
  right: 50px;
  border-radius: 50%;
}
button.domini-arrow.domini-next.slick-arrow {
  position: absolute;
  bottom: -50px;
  right: 0;
  border-radius: 50%;
}


.domini-collections__tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .04);
    width: fit-content;
    max-width: 100%;
    margin-bottom: 50px;
}

button.domini-tab {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    opacity: .8;
    transition: transform .15s ease, background .15s ease, opacity .15s ease;
    color: #000;

  }
  button.domini-tab.is-active {
      opacity: 1;
      transform: translateY(-1px);
      background: #2c427b;
      color: #fff;
  }
/* button.domini-tab.is-active {    
    background: #ffffff;
    opacity: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
    color: #000
  } */

/* .domini-collections__tabs {
  margin-bottom: 50px;
} */

/* button.domini-tab.is-active {
    text-decoration: underline;
    background: #0c1220;
    color: #ffffff;
    box-shadow: -2px 3px 4px 1px #87878763;
} */

button.domini-tab:hover {
  text-decoration: underline;
  background: #2c427b;
  color: #fff;
}

a.domini-card__link {
  margin-top: 20px;
  font-size: 13px;
  color: #000;
  background: #f2f2f2;
  padding: 7px;
  border-radius: 15px;
  text-align: center;
}
.domini-card {
  background: #fff;
}

h3.domini-card__title {
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
  font-size: 16px;
  font-weight: var(--e-global-typography-primary-font-weight);
  color: var(--e-global-color-d1cff8b);
  margin: 0;
}

button.domini-arrow {
    background: #2c427b;
    border: none;
    color: #ffffff;
    font-size: 28px;
    height: 40px;
    width: 40px;
    line-height: 0;
}

button.domini-arrow:hover {
    background: #000;
    color: #fff;
}


.slick-list{padding:0 20% 0 0 !important}

.domini-collections__body::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;    
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, #fff0 0, #fffffff0 78.03%);
}
.colum-polpular-image::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, #fff0 0, #fffffff0 78.03%);
}




@media (max-width: 600px) {
  .domini-collections__tabs{
    overflow-x: auto;
    overflow-y: hidden;

    flex-wrap: nowrap;
    white-space: nowrap;

    -webkit-overflow-scrolling: touch; /* smooth iOS */
    scroll-snap-type: x mandatory;

    padding-bottom: 6px; /* spazio per swipe */
  }

  .domini-tab{
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* nasconde scrollbar */
  .domini-collections__tabs::-webkit-scrollbar{
    display: none;
  }
  .domini-collections__tabs{
    scrollbar-width: none; /* Firefox */
  }
  .filter-popup {
    font-size: 20px;
    border-radius: 0 !important;
    padding: 15px;
  }
}