/* =========================================================================
   LB Discografia — v1.1
   Per cambiare i colori modifica le variabili qui sotto.
   ========================================================================= */
.lbd {
	--lbd-bg: #0f0e0d;
	--lbd-bg-2: #171513;
	--lbd-text: #f3efe8;
	--lbd-muted: rgba(243, 239, 232, .58);
	--lbd-line: rgba(243, 239, 232, .14);
	--lbd-accent: #e0442e;          /* rosso: anno, filtro attivo, pulsante play */
	--lbd-accent-text: #fff;
	--lbd-spotify: #1ed760;
	--lbd-amazon: #f3efe8;
	--lbd-amazon-text: #0f0e0d;
	--lbd-radius: 4px;
	--lbd-ease: cubic-bezier(.2, .7, .2, 1);
	--lbd-pad: clamp(20px, 5vw, 72px);

	background: var(--lbd-bg);
	color: var(--lbd-text);
	font-family: inherit;
	overflow-x: clip;
	position: relative;
}
.lbd--light {
	--lbd-bg: #f5f2ec;
	--lbd-bg-2: #ebe6dd;
	--lbd-text: #151311;
	--lbd-muted: rgba(21, 19, 17, .6);
	--lbd-line: rgba(21, 19, 17, .14);
	--lbd-amazon: #151311;
	--lbd-amazon-text: #fff;
}

/* A tutta larghezza anche dentro il contenitore del tema */
.lbd--full {
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	position: relative;
	right: 50%;
	width: 100vw;
}
html:has(.lbd--full) { overflow-x: clip; }

.lbd *, .lbd *::before, .lbd *::after { box-sizing: border-box; }
.lbd ul, .lbd li { list-style: none; margin: 0; padding: 0; }
.lbd li::before { content: none; }
.lbd h2, .lbd h3, .lbd p { color: inherit; margin: 0; padding: 0; }
.lbd img { border: 0; box-shadow: none; display: block; height: auto; max-width: 100%; }

/* -------------------------------------------------------------------------
   Vinile (usato nell'evidenza e nelle schede)
   ---------------------------------------------------------------------- */
.lbd .lbd-vinyl {
	background:
		conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.14) 12%, transparent 18% 50%, rgba(255,255,255,.10) 60%, transparent 66%),
		repeating-radial-gradient(circle at 50% 50%, #0b0b0b 0 1.5px, #1c1c1c 1.5px 3px);
	border-radius: 50%;
	box-shadow: 0 10px 40px rgba(0,0,0,.5);
	inset: 3%;
	position: absolute;
	transition: transform .7s var(--lbd-ease);
	z-index: 0;
}
.lbd .lbd-vinyl::before { /* etichetta centrale = copertina */
	animation: lbd-spin 6s linear infinite;
	animation-play-state: paused;
	background: var(--lbd-accent) var(--lbd-cover) center / cover;
	border-radius: 50%;
	content: "";
	inset: 33%;
	position: absolute;
}
.lbd .lbd-vinyl::after { /* foro */
	background: var(--lbd-bg);
	border-radius: 50%;
	content: "";
	height: 3%;
	left: 48.5%;
	position: absolute;
	top: 48.5%;
	width: 3%;
}
@keyframes lbd-spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------------------
   Album in evidenza
   ---------------------------------------------------------------------- */
