/* ------------------------------------------------- */
/* BOX DEL PRODOTTO */
/* ------------------------------------------------- */

#box-prodotto {
  position: relative;
}

#box-prodotto .cont-title {
  position: relative;
  margin-top: 35px;
  transition: 0.2s ease-in-out;
}

#box-prodotto .cont-title .title {
  color: var(--dark);
  text-align: center;
}

#box-prodotto .cont-title img {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
}

#box-prodotto .content {
  visibility: hidden;
  opacity: 0;
  padding: 45px;
  transition: 0.2s ease-in-out;
}

#box-prodotto .content .button {
  margin-top: 30px;
  position: relative;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 15px 25px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 18px;
}

#box-prodotto .content .vertical-line {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
}

#box-prodotto .cover {
  visibility: visible;
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  transition: 0.2s ease-in-out;
}

#box-prodotto:hover .cont-title {
  transform: translateY(-70px);
}

#box-prodotto:hover .cover {
  visibility: hidden;
  opacity: 0;
  transition-delay: 0.05s;
}

#box-prodotto:hover .content {
  visibility: visible;
  opacity: 1;
  transition-delay: 0.05s;
}

/* ------------------------------------------------- */
/* BOX DEI SETTORI */
/* ------------------------------------------------- */

#box-settore {
  transition: .25s ease-in-out;
  background-color: #ffffff;
}

#box-settore:hover {
  transform: scale(1.02);
}

#box-settore .icona i {
  color: var(--primary-color);
  font-size: 60px;
  transition: 0.5s ease-in-out;
}

#box-settore h3 {
  font-family: var(--font-family2);
  font-size: 25px;
  color: var(--dark);
}

#box-settore p {
  color: var(--dark);
}



/* ------------------------------------------------- */
/* BOX DELLE NEWS */
/* ------------------------------------------------- */

#box-news .date {
  color: var(--dark);
  font-size: 24px;
  font-weight: 500;
}

#box-news .title {
  color: var(--dark);
  font-family: var(--font-family2);
  font-size: 24px;
  line-height: 34px;
}

#box-news .content {
  padding: 40px 50px;
}

#box-news img {
  transition: 1s ease-in-out;
}

#box-news:hover img {
  transform: scale(1.2);
}

@media screen and (max-width: 768px) {
  #box-news .date {
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
  }

  #box-news .title {
    color: var(--dark);
    font-family: var(--font-family2);
    font-size: 23px;
    line-height: 35px;
  }
}

/* ------------------------------------------------- */
/* BOX DELLE NORMATIVE */
/* ------------------------------------------------- */

#box-normativa .date {
  color: var(--dark);
  font-size: 24px;
  font-weight: 500;
}

#box-normativa .content {
  padding: 50px;
}

#box-normativa .title {
  color: var(--dark);
  font-family: var(--font-family2);
  font-size: 24px;
  line-height: 34px;
}

#box-normativa img {
  transition: 1s ease-in-out;
}

#box-normativa:hover img {
  transform: scale(1.2);
}

/* ------------------------------------------------- */
/* PAGINA DELLE NORMATIVE */
/* ------------------------------------------------- */

#loop-normative .container-fluid {
  max-width: unset !important;
}

/* ------------------------------------------------- */
/* SETTORE SINGOLO */
/* ------------------------------------------------- */

.background {
  position: fixed;
  top: 92px;
  left: 0;
  width: 100%;
  height: calc(100vh - 92px);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -1;
}

#intestazioneSettori {
  height: calc(100vh - 92px);
  position: relative;
  z-index: 1;
}

#intestazioneSettori .banner-descrizione {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 768px) {
  .background {
    position: relative;
    top: unset;
    left: unset;
    width: 100%;
    height: 30vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -1;
  }

  #intestazioneSettori {
    height: auto;
  }
}

/* ------------------------------------------------- */
/* PAGINA RISULTATI DI RICERCA */
/* ------------------------------------------------- */

#searchResults {
  min-height: 29vh;
}

#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;
}

/* ------------------------------------------------- */
/* NORMATIVA SINGOLA - tabella */
/* ------------------------------------------------- */

