.top_block {
  margin-top: -100px;
  z-index: -1;
  position: relative;
}

/* ------------------------------------------- */
/* PAGINA CATEGORIA PRODOTTO (loop delle sottocategorie) */
/* ------------------------------------------ */

#section-loop-sottocategorie .box-img-scale {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#section-loop-sottocategorie .box-img-scale img {
  transition: 0.3s ease-in-out;
}

#section-loop-sottocategorie #box-post:hover .box-img-scale img {
  transform: scale(1.1);
}

#section-loop-sottocategorie .box-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: transparent linear-gradient(180deg, #00000000 0%, #009345 100%) 0%
    0% no-repeat padding-box;
  display: flex;
  align-items: end;
  border-bottom-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

/* ------------------------------------------- */
/* PAGINA SINGOLO PRODOTTO */
/* ------------------------------------------ */

#table-single-product {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
}

#table-single-product th {
  padding: 12px;
}

#table-single-product th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

#table-single-product th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

#table-single-product td {
  text-align: center;
  padding: 8px 12px;
}

#table-single-product th {
  text-align: center;
  background-color: rgba(233, 235, 238, 0.3);
  font-weight: bold;
}

#table-single-product td:first-child {
  border-bottom-left-radius: 8px;
  border-top-left-radius: 8px;
}

#table-single-product td:last-child {
  border-bottom-right-radius: 8px;
  border-top-right-radius: 8px;
}

#table-single-product td {
  color: var(--dark);
}

#table-single-product tr:nth-child(even) {
  background-color: rgba(233, 235, 238, 0.3);
}

#table-single-product thead tr:first-child th {
  background-color: transparent;
}

#table-single-product thead tr:first-child th img {
  height: 55px;
}

#table-single-product thead tr:first-child th img.box-svg {
  height: 40px;
}

#table-single-product .model {
  font-weight: bold;
  color: var(--primary-color);
  /* Verde */
}

.btn-colore {
  border: none;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.dot {
  height: 7px;
  width: 7px;
  background-color: #989898;
  border-radius: 50px;
}

#accessori-carousel .splide__arrow--prev {
  left: -3em;
}

#accessori-carousel .splide__arrow--next {
  right: -3em;
}

#accessori-carousel .splide__pagination {
  bottom: -1em !important;
}

/* wrapper che forza aspect-ratio 1:1 */
#accessori-carousel .splide__slide .box-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* immagine che si adatta al box con cover */
#accessori-carousel .splide__slide .box-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* galleria carosello prodotto */
#box-product-gallery {
  position: relative;
  max-width: 80%; 
  margin-left: auto;
  margin-right: auto;
}

#box-product-gallery .splide__slide .slide-image {
  display: block;
  width: 100%;
  aspect-ratio: 12 / 9;
  overflow: hidden;
}

#box-product-gallery .splide__slide .slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

#box-product-gallery .splide__arrow--prev {
  left: -3rem;
}

#box-product-gallery .splide__arrow--next {
  right: -3rem;
}

#box-product-gallery .test {
  width: 140px !important;
  max-height: 110px;
}

#box-product-gallery .img-thumbnail {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  padding: 0;
  border-radius: 12px;
}

#box-product-gallery
.splide__track--nav
> .splide__list
> .splide__slide.is-active {
  border: 3px solid var(--primary-color);
  border-radius: 14px;
}

@media screen and (max-width: 768px) {
  #box-product-gallery .test {
    width: 90px !important;
    max-height: 70px;
  }

  #box-product-gallery
  .splide__track--nav
  > .splide__list
  > .splide__slide.is-active {
    border-radius: 10px;
  }

  #table-single-product {
margin-top: 5vh;
}

}


/* ------------------------------------------------- */
/* FORM CONFIGURATORE PRODOTTO SINGOLO */
/* ------------------------------------------------- */

#form-configuratore .decoration {
  position: absolute;
  left: 0;
  top: 40px;
  width: 100%;
  height: 400px;
  background-color: var(--primary-color);
  border-radius: 10px;
}

#form-configuratore .fase {
  background-color: var(--light-primary);
  color: #333333;
  padding: 18px 25px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  border-radius: 10px;
  font-size: 20px;
  transition: 0.4s;
  position: relative;
  margin-bottom: 10px;
  cursor: unset !important;
}

#form-configuratore .fase span {
  font-weight: bold;
  color: var(--primary-color);
  margin: 0 0 0 15px;
}

#form-configuratore .fase .title {
  margin: 0;
  color: var(--black-color);
  font-weight: bold;
}

#form-configuratore .open_icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

#form-configuratore .open_icon i {
  font-size: 15px;
  color: #333333;
}

#form-configuratore .active,
#form-configuratore .fase:hover {
}

#form-configuratore .content {
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#form-configuratore label {
  display: block;
  color: var(--dark);
}

#form-configuratore .radio-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-right: 25px;
}

#form-configuratore .radio-option:last-child {
  margin-right: 0;
}

#form-configuratore .radio-option label {
  margin-left: 5px;
  color: var(--black-color);
}

#colore .color-option {
  margin-right: 10px;
  position: relative;
}

#colore .color-option:last-child {
  margin-right: 0;
}

.color-option input {
  display: none;
}

.color-option input {
  display: none;
}

#colore .btn-colore {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.color-option input:checked + .btn-colore {
  border: 3px solid #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.color-option input:checked + .btn-colore::after {
  content: "\f14a";
  font-family: "Font Awesome 6 Pro";
  font-weight: 900;
  position: absolute;
  font-size: 30px;
  color: var(--primary-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#quantita input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--light-primary);
  box-shadow: none;
}

#checkbox-list .option-img {
  margin-right: 8px;
}

#checkbox-list .option-img img {
  height: 60px;
  width: 90px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--black);
}

#checkbox-list .option-item {
  display: flex;
  align-items: center;
}

#checkbox-list .option-item p {
  margin-left: 10px;
  line-height: 20px;
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  gap: 10px;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid #aeaeae;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}

.custom-checkbox input:checked + .checkmark {
  background-color: #ffffff;
  border-color: 1px solid var(--light-primary) !important;
}

.custom-checkbox input:checked + .checkmark::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Pro";
  font-size: 14px;
  color: #000;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}

#last-info input,
#last-info textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--light-primary);
  box-shadow: none;
}

.fase.disabled {
  background-color: #eaeaea;
  color: #999;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.fase.active {
}

.fase:not(.disabled):hover {
  background-color: var(--light-primary);
  color: #000;
}

/* ------------------------------------------------- */
/* PAGINA RISULTATI DI RICERCA */
/* ------------------------------------------------- */

#searchResults {
  min-height: 55vh;
}

#searchResults .search-label {
  display: inline-block;
  color: var(--dark);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
}

/* ------------------------------------------------- */
/* PAGINA 404 */
/* ------------------------------------------------- */

#page-404 {
  min-height: 54vh;
}



.fancybox-content {
	background-color: #ffffff
}

