/* PAGINE B (alpha-B): La Storia, Il Territorio, Etichettatura ambientale (misure dall'originale Elementor). */

/* Immagine di sfondo a tutta larghezza (fissa sul desktop, come l'originale) */
.mci-b-parallax {
	height: 470px;
	background: var(--mci-bg) 50% 100% / cover no-repeat;
}
.mci-b-parallax--label { height: 420px; margin-top: 120px; }

/* ---------- LA STORIA ---------- */
.mci-b-split {
	display: grid;
	grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
	max-width: 1200px;
	margin: 120px auto;
}
.mci-b-split__text {
	align-self: center;
	min-width: 0;
	margin: 10px;
	padding-right: 15px;
	color: #54595f;
}
.mci-b-split__text p:last-child { margin-bottom: 0; }
.mci-b-split__media { min-width: 0; padding: 10px; text-align: center; }
.mci-b-split__media img { display: inline-block; width: 490px; max-width: 100%; height: auto; }

/* Numeri in evidenza: fascia oro, 4 colonne */
.mci-b-numbers {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 20px max(0px, calc((100% - 1140px) / 2));
	background: var(--mci-color-gold);
	color: var(--mci-color-white);
	text-align: center;
}
.mci-b-numbers__item { min-width: 0; padding: 10px; }
.mci-b-numbers__value { font-size: 69px; line-height: 1; }
.mci-b-numbers__label { font-size: 14px; line-height: 24.5px; text-transform: uppercase; }

/* ---------- IL TERRITORIO ---------- */
.mci-b-place { max-width: 1400px; margin: 0 auto; }
.mci-b-place__box {
	position: relative;
	z-index: 1;
	margin-top: -100px;
	padding: 0 150px 50px;
	background: #fff;
	box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .5);
}
.mci-b-place__text {
	margin-bottom: 20px;
	padding: 50px 150px 0;
	color: #54595f;
	text-align: center;
}
.mci-b-place__text > :last-child { margin-bottom: 0; padding-bottom: 15px; }
.mci-b-place__media { text-align: center; }
.mci-b-place__media img { display: inline-block; width: 840px; max-width: 100%; height: auto; }

.mci-b-piwi {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	max-width: 1200px;
	min-height: 600px;
	margin: 0 auto;
	scroll-margin-top: 140px;
}
.mci-b-piwi__media { min-width: 0; text-align: center; }
.mci-b-piwi__media img { display: inline-block; width: 400px; max-width: 100%; height: auto; vertical-align: top; }
.mci-b-piwi__text { min-width: 0; padding: 10px; }
.mci-b-piwi__title { margin-bottom: 22px; font-size: 42px; line-height: 1; color: #000; }
.mci-b-piwi__desc { color: #54595f; }
.mci-b-list { margin: 0; padding: 0; list-style: none; }
.mci-b-list__item { display: flex; align-items: flex-start; gap: 8px; line-height: 28px; text-align: left; }
.mci-b-list__icon { flex: 0 0 14px; width: 14px; height: 14px; margin-top: 7px; }

/* Newsletter del Territorio: 120px sopra (le altre 60px) */
.mci-b-parallax--territorio + .mci-newsletter { margin-top: 120px; }

/* Testo fluido dell'originale (Cassio): 14,09px a 390 -> 16px a 1920, interlinea 1.8 */
.mci-b-split .mci-content p,
.mci-b-place .mci-content p,
.mci-b-piwi .mci-content p {
	margin-bottom: 1em;
	font-size: clamp(14.0875px, calc(13.6px + .125vw), 16px);
	line-height: 1.8;
}

/* ---------- ETICHETTATURA AMBIENTALE ---------- */
.mci-b-label {
	display: grid;
	grid-template-columns: minmax(0, 30fr) minmax(0, 70fr);
	align-items: center;
	max-width: 1140px;
	margin: 120px auto 0;
}
.mci-b-label__media { min-width: 0; text-align: center; }
.mci-b-label__media img { display: inline-block; width: 45%; height: auto; vertical-align: top; }
.mci-b-label__text { min-width: 0; padding: 30px 100px 30px 30px; }
.mci-b-label__text .mci-content p { margin: 0; line-height: 28px; }
.mci-b-label__text .mci-content > :last-child { margin-bottom: 0; }
.mci-b-table-wrap { margin-top: 50px; overflow-x: auto; }
.mci-b-table { width: 100%; border-collapse: collapse; text-align: center; }
.mci-b-table th {
	padding: 7px 9.8px;
	background: #fccc66;
	font-size: 14px;
	line-height: 24.5px;
	font-weight: 700;
	text-transform: uppercase;
	vertical-align: middle;
}
.mci-b-table td {
	padding: 6px 8.4px;
	border: 1px solid #444;
	font-size: 12px;
	line-height: 21px;
}

/* ---------- DESKTOP: sfondi fissi ---------- */
@media (min-width: 1025px) {
	.mci-b-parallax--fixed { background-attachment: fixed; }
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
	/* Storia: colonne impilate, immagine al 60% */
	.mci-b-split { grid-template-columns: minmax(0, 1fr); }
	.mci-b-split__text { padding-right: 0; }
	.mci-b-split__media img { width: 60%; }
	.mci-b-place__box { padding: 0 20px 50px; }
	.mci-b-place__text { padding: 50px 0 0; }
	.mci-b-piwi { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.mci-b-piwi__text { order: -1; padding: 50px; }
	/* Etichettatura: testo sopra, immagine al 20% */
	.mci-b-label { grid-template-columns: minmax(0, 1fr); }
	.mci-b-label__text { order: -1; }
	.mci-b-label__media img { width: 20%; }
}

/* ---------- TELEFONO ---------- */
@media (max-width: 767px) {
	.mci-b-split__text { text-align: center; }
	.mci-b-label__media img { width: 45%; }
	.mci-b-split__media img { width: 100%; }
	.mci-b-numbers { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mci-b-numbers__value { font-size: 42px; }
	.mci-b-place__text { padding: 50px 0 0; }
	.mci-b-piwi__text { padding: 50px 30px; text-align: center; }
	.mci-b-piwi__title { font-size: 32px; }
	.mci-b-piwi__media img { width: 100%; }
	.mci-b-label__text { padding: 15px; text-align: center; }
	.mci-b-label__text .mci-content p { font-size: 16px; line-height: 28px; }
}