.lbd .lbd-hero {
	isolation: isolate;
	overflow: hidden;
	padding: clamp(72px, 11vw, 150px) var(--lbd-pad) clamp(64px, 9vw, 120px);
	position: relative;
}
.lbd .lbd-hero-bg {
	background: var(--lbd-cover) center / cover no-repeat;
	filter: blur(90px) saturate(1.5);
	inset: -20%;
	opacity: .5;
	position: absolute;
	z-index: -2;
}
.lbd .lbd-hero::after {
	background: linear-gradient(180deg, transparent 45%, var(--lbd-bg) 99%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}
.lbd--light .lbd-hero-bg { opacity: .35; }

.lbd .lbd-hero-inner {
	align-items: center;
	display: grid;
	gap: clamp(40px, 7vw, 110px);
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	margin: 0 auto;
	max-width: 1240px;
}
.lbd .lbd-hero-art {
	aspect-ratio: 1;
	margin-right: 18%;
	position: relative;
}
.lbd .lbd-hero-art .lbd-vinyl { transform: translateX(0); }
.lbd .lbd-hero-art.is-in .lbd-vinyl { transform: translateX(30%); transition-delay: .35s; }
.lbd .lbd-hero-art.is-in .lbd-vinyl::before { animation-play-state: running; }
.lbd:not(.lbd--js) .lbd-hero-art .lbd-vinyl { transform: translateX(30%); }
.lbd .lbd-hero-img {
	aspect-ratio: 1;
	border-radius: var(--lbd-radius);
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
	height: 100%;
	object-fit: cover;
	position: relative;
	width: 100%;
	z-index: 1;
}

.lbd .lbd-kicker {
	align-items: center;
	color: var(--lbd-muted);
	display: flex;
	font-size: 13px;
	font-weight: 600;
	gap: 14px;
	letter-spacing: .22em;
	line-height: 1;
	margin-bottom: 22px;
	text-transform: uppercase;
}
.lbd .lbd-kicker::before {
	background: var(--lbd-accent);
	content: "";
	height: 2px;
	width: 40px;
}
.lbd .lbd-kicker span + span::before { content: "·"; margin-right: 14px; }
.lbd .lbd-hero-title {
	font-size: clamp(42px, 7.2vw, 104px);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: .95;
	margin-bottom: 18px;
	text-transform: none;
	text-wrap: balance;
}
.lbd .lbd-hero-artist {
	color: var(--lbd-muted);
	font-size: clamp(16px, 1.6vw, 20px);
	letter-spacing: .04em;
	margin-bottom: 28px;
}
.lbd .lbd-hero-desc {
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.6;
	margin-bottom: 32px;
	max-width: 52ch;
	opacity: .85;
}
.lbd .lbd-hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 14px 18px; }

