/* =========================================================================
   LB Slider — personalizza i colori con le variabili qui sotto
   ========================================================================= */
.lbs {
	--lbs-bg: #16191b;
	--lbs-text: #ffffff;
	--lbs-muted: rgba(255, 255, 255, .7);
	--lbs-accent: #ff9900;            /* arancione del sito */
	--lbs-accent-text: #ffffff;
	--lbs-h: clamp(560px, 86vh, 820px);
	--lbs-top: 110px;                 /* spazio per l'header trasparente */
	--lbs-pad: clamp(20px, 6vw, 96px);
	--lbs-ease: cubic-bezier(.2, .7, .2, 1);
	--lbs-dur: 7s;

	background: var(--lbs-bg);
	color: var(--lbs-text);
	font-family: inherit;
	height: var(--lbs-h);
	overflow: hidden;
	position: relative;
}
.lbs--full {
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	position: relative;
	right: 50%;
	width: 100vw;
}
html:has(.lbs--full) { overflow-x: clip; }
.lbs *, .lbs *::before, .lbs *::after { box-sizing: border-box; }

/* Grana del fondo, come nell'attuale homepage */
.lbs::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 3;
}

.lbs-track { height: 100%; position: relative; }

/* -------------------------------------------------------------------------
   Slide
   ---------------------------------------------------------------------- */
.lbs .lbs-slide {
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity .9s var(--lbs-ease), visibility 0s linear .9s;
	visibility: hidden;
	z-index: 1;
}
.lbs .lbs-slide.is-active {
	opacity: 1;
	transition: opacity .9s var(--lbs-ease), visibility 0s;
	visibility: visible;
	z-index: 2;
}

