/* =========================================================
   Nelb WCMP — Timeline storia v2 (pack 1.22.0)
   Verticale, con foto e scroll-reveal.
   Desktop: linea centrale, card alternate sx/dx.
   Mobile (<768px): linea a sinistra, colonna singola.
   Motion (brandbook §13): reveal fade+rise 320ms
   cubic-bezier(.22,1,.36,1) — rev. durate 14/07: 450ms.
   Brandbook: card bianche 14px bordo #EDEDED, anno arancio
   #FE3F12 Libre Franklin 800; dark Nolopoint: anno #FF6038.
   ========================================================= */

.nelb-tlv {
	position: relative;
	display: flex;
	flex-direction: column;
	row-gap: 36px;
	padding: 8px 0;
	font-family: 'Gudea', sans-serif;
}

/* ── Linea verticale ── */
.nelb-tlv.has-track::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 18px;
	width: 2px;
	background: #EDEDED;
}
.elementor-widget.nelb-tl-surface-dark .nelb-tlv.has-track::before {
	background: #3A3A3A;
}

/* ── Item + punto ── */
.nelb-tlv-item {
	position: relative;
	padding-left: 48px;
}
.nelb-tlv-dot {
	position: absolute;
	left: 11px;
	top: 26px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #FE3F12;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #EDEDED;
	z-index: 1;
}
.elementor-widget.nelb-tl-surface-dark .nelb-tlv-dot {
	border-color: #1B1B1B;
	box-shadow: 0 0 0 2px #3A3A3A;
}

/* ── Card ── */
.nelb-tlv-card {
	background: #fff;
	border: 1px solid #EDEDED;
	border-radius: 14px;
	padding: 20px 22px;
	box-shadow: 0 2px 10px rgba(20, 20, 20, .04);
	overflow: hidden;
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.nelb-tlv-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(20, 20, 20, .08);
}

.nelb-tlv-img {
	margin: -20px -22px 16px;
}
.nelb-tlv-img img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.nelb-tlv-year {
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 800;
	font-size: 32px;
	line-height: 1.1;
	color: #FE3F12;
}
.elementor-widget.nelb-tl-surface-dark .nelb-tlv-year {
	color: #FF6038;
}
.nelb-tlv-title {
	font-family: 'Libre Franklin', sans-serif;
	font-weight: 800;
	font-size: 17px;
	color: #212121;
	margin: 6px 0 4px;
}
.nelb-tlv-text {
	font-size: 14.5px;
	line-height: 1.55;
	color: #4A4A4A;
	margin: 0;
}

/* ── Desktop: linea centrale, alternata ── */
@media (min-width: 768px) {
	.nelb-tlv.is-alternate.has-track::before {
		left: 50%;
		margin-left: -1px;
	}
	.nelb-tlv.is-alternate .nelb-tlv-item {
		width: 50%;
		padding-left: 0;
	}
	.nelb-tlv.is-alternate .nelb-tlv-item.is-left {
		align-self: flex-start;
		padding-right: 44px;
	}
	.nelb-tlv.is-alternate .nelb-tlv-item.is-right {
		align-self: flex-end;
		padding-left: 44px;
	}
	.nelb-tlv.is-alternate .nelb-tlv-item.is-left .nelb-tlv-dot {
		left: auto;
		right: -8px;
	}
	.nelb-tlv.is-alternate .nelb-tlv-item.is-right .nelb-tlv-dot {
		left: -8px;
	}
}

/* ── Scroll-reveal (solo con JS attivo: .has-reveal.js-armed) ──
   Progressive enhancement: senza JS niente stato nascosto. */
.nelb-tlv.has-reveal.js-armed .nelb-tlv-item {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 450ms cubic-bezier(.22, 1, .36, 1), transform 450ms cubic-bezier(.22, 1, .36, 1);
}
.nelb-tlv.has-reveal.js-armed .nelb-tlv-item.is-shown {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.nelb-tlv.has-reveal.js-armed .nelb-tlv-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.nelb-tlv-card,
	.nelb-tlv-card:hover {
		transition: none;
		transform: none;
	}
}
