/* L'Aliança – Disseny: stories, barra de secció i barra inferior del mòbil. */
:root {
	--lx-vermell: var(--e-global-color-primary, #BC181C);
	--lx-verd: var(--e-global-color-secondary, #A8D3B3);
	--lx-negre: #161412;
	--lx-groc: #F2B705;
	--lx-linia: #ece6df;
	--lx-titols: "Dela Gothic One", sans-serif;
}
.lx-c-vermell { --lx-f: var(--lx-vermell); --lx-t: #fff; }
.lx-c-verd    { --lx-f: var(--lx-verd);    --lx-t: var(--lx-negre); }
.lx-c-negre   { --lx-f: var(--lx-negre);   --lx-t: #fff; }
.lx-c-groc    { --lx-f: var(--lx-groc);    --lx-t: var(--lx-negre); }
.lx-c-blanc   { --lx-f: #fff;              --lx-t: var(--lx-negre); }
.lx-avis { padding: 10px 14px; border: 1px dashed #c3c4c7; color: #646970; font-size: 14px; }

/* ---------- Stories ---------- */
.lx-stories { width: 100%; }
.lx-stories .lx-stories__llista {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 4px 2px 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.lx-stories .lx-stories__llista::-webkit-scrollbar { display: none; }
.lx-stories .lx-st { flex: 0 0 auto; margin: 0; padding: 0; scroll-snap-align: start; list-style: none; }
.lx-stories .lx-st::before, .lx-stories .lx-st::marker { content: none; }
.lx-stories .lx-st a { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 76px; color: inherit; text-decoration: none; }
.lx-st__anell {
	display: flex;
	width: 72px;
	height: 72px;
	padding: 3px;
	box-sizing: border-box;
	border: 3px solid #d9d2ca;
	border-radius: 999px;
	transition: transform .15s ease;
}
.lx-st__anell.is-viu { border-color: var(--lx-vermell); }
.lx-stories .lx-st a:hover .lx-st__anell, .lx-stories .lx-st a:focus-visible .lx-st__anell { transform: scale(1.06); }
.lx-st__cercle {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--lx-f);
	color: var(--lx-t);
	font-family: var(--lx-titols);
	font-size: 18px;
	line-height: 1;
	letter-spacing: -.02em;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.lx-st__cercle.is-llarga { font-size: 14px; }
.lx-st__nom { font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; }
.lx-st.is-actual .lx-st__nom { font-weight: 700; color: var(--lx-vermell); }
@media (min-width: 768px) {
	.lx-stories .lx-stories__llista { gap: 22px; }
	.lx-stories .lx-st a { width: 88px; }
	.lx-st__anell { width: 82px; height: 82px; }
	.lx-st__cercle { font-size: 21px; }
	.lx-st__cercle.is-llarga { font-size: 16px; }
}

/* ---------- Barra de secció ---------- */
.lx-seccio { background: var(--lx-f); color: var(--lx-t); }
.lx-seccio .lx-seccio__dins { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 10px 16px; font-size: 14px; }
.lx-seccio a { color: inherit; text-decoration: none; }
.lx-seccio a:hover { text-decoration: underline; }
.lx-seccio__sep { opacity: .55; }
.lx-seccio__titol { font-family: "Archivo", "DM Sans", sans-serif; font-stretch: 125%; font-weight: 700; }

/* ---------- Barra inferior del mòbil ---------- */
.lx-barra { display: none; }
@media (max-width: 767px) {
	.lx-barra {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		background: #fff;
		border-top: 1px solid var(--lx-linia);
		padding-bottom: env(safe-area-inset-bottom, 0);
		box-shadow: 0 -4px 18px rgba(0, 0, 0, .05);
	}
	.lx-barra .lx-barra__llista {
		display: grid;
		grid-template-columns: repeat(var(--lx-n, 5), minmax(0, 1fr));
		align-items: end;
		margin: 0;
		padding: 6px 4px 8px;
		list-style: none;
	}
	.lx-barra .lx-barra__item { margin: 0; padding: 0; list-style: none; }
	.lx-barra .lx-barra__item::before, .lx-barra .lx-barra__item::marker { content: none; }
	.lx-barra a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		min-height: 48px;
		justify-content: flex-end;
		color: var(--lx-negre);
		font-family: "DM Sans", sans-serif;
		font-size: 11px;
		font-weight: 500;
		line-height: 1.2;
		text-decoration: none;
	}
	.lx-barra .is-actual a { color: var(--lx-vermell); font-weight: 700; }
	.lx-barra .is-principal .lx-barra__ico {
		width: 52px;
		height: 52px;
		margin-top: -24px;
		border: 4px solid #fff;
		border-radius: 999px;
		background: var(--lx-vermell);
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}
	.lx-barra .is-principal a { font-weight: 700; }
	/* Que la barra no tapi el final de la pàgina ni el botó de «tornar a dalt». */
	body.lx-amb-barra { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0)); }
	body.lx-amb-barra #scroll-top { bottom: calc(84px + env(safe-area-inset-bottom, 0)); }
}

/* Stories dins la capçalera de secció (extensió UPT, mode «sota la capçalera»): amplada del contingut. */
.lup-capcalera .lx-stories { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 14px 16px 6px; }
.lup-capcalera { border-bottom: 1px solid var(--lx-linia); background: #fff; }

/* ---------- Visor de stories (1.1.0) ---------- */
.lx-st.is-vista .lx-st__anell { border-color: #c9c9c9; }
.lx-visor-obert, .lx-visor-obert body { overflow: hidden !important; }
.lx-visor { position: fixed; inset: 0; z-index: 999999; background: #0c0c0c; display: flex; align-items: center; justify-content: center; font-family: var(--lx-text, "DM Sans", sans-serif); }
.lx-visor__marc { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--lx-f, #0c0c0c); touch-action: none; user-select: none; -webkit-user-select: none; }
@media (min-width: 768px) {
	.lx-visor { background: rgba(12,12,12,.94); }
	.lx-visor__marc { width: auto; height: min(92vh, 900px); aspect-ratio: 9 / 16; border-radius: 14px; }
}
.lx-visor__barres { position: absolute; z-index: 4; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.lx-visor__barra { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.38); overflow: hidden; }
.lx-visor__barra i { display: block; height: 100%; background: #fff; }
.lx-visor__cap { position: absolute; z-index: 4; top: 22px; left: 12px; right: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.lx-visor__qui { display: flex; align-items: center; gap: 8px; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.lx-visor__mini.lx-st__cercle { width: 32px; height: 32px; font-size: 11px; border: 2px solid #fff; text-shadow: none; }
.lx-visor__compte { font-size: 12px; opacity: .85; }
.lx-visor__tanca { position: absolute; z-index: 5; top: 18px; right: 8px; width: 42px; height: 42px; border: 0; background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.5); padding: 0; }
.lx-visor__cos { position: absolute; inset: 0; }
.lx-visor__fons { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.55); }
.lx-visor__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.lx-visor__text { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 70px 20px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; pointer-events: none; }
.lx-visor__text.is-sola { top: 0; display: flex; flex-direction: column; justify-content: center; background: none; color: var(--lx-t, #fff); padding-top: 90px; }
.lx-visor__titol { margin: 0 0 8px; font-family: var(--lx-titols); font-size: clamp(19px, 5.4vw, 25px); line-height: 1.12; color: inherit !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lx-visor__text.is-sola .lx-visor__titol { font-size: clamp(30px, 9vw, 44px); }
.lx-visor__sub { margin: 0 0 16px; font-size: 15px; line-height: 1.35; opacity: .95; }
.lx-visor__boto { position: relative; z-index: 6; display: inline-block; padding: 12px 20px; border-radius: 999px; background: #fff; color: #0c0c0c !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.lx-visor__text.is-sola .lx-visor__boto { align-self: flex-start; background: var(--lx-t, #fff); color: var(--lx-f, #0c0c0c) !important; }
.lx-visor__zona { position: absolute; z-index: 2; top: 70px; bottom: 0; width: 35%; border: 0; background: transparent; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lx-visor__zona.is-ant { left: 0; }
.lx-visor__zona.is-seg { right: 0; width: 65%; }
.lx-visor__zona:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.lx-visor.is-pausa .lx-visor__barres, .lx-visor.is-pausa .lx-visor__cap { opacity: .4; }
@media (prefers-reduced-motion: reduce) { .lx-stories .lx-st a:hover .lx-st__anell { transform: none; } }
.lx-visor__text.is-final { align-items: center; text-align: center; }
.lx-visor__text.is-final .lx-visor__boto { align-self: center; padding: 15px 28px; font-size: 17px; }
.lx-visor button { border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0 !important; border-radius: 0; }
.lx-visor__text.is-sola .lx-visor__titol { -webkit-line-clamp: 5; }
