/**
 * Etichette LIVE della timeline.
 *
 * Nella 1.x questo blocco veniva stampato come `<style>` inline dentro
 * `wp_head` su ogni pagina del sito: circa 1,5 KB non memorizzabili in cache,
 * ripetuti a ogni richiesta. Serve anche fuori dall'articolo — la label LIVE
 * compare negli elenchi — quindi resta caricato sempre, ma da un file che il
 * browser scarica una volta sola.
 */

.timeline-live-label {
	background-color: #dc3545;
	color: #fff;
	padding: 4px 8px;
	margin: 0 6px 0 0;
	text-shadow: none;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	animation: livePulse 2s infinite;
	display: inline-block;
	vertical-align: middle;
}
.timeline-live-label::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background-color: #fff;
	border-radius: 50%;
	margin-right: 4px;
	animation: liveDot 2s linear infinite;
}
@keyframes livePulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
	}
}
@keyframes liveDot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

/* Stili per gli anchor della timeline */
.timeline-anchor {
	color: inherit;
	text-decoration: none;
	position: relative;
	transition: all 0.3s ease;
}

.timeline-anchor:hover {
	color: #dc3545;
	text-decoration: underline;
}

.timeline-anchor::after {
	content: " 🔗";
	opacity: 0;
	font-size: 0.8em;
	margin-left: 4px;
	transition: opacity 0.3s ease;
}

.timeline-anchor:hover::after {
	opacity: 0.7;
}

/* Highlight quando si arriva tramite anchor */
.timeline-item:target {
	background-color: rgba(220, 53, 69, 0.1);
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
	animation: highlightAnchor 2s ease-in-out;
}

@keyframes highlightAnchor {
	0% {
		background-color: rgba(220, 53, 69, 0.3);
		transform: scale(1.02);
	}
	100% {
		background-color: rgba(220, 53, 69, 0.1);
		transform: scale(1);
	}
}
