.message-banner {
	--message-banner-background: #022b65;
	position: relative;
	margin: 64px auto 124px;
	padding: 0;
	background: transparent;
	color: #fff;
}
.wp-block-acf-message-banner { margin-top: 64px; margin-bottom: 64px; }
.message-banner__inner {
	position: relative;
	display: flex;
	align-items: flex-start;
	min-height: 294px;
	margin: 0 auto;
	padding: 52px 0;
	overflow: hidden;
	border-radius: 24px;
	background: var(--message-banner-background);
}
.message-banner__content { position: relative; z-index: 1; width: min(612px, 57.3%); }
.message-banner__title { margin: 0; font-family: var(--magis-font-heading); font-size: 32px; font-weight: 400; line-height: 1.15; }
.message-banner__description { margin-top: 16px; font-family: var(--magis-font-heading); font-size: 18px; line-height: 23px; }
.message-banner__description p { margin: 0 0 8px; }
.message-banner__description p:last-child { margin-bottom: 0; }
.message-banner__actions { display: flex; flex-wrap: wrap; gap: 9.572px; margin-top: 32px; }
.message-banner__action { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 14px; border: 1px solid #fff; border-radius: 7px; color: #fff; font-family: var(--magis-font-heading); font-size: 14px; line-height: 1; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.message-banner__action--cta-1 { background: #fff; color: #1d4289; }
.message-banner__action--cta-2 { background: transparent; color: #fff; }
.message-banner__action:hover, .message-banner__action:focus-visible { background: #fff; color: var(--message-banner-background); }
.message-banner__action img { width: 24px; height: 24px; object-fit: contain; }
.message-banner__action--image { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.message-banner__action--image img { width: auto; height: auto; max-width: 115px; max-height: 40px; }
.message-banner__action--image:hover, .message-banner__action--image:focus-visible { background: transparent; }
.message-banner__media { position: absolute; z-index: 0; right: 0; bottom: 0; display: flex; width: 39.73%; height: 100%; overflow: hidden; pointer-events: none; }
.message-banner__media img { position: absolute; display: block; width: 100%; max-width: none; height: 100%; object-fit: contain; object-position: center; }
.message-banner__supporting-media { position: absolute; z-index: 1; left: 27%; bottom: 29%; display: flex; width: 85px; height: 85px; align-items: center; justify-content: center; pointer-events: none; }
.message-banner__supporting-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.message-banner--image-left .message-banner__content { margin-left: 42.7%; }
.message-banner--image-left .message-banner__media { right: auto; left: 0; }
.wp-block-acf-message-banner:has(.message-banner--layout-xl) { margin: 0; }
.message-banner--layout-xl { margin: 0; padding: 40px 0; background: #aedcf9; }
.message-banner--layout-xl .message-banner__inner { display: flex; min-height: 400px; height: 400px; padding: 0 0 0 40px; align-items: center; justify-content: space-between; border-radius: 24px; }
.message-banner--layout-xl .message-banner__content { display: flex; width: 652px; flex: 0 0 652px; flex-direction: column; justify-content: center; margin: 0; }
.message-banner--layout-xl .message-banner__title { font-size: 52px; font-weight: 500; line-height: 1.15; }
.message-banner--layout-xl .message-banner__description { margin-top: 16px; }
.message-banner--layout-xl .message-banner__actions { gap: 29px; margin-top: 29px; }
.message-banner--layout-xl .message-banner__action:not(.message-banner__action--image) { min-width: min(273px, 100%); min-height: 56px; justify-content: center; padding: 4px 24px; border: 2px solid #fff; border-radius: 100px; font-size: 18px; font-weight: 500; }
.message-banner--layout-xl .message-banner__media { position: relative; right: auto; bottom: auto; display: block; width: 544px; height: 400px; flex: 0 0 544px; overflow: hidden; border-radius: 0 24px 24px 0; mix-blend-mode: lighten; }
.message-banner--layout-xl .message-banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.message-banner--layout-xl.message-banner-pa-consip .message-banner__action { width: min(295px, 100%); justify-content: center; }
.message-banner--layout-xl .message-banner__media::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: radial-gradient(ellipse 340px 245px at 0 45%, rgba(0, 156, 255, .5) 0%, rgba(1, 100, 178, .25) 50%, rgba(2, 43, 101, 0) 100%); }
.message-banner--layout-xl.message-banner-transition { color: #1d4289; }
.message-banner--layout-xl.message-banner-transition .message-banner__inner { min-height: 480px; height: 480px; }
.message-banner--layout-xl.message-banner-transition .message-banner__media { height: 480px; mix-blend-mode: normal; }
.message-banner--layout-xl.message-banner-transition .message-banner__media img { top: 0; left: -10.39%; width: 132.34%; height: 100%; object-fit: contain; }
.message-banner--layout-xl.message-banner-transition .message-banner__media::after { content: none; }
.message-banner--layout-xl.message-banner-transition .message-banner__action--cta-1 { border: 0; background: #1d4289; color: #fff; }
.message-banner--layout-xl.message-banner-transition .message-banner__action--cta-1:hover,
.message-banner--layout-xl.message-banner-transition .message-banner__action--cta-1:focus-visible { background: #003570; color: #fff; }
.message-banner--layout-xl.message-banner--image-left .message-banner__inner { padding-left: 0; justify-content: flex-start; gap: 40px; }
.message-banner--layout-xl.message-banner--image-left .message-banner__content { margin-left: 0; }
.message-banner--layout-xl.message-banner--image-left .message-banner__media { order: -1; border-radius: 24px 0 0 24px; mix-blend-mode: screen; }
.message-banner--layout-xl.message-banner--image-left .message-banner__media::after { background: radial-gradient(ellipse 340px 245px at 100% 45%, rgba(0, 156, 255, .5) 0%, rgba(1, 100, 178, .25) 50%, rgba(2, 43, 101, 0) 100%); }
.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento { padding: 40px 0 80px; background: transparent; }
.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__inner { isolation: isolate; border-radius: 24px; background: #022b65; }
.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__inner::before { content: none; }
.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__content { z-index: 1; }
.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__media { border-radius: 24px 0 0 24px; mix-blend-mode: normal; }
.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__media img { top: 0; left: 0; width: 100%; height: 100%; transform: none; object-fit: fill; object-position: center bottom; }
.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__media::after { content: none; }
.message-banner-teleriscaldamento .message-banner__action--cta-1 { border-color: #fff; background: transparent; color: #fff; }
.message-banner-teleriscaldamento .message-banner__action[aria-disabled="true"] { cursor: default; }
.message-banner-teleriscaldamento .message-banner__action[aria-disabled="true"]:hover,
.message-banner-teleriscaldamento .message-banner__action[aria-disabled="true"]:focus-visible { background: transparent; color: #fff; }
@media (min-width: 1101px) {
	.message-banner { margin-top: 160px; }
	.message-banner--layout-xl { margin: 0; }
}
@media (max-width: 767px) {
	.message-banner { margin: 40px auto; padding: 0; }
	.wp-block-acf-message-banner { margin-top: 40px; margin-bottom: 40px; }
	.message-banner__inner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 32px 24px 24px; border-radius: 20px; }
	.message-banner__content { width: 100%; }
	.message-banner__title { font-size: 28px; }
	.message-banner__description { font-size: 17px; line-height: 22px; }
	.message-banner__actions { margin-top: 22px; }
	.message-banner__media { position: relative; right: auto; left: auto; width: 100%; height: 220px; margin-top: 24px; }
	.message-banner__media img { width: 100%; height: 100%; }
	.message-banner__supporting-media { position: absolute; right: 24px; bottom: 205px; left: auto; width: 64px; height: 64px; }
	.message-banner--image-left .message-banner__content { margin-left: 0; }
	.wp-block-acf-message-banner:has(.message-banner--layout-xl) { margin: 0; }
	.message-banner--layout-xl { padding: 24px 0; }
	.message-banner--layout-xl .message-banner__inner, .message-banner--layout-xl.message-banner--image-left .message-banner__inner { height: auto; min-height: 0; padding: 0; gap: 0; }
	.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento { padding: 0 0 48px; background: transparent; }
	.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__inner { border-radius: 20px; background: transparent; }
	.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__inner::before { display: none; }
	.message-banner--layout-xl .message-banner__content { width: 100%; flex-basis: auto; padding: 32px 24px; }
	.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__content { border-radius: 0 0 20px 20px; background: #022b65; }
	.message-banner--layout-xl .message-banner__title { font-size: 36px; }
	.message-banner--layout-xl .message-banner__media { width: 100%; height: 260px; flex-basis: auto; border-radius: 0 0 20px 20px; }
	.message-banner--layout-xl.message-banner--image-left.message-banner-teleriscaldamento .message-banner__media { border-radius: 20px 20px 0 0; }
	.message-banner--layout-xl.message-banner--image-left .message-banner__media { order: -1; border-radius: 20px 20px 0 0; }
	.message-banner--layout-xl .message-banner__media img, .message-banner--layout-xl.message-banner--image-left .message-banner__media img { inset: 0; width: 100%; height: 100%; transform: none; object-fit: cover; }
}
@media (max-width: 767px) {
	.message-banner--layout-xl.message-banner-transition .message-banner__inner { min-height: 0; height: auto; }
	.message-banner--layout-xl.message-banner-transition .message-banner__media { height: 260px; }
	.message-banner--layout-xl.message-banner-transition .message-banner__media img { top: 0; left: 50%; width: 100%; height: 100%; transform: translateX(-50%); object-fit: contain; }
	.home .homepage-gradient-container--content .message-banner__inner { width: calc(100% - 32px); min-height: 0; flex-direction: column; gap: 0; padding: 0; border-radius: 20px; }
	.home .homepage-gradient-container--content .message-banner__media { position: relative; order: -1; width: 100%; height: 198px; margin: 0; border-radius: 20px 20px 0 0; }
	.home .homepage-gradient-container--content .message-banner__media img { object-fit: cover; }
	.home .homepage-gradient-container--content .message-banner__content { width: 100%; padding: 20px 24px 38px; }
	.home .homepage-gradient-container--content .message-banner__title { font-size: 24px; line-height: 32px; }
	.home .homepage-gradient-container--content .message-banner__description { max-width: 280px; margin-top: 16px; font-family: 'Inter', Arial, sans-serif; font-size: 16px; line-height: 24px; }
	.home .homepage-gradient-container--content .message-banner__actions { width: 100%; gap: 8px; margin-top: 16px; }
	.home .homepage-gradient-container--content .message-banner__action--image { flex: 1 1 0; width: 0; min-width: 0; }
	.home .homepage-gradient-container--content .message-banner__action--image img { width: 100%; max-width: none; max-height: 51px; }
}
@media (max-width: 767px) {
	body.page-azienda-e-condominio .message-banner--layout-xl { box-sizing: border-box; padding: 40px 15px; background: #aedcf9; }
	body.page-azienda-e-condominio .message-banner--layout-xl .message-banner__inner { width: 100%; max-width: 362px; height: auto; min-height: 0; margin: 0 auto; padding: 0 0 8px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; border-radius: 24px; }
	body.page-azienda-e-condominio .message-banner--layout-xl .message-banner__media { position: relative; right: auto; bottom: auto; left: auto; order: -1; display: block; width: 100%; height: 252px; flex: 0 0 252px; margin: 0; overflow: hidden; border-radius: 24px 24px 0 0; mix-blend-mode: screen; }
	body.page-azienda-e-condominio .message-banner--layout-xl .message-banner__media::after { background: radial-gradient(ellipse 340px 245px at 100% 45%, rgba(0, 156, 255, .5) 0%, rgba(1, 100, 178, .25) 50%, rgba(2, 43, 101, 0) 100%); }
	body.page-azienda-e-condominio .message-banner--layout-xl.message-banner--image-right:not(.message-banner-pa-consip) .message-banner__media img { top: -25.29%; right: auto; bottom: auto; left: 0; width: 95.62%; height: 141.15%; transform: none; object-fit: fill; }
	/* The WordPress export trims the Figma canvas, so the original negative offsets crop the roof. */
	body.page-azienda-e-condominio .message-banner--layout-xl.message-banner--image-left .message-banner__media img { top: -4%; right: auto; bottom: auto; left: -4%; width: 108%; height: 109%; transform: none; object-fit: fill; }
	body.page-azienda-e-condominio .message-banner--layout-xl.message-banner-pa-consip .message-banner__media { mix-blend-mode: normal; }
	body.page-azienda-e-condominio .message-banner--layout-xl.message-banner-pa-consip .message-banner__media img { inset: 0; width: 100%; height: 100%; transform: none; object-fit: contain; }
	body.page-azienda-e-condominio .message-banner--layout-xl .message-banner__content { width: 100%; flex: 0 0 auto; margin: 0; padding: 24px 16px; }
	body.page-azienda-e-condominio .message-banner--layout-xl .message-banner__title { font-size: 32px; font-weight: 500; line-height: 1.15; }
	body.page-azienda-e-condominio .message-banner--layout-xl .message-banner__description { margin-top: 16px; font-size: 18px; line-height: 23px; }
	body.page-azienda-e-condominio .message-banner--layout-xl .message-banner__actions { flex-direction: column; align-items: stretch; gap: 29px; margin-top: 29px; }
	body.page-azienda-e-condominio .message-banner--layout-xl .message-banner__action:not(.message-banner__action--image) { width: 100%; min-width: 0; min-height: 56px; height: 56px; flex: 0 0 56px; justify-content: center; padding: 4px 24px; border-radius: 100px; font-size: 18px; }
	body.page-azienda-e-condominio .central-page-gradient-background > .message-banner:last-child { margin-bottom: 0; }
}

@media (max-width: 767px) {
	body.page-id-900 .message-banner-transition { margin: 0; padding: 40px 0; }
	body.page-id-900 .message-banner-transition .message-banner__inner { width: calc(100% - 31px); max-width: 362px; height: auto; min-height: 667px; margin: 0 auto; }
	body.page-id-900 .message-banner-transition .message-banner__media { order: -1; width: 100%; height: 252px; flex: 0 0 252px; margin: 0; border-radius: 24px 24px 0 0; }
	body.page-id-900 .message-banner-transition .message-banner__media img { top: 0; left: 0; width: 100%; height: 100%; transform: none; object-fit: fill; background: linear-gradient(#080804, #080804) right bottom / 18px 18px no-repeat; }
	body.page-id-900 .message-banner-transition .message-banner__content { width: 100%; flex: 1 1 auto; padding: 24px 16px; }
	body.page-id-900 .message-banner-transition .message-banner__title { font-size: 32px; line-height: 1.15; }
	body.page-id-900 .message-banner-transition .message-banner__description { margin-top: 16px; font-size: 18px; line-height: 23px; }
	body.page-id-900 .message-banner-transition .message-banner__actions { margin-top: 29px; }
	body.page-id-900 .message-banner-transition .message-banner__action:not(.message-banner__action--image) { width: 100%; min-width: 0; min-height: 56px; height: 56px; justify-content: center; font-size: 18px; }
}

@media (max-width: 767px) {
	body.page-id-801 .message-banner--layout-xl.message-banner-teleriscaldamento { margin: 0; padding: 40px 0 16px; }
	body.page-id-801 .message-banner--layout-xl.message-banner-teleriscaldamento .message-banner__inner { width: calc(100% - 32px); border-radius: 24px; background: #022b65; }
	body.page-id-801 .message-banner--layout-xl.message-banner-teleriscaldamento .message-banner__media { height: auto; aspect-ratio: 536 / 294; margin: 0; border-radius: 24px 24px 0 0; }
	body.page-id-801 .message-banner--layout-xl.message-banner-teleriscaldamento .message-banner__media img { object-fit: cover; }
	body.page-id-801 .message-banner--layout-xl.message-banner-teleriscaldamento .message-banner__content { padding: 18px 16px 48px; border-radius: 0 0 24px 24px; }
	body.page-id-801 .message-banner-teleriscaldamento .message-banner__title { font-size: 24px; font-weight: 700; line-height: 1.17; }
	body.page-id-801 .message-banner-teleriscaldamento .message-banner__description { font-size: 18px; line-height: 23px; }
	body.page-id-801 .message-banner-teleriscaldamento .message-banner__actions { margin-top: 16px; }
	body.page-id-801 .message-banner-teleriscaldamento .message-banner__action:not(.message-banner__action--image) { width: 100%; min-width: 0; min-height: 56px; height: auto; justify-content: center; padding: 4px 24px; border: 2px solid #fff; font-size: 18px; line-height: 1.2; text-align: center; }
}
