.product-sku {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

 .popup-open {
  overflow: hidden;
}
 
 .custom-product-gallery {
		font-family: 'titillium web';
}

.custom-product-gallery * {
		box-sizing: border-box;
}

.custom-product-gallery .product-container {
		max-width: 1200px;
		margin: 0 auto;
		background: white;
		padding: 30px;
		border-radius: 8px;
}

.custom-product-gallery .product-title {
		font-size: 28px;
		font-weight: bold;
		color: #333;
		margin-bottom: 30px;
		text-align: left;
}

.custom-product-gallery .product-content {
		display: flex;
		gap: 30px;
		align-items: flex-start;
}

.custom-product-gallery .main-image-section {
		flex: 1;
}

.custom-product-gallery .main-image {
		width: 100%;
		/* height: 400px;*/ 
		object-fit: cover;
		border-radius: 8px;
		cursor: pointer;
		transition: transform 0.3s ease;
}

.custom-product-gallery .main-image:hover {
		transform: scale(1.02);
}

.custom-product-gallery .gallery-section {
		flex: 1;
		display: grid;
		grid-template-columns: 1fr 1fr;
		/* gap: 15px; */
		height: 400px;
}

.custom-product-gallery .gallery-thumb {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 8px;
		cursor: pointer;
		transition: all 0.3s ease;
		border: 2px solid transparent;
}

.custom-product-gallery .gallery-thumb:hover {
		transform: scale(1.05);
		border-color: #007cba;
}

/* Popup Gallery */
.gallery-popup {
		display: none;
		position: fixed;
		z-index: 9998;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.7);
		overflow-y: auto;
}

.gallery-popup-content {
		background-color: white;
		margin: 5% auto;
		padding: 0;
		border-radius: 10px;
		width: 90%;
		max-width: 1140px;
		position: relative;
		max-height: 85vh;
		overflow-y: auto;
		clip-path: inset(0 round 10px);
}

.gallery-popup-header {
		padding: 20px;
		border-bottom: 1px solid #eee;
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: sticky;
		top: 0;
		background: white;
		border-radius: 10px;
}

.gallery-popup-header h3 {
		margin: 0;
		font-size: 24px;
		color: #333;
}

.close-popup {
		font-size: 30px;
		font-weight: bold;
		cursor: pointer;
		color: #999;
		line-height: 1;
}

.close-popup:hover {
		color: #333;
}

.gallery-grid {
		padding: 30px;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 20px;
}

.gallery-grid img {
		width: 100%;
		height: 200px;
		object-fit: cover;
		border-radius: 8px;
		cursor: pointer;
		transition: transform 0.3s ease;
		border: 3px solid transparent;
}

.gallery-grid img:hover {
		transform: scale(1.05);
		border-color: #007cba;
}

/* Lightbox */
.image-lightbox {
		display: none;
		position: fixed;
		z-index: 9999;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0,0,0,0.95);
}

.image-lightbox .lightbox-content {
		position: relative;
		margin: auto;
		padding: 0;
		width: 90%;
		max-width: 900px;
		top: 50%;
		transform: translateY(-50%);
}

.image-lightbox img {
		width: 100%;
		height: auto;
		border-radius: 8px;
}

.close-lightbox {
		position: absolute;
		top: -40px;
		right: 0;
		color: white;
		font-size: 35px;
		font-weight: bold;
		cursor: pointer;
}

.close-lightbox:hover {
		color: #007cba;
}

.prev-btn, .next-btn {
		cursor: pointer;
		position: absolute;
		top: 50%;
		width: auto;
		margin-top: -22px;
		padding: 16px;
		color: white;
		font-weight: bold;
		font-size: 18px;
		background: rgba(0,0,0,0.5);
		border: none;
		border-radius: 4px;
		transition: background 0.3s;
}

.next-btn { right: 10px; }
.prev-btn { left: 10px; }

.prev-btn:hover, .next-btn:hover {
		background: rgba(0,123,186,0.8);
}

.image-counter {
		position: absolute;
		bottom: -30px;
		left: 50%;
		transform: translateX(-50%);
		color: white;
		font-size: 14px;
}


.product-video-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.product-video-row .video-left,
.product-video-row .video-right {
    flex: 1;
    min-width: 300px;
}

.product-video-row .video-left iframe {
    width: 100%;
    height: 315px;
    border-radius: 8px;
}

