/* Pagina Sostenibilità: stile editoriale del sito con accenti naturali tenui (salvia), illustrazioni a fumetto. */
.tw-sustain {
	--tw-sage-900: #4b6455;
	--tw-sage-600: #7f9b88;
	--tw-sage-300: #bccdc1;
	--tw-sage-100: #e6eee8;
	background: var(--tw-paper, #f5f3ed);
	color: var(--tw-ink);
}

/* Contenuto in un contenitore più stretto (boxed) */
.tw-sustain .tw-shell { max-width: min(1180px, calc(100% - 48px)); }

/* Introduzione */
.tw-sustain-hero { padding: clamp(56px, 7vw, 108px) 0 clamp(48px, 5vw, 80px); border-bottom: 1px solid var(--tw-line); }
.tw-sustain-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.tw-sustain-hero__grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.tw-sustain-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--tw-sage-900); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tw-sustain-kicker svg { flex: 0 0 auto; color: var(--tw-sage-600); }
.tw-sustain-hero h1 { margin: 0; font-size: clamp(46px, 6.4vw, 92px); line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.tw-sustain-lead { max-width: 46ch; margin: 24px 0 28px; color: var(--tw-ink-soft); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; }
.tw-sustain-hero__art { margin: 0; position: relative; isolation: isolate; }
.tw-sustain-hero__art img { display: block; width: 100%; height: auto; }
.tw-sustain-hero__art::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: -1; background: var(--tw-sage-300); }

/* Gli impegni: righe alternate immagine (stretta) / testo. WordPress aggiunge un contenitore interno ai blocchi Gruppo. */
.tw-sustain-body { padding: clamp(24px, 3vw, 48px) 0 clamp(56px, 7vw, 108px); }
.tw-sustain-content { counter-reset: tw-pillar; }
.tw-sustain-content > p { max-width: 70ch; color: var(--tw-ink-soft); font-size: 18px; line-height: 1.65; }
.tw-sustain-content .tw-pillar > .wp-block-group__inner-container { display: contents; }
.tw-sustain-content .tw-pillar {
	counter-increment: tw-pillar;
	display: grid;
	grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
	gap: 0 clamp(32px, 5vw, 80px);
	align-items: start;
	margin: 0 0 clamp(20px, 2.4vw, 32px);
	padding: clamp(24px, 3.4vw, 48px);
	background: #fff;
	border: 1px solid var(--tw-line);
}
.tw-sustain-content .tw-pillar:nth-of-type(even) { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); }
.tw-sustain-content .tw-pillar .wp-block-image { grid-column: 1; grid-row: 1; margin: 0; position: relative; isolation: isolate; }
.tw-sustain-content .tw-pillar:nth-of-type(even) .wp-block-image { grid-column: 2; }
.tw-sustain-content .tw-pillar .wp-block-image::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; background: var(--tw-sage-100); border: 1px solid var(--tw-sage-300); }
.tw-sustain-content .tw-pillar .wp-block-image img { display: block; width: 100%; height: auto; }
.tw-sustain-content .tw-pillar .tw-pillar__text { grid-column: 2; grid-row: 1 / span 2; align-self: start; min-width: 0; }
.tw-sustain-content .tw-pillar:nth-of-type(even) .tw-pillar__text { grid-column: 1; }
.tw-sustain-content .tw-pillar .tw-pillar__text > .wp-block-group__inner-container { display: block; }
.tw-sustain-content .tw-pillar h2 { margin: 0 0 16px; font-size: clamp(28px, 3vw, 44px); line-height: 1.04; letter-spacing: -.035em; }
.tw-sustain-content .tw-pillar h2::before { content: counter(tw-pillar, decimal-leading-zero); display: block; margin-bottom: 14px; color: var(--tw-sage-600); font-size: 13px; line-height: 1; font-weight: 800; letter-spacing: .14em; }
.tw-sustain-content .tw-pillar p { max-width: 70ch; margin: 0 0 12px; color: var(--tw-ink-soft); font-size: 17px; line-height: 1.6; }
.tw-sustain-content .tw-pillar .tw-pillar-logo { grid-column: 1; grid-row: 2; align-self: start; margin: 28px 0 0; }
.tw-sustain-content .tw-pillar:nth-of-type(even) .tw-pillar-logo { grid-column: 2; }
.tw-sustain-content .tw-pillar .tw-pillar-logo img { display: block; width: auto; max-width: 100%; height: 44px; }
.tw-sustain-content .tw-pillar p.tw-pillar-source { margin-bottom: 0; color: var(--tw-ink-soft); font-size: 14px; }
.tw-sustain-content .tw-pillar .tw-pillar-source a { color: var(--tw-blue); }

