/**
 * Fascia di aggiornamento sopra la barra istituzionale.
 * Testo #1a1a1a su #fff4d9, bordo #995c00 (avviso Bootstrap Italia).
 */

.apsp-update-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1020;
	background: #fff4d9;
	color: #1a1a1a;
	border-bottom: 4px solid #995c00;
}

body.admin-bar .apsp-update-banner {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .apsp-update-banner {
		top: 46px;
	}
}

/* Lo spazio sotto la fascia fissa, così non copre la barra istituzionale. */
header.it-header-wrapper:has(.apsp-update-banner) {
	padding-top: 3.35rem;
}

.apsp-update-banner__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 75rem;
	margin: 0 auto;
	padding: 0.75rem 1rem;
	box-sizing: border-box;
	text-align: center;
}

.apsp-update-banner__icon {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.125rem;
	color: #995c00;
}

.apsp-update-banner p {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

@media (max-width: 576px) {
	.apsp-update-banner__inner {
		padding: 0.75rem;
	}

	header.it-header-wrapper:has(.apsp-update-banner) {
		padding-top: 5.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apsp-update-banner {
		scroll-behavior: auto;
	}
}
