/* Antbear Pixel – Natale (caricato solo dal 1/12 al 6/1, vedi functions.php). */

/* Testata: contenitore per neve e lucine. */
.ab-natale .ab-header { position: relative; padding-bottom: 44px !important; }
.ab-natale .ab-header > * { position: relative; z-index: 1; }
.ab-natale .ab-neve {
	position: absolute; inset: 0; width: 100%; height: 100%;
	z-index: 0; pointer-events: none; image-rendering: pixelated;
}

/* Lucine: fila di lampadine pixel che "corrono". */
.ab-natale .ab-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 24px; z-index: 1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12' shape-rendering='crispEdges'%3E%3Crect y='2' width='64' height='1' fill='%236E6A7C'/%3E%3Cg fill='%234A4658'%3E%3Crect x='7' y='3' width='2' height='2'/%3E%3Crect x='23' y='3' width='2' height='2'/%3E%3Crect x='39' y='3' width='2' height='2'/%3E%3Crect x='55' y='3' width='2' height='2'/%3E%3C/g%3E%3Crect x='6' y='5' width='4' height='5' fill='%23FF5A4F'/%3E%3Crect x='22' y='5' width='4' height='5' fill='%23F2C641'/%3E%3Crect x='38' y='5' width='4' height='5' fill='%236CD47E'/%3E%3Crect x='54' y='5' width='4' height='5' fill='%235AB0FF'/%3E%3C/svg%3E") repeat-x 0 0 / 128px 24px;
	animation: ab-lucine 2.4s steps(1) infinite;
}
@keyframes ab-lucine {
	0%   { background-position-x: 0; }
	25%  { background-position-x: 32px; }
	50%  { background-position-x: 64px; }
	75%  { background-position-x: 96px; }
}

/* Cappello di Babbo Natale sul formichiere. */
.ab-natale .ab-brand { position: relative; display: inline-block; }
.ab-natale .ab-brand::after {
	content: ""; position: absolute; left: 54px; top: -11px; width: 28px; height: 24px; pointer-events: none; transform: scaleX(-1);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath fill='%23E23B3B' d='M4 1h1v1h-1zM3 2h3v1h-3zM2 3h4v1h-4zM1 4h5v1h-5z'/%3E%3Cpath fill='%23F3EEDF' d='M5 0h2v2h-2zM0 5h7v1h-7z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

/* Un piccolo augurio accanto al sottotitolo. */
.ab-natale .ab-header .wp-block-site-tagline::after { content: "  ✶ buone feste ✶"; white-space: pre; color: #F2C641; }

@media (prefers-reduced-motion: reduce) {
	.ab-natale .ab-header::after { animation: none; }
}