/* Invito finale */
.tw-sustain-content .tw-sustain-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin: clamp(24px, 3vw, 44px) 0 0; padding: clamp(26px, 3.4vw, 44px); background: var(--tw-ink); color: #fff; }
.tw-sustain-cta p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .86); font-size: 18px; line-height: 1.55; }
.tw-sustain-cta .wp-block-button__link, .tw-sustain-cta a.wp-element-button { display: inline-block; background: #fff; color: var(--tw-ink); border-radius: 0; font-weight: 800; padding: 15px 26px; text-decoration: none; }

/* Invito finale con pulsante verso la pagina Contatti */
.tw-sustain-content .tw-sustain-cta { margin-top: clamp(24px, 3vw, 44px); }
.tw-sustain-content .tw-sustain-cta a.tw-sustain-cta__button { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; background: #fff; color: var(--tw-ink) !important; font-weight: 800; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.tw-sustain-content .tw-sustain-cta a.tw-sustain-cta__button:hover, .tw-sustain-content .tw-sustain-cta a.tw-sustain-cta__button:focus-visible { background: var(--tw-sage-300); color: var(--tw-ink); transform: translateY(-2px); }

/* Profilo ESG (autodichiarato) */
.tw-esg { padding: clamp(48px, 6vw, 96px) 0; background: var(--tw-sage-100); border-block: 1px solid var(--tw-sage-300); }
.tw-esg__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.tw-esg__logo { display: block; width: clamp(96px, 9vw, 132px); height: auto; margin-bottom: 22px; }
.tw-esg h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 44px); line-height: 1.04; letter-spacing: -.035em; }
.tw-esg__note { max-width: 44ch; margin: 0; color: var(--tw-ink-soft); font-size: 16px; line-height: 1.55; }
.tw-esg__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 22px; }
.tw-esg__total span { font-size: clamp(56px, 7vw, 104px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.tw-esg__total small { color: var(--tw-ink-soft); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tw-esg__row { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--tw-sage-300); }
.tw-esg__row strong { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--tw-ink); border-radius: 50%; font-size: 14px; }
.tw-esg__row span { font-size: 17px; }
.tw-esg__row em { font-size: 20px; font-style: normal; font-weight: 800; }
.tw-esg__method { margin-top: 18px; color: var(--tw-ink-soft); font-size: 15px; line-height: 1.6; }
.tw-esg__method p { margin: 0 0 8px; }

@media (max-width: 860px) {
	.tw-sustain-hero__grid, .tw-esg__grid { grid-template-columns: 1fr; }
	.tw-sustain-content .tw-pillar,
	.tw-sustain-content .tw-pillar:nth-of-type(even) { grid-template-columns: 1fr; gap: 24px; }
	.tw-sustain-content .tw-pillar .wp-block-image,
	.tw-sustain-content .tw-pillar:nth-of-type(even) .wp-block-image { grid-column: 1; grid-row: 1; margin: 0 14px 14px 0; max-width: 520px; }
	.tw-sustain-content .tw-pillar .tw-pillar-logo,
	.tw-sustain-content .tw-pillar:nth-of-type(even) .tw-pillar-logo { grid-column: 1; grid-row: 2; margin: 0 0 24px; }
	.tw-sustain-content .tw-pillar .tw-pillar__text,
	.tw-sustain-content .tw-pillar:nth-of-type(even) .tw-pillar__text { grid-column: 1; grid-row: 3; }
}