.table-classi thead tr th {
  padding: 15px;
  background-color: var(--light-grey);
  text-align: center;
  vertical-align: bottom;
}

.table-classi tbody tr td {
  text-align: center;
}

/* ------------------------------------------------- */
/* PRODOTTO SINGOLO */
/* ------------------------------------------------- */

.sticky-img {
  position: sticky !important;
  top: 120px !important;
}

#slider-prodotto {
  width: 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  display: flex;
  align-items: end;
}

#slider-prodotto.full-height {
  height: calc(100vh - 92px);
}

#slider-prodotto.mid-height {
  height: 60vh;
}

#slider-prodotto .product-decoration {
  position: absolute;
  bottom: 110%;
  left: 0;
  width: 450px;
}

#dati-prodotto .label {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 25px;
}

.dimension-icon {
  height: 100px;
}

.banner-disponibilita {
  padding: 10px 20px;
  background-color: #989898;
  color: #ffffff;
  font-weight: bold;
}

.banner-materiali {
  position: relative;
  padding: 10px 20px;
  background-color: #f3f3f3;
  color: var(--dark);
  font-size: 20px;
}

.banner-materiali::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #f3f3f3;
  z-index: 2;
}

.banner-materiali p {
  position: relative;
  z-index: 2;
}

#dati-prodotto .border-bottom {
  border-bottom: 2px solid #707070 !important;
}

.indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140%;
  height: 2px;
  background-color: #707070;
  z-index: 100;
}

.indicator .dot {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  border-radius: 50px;
  border: 1px solid #ffffff;
  background-color: var(--primary-color);
}

.indicator .animation {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle fill="none" stroke-opacity="1" stroke="%23104aad" stroke-width=".5" cx="100" cy="100" r="0"><animate attributeName="r" calcMode="spline" dur="2" values="1;80" keyTimes="0;1" keySplines="0 .2 .5 1" repeatCount="indefinite"></animate><animate attributeName="stroke-width" calcMode="spline" dur="2" values="0;25" keyTimes="0;1" keySplines="0 .2 .5 1" repeatCount="indefinite"></animate><animate attributeName="stroke-opacity" calcMode="spline" dur="2" values="1;0" keyTimes="0;1" keySplines="0 .2 .5 1" repeatCount="indefinite"></animate></circle></svg>');
  height: 60px;
  width: 60px;
}

.product-table {
  border-collapse: collapse;
  width: 100%;
  font-family: sans-serif;
  font-size: 14px;
  text-align: center;
}

.product-table thead th {
  background-color: #f8f8f8;
  padding: 3px 10px;
  font-weight: bold;
  font-size: 17px;
  border-right: 2px solid rgb(233, 233, 233);
}

.product-table thead th:last-child {
  border-right: none;
}

.product-table tbody td {
  padding: 3px 10px;
  font-size: 17px;
  border-right: 2px solid rgb(233, 233, 233);
}

.product-table tbody td:last-child {
  border-right: none;
}

.product-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.banner-materiali .indicator {
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.banner-prestazioni {
  background-color: #f3f3f3;
}

.banner-prestazioni a {
  text-decoration: none;
  color: var(--dark);
  transition: 0.1s ease-in-out;
}

.banner-prestazioni a:hover {
  opacity: 0.8;
}

.badge-efficienza {
  padding: 0px 10px;
  background-color: #e8e8e8;
  font-size: 15px;
  display: inline-flex;
  margin-bottom: 10px;
}

.technical-table {
  width: 100%;
  font-size: 18px;
}

.technical-table tr:nth-child(even) td {
  background-color: #f3f3f3;
}

.technical-table tr td {
  padding: 10px;
}

.technical-table tr td:first-child {
  width: 50%;
  font-weight: bold;
}

.technical-table tr td:last-child {
  width: 50%;
}


/* ------------------------------------------------- */
/* FORM CONFIGURATORE PRODOTTO SINGOLO */
/* ------------------------------------------------- */

#form-configuratore .fase {
  background-color: #f8f8f8;
  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 5px 0 15px;
}

