/*
 * Area news: archivio articoli e singolo articolo.
 * Riprende i codici del sito: banda con riquadro bianco come l'Hero, blu #008fbe, Source Sans Pro.
 */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Banda iniziale ---------- */
.news-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 380px;
	background-color: #555;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	text-align: center;
}

.news-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 143, 190, 0.15) 100%);
}

.news-hero__inner {
	position: relative;
	z-index: 1;
	padding: 60px 15px 0;
}

.news-hero__title {
	display: inline-block;
	margin: 0;
	padding: 0 70px;
	background-color: #fff;
	color: #6f6666;
	font-size: 46px;
	font-weight: 500;
	line-height: 1.3;
}

.news-hero__subtitle {
	margin: 14px 0 0;
}

.news-hero__subtitle {
	display: inline-block;
	padding: 4px 16px;
	background-color: #008fbe;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.news-hero__inner > .news-hero__subtitle {
	display: table;
	margin: 14px auto 0;
}

/* ---------- Archivio: griglia di card ---------- */
.news-list {
	padding: 80px 0 104px !important;
}

.news-list__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px 30px;
}

.news-list__empty {
	margin: 0;
	color: #333;
	font-size: 17px;
	font-weight: 300;
	text-align: center;
}

.news-card {
	min-width: 0;
}

.news-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: #fff;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	border-bottom: 3px solid transparent;
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card__link:hover,
.news-card__link:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
	border-bottom-color: #008fbe;
}

.news-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: #f2f2f2;
}

.news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news-card__link:hover .news-card__media img {
	transform: scale(1.04);
}

/* Banner molto larghi (loghi dei bandi): interi, su fondo bianco. */
.news-card__media--contain {
	background-color: #fff;
	border-bottom: 1px solid #eee;
}

.news-card__media--contain img {
	padding: 0 18px;
	box-sizing: border-box;
	object-fit: contain;
}

.news-card__link:hover .news-card__media--contain img {
	transform: none;
}

/* Articoli senza immagine: logo 3sense su fondo blu. */
.news-card__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #008fbe 0%, #00a4a0 100%);
}

.news-card__media--placeholder img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.news-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 24px 26px 28px;
}

.news-card__date {
	color: #008fbe;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.news-card__title {
	margin: 8px 0 12px;
	color: #333;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.news-card__excerpt {
	flex-grow: 1;
	color: #333;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}

.news-card__excerpt p {
	margin: 0;
}

.news-card__more {
	margin-top: 20px;
	color: #008fbe;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.news-card__more span {
	display: inline-block;
	transition: transform 0.2s ease;
}

.news-card__link:hover .news-card__more span {
	transform: translateX(4px);
}

/* Paginazione */
.news-pagination {
	margin-top: 60px;
}

.news-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.news-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	box-sizing: border-box;
	border: 1px solid #ddd;
	background-color: #fff;
	color: #333;
	font-size: 15px;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.news-pagination a.page-numbers:hover {
	border-color: #008fbe;
	color: #008fbe;
}

.news-pagination .page-numbers.current {
	border-color: #008fbe;
	background-color: #008fbe;
	color: #fff;
}

.news-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* ---------- Singolo articolo ---------- */
.news-single {
	padding: 80px 0 104px !important;
}

.news-article {
	max-width: 800px;
	margin: 0 auto;
}

.news-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	color: #008fbe;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.news-article__category {
	padding: 2px 10px;
	border: 1px solid #008fbe;
	border-radius: 2px;
}

.news-article__title {
	margin: 0;
	color: #008fbe;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.15;
}

.news-article__image {
	margin: 36px 0 0;
}

.news-article__image img {
	display: block;
	width: 100%;
	height: auto;
}

.news-article__content {
	margin-top: 36px;
	color: #000;
	font-size: 17px;
	font-weight: 300;
	line-height: 1.6;
}

.news-article__content p {
	margin: 0 0 1em;
}

.news-article__content :is(ul, ol) {
	margin-bottom: 1em;
}

.news-article__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #e6e6e6;
}

.news-article__back {
	color: #008fbe;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-transform: uppercase;
}

.news-article__back:hover {
	color: #00a4a0;
}

.news-article__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.news-article__nav-link {
	max-width: 260px;
	color: #333;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	text-align: right;
}

.news-article__nav-link span {
	display: block;
	margin-bottom: 2px;
	color: #999;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.news-article__nav-link:hover {
	color: #008fbe;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
	.news-list__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 767px) {
	.news-hero {
		height: 300px;
	}

	.news-hero__title {
		padding: 0 40px;
		font-size: 32px;
	}

	.news-list,
	.news-single {
		padding: 50px 0 60px !important;
	}

	.news-list__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.news-article__title {
		font-size: 30px;
	}

	.news-article__nav-link {
		text-align: left;
	}
}
