/* Scheda prodotto: blocchi Globo nel riepilogo di Uncode e versione stampata. */

/* Tabella per la stampa: a schermo non esiste. */
table.ug-stampa,
table.ug-stampa > thead,
table.ug-stampa > tbody,
table.ug-stampa > tbody > tr,
table.ug-stampa > tbody > tr > td {
	display: contents;
}
/* Le proprietà ereditate dalla tabella non devono arrivare al contenuto: le righe di Uncode
   sono display: table e con border-collapse: collapse perdono il padding laterale. */
table.ug-stampa,
table.ug-stampa > tbody > tr > td {
	border-collapse: separate;
	border-spacing: 0;
	font-weight: inherit;
	line-height: inherit;
	text-align: inherit;
	vertical-align: inherit;
}
table.ug-stampa > thead {
	display: none;
}

/* Galleria (riunione del 19/11/2026): ogni foto intera dentro un quadrato; da 960px la colonna della foto resta
   ferma mentre scorre la descrizione. Il box-wrapper di Uncode ha overflow: hidden, che impedisce lo sticky:
   overflow: clip taglia allo stesso modo senza creare un contenitore di scorrimento. Il quadrato non supera
   l'altezza della finestra meno testata e miniature, così le miniature restano visibili. */
@media screen {
	.uncode-single-product-gallery .woocommerce-product-gallery__image img {
		display: block;
		width: 100%;
		height: auto !important;
		aspect-ratio: 1 / 1 !important;
		object-fit: contain;
	}
}
@media screen and (min-width: 960px) {
	.single-product .box-wrapper {
		overflow: clip;
	}
	.single-product .row-inner > .col-lg-6:has(.uncode-single-product-gallery) > .uncol {
		position: sticky;
		top: 125px;
	}
	.uncode-single-product-gallery .woocommerce-product-gallery__image img {
		width: min(100%, calc(100vh - 360px)) !important;
		margin: 0 auto;
	}
}

/* Prodotto precedente / successivo della stessa categoria. */
.ug-scheda-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
	font-size: 13px;
}
.ug-scheda-nav a {
	color: #777;
	text-decoration: none;
}
.ug-scheda-nav a:hover {
	color: #1a1a1a;
}
.ug-scheda-nav-succ {
	margin-left: auto;
}
@media print {
	.ug-scheda-nav {
		display: none !important;
	}
}

/* Barra breadcrumb di Uncode: il nome del prodotto è già il titolo della scheda. */
.single-product .row-breadcrumb .breadcrumb-title {
	display: none;
}

