/* Schede prodotto e comparatore */

/* ---------- Scheda ---------- */

.pw-scheda-testa {
	padding: 20px 22px;
	border: 1px solid var(--pw-bordo);
	border-radius: var(--pw-raggio);
	background: var(--pw-superficie);
	margin: 0 auto 24px;
}

.pw-chiave {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 14px 0 0;
}

.pw-chiave div {
	padding: 10px 12px;
	border-radius: var(--pw-raggio);
	background: var(--pw-sfondo);
}

.pw-chiave dt {
	font-size: 0.78rem;
	color: var(--pw-testo-tenue);
}

.pw-chiave dd {
	margin: 2px 0 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.pw-chiave .pw-chiave-misurata {
	background: var(--pw-energia-chiaro);
}

.pw-acquisto {
	padding: 18px 20px;
	border: 2px solid var(--pw-principale);
	border-radius: var(--pw-raggio);
	margin: 0 auto 24px;
}

.pw-acquisto p {
	margin: 0 0 8px;
}

.pw-acquisto .pw-pulsante {
	margin: 4px 0 8px;
}

.pw-prezzo {
	font-size: 1.6rem;
	font-weight: 700;
	margin-right: 8px;
}

.pw-specifiche {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 8px 28px;
	align-items: start;
}

.pw-specifiche table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	font-size: 0.95rem;
	margin: 0 0 16px;
}

.pw-specifiche caption {
	text-align: left;
	font-weight: 700;
	padding: 0 0 6px;
	color: var(--pw-principale);
}

.pw-specifiche th,
.pw-specifiche td {
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid var(--pw-bordo);
	text-align: left;
	font-weight: 400;
}

.pw-specifiche td {
	text-align: right;
	font-weight: 700;
}

/* ---------- Comparatore ---------- */

.pw-filtri {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: end;
	margin: 20px 0;
	padding: 14px 16px;
	border-radius: var(--pw-raggio);
	background: var(--pw-superficie);
	font-size: 0.9rem;
}

.pw-filtri label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
}

.pw-filtri .pw-spunta {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
}

.pw-filtri select {
	padding: 6px 10px;
	border: 1px solid var(--pw-bordo);
	border-radius: var(--pw-raggio);
	background: #fff;
}

.pw-tabella-scorre {
	overflow-x: auto;
	border: 1px solid var(--pw-bordo);
	border-radius: var(--pw-raggio);
}

.pw-confronto {
	width: 100%;
	min-width: 820px;
	border-collapse: collapse;
	border: 0;
	margin: 0;
	font-size: 0.95rem;
}

.pw-confronto th,
.pw-confronto td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--pw-bordo);
	text-align: left;
	vertical-align: top;
}

.pw-confronto thead th {
	position: sticky;
	top: 0;
	background: var(--pw-superficie);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pw-testo-tenue);
	cursor: pointer;
	white-space: nowrap;
	user-select: none;
}

.pw-confronto thead th::after {
	content: " ↕";
	opacity: 0.35;
}

.pw-confronto thead th[aria-sort="ascending"]::after {
	content: " ↑";
	opacity: 1;
}

.pw-confronto thead th[aria-sort="descending"]::after {
	content: " ↓";
	opacity: 1;
}

/* Prima colonna fissa quando la tabella scorre su telefono */
.pw-confronto tbody th {
	position: sticky;
	left: 0;
	background: var(--pw-sfondo);
	min-width: 190px;
	font-weight: 700;
}

.pw-confronto tbody th a {
	display: block;
	text-decoration: none;
	margin-bottom: 4px;
}

.pw-confronto td.pw-num {
	white-space: nowrap;
}

.pw-confronto tbody tr:hover td,
.pw-confronto tbody tr:hover th {
	background: var(--pw-principale-chiaro);
}

.pw-etichetta.pw-fuori {
	background: #f6dedb;
	color: var(--pw-contro);
}

/* ---------- Marche ---------- */

.pw-marca {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border: 1.5px solid var(--pw-principale);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--pw-principale) !important;
	text-decoration: none !important;
	background: var(--pw-sfondo);
}

.pw-marca:hover {
	background: var(--pw-principale);
	color: #fff !important;
}

.pw-marca .pw-num {
	font-weight: 400;
	opacity: 0.7;
}

.pw-marche {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 auto 22px;
}

.pw-testa-marca {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 28px 30px;
	border-radius: var(--pw-raggio);
	background: var(--pw-principale);
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 28px;
}

.pw-testa-marca h1 {
	color: #fff;
	margin: 0 0 6px;
}

.pw-testa-marca p {
	margin: 0;
}

.pw-logo-marca {
	flex: none;
	display: grid;
	place-items: center;
	width: 150px;
	height: 96px;
	padding: 14px;
	border-radius: var(--pw-raggio);
	background: #fff;
}

.pw-logo-marca img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.pw-logo-testo {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: var(--pw-principale);
	text-align: center;
}

@media (max-width: 640px) {
	.pw-testa-marca {
		flex-direction: column;
		align-items: flex-start;
	}
}