.lbd .lbd-play-btn {
	align-items: center;
	appearance: none;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	gap: 14px;
	letter-spacing: .08em;
	padding: 0 8px 0 0;
	text-transform: uppercase;
}
.lbd .lbd-play-icon {
	align-items: center;
	background: var(--lbd-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 0 var(--lbd-accent);
	color: var(--lbd-accent-text);
	display: inline-flex;
	height: 64px;
	justify-content: center;
	transition: transform .3s var(--lbd-ease), box-shadow .3s;
	width: 64px;
}
.lbd .lbd-play-icon svg { height: 26px; margin-left: 3px; width: 26px; }
.lbd .lbd-play-btn:hover .lbd-play-icon { box-shadow: 0 0 0 10px rgba(224, 68, 46, .2); transform: scale(1.06); }
.lbd .lbd-play-btn:focus-visible { outline: 2px solid var(--lbd-accent); outline-offset: 4px; }

.lbd .lbd-player { margin-top: 28px; max-width: 560px; }
.lbd .lbd-player iframe { border: 0; border-radius: 12px; display: block; height: 352px; width: 100%; }

/* -------------------------------------------------------------------------
   Intestazione elenco + filtri
   ---------------------------------------------------------------------- */
.lbd .lbd-body {
	margin: 0 auto;
	max-width: 1240px;
	padding: clamp(40px, 6vw, 80px) var(--lbd-pad) clamp(72px, 10vw, 140px);
}
.lbd .lbd-head {
	align-items: end;
	border-bottom: 1px solid var(--lbd-line);
	display: grid;
	gap: 16px 32px;
	grid-template-columns: auto 1fr auto;
	margin-bottom: clamp(32px, 5vw, 64px);
	padding-bottom: 28px;
}
.lbd .lbd-heading {
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 700;
	letter-spacing: .14em;
	line-height: 1;
	text-transform: uppercase;
}
.lbd .lbd-count { color: var(--lbd-muted); font-size: 14px; letter-spacing: .08em; padding-bottom: 4px; }
.lbd .lbd-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lbd .lbd-filter {
	appearance: none;
	background: transparent;
	border: 1px solid var(--lbd-line);
	border-radius: 999px;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1;
	padding: 11px 18px;
	text-transform: uppercase;
	transition: background-color .2s, border-color .2s, color .2s;
}
.lbd .lbd-filter:hover { border-color: var(--lbd-text); }
.lbd .lbd-filter.is-active { background: var(--lbd-text); border-color: var(--lbd-text); color: var(--lbd-bg); }
.lbd .lbd-filter:focus-visible { outline: 2px solid var(--lbd-accent); outline-offset: 2px; }

/* -------------------------------------------------------------------------
   Decenni
   ---------------------------------------------------------------------- */
.lbd .lbd-decade {
	display: grid;
	gap: 24px clamp(24px, 4vw, 56px);
	grid-template-columns: clamp(120px, 14vw, 190px) 1fr;
	padding: clamp(28px, 4vw, 48px) 0;
}
.lbd .lbd-decade + .lbd-decade { border-top: 1px solid var(--lbd-line); }
.lbd .lbd-decade[hidden] { display: none; }
.lbd .lbd-decade:not(:has(.lbd-decade-label)) { grid-template-columns: 1fr; }
.lbd .lbd-decade-label {
	align-self: start;
	position: sticky;
	top: 110px;
}
.lbd .lbd-decade-small {
	color: var(--lbd-accent);
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .28em;
	margin-bottom: 6px;
	text-transform: uppercase;
}
.lbd .lbd-decade-big {
	-webkit-text-stroke: 1.5px var(--lbd-text);
	color: transparent;
	display: block;
	font-size: clamp(64px, 9vw, 132px);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: .85;
}

/* -------------------------------------------------------------------------
   Griglia album
   ---------------------------------------------------------------------- */
.lbd .lbd-grid {
	display: grid;
	gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
}
.lbd .lbd-album { display: flex; flex-direction: column; }
.lbd .lbd-album[hidden] { display: none; }

.lbd .lbd-art {
	aspect-ratio: 1;
	color: inherit;
	display: block;
	position: relative;
	text-decoration: none;
}
.lbd .lbd-sleeve {
	border-radius: var(--lbd-radius);
	box-shadow: 0 18px 40px -16px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
	display: block;
	height: 100%;
	overflow: hidden;
	position: relative;
	transition: transform .5s var(--lbd-ease), box-shadow .5s;
	z-index: 1;
}
.lbd--light .lbd-sleeve { box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
.lbd .lbd-sleeve img { height: 100%; object-fit: cover; transition: transform .8s var(--lbd-ease); width: 100%; }
.lbd .lbd-art .lbd-vinyl { inset: 5%; }

.lbd .lbd-art-play {
	align-items: center;
	background: var(--lbd-accent);
	border-radius: 50%;
	bottom: 14px;
	color: var(--lbd-accent-text);
	display: flex;
	height: 48px;
	justify-content: center;
	opacity: 0;
	position: absolute;
	right: 14px;
	transform: translateY(10px) scale(.9);
	transition: opacity .3s, transform .4s var(--lbd-ease);
	width: 48px;
	z-index: 2;
}
.lbd .lbd-art-play svg { height: 20px; margin-left: 2px; width: 20px; }

@media (hover: hover) {
	.lbd .lbd-album:hover .lbd-sleeve { transform: translateX(-6%) rotate(-1.5deg); }
	.lbd .lbd-album:hover .lbd-sleeve img { transform: scale(1.04); }
	.lbd .lbd-album:hover .lbd-vinyl { transform: translateX(24%) rotate(25deg); }
	.lbd .lbd-album:hover .lbd-vinyl::before { animation-play-state: running; }
	.lbd .lbd-album:hover .lbd-art-play { opacity: 1; transform: translate(-6%, 0) scale(1); }
}

.lbd .lbd-cover-placeholder {
	align-items: center;
	background:
		radial-gradient(circle at 30% 20%, rgba(224, 68, 46, .35), transparent 60%),
		linear-gradient(135deg, #2a2724, #121110);
	color: #f3efe8;
	display: flex;
	height: 100%;
	justify-content: center;
	padding: 16%;
	text-align: center;
	width: 100%;
}
.lbd .lbd-cover-placeholder span {
	border-bottom: 1px solid rgba(255,255,255,.35);
	border-top: 1px solid rgba(255,255,255,.35);
	font-size: clamp(14px, 1.5vw, 18px);
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1.35;
	padding: 12px 0;
	text-transform: uppercase;
}

.lbd .lbd-info { display: flex; flex: 1; flex-direction: column; padding-top: 20px; }
.lbd .lbd-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 10px;
	letter-spacing: .16em;
	line-height: 1;
	margin-bottom: 10px;
	text-transform: uppercase;
}
.lbd .lbd-year { color: var(--lbd-accent); font-weight: 800; }
.lbd .lbd-type { color: var(--lbd-muted); }
.lbd .lbd-type::before { content: "·"; margin-right: 10px; }
.lbd .lbd-title {
	font-size: clamp(18px, 1.5vw, 21px);
	font-weight: 700;
	letter-spacing: -.005em;
	line-height: 1.2;
	margin-bottom: 16px;
	text-transform: none;
}

/* -------------------------------------------------------------------------
   Pulsanti
   ---------------------------------------------------------------------- */
.lbd .lbd-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.lbd .lbd-btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 999px;
	box-shadow: none;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 7px;
	letter-spacing: .04em;
	line-height: 1;
	padding: 8px 13px 8px 9px;
	text-decoration: none !important;
	transition: transform .2s, filter .2s, background-color .2s, border-color .2s;
	white-space: nowrap;
}
.lbd .lbd-btn svg { flex: none; height: 17px; width: 17px; }
.lbd .lbd-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.lbd .lbd-btn:focus-visible { outline: 2px solid var(--lbd-accent); outline-offset: 2px; }
.lbd .lbd-btn--spotify, .lbd .lbd-btn--spotify:visited, .lbd .lbd-btn--spotify:hover { background: var(--lbd-spotify); color: #000 !important; }
.lbd .lbd-btn--amazon, .lbd .lbd-btn--amazon:visited, .lbd .lbd-btn--amazon:hover { background: var(--lbd-amazon); color: var(--lbd-amazon-text) !important; }
.lbd .lbd-btn--extra, .lbd .lbd-btn--extra:visited, .lbd .lbd-btn--extra:hover { background: transparent; border-color: var(--lbd-line); color: inherit !important; }
.lbd .lbd-btn--extra:hover { border-color: var(--lbd-text); filter: none; }

.lbd .lbd-links--lg { gap: 10px; }
.lbd .lbd-links--lg .lbd-btn { font-size: 14px; gap: 9px; padding: 13px 20px 13px 15px; }
.lbd .lbd-links--lg .lbd-btn svg { height: 21px; width: 21px; }

/* -------------------------------------------------------------------------
   Animazioni di comparsa (attive solo con JavaScript)
   ---------------------------------------------------------------------- */
.lbd--js .lbd-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s var(--lbd-ease), transform .8s var(--lbd-ease);
	transition-delay: var(--lbd-delay, 0s);
}
.lbd--js .lbd-reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
	.lbd .lbd-hero-inner { grid-template-columns: 1fr; }
	.lbd .lbd-hero-art { margin: 0 auto; max-width: 340px; width: 72%; }
	.lbd .lbd-hero-art.is-in .lbd-vinyl, .lbd:not(.lbd--js) .lbd-hero-art .lbd-vinyl { transform: translateX(22%); }
	.lbd .lbd-hero-text { text-align: left; }
	.lbd .lbd-head { grid-template-columns: 1fr; gap: 12px; }
	.lbd .lbd-count { padding-bottom: 8px; }
	.lbd .lbd-decade { grid-template-columns: 1fr; }
	.lbd .lbd-decade-label { display: flex; align-items: baseline; gap: 12px; position: static; }
	.lbd .lbd-decade-big { font-size: 64px; }
}
@media (max-width: 520px) {
	.lbd .lbd-grid { gap: 36px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* Nelle schede su telefono: pulsanti solo icona (il nome resta per gli screen reader) */
	.lbd .lbd-grid .lbd-btn { padding: 9px; }
	.lbd .lbd-grid .lbd-btn span { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
	.lbd .lbd-grid .lbd-btn svg { height: 18px; width: 18px; }
	.lbd .lbd-links--lg .lbd-btn { font-size: 13px; padding: 11px 16px 11px 12px; }
	.lbd .lbd-play-icon { height: 56px; width: 56px; }
	.lbd .lbd-title { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.lbd *, .lbd *::before, .lbd *::after { animation: none !important; transition: none !important; }
	.lbd--js .lbd-reveal { opacity: 1; transform: none; }
}
