/* =========================================================
   FONT
========================================================= */
@font-face{
  font-family: 'KohinoorLatin';
  src: url('fonts/KohinoorLatin-Light.woff2') format('woff2'),
       url('fonts/KohinoorLatin-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}
@font-face{
  font-family: 'KohinoorLatin';
  src: url('fonts/KohinoorLatin-Demi.woff2') format('woff2'),
       url('fonts/KohinoorLatin-Demi.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

/* =========================================================
   TIPOGRAFIA BASE
========================================================= */
body{
  font-family: 'KohinoorLatin', sans-serif;
  font-weight: 300;
}

h1,h2,h3,h4,h5,h6{
  font-family: 'KohinoorLatin', sans-serif;
  font-weight: 600;
}

strong,b{
  font-weight: 600 !important;
}

/* =========================================================
   WRAPPER + BREADCRUMB
========================================================= */
.product-template-wrapper{
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.product-category-row{
  padding: 20px 40px;
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  color: #666;
}
.product-category-row a{
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   SEZIONE IMMAGINI + INFO
========================================================= */
.product-image-row{
  display: flex;
  gap: 100px;
  margin-top: 20px;
  align-items: stretch;
}

.product-image-column{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-image img{
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

/* thumbnails: 4 slot fissi */
.product-thumbnails{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 450px;
}

.product-thumb{
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.product-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.product-thumb--empty{
  width: 100%;
  height: 100%;
  display: block;
  background: #f6f6f6;
}

.product-info-column{
  flex: 1;
  align-items: flex-start;
  border-left: 0.5px solid #ddd;
  padding-top: 65px;
  padding-bottom: 30px;
}
.product-info-column > *:not(:last-child){
  margin-bottom: 20px;
}

.product-title-row{
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 8px;
}
.product-title{
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  text-align: left;
}
.product-cert-badge{
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.product-description{
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
  max-width: 500px;
  text-decoration: none !important;
}

.product-cert-badges{display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
.product-cert-badge{height:48px; width:auto;}
/* =========================================================
   MATERIALI APPLICATIVI
========================================================= */
.materiali-applicativi{
  margin-top: 18px;
}

.materiali-applicativi .materiali-title{
  margin: 18px 0 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #333;
}

.materiali-applicativi .materiali-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.materiali-applicativi .materiale-item{
  display: flex;
  align-items: center;
  gap: 10px;
}

.materiali-applicativi .materiale-icon{
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex: 0 0 22px;
  max-width: 40px;
}

.materiali-applicativi .materiale-text{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.materiali-applicativi .materiale-text small{
  opacity: 0.75;
  font-size: 12px;
}

/* (come nel tuo CSS originale) */
.materiali-applicativi .materiale-text strong{
  font-weight: 300 !important;
}

/* =========================================================
   BOTTONI (scheda / acquista / contatto)
========================================================= */
.product-buttons{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 600px;
  margin-top: auto;
}

.product-buttons .buttons-row{
  display: flex;
  gap: 15px;
  width: 100%;
}

.product-buttons a,
.contact-button{
  padding: 14px 20px;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.product-buttons .btn-tech{
  background-color: #333333;
}
.product-buttons .btn-tech:hover{
  background-color: #333333 !important;
  color: #ffffff !important;
  cursor: default !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.product-buttons .btn-buy{
  background-color: #dedacf;
  color: #000000;
}


/* ===========================
   VARIANTI DISPONIBILI: wrapper come tabella (1400px)
=========================== */

.product-family-grid{
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 20px;          /* aria laterale */
}

.product-family-cards{
  padding: 20px 0;          /* tolgo il padding enorme laterale */
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 25px;
}

.family-card-desc{
  font-size: 13px;
  line-height: 1.2;
  margin: 6px 0 0;
  color: #666;
  text-align: center;

  white-space: wrap;
  text-overflow: ellipsis;
}
@media (max-width: 768px){

  .family-card-desc{
    font-size: 10px;
    line-height: 1.25;
    margin-top: 4px;
    padding: 0 4px;

    display: -webkit-box;
    -webkit-line-clamp: 3;      /* massimo 2 righe */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

}

/* Tablet */
@media (max-width: 1024px){
  .product-family-grid{
    padding: 0 16px;
  }
  .product-family-cards{
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px){
  .product-family-grid{
    padding: 0 12px;
  }
  .product-family-title{
    font-size: 20px;
    margin-bottom: 16px;
  }
  .product-family-cards{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .family-card{
    padding: 14px;
  }
  .family-card h3{
    font-size: 12px;
  }
}

/* =========================================================
   GRIGLIA "FAMIGLIA" (Varianti disponibili)
========================================================= */
.product-family-wrapper{
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.product-family-title{
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.product-family-cards{
  display: grid;
  padding: 20px 50px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
}

.family-card{
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  transition: 0.3s ease;
}
.family-card img{
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
}
.family-card h3{
  font-size: 14px;
  margin: 0;
}
.family-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.family-card--parent{
  border: 2px solid #e30613;
}
.family-card a{
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   SEZIONE TABELLA DATI TECNICI
========================================================= */
.selection-table-section{
  background-color: #f1f1f1;
  color: #000000;
  padding: 20px;
  margin-top: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.selection-table-wrapper{
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.selection-table-wrapper p{
  text-align: center;
}

.section-title{
  font-size: 50px;
  font-weight: 300;
  margin-bottom: 50px;
  margin-top: 30px;
  text-align: center;
  color: #555;
}

/* titolo + badge confezioni */
.tech-title-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* Mobile: titolo sopra, poi immagine, poi testo (super leggibile) */
@media (max-width: 768px){
.tech-title-row{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}
.selection-table-wrapper p{
  text-align: left;
}

}


.tech-packaging-badges{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.tech-packaging-badge{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: #000 !important;
}
.tech-packaging-badge img{
  width: 56px;
  height: 50px;
  display: block;
  border-radius: 6px;
}
.tech-packaging-label{
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
  color: #000 !important;
}
.tech-packaging-badge:hover,
.tech-packaging-badge:focus,
.tech-packaging-badge:active{
  background: #cfcece !important;
  color: #000 !important;
  border: 1px solid #e6e6e6 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* tab bottoni sopra tabella */
.dt-tab-buttons{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
}
.dt-tab-btn{
  border: 1px solid #e6e6e6;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #000;
}
.dt-tab-buttons .dt-tab-btn.is-active{
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}
.dt-tab-buttons .dt-tab-btn.is-active:hover{
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}
.dt-tab-panel{ display: none; }

/* tabella ACF */
.acf-selection-table{
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}
.acf-selection-table th,
.acf-selection-table td{
  padding: 10px;
  text-align: center;
}
.acf-selection-table th{
  font-weight: 600;
}
.acf-selection-table td{
  color: #000;
}
.acf-selection-table td:nth-child(2){
  font-weight: bold;
}


.dt-show-more-wrap{
  display:flex;
  justify-content:center;
  margin-top: 14px;
}
.dt-show-more-btn{
  min-width: 220px;
}
/* Bottone "Vedi di più" */
.dt-show-more-btn{
  background-color: #d70000 !important;
  color: #fff !important;
  border: 1px solid #d70000 !important;
}

/* niente hover/focus/active (rimane identico) */
.dt-show-more-btn:hover,
.dt-show-more-btn:focus,
.dt-show-more-btn:active{
  background-color: #d70000 !important;
  color: #fff !important;
  border-color: #d70000 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: pointer; /* oppure default se vuoi */
  text-decoration: none !important;
}
/* =========================================
   TABELLA + IMMAGINI ALLINEATE PERFETTE
========================================= */
/* ====== FIX: tabella + immagini sempre allineate in altezza ====== */
.two-columns-layout{
  display:flex;
  gap: 30px;
  align-items: stretch !important;   /* fondamentale */
}

/* larghezze */
.table-column{ flex: 0 0 72%; }
.acf-column{
  flex: 0 0 28%;
  display:flex;
  align-items: stretch;
  padding: 1rem;
  box-sizing: border-box;
  min-height: 0; /* importante in flex */
}

/* wrapper immagini: prende tutta l’altezza della colonna */
.acf-content{
  width: 100%;
  height: 100%;
  display:flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center; /* default 1 immagine centrata */
  min-height: 0;
}

/* immagini: sempre contenute, mai "spariscono" */
.acf-content img.technical-image{
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display:block;
}

/* 2 immagini: si dividono l'altezza della colonna */
.acf-content.is-2{
  justify-content: space-between;
}
.acf-content.is-2 img.technical-image{
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: calc((100% - 15px) / 2); /* 15px = gap */
}

/* Tablet/Mobile: già vai in colonna, ok */
@media (max-width: 1024px){
  .two-columns-layout{ flex-direction: column; }
  .table-column, .acf-column{ flex: 1 1 auto; width: 100%; }
  .acf-content{ height: auto; }
  .acf-content img.technical-image{ max-height: none; }
}

/* =========================================================
   SPECIFICHE CERTIFICAZIONI (sotto tabella)
========================================================= */
.spec-cert-section{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e6e6e6;
}
.spec-cert-title{
  font-size: 18px;
  margin: 0 0 14px;
  font-weight: 700;
}
.spec-cert-grid{
  display: grid;
  gap: 12px;
}
.spec-cert-item{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
}
.spec-cert-logo img{
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.spec-cert-label{
  font-weight: 700;
  font-size: 15px;
  color: #111;
  line-height: 1.2;
  margin-bottom: 4px;
}
.spec-cert-desc{
  font-size: 13px;
  color: #444;
  line-height: 1.35;
}

/* =========================================================
   BOTTONI "Manuale tecnico" + GRUPPO BOTTONI
========================================================= */
.product-buttons-row{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.btn-btn{
  background-color: #e2e2e2;
  color: #333;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease-in-out;
  min-width: 150px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-btn:hover{
  background-color: #ccc;
}

/* raggruppamento bottoni (certificazioni / scheda tecnica) */
.grouped-buttons{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* =========================================================
   DROPDOWN CERTIFICAZIONI (lista)
========================================================= */
#certificazioni-section{
  display: none;
}

.certificazioni-dropdown-list{
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 10%);
  list-style: none;
  margin: 0;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 10px;
  max-width: 440px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 9999;
}

.certificazioni-dropdown-list li{
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #ddd;
  gap: 12px;
}
.certificazioni-dropdown-list li:last-child{
  border-bottom: none;
}

.cert-icon{
  width: 28px;
  height: auto;
  display: inline-block;
}

/* =========================================================
   BOTTONI "Richiedi" in tabella (JS)
========================================================= */
.btn-small{
  background-color: #d70000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
}
a.richiesta-dt{
  display: inline-block;
  padding: 6px 6px;
  border-radius: 8px;
  border: 1px solid #ddd;
  text-decoration: none;
  font-weight: 400;
  color: #fff;
}
a.richiesta-dt:hover{
  opacity: .85;
}

/* =========================================================
   DESCRIZIONE LUNGA
========================================================= */
.product-features-row{
  max-width: 1490px;
  margin: 40px auto;

}
.product-features-section{
  text-align: justify;
  padding: 0 11px;
}
.product-features-section h2{
  font-size: 24px;
  text-align: left;
  font-weight: 600;
  margin-bottom: 15px;
}
.product-features-section p{
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   SEQUENZA DI MONTAGGIO
========================================================= */
.montaggio-section{
  text-align: center;
  margin-top: 3em;
  background: #fff;
}
.section-title1{
  font-size: 50px;
  font-weight: 300;
  text-align: center;
  color: #555;
  padding-top: 30px;
  padding-bottom: 30px;
}
.montaggio-blocco{
  margin-bottom: 3em;
}
.montaggio-descrizione{
  padding-bottom: 30px;
  font-size: 20px; 
  display: none;
}
.montaggio-blocco h3{
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 0.5em;
}
.montaggio-img-sequence{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 1em;
  margin-bottom: 3em;
}
.montaggio-img-sequence img{
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background: #fff;
  padding: 5px;
  cursor: pointer;
}

/* =========================================================
   APPROFONDIMENTI
========================================================= */
.product-insights-wrapper{
  width: 100%;
}
.product-insights-section{
  max-width: 1400px;
  margin: 40px auto;
  padding: 40px 100px;
  background-color: #fff;
  border-radius: 5px;
  transition: box-shadow 0.3s ease-in-out;
}
.product-insights-section h2{
  font-size: 50px;
  text-align: center;
  font-weight: 300;
  margin-bottom: 50px;
}

.product-insight-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 150px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 0.5px solid #ddd;
  flex-direction: row-reverse;
}
.product-insight-row:nth-child(even){ flex-direction: row; }
.product-insight-row:nth-child(odd){ flex-direction: row-reverse; }
.product-insight-row:last-child{ border-bottom: none; }

.product-insight-row .insight-text{
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}
.product-insight-row .insight-image{
  flex: 0 0 300px;
  max-width: 300px;
  margin-right: 100px;
}
.product-insight-row .insight-image img{
  width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s ease-in-out;
}
.product-insight-row .insight-image img:hover{
  transform: scale3d(1.2,1.2,1.2);
}

/* ===========================
   INSIGHT TITOLI - MOBILE FIX
=========================== */
@media (max-width: 768px){

  /* se il titolo è dentro <strong> all'inizio del testo */
  .product-insight-row .insight-text strong:first-child,
  .product-insight-row .insight-text b:first-child{
    display: block;
    font-size: 13px;
    line-height: 1.05;
    letter-spacing: .1px;
    margin: 0 0 10px 0;
    text-align: left;
    white-space: nowrap !important;
    overflow-wrap: break-word;
    word-break: normal;
  }

  /* elimina gli spazi "strani" visivi quando il browser spezza */
  .product-insight-row .insight-text{
    hyphens: auto;
    text-align: left; /* su mobile è più leggibile di justify */
  }

  /* se per caso dentro al titolo ci sono <br>, almeno non impazzisce */
  .product-insight-row .insight-text strong:first-child br{
    display: none;
  }

  /* Evita che gli strong vadano a capo */
.product-insight-row .insight-text strong{
  display: inline !important;
}
}



/* =========================================================
   CAROUSEL (slick)
========================================================= */
.product-carousel{
  margin: 30px auto;
  max-width: 100%;
  overflow: hidden;
}
.carousel-slide{
  padding: 10px;
  text-align: center;
}
.carousel-slide img{
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #fff;
}
.product-carousel .slick-slide{
  padding: 0 10px;
  box-sizing: border-box;
}
.product-carousel .slick-list{
  margin: 0 -10px;
}
.product-carousel img{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

/* =========================================================
   REPOSITORY MATERIALI TECNICI
========================================================= */
.technical-materials-section{
  width: 100%;
  background-color: #333;
  padding: 50px 0;
  text-align: center;
  color: #fff;
}

.technical-materials-wrapper{
  max-width: 1400px;
  margin: auto;
  padding: 20px;
}

.technical-materials-wrapper h2{
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.technical-materials-wrapper p{
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.product-buttons-row1{
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.product-buttons-row1 .btn{
  background-color: #fff;
  color: #333;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease-in-out;
  min-width: 200px;
  text-align: center;
}

.product-buttons-row1 .btn:hover{
  background-color: #dedacf;
  color: #000;
}

/* =========================================================
   OVERLAY LIGHTBOX / ZOOM (JS)
========================================================= */
.image-lightbox-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.image-lightbox-overlay img{
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}
@keyframes zoomIn{
  from{ transform: scale(0.8); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

.image-zoom-overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}
.image-zoom-overlay img{
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* MOBILE */
@media (max-width: 768px){

  .product-template-wrapper{
    padding: 20px 10px;
  }

  .product-family-wrapper{
    margin-top: 0px;
  }

  .product-category-row{
    padding: 15px 0;
    font-size: 13px;
    text-align: center;
    word-break: break-word;
  }
  .product-category-row a{
    display: inline-block;
    margin: 0 5px;
    font-size: 13px;
  }

  .product-image-row{
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 0 10px;
  }

  .product-image img{
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }

  .product-thumbnails{
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
  }

  .product-info-column{
    border-left: none;
    padding: 0 10px;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .product-title{
    font-size: 20px;
    text-align: center;
  }

  .product-description{
    font-size: 15px;
    max-width: 100%;
    text-align: justify;
  }

  .materiali-applicativi .materiali-title{
    font-size: 16px;
  }
  .materiali-applicativi .materiale-icon{
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    max-width: 20px;
  }

  .product-buttons{
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    padding: 0 10px;
  }
  .product-buttons a,
  .contact-button{
    width: 100%;
    font-size: 15px;
    padding: 12px 16px;
  }
  .product-buttons .buttons-row{
    flex-direction: column;
    gap: 10px;
  }

  .product-family-cards{
    padding: 20px 16px;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 16px;
  }

  .selection-table-section{
    padding: 10px;
  }
  .selection-table-wrapper{
    padding: 10px;
  }
  .section-title{
    font-size: 20px;
    margin-bottom: 30px;
    margin-top: 20px;
  }

  .acf-selection-table th,
  .acf-selection-table td{
    font-size: 9px;
    padding: 6px;
  }

  .two-columns-layout{
    flex-direction: column;
    gap: 15px;
    padding: 0 0px;
  }

  .table-column,
  .acf-column{
    width: 100%;
  }

  .acf-column{
    min-height: 160px;
    padding: 10px;
    background-color: #fff;
  }

  .acf-content img.technical-image{
    width: auto;
    height: 90%;
    max-height: 100%;
    max-width: 80%;
    object-fit: contain;
  }

  .product-buttons-row{
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 0 10px;
  }
  .btn-btn{
    width: 100%;
    max-width: 100px;
    font-size: 12px;
    padding: 12px 11px;
    min-width: unset;
  }

  .certificazioni-dropdown-list{
    position: static;
    transform: none;
    margin: 20px auto;
    padding: 12px;
    width: 90%;
  }
  .certificazioni-dropdown-list li{
    padding: 10px 8px;
    font-size: 14px;
  }
  .cert-icon{
    width: 24px;
  }

  .product-features-row{
    padding: 15px 10px;
    margin: 30px auto;
  }
  .product-features-section h2{
    font-size: 20px;
    margin-bottom: 10px;
  }
  .product-features-section p{
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
    padding: 0 17px;
  }
  .product-features-section li{
    font-size: 14px;
   
  }

  .section-title1{
    font-size: 28px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .montaggio-descrizione{
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
    padding: 0 20px;
    padding-bottom: 25px;
  }
  .montaggio-blocco h3{
    font-size: 1.3em;
    padding: 0 10px;
  }
  .montaggio-img-sequence{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 1em;
    margin-bottom: 2em;
    padding: 20px 20px;
  }
  .montaggio-img-sequence img{
    width: 100%;
    height: auto;
    padding: 0;
  }

  .product-insights-section{
    padding: 20px 30px;
    margin: 0;
  }
  .product-insights-section h2{
    font-size: 28px;
    margin-bottom: 30px;
  }
  .product-insight-row{
    flex-direction: column !important;
    gap: 20px;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
  }
  .product-insight-row .insight-image{
    max-width: 100%;
    margin-right: 0;
  }
  .product-insight-row .insight-text{
    font-size: 14px;
    text-align: justify;
  }

  .carousel-slide img{
    max-height: 250px;
  }

  .technical-materials-section{
    padding: 40px 0;
  }
  .technical-materials-wrapper{
    padding: 0 15px;
  }
  .technical-materials-wrapper h2{
    font-size: 20px;
  }
  .technical-materials-wrapper p{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .product-buttons-row1{
    padding: 0 16px;
    gap: 12px;
    margin-top: 20px;
  }
  .product-buttons-row1.single-button{
    justify-content: center;
  }
  .product-buttons-row1.single-button .btn{
    width: 100%;
    max-width: 300px;
    font-size: 14px;
    padding: 12px 16px;
  }
  .product-buttons-row1.multi-button{
    justify-content: space-between;
  }
  .product-buttons-row1.multi-button .btn{
    flex: 1 1 calc(50% - 6px);
    max-width: 100%;
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px){

  .product-template-wrapper{
    padding: 0 20px;
  }

  .product-category-row{
    padding: 18px 0;
    font-size: 13.5px;
  }

  .product-image-row{
    gap: 50px;
  }

  .product-title{
    font-size: 22px;
  }
  .product-description{
    font-size: 15px;
    max-width: 600px;
  }

  .product-info-column{
    padding-left: 30px;
  }

  .product-buttons{
    gap: 12px;
    max-width: 90%;
  }
  .product-buttons a,
  .contact-button{
    font-size: 15px;
  }

  .section-title{
    font-size: 36px;
    margin-bottom: 40px;
  }

  .acf-selection-table th,
  .acf-selection-table td{
    font-size: 15px;
    padding: 10px;
  }

  .acf-content img.technical-image{
    max-width: 220px;
  }

  .product-insights-section{
    padding: 30px 40px;
  }
  .product-insights-section h2{
    font-size: 36px;
    margin-bottom: 40px;
  }
  .product-insight-row{
    gap: 80px;
  }
  .product-insight-row .insight-image{
    flex: 0 0 250px;
    max-width: 250px;
    margin-right: 50px;
  }
  .product-insight-row .insight-text{
    font-size: 15px;
  }

  .technical-materials-wrapper h2{
    font-size: 22px;
  }
  .technical-materials-wrapper p{
    font-size: 15px;
    padding: 0 20px;
  }
  .product-buttons-row1 .btn{
    font-size: 15px;
    min-width: 180px;
  }
}

/* LARGE */
@media (min-width: 1280px){

  .product-image-row{
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-info-column{
    padding-left: 60px;
  }
  .product-description{
    max-width: 600px;
    font-size: 17px;
  }
  .product-title{
    font-size: 26px;
  }

  .selection-table-wrapper{
    padding: 30px;
  }
  .section-title{
    font-size: 48px;
  }

  .two-columns-layout{
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
  .table-column,
  .acf-column{
    padding: 25px;
  }
  .acf-content img.technical-image{
    max-width: 280px;
  }

  .product-insights-section{
    padding: 50px 120px;
  }
  .product-insights-section h2{
    font-size: 54px;
  }
  .product-insight-row .insight-text{
    font-size: 17px;
  }

  .technical-materials-wrapper h2{
    font-size: 26px;
  }
  .technical-materials-wrapper p{
    font-size: 17px;
    max-width: 900px;
  }
  .product-buttons-row1 .btn{
    font-size: 17px;
    min-width: 220px;
  }
}


/* ===========================
   TABELLA DATI TECNICI RESPONSIVE
=========================== */

.acf-selection-table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.acf-selection-table{
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
}

.acf-selection-table th,
.acf-selection-table td{
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.acf-selection-table th{
  font-weight: 600;
}

@media (max-width: 768px){
  .acf-selection-table{
    min-width: 550px;
  }

  .acf-selection-table th,
  .acf-selection-table td{
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* ===========================
   CARATTERISTICHE + FOTO A DESTRA
=========================== */

.features-two-cols{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:80px;
}

.features-col--text{ flex: 0 0 65%; }

.features-col--image{
  flex: 0 0 30%;
  display:flex;
  justify-content:flex-end;
}

.features-image-box{
  width:100%;
  min-height:360px;
  padding:40px;
  background:#f6f6f6;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.features-image-box img{
  max-width:370px;
  width:100%;
  height:auto;
  object-fit:contain;
}

/* CARATTERISTICHE: se non c'è immagine, testo full-width */
.features-two-cols.no-image{
  display: block !important;    /* annulla il flex */
}

.features-two-cols.no-image .features-col--text{
  width: 100% !important;
  flex: none !important;
  max-width: 100% !important;
}

.features-two-cols.no-image .features-col--image{
  display: none !important;
}

/* iPad: immagine più piccola, gap ridotto */
@media (max-width: 1024px){
  .features-two-cols{
    gap:30px;
  }
  .features-col--text{ flex: 0 0 60%; }
  .features-col--image{ flex: 0 0 40%; }
  .features-image-box{
    min-height:260px;
    padding:24px;
  }
  .features-image-box img{
    max-width:240px;
  }
}

/* Mobile: titolo sopra, poi immagine, poi testo (super leggibile) */
@media (max-width: 768px){
  .features-two-cols{
    flex-direction:column;
    gap:14px;
  }
  .features-col--text,
  .features-col--image{
    flex: 0 0 auto;
    width:100%;
  }

  .features-image-box{
    min-height:0;
    padding:16px;
  }
  .features-image-box img{
    max-width:220px;
  }
}



/* ===== FIX IMMAGINE TECNICA ACF: iPad + Mobile ===== */
@media (max-width: 1024px){
  .acf-content img.technical-image{
    width: 100%;
    height: auto !important;
    max-width: 360px;     /* regola la grandezza */
    max-height: 260px;    /* regola la grandezza */
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}

/* Mobile: un filo più piccola */
@media (max-width: 768px){
  .acf-content img.technical-image{
    max-width: 150px;
    max-height: 150px;
  }
}
/* ===========================
   PULSANTI
=========================== */
.product-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 600px;
    margin-top: auto;
}
.product-buttons .btn-tech:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
    cursor: default !important;
    box-shadow: none !important;
    text-decoration: none !important;
}


.product-buttons a,
.contact-button {
    padding: 14px 20px;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}



.product-buttons .btn-tech {
    background-color: #333333;
}



.product-buttons .btn-buy {
    background-color: #dedacf;
    color: #000000;
}

.product-buttons .buttons-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.product-buttons .buttons-row.full-width {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===========================
   PULSANTI - MOBILE
=========================== */
@media screen and (max-width: 768px) {
    .product-buttons {
        flex-direction: row;
        gap: 10px;
        max-width: 100%;
        padding: 0 10px !important;
    }

    .product-buttons a,
    .contact-button {
        width: 100%;
        font-size: 15px;
        padding: 12px 16px !important;
    }

    .product-buttons .buttons-row {
        flex-direction: column;
        gap: 10px;
    }

    .product-buttons .buttons-row.full-width {
        display: block;
        text-align: center;
    }
}


/* ===========================
   PULSANTI - TABLET
=========================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .product-buttons {
        gap: 12px;
        max-width: 90%;
    }

    .product-buttons a,
    .contact-button {
        font-size: 15px;
    }
}


/* modale per invia email o whatsapp per il prodotto  */ 
.request-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.request-modal{
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  position: relative;
  text-align: center;
}

.request-modal h3{
  margin: 0 0 10px;
  font-size: 22px;
}

.request-modal p{
  margin: 0 0 18px;
  font-size: 15px;
}

.request-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.request-btn{
  display: inline-block;
  min-width: 130px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.request-btn-email{
  background: #d70000;
  color: #fff;
}

.request-btn-whatsapp{
  background: #25D366;
  color: #fff;
}

.request-close{
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: #666;
  font-size: 10px;
  cursor: pointer;
}
.family-card.is-current {
  border: 2px solid #e30613;
  box-shadow: 0 0 0 1px #e30613 inset;
}

.tech-format-box {
  margin: 18px 0 24px;
  padding: 18px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
}

.tech-format-heading {
  margin-bottom: 14px;
  text-align: left;
}

.tech-format-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #c00000;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tech-format-heading p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
}

.tech-packaging-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-packaging-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tech-packaging-badge:hover,
.tech-packaging-badge.is-active {
  border-color: #c00000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.tech-packaging-label {
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

.tech-packaging-badge img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.tech-intro-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}
@media (max-width: 768px) {
  .tech-format-box {
    padding: 14px;
  }

  .tech-packaging-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tech-packaging-badge {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 110px;
  }

  .tech-packaging-label {
    white-space: normal;
  }
}

.tech-title-row {
  display: block;
  text-align: center;
  margin-bottom: 35px;
}

.tech-format-box--inline {
  max-width: 720px;
  margin: 0 0 22px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
}

.tech-format-box--inline .tech-format-heading {
  margin-bottom: 14px;
}

.tech-format-kicker {
  display: block;
  color: #e30613;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tech-format-box--inline .tech-format-heading p {
  margin: 0;
}

.tech-packaging-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tech-packaging-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
}

.tech-packaging-badge img {
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
}

.tech-packaging-badge.is-active {
  background: #e5e5e5;
  border-color: #cfcfcf;
}

.tech-packaging-label {
  font-weight: 700;
}

.spec-cert-section {
  max-width: 900px;
  margin: 55px auto 0 auto;
  padding: 0 20px;
  text-align: center;
}

.spec-cert-title {
  text-align: center;
  margin-bottom: 18px;
}

.spec-cert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
}

.spec-cert-item {
  width: 100%;
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 10px;
  text-align: left;
}

.spec-cert-logo img {
  max-width: 70px;
  height: auto;
}

.spec-cert-text {
  flex: 1;
}

.spec-cert-label {
  font-weight: 700;
  margin-bottom: 4px;
}

.spec-cert-desc {
  color: #555;
}


/* =========================================================
   FIX BOX "SELEZIONA FORMATO" ALLINEATO ALLA TABELLA
========================================================= */

.tech-format-box--inline {
  width: 100%;
  max-width: none;
  margin: 0 0 22px 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Fascia rossa sopra */
.tech-format-box--inline .tech-format-heading {
  background: #d70000;
  color: #fff;
  padding: 14px 18px;
  margin: 0;
  border-radius: 10px 10px 0 0;
  text-align: left;
}

.tech-format-box--inline .tech-format-kicker {
  display: block;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 6px 0;
}

.tech-format-box--inline .tech-format-heading p {
  color: #fff;
  margin: 0;
  font-size: 15px;
}

/* Area bianca dei bottoni */
.tech-format-box--inline .tech-packaging-badges {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

/* Bottoni formato: testo + immagine affiancati */
.tech-format-box--inline .tech-packaging-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 150px;
  min-height: 66px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  color: #000 !important;
  cursor: pointer;
  transition: none;
}

.tech-format-box--inline .tech-packaging-label {
  font-weight: 700;
  color: #000 !important;
  white-space: nowrap;
  line-height: 1.1;
}

.tech-format-box--inline .tech-packaging-badge img {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

/* Stato attivo */
.tech-format-box--inline .tech-packaging-badge.is-active {
  background: #e5e5e5 !important;
  border-color: #cfcfcf !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Hover pulito */
.tech-format-box--inline .tech-packaging-badge:hover {
  background: #f2f2f2 !important;
  border-color: #cfcfcf !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .tech-format-box--inline .tech-packaging-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tech-format-box--inline .tech-packaging-badge {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    justify-content: space-between;
  }

  .tech-format-box--inline .tech-packaging-label {
    white-space: normal;
    text-align: left;
  }
}

/* =========================================================
   FORMATI A FIANCO AL TESTO + BOTTONI PIÙ PICCOLI
========================================================= */

.tech-format-box--inline {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: none;
  background: #d70000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}

/* Parte rossa con titolo e testo */
.tech-format-box--inline .tech-format-heading {
  flex: 0 0 42%;
  background: #d70000;
  color: #fff;
  padding: 18px;
  border-radius: 0;
}

/* Parte bianca con i pulsanti */
.tech-format-box--inline .tech-packaging-badges {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-left: 0;
  border-radius: 0 10px 10px 0;
}

/* Bottoni più piccoli */
.tech-format-box--inline .tech-packaging-badge {
  min-width: 120px;
  min-height: 52px;
  padding: 8px 10px;
  gap: 8px;
  border-radius: 8px;
}

/* Testo bottone */
.tech-format-box--inline .tech-packaging-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Immagini più piccole */
.tech-format-box--inline .tech-packaging-badge img {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .tech-format-box--inline {
    display: block;
  }

  .tech-format-box--inline .tech-format-heading {
    width: 100%;
    padding: 14px 16px;
  }

  .tech-format-box--inline .tech-packaging-badges {
    border-left: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .tech-format-box--inline .tech-packaging-badge {
    width: 100%;
    justify-content: space-between;
  }
}