#form-configuratore .fase .title {
  margin: 0;
  color: var(--black-color);
  font-weight: bold;
  text-transform: uppercase;
}

#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(--primary-color);
  margin-bottom: 5px;
}

#form-configuratore .box-input {
  position: relative;
}

#form-configuratore .box-input input {
  width: 100%;
  padding: 13px 13px 13px 70px;
  border: 1px solid #989898;
  border-radius: 5px;
  color: var(--primary-color);
}

#form-configuratore .box-input input:focus {
  outline: none;
}

#form-configuratore .box-input.altro-materiale input {
  padding-left: 13px;
}

#form-configuratore .form-dimensions {
  position: absolute;
  top: 50%;
  left: -70px;
  transform: translateY(-50%);
  height: 150px;
  width: 150px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

#form-configuratore .dimension-lines {
  position: absolute;
  top: 0%;
  left: -10%;
  width: 110%;
  height: 110%;
  border-left: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

#form-configuratore .dimension-lines .spessore {
  position: absolute;
  bottom: -3px;
  right: -106px;
  width: 106px;
  height: 2px;
  background-color: var(--primary-color);
  transform: rotate(-57deg);
  transform-origin: 0%;
}

#form-configuratore .box-input .decoration {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 60px;
  background-color: #f0f0f0;
  border: 1px solid #989898;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-color);
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

#form-configuratore .box-input .decoration:before {
  display: none;
}

#form-configuratore .badge {
  position: absolute;
  background-color: #ffffff;
  width: 80px;
  font-size: 14px;
  color: var(--primary-color);
  border-radius: 0;
}

#form-configuratore .badge-A {
  padding: 30px 0;
  top: 50%;
  transform: translateY(-50%);
  left: -40px;
}

#form-configuratore .badge-B {
  width: auto;
  padding: 0 30px;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

#form-configuratore .badge-C {
  padding: 0;
  width: auto;
  bottom: 10px;
  right: -80px;
}

.color-option input {
  display: none;
}

.color-option input {
  display: none;
}

#colore .btn-colore {
  display: inline-block;
  width: 80px;
  height: 80px;
  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: #cbcbcb;
  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 label {
  font-size: 14px;
  color: var(--dark);
}

#last-info span {
  color: var(--primary-color);
}

#last-info input,
#last-info textarea {
  width: 100%;
  padding: 13px;
  border-radius: 5px;
  border: 1px solid #eeeeee;
  box-shadow: inset 0px 3px 6px #0000000d;
}

.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;
}

#form-configuratore .form-group {
  display: flex;
  flex-direction: column;
}

#form-configuratore select {
  width: 100%;
  font-size: 16px;
  color: #2a57c2;
  padding: 13px;
  border: 1px solid #989898;
  border-radius: 5px;
  background-color: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%232a57c2" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

#form-configuratore select:focus {
  outline: none;
}

@media screen and (max-width: 768px) {
  #form-configuratore .fase {
    font-size: 17px;
  }

  #form-configuratore label {
    font-size: 14px;
  }

  #form-configuratore .form-dimensions {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 110px;
    width: 110px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
  }

  #form-configuratore .content {
    border-radius: 10px;
    margin-bottom: 10px;
  }

  #form-configuratore .dimension-settings {
    width: 70%;
    margin: 0 auto;
  }

  #form-configuratore .dimension-lines {
    position: absolute;
    top: 0%;
    left: -20%;
    width: 120%;
    height: 120%;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
  }

  #form-configuratore .badge {
    position: absolute;
    background-color: #ffffff;
    width: 70px;
    font-size: 11px;
    color: var(--primary-color);
    border-radius: 0;
  }

  #form-configuratore .badge-A {
    padding: 15px 0;
    top: 50%;
    transform: translateY(-50%);
    left: -35px;
  }

  #form-configuratore .badge-B {
    width: auto;
    padding: 0 15px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
  }

  #form-configuratore .badge-C {
    padding: 10px 0;
    width: auto;
    bottom: 60px;
    right: -71px;
  }
}