.ug-scheda-categoria {
	margin: 0 0 6px;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ug-scheda-categoria a {
	color: #666;
	text-decoration: none;
}
.ug-scheda-categoria a:hover {
	color: #1a1a1a;
}
.ug-scheda-codice {
	margin: 6px 0 18px;
	color: #666;
	font-size: 15px;
}
.ug-scheda-codice span {
	color: #1a1a1a;
	font-weight: 700;
}

/* Classe energetica */
.ug-scheda-energia {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 18px 0 24px;
}
.ug-scheda-freccia {
	display: inline-block;
	line-height: 0;
}
.ug-scheda-freccia .ug-freccia {
	width: 76px;
	height: auto;
}
.ug-scheda-eprel {
	font-size: 14px;
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 2px solid #f0e000;
}

/* Ambienti */
.ug-scheda-ambienti {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.ug-scheda-ambienti li {
	margin: 0 !important;
	padding: 0 !important;
}
.ug-scheda-ambienti li::before {
	display: none !important;
}
.ug-scheda-ambienti a {
	display: inline-block;
	padding: 6px 12px;
	font-size: 13px;
	color: #1a1a1a;
	text-decoration: none;
	background: #f5f3ee;
	border: 1px solid #e0ddd8;
}
.ug-scheda-ambienti a:hover {
	border-color: #1a1a1a;
}

.ug-scheda-collezione {
	margin: 18px 0 0;
	font-size: 15px;
}
.ug-scheda-collezione a {
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 2px solid #f0e000;
}
.ug-scheda-collezione span {
	color: #666;
	font-weight: 400;
}

/* Pittogrammi */
.ug-scheda-pittogrammi {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 16px 12px;
	margin: 28px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.ug-scheda-pittogrammi li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center;
	font-size: 11px;
	line-height: 1.3;
	color: #666;
}
.ug-scheda-pittogrammi li::before {
	display: none !important;
}
.ug-scheda-pittogrammi img {
	width: 56px;
	height: 56px;
}

/* Scheda tecnica e documenti */
.ug-scheda-blocco {
	margin-top: 36px;
}
.single-product .ug-scheda-blocco .ug-scheda-titolo {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.ug-scheda-tabella {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14px;
}
.ug-scheda-tabella th,
.ug-scheda-tabella td {
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid #e0ddd8;
	text-align: left;
	vertical-align: top;
}
.ug-scheda-tabella th[scope="row"] {
	width: 45%;
	padding-right: 16px;
	font-weight: 400;
	color: #666;
}
.ug-scheda-tabella .ug-scheda-gruppo th {
	padding-top: 20px;
	font-weight: 700;
	color: #1a1a1a;
	border-bottom: 2px solid #1a1a1a;
}
.ug-scheda-tabella tr:first-child.ug-scheda-gruppo th {
	padding-top: 0;
}
.ug-scheda-documenti a {
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 2px solid #f0e000;
}

/* Richiesta informazioni */
.ug-scheda-richiesta {
	padding: 24px;
	background: #f5f3ee;
}
.ug-scheda-richiesta p {
	margin: 0 0 16px;
}
.ug-scheda-azioni {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}
.ug-scheda-azioni .btn {
	margin: 0 !important;
}
.ug-scheda-stampa {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #1a1a1a !important;
	text-decoration: underline;
	cursor: pointer;
}

/* Nota AI Act sotto la galleria */
.ug-scheda-ai-act {
	margin: 20px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #666;
}
.ug-scheda-ai-act a {
	color: #666;
}

/* Titolo dei correlati */
.ug-titolo-correlati {
	margin: 0 0 24px;
}

/* ---------------------------------------------------------------------
 * Stampa: niente prezzo, carrello, menu e correlati; intestazione su ogni pagina.
 * ------------------------------------------------------------------- */
@media print {
	@page {
		margin: 12mm 14mm;
	}
	html,
	body {
		background: #fff !important;
	}
	#wpadminbar,
	.menu-wrapper,
	.navbar,
	#masthead,
	.site-footer,
	footer,
	.row-navigation,
	.row-related,
	.ug-correlati,
	.breadcrumb-module,
	.woocommerce-breadcrumb,
	.price-container,
	.price,
	form.cart,
	.stock,
	.detail-container,
	.product_meta,
	.ug-scheda-richiesta,
	.ug-scheda-ai-act,
	.woocommerce-notices-wrapper,
	.woocommerce-store-notice,
	.uncode-single-product-gallery .owl-dots,
	.uncode-single-product-gallery .owl-nav,
	.uncode-single-product-gallery .thumbnails,
	.uncode-single-product-gallery .woocommerce-product-gallery__trigger,
	hr {
		display: none !important;
	}

	table.ug-stampa {
		display: table !important;
		width: 100%;
	}
	table.ug-stampa > thead {
		display: table-header-group !important;
	}
	table.ug-stampa > tbody {
		display: table-row-group !important;
	}
	table.ug-stampa > tbody > tr,
	table.ug-stampa > thead > tr {
		display: table-row !important;
	}
	table.ug-stampa > tbody > tr > td,
	table.ug-stampa > thead > tr > td {
		display: table-cell !important;
		padding: 0;
		border: 0;
	}
	.ug-stampa-testata {
		display: flex;
		align-items: center;
		gap: 14px;
		margin: 0 0 8mm;
		padding: 0 0 4mm;
		border-bottom: 2px solid #1a1a1a;
		font-size: 9pt;
		line-height: 1.4;
	}
	.ug-stampa-testata img {
		width: 16mm;
		height: 16mm;
	}
	.ug-stampa-testata p {
		margin: 0;
	}

	/* Foto a sinistra, testo a tutta larghezza. Le righe di Uncode sono tabelle con altezze
	   al 100%: in stampa collassano a zero e il contenitore (overflow hidden) le taglia. */
	.row-container.row-breadcrumb {
		display: none !important;
	}
	.row-container,
	.row,
	.row-inner,
	.row-inner > [class*="col-lg-"],
	.uncol,
	.uncoltable,
	.uncell,
	.uncont {
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
	}
	.box-wrapper,
	.box-container,
	.main-container,
	.page-wrapper,
	.sections-container,
	.page-body,
	.post-wrapper,
	.post-body {
		display: block !important;
		height: auto !important;
		overflow: visible !important;
	}
	.row-parent,
	.main-container .row {
		padding: 0 !important;
	}
	.row-inner {
		margin: 0 !important;
	}
	.row-inner > [class*="col-lg-"] {
		width: 100% !important;
		padding: 0 !important;
		float: none !important;
	}
	.uncode-single-product-gallery {
		float: left;
		width: 42% !important;
		margin: 0 6mm 4mm 0;
	}
	.uncode-single-product-gallery img {
		max-height: 80mm;
		width: auto !important;
		object-fit: contain;
	}
	.ug-scheda-pittogrammi {
		grid-template-columns: repeat(auto-fill, minmax(22mm, 1fr));
	}
	.ug-scheda-pittogrammi img {
		width: 12mm;
		height: 12mm;
	}
	.ug-scheda-blocco,
	.ug-scheda-tabella tr {
		break-inside: avoid;
	}
	.ug-scheda-specifiche,
	.ug-scheda-documenti {
		clear: both;
	}
	a {
		text-decoration: none !important;
		border: 0 !important;
		color: #1a1a1a !important;
	}
}