.lbs .lbs-bg {
	inset: 0;
	position: absolute;
	z-index: 0;
}
.lbs .lbs-bg::before { /* foto sfocata come luce ambientale */
	background: var(--lbs-img, none) center / cover no-repeat;
	content: "";
	filter: blur(70px) saturate(1.3);
	inset: -15%;
	opacity: .32;
	position: absolute;
	transform: scale(1.1);
	transition: transform 9s linear;
}
.lbs .lbs-slide.is-active .lbs-bg::before { transform: scale(1.25); }
.lbs .lbs-bg::after {
	background:
		linear-gradient(90deg, var(--lbs-bg) 0%, rgba(22,25,27,.85) 38%, rgba(22,25,27,.2) 70%, rgba(22,25,27,.55) 100%),
		linear-gradient(180deg, rgba(22,25,27,.6) 0%, transparent 30%, transparent 70%, rgba(22,25,27,.8) 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.lbs .lbs-inner {
	align-items: center;
	display: grid;
	gap: clamp(24px, 5vw, 80px);
	grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
	height: 100%;
	margin: 0 auto;
	max-width: 1320px;
	padding: var(--lbs-top) var(--lbs-pad) 110px;
	position: relative;
	z-index: 1;
}

/* Testo */
.lbs .lbs-text { container-type: inline-size; max-width: 680px; }
.lbs .lbs-kicker {
	align-items: flex-start;
	color: var(--lbs-accent);
	display: flex;
	font-size: clamp(13px, 1.1vw, 15px);
	font-weight: 700;
	gap: 14px;
	letter-spacing: .2em;
	line-height: 1.4;
	margin: 0 0 22px;
	text-transform: uppercase;
}
.lbs .lbs-kicker::before {
	background: var(--lbs-accent);
	content: "";
	flex: none;
	height: 2px;
	margin-top: .68em;
	width: 44px;
}
.lbs .lbs-title {
	color: var(--lbs-text);
	font-family: inherit;
	font-size: clamp(34px, min(6vw, 12.5cqi), 96px); /* si adatta alla colonna: le parole lunghe non sbordano */
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: .95;
	margin: 0 0 38px;
	padding: 0;
	text-transform: uppercase;
	text-wrap: balance;
}
.lbs .lbs-btn {
	align-items: center;
	background: var(--lbs-accent);
	border: 0;
	border-radius: 0;
	color: var(--lbs-accent-text) !important;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 14px;
	letter-spacing: .08em;
	line-height: 1;
	padding: 21px 26px 21px 28px;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: background-color .25s, gap .3s var(--lbs-ease), box-shadow .3s;
}
.lbs .lbs-btn svg { height: 20px; width: 20px; }
.lbs .lbs-btn:hover { background: #ffad33; box-shadow: 0 14px 30px -12px rgba(255, 153, 0, .7); gap: 22px; }
.lbs .lbs-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Foto inclinata */
.lbs .lbs-media {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	min-height: 0;
}
.lbs .lbs-media img {
	border: 0;
	box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.06);
	display: block;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	transform: rotate(-3deg);
	width: auto;
}

/* Animazioni d'ingresso */
.lbs .lbs-anim {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .8s var(--lbs-ease), transform .8s var(--lbs-ease);
}
.lbs .lbs-slide.is-active .lbs-anim { opacity: 1; transform: none; }
.lbs .lbs-slide.is-active .lbs-kicker { transition-delay: .25s; }
.lbs .lbs-slide.is-active .lbs-title { transition-delay: .38s; }
.lbs .lbs-slide.is-active .lbs-btn { transition-delay: .52s, .52s, 0s, 0s, 0s; }
.lbs .lbs-media img {
	opacity: 0;
	transform: translateX(60px) rotate(2deg) scale(.96);
	transition: opacity 1s var(--lbs-ease) .15s, transform 1.2s var(--lbs-ease) .15s;
}
.lbs .lbs-slide.is-active .lbs-media img { opacity: 1; transform: rotate(-3deg); }

/* -------------------------------------------------------------------------
   Navigazione
   ---------------------------------------------------------------------- */
.lbs .lbs-nav {
	align-items: center;
	bottom: clamp(24px, 4vh, 44px);
	display: flex;
	gap: 18px;
	left: 50%;
	max-width: 1320px;
	padding: 0 var(--lbs-pad);
	position: absolute;
	transform: translateX(-50%);
	width: 100%;
	z-index: 4;
}
.lbs .lbs-arrow {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	flex: none;
	height: 46px;
	justify-content: center;
	padding: 0;
	transition: background-color .2s, border-color .2s, color .2s;
	width: 46px;
}
.lbs .lbs-arrow svg { height: 20px; width: 20px; }
.lbs .lbs-arrow:hover { background: var(--lbs-accent); border-color: var(--lbs-accent); }
.lbs .lbs-arrow:focus-visible, .lbs .lbs-dot:focus-visible { outline: 2px solid var(--lbs-accent); outline-offset: 3px; }

.lbs .lbs-dots { display: flex; gap: 22px; margin: 0 6px; }
.lbs .lbs-dot {
	align-items: center;
	appearance: none;
	background: none;
	border: 0;
	color: rgba(255,255,255,.55);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	gap: 10px;
	letter-spacing: .1em;
	padding: 8px 0;
	transition: color .2s;
}
.lbs .lbs-dot:hover, .lbs .lbs-dot.is-active { color: #fff; }
.lbs .lbs-dot-bar {
	background: rgba(255,255,255,.22);
	display: block;
	height: 2px;
	overflow: hidden;
	position: relative;
	width: 56px;
}
.lbs .lbs-dot-bar span {
	background: var(--lbs-accent);
	inset: 0;
	position: absolute;
	transform: scaleX(0);
	transform-origin: left;
}
.lbs .lbs-dot.is-active .lbs-dot-bar span { transform: scaleX(1); }
.lbs.is-playing .lbs-dot.is-active .lbs-dot-bar span { animation: lbs-progress var(--lbs-dur) linear forwards; }
.lbs.is-paused .lbs-dot.is-active .lbs-dot-bar span { animation-play-state: paused; }
@keyframes lbs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* -------------------------------------------------------------------------
   Tablet e telefono
   ---------------------------------------------------------------------- */
@media (max-width: 860px) {
	.lbs { --lbs-h: auto; --lbs-top: 112px; min-height: 640px; height: auto; }
	.lbs .lbs-kicker::before { display: none; }
	.lbs-track { display: grid; }
	.lbs .lbs-slide { grid-area: 1 / 1; position: relative; inset: auto; }
	.lbs .lbs-inner {
		align-content: center;
		gap: 30px;
		grid-template-columns: 1fr;
		min-height: 640px;
		padding-bottom: 104px;
	}
	.lbs .lbs-media { grid-row: 1; height: auto; }
	.lbs .lbs-media img { max-height: 300px; }
	.lbs .lbs-bg::after { background: linear-gradient(180deg, rgba(22,25,27,.55) 0%, rgba(22,25,27,.75) 50%, var(--lbs-bg) 100%); }
	.lbs .lbs-title { margin-bottom: 28px; }
}
@media (max-width: 520px) {
	.lbs .lbs-media img { max-height: 240px; }
	.lbs .lbs-btn { font-size: 14px; padding: 18px 22px; }
	.lbs .lbs-dot-bar { width: 36px; }
	.lbs .lbs-dots { gap: 14px; }
	.lbs .lbs-arrow { height: 42px; width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
	.lbs *, .lbs *::before, .lbs *::after { animation: none !important; transition: none !important; }
	.lbs .lbs-anim, .lbs .lbs-media img { opacity: 1; }
}
