/* —— Blog index / posts archive (magazine layout) —— */
.blog-index {
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.blog-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(2.75rem, 6vw, 4.25rem) 0 clamp(2rem, 4vw, 2.75rem);
	margin-bottom: 0;
}

.blog-hero__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(8, 28, 21, 0.06) 0%, transparent 45%),
		linear-gradient(180deg, rgba(250, 248, 243, 1) 0%, rgba(255, 255, 255, 0.65) 100%),
		radial-gradient(ellipse 90% 60% at 12% 20%, rgba(45, 106, 79, 0.12), transparent 55%),
		radial-gradient(ellipse 70% 50% at 88% 0%, rgba(119, 176, 23, 0.14), transparent 50%);
	pointer-events: none;
}

.blog-hero__bg--compact {
	background: linear-gradient(180deg, rgba(250, 248, 243, 1) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.blog-hero--compact {
	padding: clamp(1.75rem, 4vw, 2.5rem) 0 1.25rem;
}

.blog-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 40rem;
}

.blog-hero__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--forest-mid);
}

.blog-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2.1rem, 4.5vw, 2.85rem);
	line-height: 1.12;
	margin: 0 0 1rem;
	color: var(--brown-dark);
	letter-spacing: -0.02em;
}

.blog-hero__title--compact {
	font-size: clamp(1.65rem, 3.2vw, 2.15rem);
	margin-bottom: 0.35rem;
}

.blog-hero__intro {
	margin: 0;
	font-size: clamp(1.02rem, 1.6vw, 1.125rem);
	line-height: 1.65;
	color: var(--muted);
	max-width: 36rem;
}

.blog-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1.25rem;
	max-width: 36rem;
}

.blog-filters__search {
	flex: 1 1 14rem;
	min-width: 0;
	max-width: none;
	height: 2.5rem;
	box-sizing: border-box;
}

.blog-filters .btn {
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

@media (max-width: 520px) {
	.blog-filters__search {
		flex-basis: 100%;
	}
}

.blog-hero .blog-hero__archive-desc,
.blog-hero__archive-desc {
	margin: 0.35rem 0 0;
	color: var(--muted);
	font-size: 1rem;
}

.blog-hero .blog-hero__archive-desc p,
.blog-hero__archive-desc p {
	margin: 0;
}

.blog-grid-outer {
	padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.blog-grid-outer .card-grid--blog {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.35rem);
}

@media (max-width: 900px) {
	.blog-grid-outer .card-grid--blog {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.blog-grid-outer .card-grid--blog {
		grid-template-columns: 1fr;
	}
}

/* Altezza-style article cover cards */
.card.card--article-cover {
	display: block;
	background: transparent;
	border-radius: 17px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card.card--article-cover:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.card-article-cover__link {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 280px;
	padding: 1.35rem 1.2rem 1.05rem;
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}

.card-article-cover__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: linear-gradient(140deg, var(--forest-darkest) 0%, var(--forest-mid) 42%, var(--brown-mid) 100%);
}

.card-article-cover__img,
.card-article-cover__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-article-cover__placeholder {
	min-height: 280px;
}

.card.card--article-cover:hover .card-article-cover__img {
	transform: scale(1.05);
}

.card-article-cover__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.62) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, transparent 55%);
}

.card-article-cover__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.35rem;
	min-height: 210px;
}

.card-article-cover__title {
	display: block;
	margin: 0;
	max-width: 100%;
	font-family: var(--font-main);
	font-size: clamp(1.02rem, 1.65vw, 1.2rem);
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.01em;
	color: #fff;
}

.card-article-cover__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
}

.card-article-cover__read {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-second);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}

.card-article-cover__read-icon {
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.card-article-cover__topic {
	flex-shrink: 0;
	max-width: 46%;
	font-family: var(--font-main);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: right;
	color: rgba(255, 255, 255, 0.95);
}

.blog-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--muted);
	font-size: 1.05rem;
}

.pagination-wrap--blog {
	padding-top: 0.5rem;
	border-top: 1px solid rgba(64, 64, 64, 0.08);
}