/**
 * Contenuti editoriali standard: title bar, layout+sidebar, card blog,
 * articolo, widget, paginazione. Tutto su design token (--bpc-*).
 */

/* --- Page Title Bar --- */
.bpc-page-title-bar {
	background: var(--bpc-titlebar-bg, var(--bpc-surface-container-low, #f4f3f3));
	color: var(--bpc-titlebar-fg, var(--bpc-on-surface, #1a1c1c));
	padding: 2.5rem 0;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid var(--bpc-outline-variant, #e0bfc0);
}
.bpc-page-title {
	margin: 0;
	font-family: var(--bpc-font-headline, inherit);
	color: inherit;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	line-height: 1.15;
}
.bpc-page-title-bar .bpc-breadcrumb {
	margin: 0.75rem 0 0;
}

/* Breadcrumb */
.bpc-breadcrumb {
	font-size: 0.8rem;
	color: var(--bpc-on-surface-variant, #584142);
}
.bpc-breadcrumb a {
	color: inherit;
	text-decoration: none;
}
.bpc-breadcrumb a:hover,
.bpc-breadcrumb a:focus-visible {
	color: var(--bpc-primary, #63001b);
	text-decoration: underline;
}
.bpc-crumb-sep {
	margin: 0 0.5rem;
	opacity: 0.5;
}

/* --- Layout con sidebar --- */
.bpc-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	margin-bottom: 4rem;
}
.bpc-layout > .bpc-primary > * + * {
	margin-top: var(--bpc-content-gap, 40px);
}
@media (min-width: 900px) {
	.bpc-layout--right {
		grid-template-columns: minmax(0, 1fr) var(--bpc-sidebar-width, 300px);
	}
	.bpc-layout--left {
		grid-template-columns: var(--bpc-sidebar-width, 300px) minmax(0, 1fr);
	}
	.bpc-layout--left .bpc-primary {
		order: 2;
	}
	.bpc-layout--left .bpc-sidebar {
		order: 1;
	}
	.bpc-sidebar-sticky .bpc-sidebar {
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}
}

/* --- Barra avanzamento lettura --- */
.bpc-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 1000;
	background: transparent;
	pointer-events: none;
}
.bpc-reading-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--bpc-primary, #63001b);
}

/* --- Griglia articoli --- */
.bpc-posts {
	display: grid;
	gap: 2rem;
	margin: 0 0 2.5rem;
}
.bpc-posts--grid.bpc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bpc-posts--grid.bpc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bpc-posts--grid.bpc-cols-4 { grid-template-columns: repeat(4, 1fr); }
.bpc-posts--list { grid-template-columns: 1fr; }

@media (max-width: 1024px) {
	.bpc-posts--grid.bpc-cols-3,
	.bpc-posts--grid.bpc-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.bpc-posts--grid { grid-template-columns: 1fr !important; }
}

/* --- Masonry (colonne CSS) --- */
.bpc-posts--masonry {
	display: block;
	column-gap: 2rem;
	columns: 3;
}
.bpc-posts--masonry.bpc-cols-2 { columns: 2; }
.bpc-posts--masonry.bpc-cols-4 { columns: 4; }
.bpc-posts--masonry .bpc-post-card {
	break-inside: avoid;
	margin-bottom: 2rem;
	display: inline-block;
	width: 100%;
}
@media (max-width: 1024px) {
	.bpc-posts--masonry { columns: 2; }
}
@media (max-width: 640px) {
	.bpc-posts--masonry { columns: 1; }
}

/* --- Timeline (cronologia verticale) --- */
.bpc-posts--timeline {
	display: block;
	position: relative;
	padding-left: 34px;
	max-width: 820px;
}
.bpc-posts--timeline::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(to bottom, var(--bpc-primary-container), rgb(var(--bpc-primary-container-rgb) / 0.2));
}
.bpc-posts--timeline .bpc-post-card {
	position: relative;
	margin-bottom: 2rem;
	flex-direction: row;
}
.bpc-posts--timeline .bpc-post-card::before {
	content: "";
	position: absolute;
	left: -34px;
	top: 8px;
	width: 14px;
	height: 14px;
	border-radius: var(--bpc-radius-full);
	background: var(--bpc-primary-container);
	box-shadow: 0 0 0 4px var(--bpc-surface-container-lowest);
}
@media (min-width: 720px) {
	.bpc-posts--timeline .bpc-post-card__media { flex: 0 0 34%; aspect-ratio: auto; }
}
.bpc-post-card__comments::before {
	content: "·";
	margin: 0 6px;
	color: var(--bpc-on-surface-variant, #584142);
}

/* Card articolo */
.bpc-post-card {
	display: flex;
	flex-direction: column;
	background: var(--bpc-surface-container-lowest, #fff);
	border: 1px solid var(--bpc-outline-variant, #e0bfc0);
	border-radius: var(--bpc-radius-lg, 0.5rem);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bpc-post-card:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}
.bpc-post-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}
.bpc-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.bpc-post-card:hover .bpc-post-card__media img {
	transform: scale(1.05);
}
.bpc-post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--bpc-surface-variant, #e2e2e2);
	color: var(--bpc-primary-container, #8c052b);
}
.bpc-post-card__placeholder .material-symbols-outlined {
	font-size: 3rem;
}
/* Segnaposto istituzionale: sfumatura brand + logo reso bianco/semi-trasparente. */
.bpc-post-card__placeholder--brand {
	position: relative;
	overflow: hidden;
}
.bpc-post-card__placeholder--brand::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%);
	pointer-events: none;
}
.bpc-post-card__media .bpc-post-card__placeholder--brand .bpc-post-card__ph-logo {
	position: relative;
	inset: auto;
	z-index: 1;
	width: auto;
	height: auto;
	max-width: 60%;
	max-height: 50%;
	object-fit: contain;
	filter: brightness(0) invert(1);
}
.bpc-post-card__placeholder--brand .material-symbols-outlined {
	position: relative;
	z-index: 1;
	font-size: 4rem;
	color: rgba(255, 255, 255, 0.92);
}
.bpc-post-card__placeholder--brand .bpc-post-card__ph-svg {
	position: relative;
	z-index: 1;
	width: 4rem;
	height: 4rem;
	color: rgba(255, 255, 255, 0.92);
}
/* Prodotti esterni: logo del partner su un fondo tenue, appoggiato su un "chip"
   bianco cosi' il media si distingue dal corpo (bianco) della card. */
.bpc-post-card__placeholder--partner {
	background:
		radial-gradient(circle at 30% 20%, rgba(140, 5, 43, 0.06) 0%, rgba(140, 5, 43, 0) 55%),
		var(--bpc-surface-variant, #eceae9);
	padding: 1.4rem;
}
.bpc-post-card__media .bpc-post-card__partner-logo {
	max-width: 82%;
	max-height: 68%;
	width: auto;
	height: auto;
	object-fit: contain;
	padding: 0.9rem 1.25rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.bpc-post-card__more-ext {
	font-size: 1.1rem;
	line-height: 1;
}
.bpc-post-card__cat {
	font-family: var(--bpc-font-label, inherit);
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bpc-primary-container, #8c052b);
}
/* Occhiello categoria come link: nelle card "stretched" deve restare cliccabile,
   quindi sta SOPRA l'overlay del titolo (::after, z-index 1). Punta all'archivio
   della categoria: URL diverso dal titolo, nessun avviso "Redundant link". */
a.bpc-post-card__cat {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	text-decoration: none;
}
a.bpc-post-card__cat:hover,
a.bpc-post-card__cat:focus-visible {
	color: var(--bpc-primary, #63001b);
	text-decoration: underline;
}
.bpc-post-card__body {
	padding: 1.25rem 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}
.bpc-post-card__meta {
	margin: 0;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bpc-on-surface-variant, #584142);
	display: flex;
	gap: 0.75rem;
}
.bpc-post-card__title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}
.bpc-post-card__title a {
	color: var(--bpc-on-surface, #1a1c1c);
	text-decoration: none;
}
.bpc-post-card__title a:hover {
	color: var(--bpc-primary, #63001b);
}
.bpc-post-card__excerpt {
	color: var(--bpc-on-surface-variant, #584142);
	font-size: 0.92rem;
	line-height: 1.6;
}
/* Descrizione limitata a 3 righe: card di altezza uniforme, niente "4a riga". */
.bpc-post-card__excerpt p {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Card "luogo" (filiali/ATM nei risultati di ricerca): elenco di informazioni
   operative al posto della data e dell'estratto redazionale. */
.bpc-post-card__facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	color: var(--bpc-on-surface-variant, #584142);
	font-size: 0.9rem;
	line-height: 1.45;
}
.bpc-post-card__facts li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}
.bpc-post-card__facts .material-symbols-outlined {
	font-size: 1.1rem;
	line-height: 1.35;
	color: var(--bpc-primary-container, #8c052b);
	flex: 0 0 auto;
}
.bpc-post-card__facts a {
	color: inherit;
	text-decoration: none;
}
.bpc-post-card__facts a:hover {
	color: var(--bpc-primary-container, #8c052b);
	text-decoration: underline;
}
.bpc-post-card__status {
	margin: 0;
}

.bpc-post-card__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--bpc-primary-container, #8c052b);
	font-family: var(--bpc-font-label, inherit);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.85rem;
}
.bpc-post-card__more .bpc-arrow {
	transition: transform 0.2s ease;
}
.bpc-post-card__more:hover {
	text-decoration: underline;
}
.bpc-post-card:hover .bpc-post-card__more .bpc-arrow {
	transform: translateX(3px);
}

/* "Stretched link": card a destinazione unica (news, pagine, persone, prodotti
   interni). Il link del titolo viene esteso a tutta la card tramite un overlay
   ::after: l'intera card diventa cliccabile con UN solo link, immagine e
   "call to action" restano solo visivi. Elimina l'avviso "Redundant link"
   senza penalizzare la UX. */
.bpc-post-card--linked {
	position: relative;
	cursor: pointer;
}
.bpc-post-card--linked .bpc-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
/* Il titolo cambia colore anche al passaggio sulla card, non solo sul testo. */
.bpc-post-card--linked:hover .bpc-post-card__title a {
	color: var(--bpc-primary, #63001b);
}
/* Link distinti dentro una card "stretched" (es. telefono delle filiali):
   restano cliccabili perche' li portiamo SOPRA l'overlay del titolo. */
.bpc-post-card--linked .bpc-post-card__facts a {
	position: relative;
	z-index: 2;
}

/* Lista: layout orizzontale su desktop */
@media (min-width: 720px) {
	.bpc-posts--list .bpc-post-card {
		flex-direction: row;
	}
	/* La colonna immagine riempie l'altezza della card (determinata dal testo)
	   e ritaglia con object-fit: così un'immagine verticale non allunga la card.
	   L'immagine è in posizione assoluta per non imporre la sua altezza naturale. */
	.bpc-posts--list .bpc-post-card__media {
		flex: 0 0 34%;
		aspect-ratio: auto;
		position: relative;
		align-self: stretch;
		min-height: 200px;
	}
	.bpc-posts--list .bpc-post-card__media img,
	.bpc-posts--list .bpc-post-card__placeholder {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}
}

/* --- Articolo / pagina singola --- */
.bpc-entry {
	margin: 0 0 2.5rem;
}
.bpc-entry__meta {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bpc-on-surface-variant, #584142);
	margin: 0 0 1rem;
	display: flex;
	gap: 1rem;
}

/* Barra: tempo di lettura a sinistra, player "Ascolta" a destra sulla stessa riga. */
.bpc-entry__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	flex-wrap: wrap;
	margin: 0 0 1.75rem;
}
.bpc-entry__topbar .bpc-entry__meta {
	margin: 0;
}
/* Il player nella barra non ha margini propri: li gestisce il contenitore. */
.bpc-entry__topbar .bpc-tts {
	margin: 0;
}
@media (max-width: 640px) {
	.bpc-entry__topbar {
		align-items: stretch;
		gap: 0.85rem;
	}
	.bpc-entry__topbar .bpc-tts {
		width: 100%;
	}
}
.bpc-entry__media {
	margin: 0 0 1.75rem;
	border-radius: var(--bpc-radius-lg, 0.5rem);
	overflow: hidden;
}
.bpc-entry__media img {
	width: 100%;
	height: auto;
	display: block;
}
.entry-content {
	line-height: 1.75;
	font-size: var(--bpc-text-base, 1rem);
}
.entry-content > * + * {
	margin-top: 1.15rem;
}
.entry-content a {
	color: var(--bpc-link, var(--bpc-primary-container, #8c052b));
}
.entry-content a:hover {
	color: var(--bpc-link-hover, var(--bpc-primary, #63001b));
}
/* I bottoni dentro il contenuto (o generati dal builder) non devono ereditare
   il colore-link editoriale: sui bottoni pieni renderebbe il testo invisibile. */
.entry-content a.bpc-btn--primary,
.entry-content a.bpc-btn--primary:hover {
	color: var(--bpc-btn-fg, var(--bpc-on-primary, #fff));
}
.entry-content a.bpc-btn--on-dark,
.entry-content a.bpc-btn--on-dark:hover {
	color: var(--bpc-btn-fg, var(--bpc-primary-container, #8c052b));
}
.entry-content a.bpc-btn--secondary,
.entry-content a.bpc-btn--secondary:hover,
.entry-content a.bpc-btn--link,
.entry-content a.bpc-btn--link:hover {
	color: var(--bpc-primary, #63001b);
}
.entry-content a.bpc-btn--ghost {
	color: var(--bpc-on-surface, #1a1c1c);
}
.entry-content a.bpc-btn--ghost:hover {
	color: var(--bpc-primary, #63001b);
}
.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--bpc-radius-lg, 0.5rem);
}
.entry-content blockquote {
	margin: 1.5rem 0;
	padding: 0.5rem 1.25rem;
	border-left: 4px solid var(--bpc-primary, #63001b);
	color: var(--bpc-on-surface-variant, #584142);
	font-style: italic;
}
.bpc-entry__footer {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--bpc-outline-variant, #e0bfc0);
	font-size: 0.85rem;
}

/* Navigazione articoli */
.bpc-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 2rem 0 0;
	flex-wrap: wrap;
}
.bpc-post-nav a {
	color: var(--bpc-primary, #63001b);
	text-decoration: none;
	font-weight: 600;
}

/* --- Sidebar & widget --- */
.bpc-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}
.bpc-widget {
	background: var(--bpc-surface-container-low, #f4f3f3);
	border: 1px solid var(--bpc-outline-variant, #e0bfc0);
	border-radius: var(--bpc-radius-lg, 0.5rem);
	padding: 1.25rem 1.4rem;
}
.bpc-widget__title {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bpc-primary, #63001b);
}
.bpc-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}
.bpc-widget a {
	color: var(--bpc-on-surface, #1a1c1c);
	text-decoration: none;
}
.bpc-widget a:hover {
	color: var(--bpc-primary, #63001b);
}

/* --- Paginazione --- */
.bpc-pagination {
	margin: 2rem 0 0;
}
.bpc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}
.bpc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.6rem;
	border: 1px solid var(--bpc-outline-variant, #e0bfc0);
	border-radius: var(--bpc-radius-lg, 0.5rem);
	color: var(--bpc-on-surface, #1a1c1c);
	text-decoration: none;
}
.bpc-pagination .page-numbers.current {
	background: var(--bpc-primary, #63001b);
	color: var(--bpc-on-primary, #fff);
	border-color: var(--bpc-primary, #63001b);
}

/* --- No results --- */
.bpc-no-results {
	padding: 3rem 0;
	text-align: center;
}
.bpc-archive-description {
	margin: 0 0 2rem;
	color: var(--bpc-on-surface-variant, #584142);
}

/* --- Extra articolo: tempo lettura, condivisione, autore, correlati --- */
.bpc-reading-time::before {
	content: '·';
	margin: 0 0.4rem;
	opacity: 0.5;
}
.bpc-entry__meta .bpc-reading-time:first-child::before {
	content: '';
	margin: 0;
}

.bpc-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0 0;
}
.bpc-share__label {
	font-weight: 600;
	font-size: 0.85rem;
	margin-right: 0.25rem;
}
.bpc-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--bpc-outline-variant, #e0bfc0);
	border-radius: 50%;
	color: var(--bpc-primary, #63001b);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bpc-share__icon {
	display: block;
}
.bpc-share__btn:hover,
.bpc-share__btn:focus-visible {
	background: var(--bpc-primary, #63001b);
	color: var(--bpc-on-primary, #fff);
	border-color: var(--bpc-primary, #63001b);
}
.bpc-share .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bpc-author-box {
	display: flex;
	gap: 1.25rem;
	margin: 2.5rem 0 0;
	padding: 1.5rem;
	background: var(--bpc-surface-container-low, #f4f3f3);
	border-radius: var(--bpc-radius-lg, 0.5rem);
}
.bpc-author-box__avatar img {
	border-radius: 50%;
}
.bpc-author-box__name {
	margin: 0 0 0.35rem;
	font-weight: 700;
}
.bpc-author-box__bio {
	margin: 0;
	color: var(--bpc-on-surface-variant, #584142);
	font-size: 0.92rem;
	line-height: 1.6;
}

.bpc-related {
	margin: 3.5rem 0 0;
}
.bpc-related__title {
	margin: 0 0 1.5rem;
	font-size: 1.3rem;
}

/* ============================================================
   NEWS: archivio (hub) + barra filtri + dettaglio
   ============================================================ */
.bpc-news-archive {
	padding-top: 3rem;
	padding-bottom: 4rem;
}
.bpc-news-hero {
	margin-bottom: 2.5rem;
}
.bpc-news-hero__title {
	margin: 0 0 1rem;
	font-family: var(--bpc-font-headline, inherit);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--bpc-on-surface, #1a1c1c);
}
.bpc-news-hero__desc {
	margin: 0;
	max-width: 48rem;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--bpc-secondary, #5c5e63);
}

/* Barra filtri categorie */
.bpc-news-filter {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin-bottom: 2.5rem;
	padding-bottom: 0.5rem;
	overflow-x: auto;
	border-bottom: 1px solid var(--bpc-outline-variant, #e0bfc0);
}
.bpc-news-filter__item {
	white-space: nowrap;
	padding-bottom: 0.9rem;
	font-family: var(--bpc-font-label, inherit);
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: var(--bpc-secondary, #5c5e63);
	border-bottom: 4px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.bpc-news-filter__item:hover {
	color: var(--bpc-primary, #63001b);
	border-bottom-color: var(--bpc-outline-variant, #e0bfc0);
}
.bpc-news-filter__item.is-active {
	color: var(--bpc-primary-container, #8c052b);
	border-bottom-color: var(--bpc-primary-container, #8c052b);
}

/* Elenco categorie in barra laterale */
.bpc-news-catlist {
	margin-bottom: 2rem;
}
.bpc-news-catlist__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bpc-primary, #63001b);
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--bpc-outline-variant, #e0bfc0);
}
.bpc-news-catlist__items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bpc-news-catlist__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--bpc-outline-variant, #eee);
	text-decoration: none;
	color: var(--bpc-on-surface, #1a1c1c);
	font-weight: 500;
	transition: color 0.2s ease, padding-left 0.2s ease;
}
.bpc-news-catlist__item:hover {
	color: var(--bpc-primary, #63001b);
	padding-left: 0.35rem;
}
.bpc-news-catlist__item.is-active {
	color: var(--bpc-primary, #63001b);
	font-weight: 700;
}
.bpc-news-catlist__count {
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--bpc-secondary, #5c5e63);
	background: var(--bpc-surface-variant, #f3e7e9);
	border-radius: 999px;
	padding: 0.1rem 0.5rem;
}

/* Dettaglio: hero immagine + overlay */
.bpc-news-single-hero {
	position: relative;
	width: 100%;
	height: clamp(320px, 46vw, 600px);
	overflow: hidden;
	background: var(--bpc-surface-dim, #dadada);
}
.bpc-news-single-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bpc-news-single-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 2.5rem;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.05) 100%);
}
.bpc-news-single-hero__badge {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 0.75rem;
	padding: 0.3rem 0.85rem;
	background: var(--bpc-primary, #63001b);
	color: #fff;
	font-family: var(--bpc-font-label, inherit);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-radius: 2px;
}
.bpc-news-single-hero__date {
	margin: 0 0 0.5rem;
	color: rgba(255,255,255,0.85);
	font-family: var(--bpc-font-label, inherit);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.bpc-news-single-hero__title {
	margin: 0;
	max-width: 56rem;
	color: #fff;
	font-family: var(--bpc-font-headline, inherit);
	font-size: clamp(1.8rem, 4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* Dettaglio: layout contenuto + sidebar */
.bpc-news-single {
	padding-top: 2.5rem;
	padding-bottom: 4rem;
}
.bpc-news-single__crumbs {
	margin-bottom: 1.5rem;
}
.bpc-news-single__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}
@media (min-width: 900px) {
	.bpc-news-single__grid {
		grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	}
}
.bpc-article-card {
	background: var(--bpc-surface-container-lowest, #fff);
	border: 1px solid var(--bpc-outline-variant, #e0bfc0);
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	padding: clamp(1.5rem, 3vw, 3rem);
}
.bpc-article-card__title {
	margin: 0.5rem 0 1rem;
	font-family: var(--bpc-font-headline, inherit);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.2;
}

/* Sidebar widget news */
.bpc-news-single__side {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.bpc-sidebar-sticky .bpc-news-single__side {
	position: sticky;
	top: 1.5rem;
	align-self: start;
}
.bpc-news-widget {
	background: var(--bpc-surface-container-lowest, #fff);
	border: 1px solid var(--bpc-outline-variant, #e0bfc0);
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	padding: 1.5rem;
}
.bpc-news-widget__title {
	margin: 0 0 1rem;
	font-family: var(--bpc-font-label, inherit);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--bpc-primary, #63001b);
}
.bpc-news-widget .bpc-share {
	margin: 0;
}
.bpc-news-widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bpc-news-widget__list li + li {
	margin-top: 0.35rem;
}
.bpc-news-widget__list a {
	display: block;
	padding: 0.35rem 0;
	color: var(--bpc-on-surface, #1a1c1c);
	text-decoration: none;
	font-family: var(--bpc-font-label, inherit);
	font-size: 0.9rem;
}
.bpc-news-widget__list a:hover {
	color: var(--bpc-primary, #63001b);
}
.bpc-news-widget__recent {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bpc-news-widget__recent li + li {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bpc-outline-variant, #e0bfc0);
}
.bpc-news-widget__date {
	display: block;
	font-size: 0.72rem;
	color: var(--bpc-secondary, #5c5e63);
	margin-bottom: 0.15rem;
}
.bpc-news-widget__recent a {
	color: var(--bpc-on-surface, #1a1c1c);
	text-decoration: none;
	font-weight: 700;
	line-height: 1.35;
}
.bpc-news-widget__recent a:hover {
	color: var(--bpc-primary, #63001b);
}
.bpc-news-widget__all {
	display: inline-block;
	margin-top: 1.25rem;
	font-family: var(--bpc-font-label, inherit);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bpc-primary, #63001b);
	text-decoration: none;
}
.bpc-news-widget__all:hover {
	text-decoration: underline;
}

/* Documenti e allegati (sistema proprietario) */
.bpc-attachments {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 2px solid var(--bpc-primary-fixed, #ffdadb);
}
.bpc-attachments__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	font-family: var(--bpc-font-headline, inherit);
	font-size: 1.3rem;
	color: var(--bpc-primary, #63001b);
}
.bpc-attachments__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 620px) {
	.bpc-attachments__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* Allegato singolo: occupa l'intera riga invece di mezza colonna. */
	.bpc-attachments__grid .bpc-attachment:only-child {
		grid-column: 1 / -1;
	}
}
.bpc-attachment {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--bpc-outline-variant, #e0bfc0);
	text-decoration: none;
	color: var(--bpc-on-surface, #1a1c1c);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bpc-attachment:hover {
	border-color: var(--bpc-primary, #63001b);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.bpc-attachment__icon {
	font-size: 2rem;
	color: var(--bpc-primary, #63001b);
	flex: 0 0 auto;
}
.bpc-attachment__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}
.bpc-attachment__label {
	font-weight: 700;
	line-height: 1.3;
}
.bpc-attachment__meta {
	font-size: 0.78rem;
	color: var(--bpc-secondary, #5c5e63);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.bpc-attachment__dl {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--bpc-primary, #63001b);
	color: #fff;
}

/* Riduzione movimento — azzera i transform decorativi al hover (vedi
   components.css). Attiva con preferenza di sistema e con il widget
   "Ferma animazioni" (html.yicacc-stopmotion). */
@media (prefers-reduced-motion: reduce) {
	.bpc-post-card:hover,
	.bpc-post-card:hover .bpc-post-card__media img,
	.bpc-post-card:hover .bpc-post-card__more .bpc-arrow { transform: none !important; }
}
html.yicacc-stopmotion .bpc-post-card:hover,
html.yicacc-stopmotion .bpc-post-card:hover .bpc-post-card__media img,
html.yicacc-stopmotion .bpc-post-card:hover .bpc-post-card__more .bpc-arrow { transform: none !important; }
