/* =========================================================================
 * Agenda [lalianca_agenda]
 * ====================================================================== */
.lx-agenda {
	--lx-ag-accent: var(--e-global-color-primary, #cd2c2b);
	--lx-ag-text: var(--e-global-color-text, #222);
	--lx-ag-titol-font: var(--e-global-typography-primary-font-family, inherit);
}

/* ---------- Destacades ---------- */
.lx-ag-dest-graella {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 48px;
}
.lx-ag-dest { min-width: 0; }
.lx-agenda .lx-ag-dest__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 0.88;
	overflow: hidden;
	background: #444;
	color: #fff;
	text-decoration: none;
}
.lx-agenda .lx-ag-dest__img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform .4s ease;
}
.lx-agenda .lx-ag-dest__media:hover .lx-ag-dest__img { transform: scale(1.04); }
.lx-ag-dest__img--buida { background: linear-gradient(135deg, #6b6b6b, #2d2d2d); }
.lx-ag-dest__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%);
	pointer-events: none;
}
.lx-agenda .lx-ag-dest__titol {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 44px;
	z-index: 1;
	margin: 0;
	color: #fff;
	font-family: var(--lx-ag-titol-font);
	font-size: clamp(17px, 1.45vw, 21px);
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 3px rgba(0,0,0,.35);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lx-ag-dest__meta {
	position: absolute;
	left: 10px;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: stretch;
}
.lx-ag-data,
.lx-ag-cat {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}
.lx-ag-data { background: var(--lx-ag-accent); color: #fff; }
.lx-ag-cat {
	background: #fff;
	color: var(--lx-ag-accent);
	font-weight: 600;
	max-width: 140px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lx-ag-dest__extracte {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--lx-ag-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Llista petita ---------- */
.lx-agenda .lx-ag-llista {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lx-ag-petita { margin: 0; min-width: 0; }
.lx-agenda .lx-ag-petita a {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	color: inherit;
	text-decoration: none;
}
.lx-agenda .lx-ag-petita__img {
	flex: 0 0 104px;
	width: 104px;
	max-width: none;
	height: 92px;
	object-fit: cover;
	border-radius: 0;
}
.lx-ag-petita__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 4px; }
.lx-ag-petita__titol {
	font-family: var(--lx-ag-titol-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--lx-ag-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lx-agenda .lx-ag-petita a:hover .lx-ag-petita__titol { color: var(--lx-ag-accent); }
.lx-ag-petita__data { font-size: 13px; font-weight: 700; color: var(--lx-ag-accent); }

/* ---------- Botó ---------- */
.lx-ag-peu { margin: 36px 0 0; }
.lx-agenda .lx-ag-boto,
.lx-agenda .lx-ag-boto:visited {
	display: inline-block;
	padding: 11px 18px;
	background: var(--lx-ag-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}
.lx-agenda .lx-ag-boto:hover { opacity: .88; }

/* ---------- Responsive (punts de tall d'Elementor) ---------- */
@media (max-width: 1024px) {
	.lx-ag-dest-graella { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lx-agenda .lx-ag-llista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
}
@media (max-width: 767px) {
	.lx-ag-dest-graella { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 36px; }
	.lx-agenda .lx-ag-dest__titol { font-size: 21px; }
	.lx-agenda .lx-ag-llista { grid-template-columns: minmax(0, 1fr); }
	.lx-agenda .lx-ag-petita__img { flex-basis: 88px; width: 88px; height: 80px; }
}

.lx-ag-buit { font-style: italic; color: #6b6b6b; }