.custom-two-columns-wrapper {
	display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

/* Contenuto sinistro più stretto per far spazio */
.column-left-wide {
  flex: 1 1 65%;
  max-width: 65%;
}

/* Sticky a destra */
.sticky-sidebar {
  flex: 0 0 30%;
  max-width: 30%;
}

.column-right {
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
  padding: 20px;
  position: sticky;
  top: 170px;
}


.prezzo {
	font-size:40px;
	font-weight:700;
}
.richiedi-info {
	background:#F2C11F;
	color:#000;
	border-radius:10px;
	font-size:20px;
	padding-left:20px;
	padding-right:20px;
	padding-top:10px;
	padding-bottom:10px;
}
.richiedi-info a {
	color:#000;
	width: 100%;
	display: flex;
	/*text-align: justify;*/
	align-items: baseline;
	justify-content: space-between;
}
.richiedi-info a:hover {
	color:#000;
	font-weight:700;
}

.custom-three-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.custom-three-columns .custom-col-box {
    /*background-color: #F4F4F4;*/
    border-radius: 20px;
    padding: 5px;
    flex: 1 1 calc(33.333% - 13.33px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.col-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.col-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.col-icon {
    font-size: 1.5rem;
}

.col-text {
    text-align: justify;
    font-size: 15px;
    line-height: 1.5;
}

.custom-benefits-row {
  background-color: #FFD900;
  padding: 30px 20px;
  border-radius: 20px;
  margin-top: 40px;
  width: 100%;
  box-sizing: border-box;
}

.benefits-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.benefits-header i {
  font-size: 28px;
  color: #000;
}

.benefits-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #000;
}

.benefits-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
}

.benefits-item i {
  color: green;
  font-size: 20px;
}

.benefits-subtext {
  font-size: 14px;
  color: #333;
}

.accessori-collapse {
  max-height: 70px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
}

.accessori-collapse.expanded {
  max-height: 1000px; /* grande abbastanza da mostrare tutto */
}

.accessori-toggle {
  margin-top: 10px;
  background-color: #e4e4e4;
	border-radius:20px;
	padding:6px 18px 6px 18px;
  border: none;
  color: #000;
  font-weight: 500;
  cursor: pointer;
	text-transform: none;
}
.accessori-toggle:hover {
  font-weight: 700;
}


/* Slide vantaggi */
.slide-box {
  background: #f5f5f5;
  padding: 30px;
  margin: 10px;
  border-radius: 10px;
  text-align: center;
  font-size:14px;
}
.slide-image {
  padding: 10px;
  margin: 0px;
  text-align: center;
  
}

/* Frecce Slick personalizzate */
.slick-prev, .slick-next {
  background-color: #F2C11F; /* Colore di sfondo */
  color: white;
  width: 40px;
  height: 40px;
  z-index: 10;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
	padding-top:2px;
}

.slick-prev:hover, .slick-next:hover {
  background-color: #555; /* Hover */
}

.slick-prev:before, .slick-next:before {
  color: white;
  font-size: 20px;
  opacity: 1; /* piena visibilità */
}

/* Posizionamento (opzionale) */
.custom-slider .slick-prev {
  left: -50px;
}

.custom-slider .slick-next {
  right: -50px;
}


.popup-finanziamento {
	background:#eee;
	width:500px;
	padding:20px;
	border-radius:20px;
	margin:0 auto;
}

.wpcf7 label {
	height: 20px !important;
}

textarea {
    min-height: 80px !important;
}

/* Responsive */
@media (max-width: 768px) {
	
	/* Sticky a destra */
.sticky-sidebar {
  flex: 100%;
}
		.custom-two-columns .column-left,
    .custom-two-columns .column-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
	
		.custom-product-gallery .product-content {
				flex-direction: column;
		}
		
		.custom-product-gallery .gallery-section {
				height: auto;
				grid-template-columns: repeat(4, 1fr);
		}
		
		.custom-product-gallery .gallery-thumb {
				height: 80px;
		}
		
		.custom-product-gallery .main-image {
				height: 300px;
		}
		
		.gallery-grid {
				grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
				gap: 15px;
				padding: 20px;
		}
		
		.gallery-grid img {
				height: 150px;
		}
		
		.gallery-popup-content {
				margin: 2% auto;
				width: 95%;
		}
    .custom-three-columns {
        flex-flow: nowrap;
				gap:0px;
    }

    .custom-three-columns .custom-col-box {
        width: 33%;
				min-width: 90px;
				padding:0px;
    }		

	  .column-left-wide,
    .sticky-sidebar {
			float: none;
			max-width: 100%;
			width: 100%;
  }

  .column-right {
    position: static;
    margin-top: 20px;
  }

}