/* Pagina Certificazioni (page-certificazioni.php): colori e font dal kit Elementor del sito */

.dem-cert {
	--blu: var(--e-global-color-primary, #233D72);
	--giallo: var(--e-global-color-accent, #E8BC43);
	--grigio: var(--e-global-color-3577f7c, #F5F5F5);
	--testo: #5b6478;
	--bordo: #e3e6ee;
	font-family: "Quicksand", sans-serif;
	color: var(--blu);
}

.dem-cert *,
.dem-cert *::before,
.dem-cert *::after {
	box-sizing: border-box;
}

/* :where() tiene il reset allo stesso peso delle classi qui sotto, che lo sovrascrivono */
.dem-cert :where(h1, h2, h3, p, dl, dd, ul, table) {
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.dem-cert__wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.dem-cert a {
	color: inherit;
}

/* Hero */
.dem-cert__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	padding: 40px 20px;
	background: var(--blu);
}

/* Banner: <picture> sotto una velatura per il contrasto del titolo (la foto e' gia' blu) */
.dem-cert__hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dem-cert__hero::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: rgba(35, 61, 114, .35);
}

.dem-cert__hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 18px;
	color: #fff;
}

.dem-cert__hero-icon {
	flex: none;
	width: 96px;
	height: 96px;
}

/* Titolo come in "15 anni di garanzia": riga grande leggera, seconda riga con la parte chiave in grassetto */
.dem-cert__hero-title {
	margin: 0;
	color: #fff;
	font-size: 49px;
	font-weight: 500;
	line-height: 1.05;
}

.dem-cert__hero-title span {
	display: block;
	font-size: 30px;
	font-weight: 400;
}

.dem-cert__hero-title strong {
	font-weight: 700;
}

.dem-cert__hero-sub {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, .9);
	font-size: 18px;
	line-height: 1.4;
}

/* Testi comuni */
.dem-cert__eyebrow {
	color: var(--giallo);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* Titoli di sezione e testi come nelle pagine informative del sito (Quicksand 700 30px, testo nero 16/24) */
.dem-cert__title {
	margin: 8px 0 18px;
	color: var(--blu);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.dem-cert__title strong {
	font-weight: 700;
}

.dem-cert__text,
.dem-cert__lead {
	color: #000;
	font-size: 16px;
	line-height: 1.5;
}

.dem-cert__text + .dem-cert__text {
	margin-top: 12px;
}

.dem-cert__text a,
.dem-cert__lead a,
.dem-cert__faq a {
	text-decoration: underline;
}

.dem-cert__lead {
	max-width: 640px;
}

/* Intro e schede */
.dem-cert__intro {
	padding-top: 64px;
	padding-bottom: 36px;
}

.dem-cert__cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	padding-bottom: 72px;
}

.dem-cert__card {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border: 1px solid var(--bordo);
	border-radius: 14px;
	background: #fff;
}

.dem-cert__logo {
	display: block;
	width: 76px;
	height: 76px;
	border-radius: 50%;
}

svg.dem-cert__logo {
	border-radius: 0;
}

.dem-cert__card-title {
	margin-top: 18px;
	color: var(--blu);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.dem-cert__card-sub {
	margin: 4px 0 22px;
	color: var(--testo);
	font-size: 15px;
}

.dem-cert__info {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 10px 0;
	margin-bottom: 26px;
	font-size: 16px;
	line-height: 1.45;
}

.dem-cert__info dt {
	color: var(--testo);
}

.dem-cert__info dd {
	color: #111;
	font-weight: 600;
}

.dem-cert__info a {
	text-decoration: underline;
}

.dem-cert__card .dem-cert__btn {
	align-self: flex-start;
	margin-top: auto;
}

/* Bottoni: stessi colori e raggio della pagina Negozi */
.dem-cert a.dem-cert__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid var(--blu);
	border-radius: 10px;
	background: #fff;
	color: var(--blu);
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.dem-cert a.dem-cert__btn:hover,
.dem-cert a.dem-cert__btn:focus-visible {
	background: var(--blu);
	color: #fff;
}

.dem-cert a.dem-cert__btn--primary {
	background: var(--blu);
	color: #fff;
}

.dem-cert a.dem-cert__btn--primary:hover,
.dem-cert a.dem-cert__btn--primary:focus-visible {
	background: #1a2e57;
}

.dem-cert__btn svg,
.dem-cert__pdf svg {
	flex: none;
	width: 18px;
	height: 18px;
}

/* Sezioni a fascia */
.dem-cert__band {
	padding: 72px 0;
	scroll-margin-top: 90px;
}

.dem-cert__band--grey {
	background: var(--grigio);
}

.dem-cert__split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: start;
}

.dem-cert__facts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin: 26px 0 24px;
}

.dem-cert__facts div {
	padding: 14px 16px;
	border-radius: 10px;
	background: #fff;
}

.dem-cert__facts--grey div {
	background: var(--grigio);
}

.dem-cert__facts dt {
	color: var(--testo);
	font-size: 14px;
}

.dem-cert__facts dd {
	margin-top: 2px;
	color: var(--blu);
	font-size: 18px;
	font-weight: 700;
}

/* Tabella materassi: a tutta larghezza; se il riquadro e' piu' stretto scorre al suo interno */
.dem-cert__table-scroll {
	margin-top: 32px;
	overflow-x: auto;
	border: 1px solid var(--bordo);
	border-radius: 14px;
	background: #fff;
}

.dem-cert__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 16px;
}

.dem-cert__table th,
.dem-cert__table td {
	padding: 16px;
	border: 0;
	border-bottom: 1px solid var(--bordo);
	background: none;
	text-align: left;
	vertical-align: middle;
}

/* Il tema colora le righe dispari: qui nessuna zebra */
.dem-cert .dem-cert__table tbody > tr > * {
	background: none;
}

.dem-cert__table tbody tr:last-child > * {
	border-bottom: 0;
}

.dem-cert__table thead th {
	color: var(--testo);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.dem-cert__table tbody th {
	color: var(--blu);
	font-weight: 700;
}

.dem-cert__table tbody th a {
	text-decoration: none;
}

.dem-cert__table tbody th a:hover {
	text-decoration: underline;
}

.dem-cert__table td {
	color: #111;
	font-weight: 600;
}

.dem-cert__udi {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 14px;
	white-space: nowrap;
}

.dem-cert td.dem-cert__udi {
	font-weight: 400;
}

.dem-cert a.dem-cert__pdf {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--blu);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.dem-cert__na {
	color: var(--testo);
	font-size: 14px;
	font-weight: 400;
}

.dem-cert__note {
	margin: 12px 0 20px;
	color: var(--testo);
	font-size: 14px;
}

/* OEKO-TEX */
.dem-cert__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.dem-cert__subtitle {
	margin-bottom: 18px;
	color: var(--blu);
	font-size: 22px;
	font-weight: 700;
}

.dem-cert__list {
	list-style: none;
}

.dem-cert__list li {
	position: relative;
	padding-left: 22px;
	color: #000;
	font-size: 16px;
	line-height: 1.5;
}

.dem-cert__list li + li {
	margin-top: 10px;
}

.dem-cert__list li::before {
	content: "";
	position: absolute;
	top: .5em;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	background: var(--giallo);
}

.dem-cert__label {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
	padding: 16px 22px 16px 16px;
	border: 1px solid var(--bordo);
	border-radius: 14px;
	background: #fff;
}

.dem-cert__label p {
	color: var(--testo);
	font-size: 15px;
	line-height: 1.45;
}

.dem-cert__label strong {
	display: block;
	color: var(--blu);
	font-size: 19px;
}

/* FAQ: colonna centrata, abbastanza stretta da tenere le risposte leggibili */
.dem-cert__faq {
	max-width: 920px;
}

.dem-cert__faq .dem-cert__title {
	margin-bottom: 28px;
	text-align: center;
	text-wrap: balance;
}

.dem-cert__faq details {
	margin-top: 12px;
	border-radius: 10px;
	background: #fff;
}

.dem-cert__faq summary {
	position: relative;
	padding: 18px 52px 18px 20px;
	color: var(--blu);
	font-size: 17px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.dem-cert__faq summary::-webkit-details-marker {
	display: none;
}

.dem-cert__faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 20px;
	color: var(--giallo);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
}

.dem-cert__faq details[open] summary::after {
	content: "−";
}

.dem-cert__faq summary:focus-visible {
	outline: 2px solid var(--blu);
	outline-offset: 2px;
	border-radius: 10px;
}

.dem-cert__faq details p {
	padding: 0 20px 20px;
	color: #222;
	font-size: 16px;
	line-height: 1.6;
}

/* Tablet: una colonna */
@media (max-width: 1023px) {
	.dem-cert__cards,
	.dem-cert__split {
		grid-template-columns: 1fr;
	}

	.dem-cert__split {
		gap: 36px;
	}
}

@media (max-width: 767px) {
	.dem-cert__hero {
		min-height: 240px;
	}

	.dem-cert__hero-inner {
		gap: 12px;
	}

	.dem-cert__hero-icon {
		width: 60px;
		height: 60px;
	}

	.dem-cert__hero-title {
		font-size: 32px;
	}

	.dem-cert__hero-title span {
		font-size: 19px;
	}

	.dem-cert__hero-sub {
		font-size: 15px;
	}

	.dem-cert__title {
		font-size: 26px;
	}

	.dem-cert__intro {
		padding-top: 40px;
		padding-bottom: 28px;
	}


	.dem-cert__cards {
		gap: 20px;
		padding-bottom: 48px;
	}

	.dem-cert__card {
		padding: 22px 20px 24px;
	}

	.dem-cert__band {
		padding: 48px 0;
	}

	.dem-cert__actions a.dem-cert__btn,
	.dem-cert__card a.dem-cert__btn {
		align-self: stretch;
		width: 100%;
	}

	/* Tabella: ogni materasso diventa un blocco con le etichette a sinistra */
	.dem-cert__table,
	.dem-cert__table tbody,
	.dem-cert__table tr,
	.dem-cert__table th,
	.dem-cert__table td {
		display: block;
		/* un'altezza fissa data alle tabelle da altri CSS del sito, da block, taglierebbe le righe */
		height: auto;
	}

	.dem-cert__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.dem-cert__table tbody tr {
		padding: 14px 16px;
		border-bottom: 1px solid var(--bordo);
	}

	.dem-cert__table tbody tr:last-child {
		border-bottom: 0;
	}

	.dem-cert__table tbody th,
	.dem-cert__table td {
		padding: 0;
		border: 0;
	}

	.dem-cert__table tbody th {
		margin-bottom: 6px;
		font-size: 18px;
	}

	/* Etichetta sopra il valore */
	.dem-cert__table td {
		padding: 4px 0;
	}

	.dem-cert__table td::before {
		content: attr(data-label);
		display: block;
		color: var(--testo);
		font-family: "Quicksand", sans-serif;
		font-size: 13px;
		font-weight: 400;
		line-height: 1.3;
	}

	.dem-cert a.dem-cert__pdf {
		min-height: 40px;
	}
}

/* Telefoni stretti: etichetta sopra il valore */
@media (max-width: 480px) {
	.dem-cert__info {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.dem-cert__info dt {
		margin-top: 12px;
		font-size: 13px;
	}

	.dem-cert__info dt:first-child {
		margin-top: 0;
	}

	.dem-cert__facts {
		gap: 8px;
	}

	.dem-cert__facts div {
		padding: 12px;
	}

	.dem-cert__facts dd {
		font-size: 16px;
	}

	.dem-cert__label {
		display: flex;
	}
}

/* Breadcrumb come il widget Elementor di "15 anni di garanzia"; su telefono nascosto come li' */
.dem-crumbs {
	position: relative;
	z-index: 3;
	min-height: 45px;
	background: var(--grigio);
	box-shadow: 0 40px 35px -35px rgba(0, 0, 0, .5);
	color: var(--e-global-color-b419e66, #C1C1C1);
	font-size: 16px;
	font-weight: 700;
}

.dem-crumbs__inner {
	display: flex;
	align-items: center;
	min-height: 45px;
	padding: 0 33px;
}

.dem-crumbs a {
	color: #000;
}

/* Recensioni Trustpilot dopo le FAQ */
.dem-cert__reviews {
	padding: 48px 0 56px;
}

@media (max-width: 767px) {
	.dem-crumbs {
		display: none;
	}

	.dem-cert__reviews {
		padding: 32px 0 40px;
	}
}
