/* Home blog — hero carousel + main */

.agrimag-hero-header {
	overflow: visible;
	margin-bottom: 0;
}

.hero-carousel {
	min-height: 85vh;
	position: relative;
	z-index: 1;
	overflow: visible;
}

.hero-carousel.carousel {
	overflow: visible;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
	min-height: 85vh;
	overflow: visible;
}

.hero-slide {
	min-height: 85vh;
	display: flex;
	align-items: flex-end;
	background-color: var(--color-forest-dark);
	position: relative;
	overflow: hidden;
}

.hero-slide .hero-slide-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}

.hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 41, 32, 0.35) 0%, rgba(15, 41, 32, 0.78) 100%);
	z-index: 1;
}

.hero-slide .hero-slide-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-bottom: 4.5rem;
	padding-top: 5.35rem;
}

.hero-carousel .carousel-indicators {
	bottom: 2rem;
	margin-bottom: 0.75rem;
	gap: 0.5rem;
	z-index: 5;
}

.hero-carousel .carousel-indicators [data-bs-target] {
	width: 2.5rem;
	height: 4px;
	border: none;
	border-radius: 2px;
	margin: 0;
	background-color: rgba(255, 255, 255, 0.35);
	text-indent: 0;
	transition: background var(--transition), transform var(--transition);
}

.hero-carousel .carousel-indicators [data-bs-target].active {
	background-color: var(--color-gold);
	transform: scaleY(1.4);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
	width: 3.25rem;
	height: 3.25rem;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.25);
	opacity: 1;
	z-index: 5;
	transition: background var(--transition), border-color var(--transition);
}

.hero-carousel .carousel-control-prev {
	left: 1rem;
}

.hero-carousel .carousel-control-next {
	right: 1rem;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.4);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
	width: 1.35rem;
	height: 1.35rem;
	filter: brightness(0) invert(1);
}

@media (max-width: 991.98px) {
	.agrimag-home .agrimag-hero-header {
		border-bottom: 1px solid rgba(27, 67, 50, 0.16);
	}

	.hero-carousel .carousel-control-prev,
	.hero-carousel .carousel-control-next {
		display: none !important;
	}

	.hero-carousel.carousel,
	.hero-carousel .carousel-inner,
	.hero-carousel .carousel-item {
		overflow: hidden;
	}

	.hero-slide .hero-slide-inner {
		padding-bottom: 5.35rem;
	}

	.hero-carousel .carousel-indicators {
		bottom: 2.15rem;
		margin-bottom: 0.8rem;
	}
}

@media (max-width: 575.98px) {
	.hero-slide .hero-slide-inner {
		padding-bottom: 5.85rem;
	}

	.hero-carousel .carousel-indicators {
		bottom: 2.4rem;
		margin-bottom: 0.7rem;
	}
}

@media (min-width: 992px) {
	.agrimag-home .agrimag-hero-header {
		border-bottom: none;
	}

	.hero-carousel.carousel,
	.hero-carousel .carousel-inner,
	.hero-carousel .carousel-item {
		overflow: hidden;
	}

	.hero-carousel,
	.hero-carousel .carousel-inner,
	.hero-carousel .carousel-item,
	.hero-slide {
		min-height: 85vh;
	}

	.hero-slide .hero-slide-inner {
		padding-bottom: 6rem;
	}

	.hero-carousel .carousel-indicators {
		bottom: 2.75rem;
		margin-bottom: 1.1rem;
	}

	.agrimag-home main#primary {
		margin-top: 0;
		padding-top: clamp(2rem, 4vw, 3rem);
	}

	.agrimag-home main#primary::before {
		display: none;
	}
}

/* Contenuto slide */
.hero-slide article {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hero-slide h1 .hero-slide-title-link {
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	outline-offset: 6px;
}

.hero-slide h1 .hero-slide-title-link:hover {
	color: var(--color-gold);
	text-decoration: none;
}

.hero-slide h1 .hero-slide-title-link:focus-visible {
	outline: 2px solid var(--color-gold);
}

.badge-category {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	background: var(--color-gold);
	color: var(--color-forest-dark);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.45rem 0.9rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.hero-slide h1 {
	color: #fff;
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 1.15;
	max-width: 18ch;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-slide .lead {
	color: rgba(255, 255, 255, 0.92);
	max-width: 36ch;
	font-size: 1.125rem;
}

.hero-slide .hero-author {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: 0.25rem;
	margin-bottom: 0;
}

.hero-slide .hero-author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid rgba(255, 255, 255, 0.4);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero-slide .hero-author-text {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	min-width: 0;
}

.hero-slide .hero-author-label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.55);
}

.hero-slide a.hero-author-block {
	color: inherit;
	align-items: center;
}

.hero-slide a.hero-author-block .hero-author-name {
	font-size: 0.98rem;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.01em;
	line-height: 1.25;
	transition: color var(--transition);
}

.hero-slide a.hero-author-block:hover .hero-author-name {
	color: var(--color-gold);
}

/* Main home (prima pagina) */
.agrimag-home main#primary {
	position: relative;
	z-index: 1;
	margin-top: clamp(-0.5rem, -1vw, 0rem);
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

.agrimag-home main#primary::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(27, 67, 50, 0.1), transparent);
	pointer-events: none;
}

/* Corpo home: nome autore più compatto (l’hero carousel usa .hero-author-name, non toccato) */
.agrimag-home main#primary .home-author-name,
.agrimag-home main#primary .home-author a.home-author-name {
	font-size: 0.9rem;
}

.agrimag-home main#primary .news-wire-author-name,
.agrimag-home main#primary a.news-wire-author-name {
	font-size: 0.9rem;
}

/* ========== Rubrica / Consigli di base (griglia magazine) ========== */
.section-agri {
	padding-top: 4.5rem;
	padding-bottom: 4.5rem;
}

.badge-mini {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: var(--color-gold);
	color: var(--color-forest-dark);
	padding: 0.3rem 0.65rem;
	border-radius: 3px;
	line-height: 1.25;
	vertical-align: middle;
}

.section-magazine {
	background: linear-gradient(180deg, #fdfcf0 0%, rgba(255, 255, 255, 0.65) 18%, #fff 100%);
}

.section-magazine .magazine-section-head {
	margin-bottom: 2rem;
	padding-bottom: 0;
	border-bottom: none;
}

#in-evidenza .mag-tile--hero {
	box-shadow: none;
}

#in-evidenza .mag-tile--hero:hover {
	box-shadow: var(--shadow-hover);
}

.mag-head-grid {
	display: grid;
	gap: 1.25rem 2rem;
	align-items: center;
}

@media (min-width: 768px) {
	.mag-head-grid {
		grid-template-columns: minmax(0, 1.15fr) 1px minmax(0, 0.95fr);
		gap: 1.5rem 2.25rem;
		align-items: center;
	}

	.mag-head-rule {
		width: 1px;
		align-self: stretch;
		min-height: 4rem;
		background: linear-gradient(180deg, transparent 0%, rgba(27, 67, 50, 0.18) 12%, rgba(27, 67, 50, 0.18) 88%, transparent 100%);
	}

	.mag-head-lead {
		align-self: center;
	}
}

.mag-head-titles .magazine-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: 0.5rem;
}

.mag-issue-pill {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	color: var(--color-forest);
	background: rgba(27, 67, 50, 0.08);
	border-radius: 3px;
}

.mag-head-titles .section-title {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4.2vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.mag-head-lead {
	font-size: clamp(0.98rem, 1.6vw, 1.08rem);
	line-height: 1.6;
	color: var(--color-text-muted);
	margin: 0;
	max-width: 28rem;
}

@media (max-width: 767.98px) {
	.mag-head-grid {
		align-items: start;
	}

	.mag-head-rule {
		display: none;
	}

	.mag-head-lead {
		padding-top: 0.35rem;
	}
}

.magazine-grid {
	display: grid;
	gap: 1.15rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.magazine-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mag-tile--hero {
		grid-column: 1 / -1;
	}

	.mag-tile--rail {
		min-height: 140px;
	}
}

@media (min-width: 992px) {
	.magazine-grid {
		grid-template-columns: repeat(12, 1fr);
		grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr) auto;
		gap: 1.35rem;
	}

	.mag-tile--hero {
		grid-column: 1 / span 7;
		grid-row: 1 / span 2;
	}

	.mag-tile--rail:nth-of-type(2) {
		grid-column: 8 / span 5;
		grid-row: 1;
	}

	.mag-tile--rail:nth-of-type(3) {
		grid-column: 8 / span 5;
		grid-row: 2;
	}

	.mag-tile--compact:nth-of-type(4) {
		grid-row: 3;
		grid-column: 1 / span 6;
	}

	.mag-tile--compact:nth-of-type(5) {
		grid-row: 3;
		grid-column: 7 / span 6;
	}
}

.mag-tile {
	background: #fff;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: box-shadow var(--transition), transform var(--transition);
}

.mag-tile:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-3px);
}

.mag-tile-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.mag-tile-link:hover {
	color: inherit;
}

.mag-tile--hero .mag-tile-link.agrimag-card-with-hit {
	position: relative;
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.mag-tile--hero .mag-tile-link.agrimag-card-with-hit > .agrimag-card-hit-target {
	position: relative;
	height: 100%;
	min-height: 440px;
}

.mag-tile--hero {
	position: relative;
	min-height: 440px;
	padding: 0;
	background: var(--color-forest-dark);
	border-radius: calc(var(--radius-card) + 4px);
}

.mag-tile--hero .mag-hero-media {
	position: absolute;
	inset: 0;
}

.mag-tile--hero .mag-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.65s ease;
}

.mag-hero-media-fallback {
	width: 100%;
	height: 100%;
	min-height: 440px;
	background: var(--color-forest-dark);
}

.mag-tile--hero:hover .mag-hero-media img {
	transform: scale(1.04);
}

.mag-tile--hero .mag-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 41, 32, 0.15) 0%, rgba(15, 41, 32, 0.82) 72%, rgba(15, 41, 32, 0.92) 100%);
	pointer-events: none;
}

.mag-tile--hero .mag-hero-copy {
	position: relative;
	z-index: 1;
	height: 100%;
	min-height: 440px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.75rem 1.75rem 2rem;
}

@media (min-width: 992px) {
	.mag-tile--hero .mag-hero-copy {
		min-height: 100%;
		padding: 2rem 2.5rem 2.5rem;
	}
}

.mag-cover-label {
	display: inline-block;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 0.35rem;
}

.mag-tile--hero .mag-hero-copy .badge-mini {
	margin-top: 0.15rem;
}

.mag-tile--hero h3 {
	font-family: var(--font-serif);
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.12;
	margin: 0.5rem 0 0.75rem;
	max-width: 18ch;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
	.mag-tile--hero h3 {
		max-width: 16ch;
	}
}

.mag-tile--hero .mag-dek {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(0.95rem, 1.5vw, 1.05rem);
	line-height: 1.58;
	margin: 0 0 1.25rem;
	max-width: 42ch;
	font-weight: 400;
}

.mag-read-link {
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	color: var(--color-gold);
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	transition: gap var(--transition), color var(--transition);
}

.mag-read-link svg {
	flex-shrink: 0;
}

.mag-tile--hero .mag-read-link {
	margin-top: 0.15rem;
}

.mag-tile--hero:hover .mag-read-link {
	gap: 0.7rem;
	color: #f0d78c;
}

.mag-tile--rail .mag-rail-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 148px;
	color: inherit;
	text-decoration: none;
	position: relative;
}

.mag-tile--rail .mag-rail-link.agrimag-card-with-hit > .agrimag-card-hit-target {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0;
	height: 100%;
	min-height: 148px;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.mag-tile--rail .mag-rail-img {
	width: 42%;
	max-width: 220px;
	flex-shrink: 0;
	position: relative;
}

.mag-tile--rail .mag-rail-img::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px rgba(27, 67, 50, 0.06);
	pointer-events: none;
}

.mag-tile--rail .mag-rail-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 148px;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.mag-rail-img-fallback {
	width: 100%;
	height: 100%;
	min-height: 148px;
	background: linear-gradient(135deg, #e8ebe9, #dfe6e3);
}

.mag-tile--rail:hover .mag-rail-img img {
	transform: scale(1.04);
}

.mag-tile--rail .mag-rail-body {
	padding: 1.15rem 1.35rem 1.35rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	border-left: 1px solid rgba(27, 67, 50, 0.1);
	background: #fff;
}

.mag-rail-kicker {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin: 0 0 0.5rem;
}

.mag-tile--rail .mag-rail-body > .badge-mini {
	align-self: flex-start;
	margin-top: 0.15rem;
}

.mag-tile--rail h3 {
	font-family: var(--font-serif);
	font-size: clamp(1.08rem, 1.35vw, 1.22rem);
	font-weight: 600;
	color: var(--color-forest);
	line-height: 1.28;
	margin: 0.45rem 0 0;
	letter-spacing: -0.02em;
}

.mag-rail-lead {
	font-size: 0.88rem;
	line-height: 1.48;
	color: var(--color-text-muted);
	margin: 0.45rem 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mag-tile--compact .mag-compact-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
	position: relative;
}

.mag-tile--compact .mag-compact-link.agrimag-card-with-hit > .agrimag-card-hit-target {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.mag-tile--compact .mag-compact-img {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	position: relative;
}

.mag-tile--compact .mag-compact-img::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px rgba(27, 67, 50, 0.05);
	pointer-events: none;
}

.mag-tile--compact .mag-compact-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.mag-compact-img-fallback {
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background: linear-gradient(135deg, #e8ebe9, #dfe6e3);
}

.mag-tile--compact:hover .mag-compact-img img {
	transform: scale(1.05);
}

.mag-tile--compact .mag-compact-body {
	padding: 1.2rem 1.35rem 1.45rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.mag-tile--compact .mag-compact-kicker {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin: 0 0 0.5rem;
}

.mag-tile--compact .mag-compact-body > .badge-mini {
	align-self: flex-start;
	margin-top: 0.15rem;
}

.mag-tile--compact h3 {
	font-family: var(--font-serif);
	font-size: clamp(1.12rem, 1.5vw, 1.35rem);
	font-weight: 600;
	color: var(--color-forest);
	line-height: 1.25;
	margin: 0.45rem 0 0;
	letter-spacing: -0.02em;
	flex: 0;
}

.mag-tile--compact .mag-compact-lead {
	font-size: 0.92rem;
	color: var(--color-text-muted);
	margin: 0.65rem 0 0;
	line-height: 1.52;
	flex: 1;
}

.mag-tile--compact .mag-read-link {
	margin-top: 0.7rem;
	color: var(--color-forest);
}

.mag-tile--compact:hover .mag-read-link {
	gap: 0.65rem;
	color: var(--color-forest-dark);
}

@media (min-width: 992px) {
	.mag-tile--duo .mag-compact-link.agrimag-card-with-hit > .agrimag-card-hit-target {
		flex-direction: row;
		align-items: stretch;
	}

	.mag-tile--duo .mag-compact-img {
		aspect-ratio: auto;
		width: 48%;
		max-width: 360px;
		flex-shrink: 0;
	}

	.mag-tile--duo .mag-compact-img img {
		height: 100%;
		min-height: 220px;
	}

	.mag-tile--duo .mag-compact-body {
		justify-content: center;
		padding: 1.5rem 1.65rem 1.65rem;
		border-left: 1px solid rgba(27, 67, 50, 0.08);
	}

	.mag-tile--duo .mag-compact-lead {
		font-size: 0.98rem;
		margin-top: 0.75rem;
	}

	.mag-tile--duo h3 {
		font-size: clamp(1.2rem, 1.6vw, 1.42rem);
	}
}

@media (max-width: 767.98px) {
	.mag-tile--rail .mag-rail-link.agrimag-card-with-hit > .agrimag-card-hit-target {
		flex-direction: column;
	}

	.mag-tile--rail .mag-rail-img {
		width: 100%;
		max-width: none;
		aspect-ratio: 16 / 9;
	}

	.mag-tile--rail .mag-rail-img img {
		min-height: 0;
	}

	.mag-tile--rail .mag-rail-body {
		border-left: none;
		padding-top: 1.25rem;
	}
}

.mag-tile--hero .home-author {
	margin: 0.65rem 0 0.85rem;
}

.mag-tile--hero .home-author--inverse a.home-author-name {
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
}

.mag-tile--hero .home-author--inverse a.home-author-name:hover {
	color: var(--color-gold);
	text-decoration: none;
}

.mag-tile--rail .home-author {
	margin-top: 0.65rem;
}

.mag-tile--compact .home-author {
	margin-top: 0.55rem;
}

/* ========== Rubrica / Notizie (newsroom) ========== */
.section-newsroom {
	background: linear-gradient(180deg, #f6f5ef 0%, #faf9f5 35%, #fff 100%);
}

.section-newsroom .newsroom-section-head {
	margin-bottom: 2rem;
}

.newsroom-head-grid {
	display: grid;
	gap: 1.25rem 2rem;
	align-items: center;
}

@media (min-width: 768px) {
	.newsroom-head-grid {
		grid-template-columns: minmax(0, 1.15fr) 1px minmax(0, 0.95fr);
		gap: 1.5rem 2.25rem;
	}

	.newsroom-head-rule {
		width: 1px;
		align-self: stretch;
		min-height: 4rem;
		background: linear-gradient(180deg, transparent 0%, rgba(27, 67, 50, 0.18) 12%, rgba(27, 67, 50, 0.18) 88%, transparent 100%);
	}

	.newsroom-head-lead {
		align-self: center;
	}
}

.newsroom-head-titles .newsroom-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: 0.5rem;
}

.newsroom-pill {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	color: var(--color-forest);
	background: rgba(27, 67, 50, 0.08);
	border-radius: 3px;
}

.newsroom-head-titles .newsroom-title {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4.2vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.08;
	color: var(--color-forest);
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.newsroom-head-lead {
	font-size: clamp(0.98rem, 1.6vw, 1.08rem);
	line-height: 1.6;
	color: var(--color-text-muted);
	margin: 0;
	max-width: 28rem;
}

@media (max-width: 767.98px) {
	.newsroom-head-grid {
		align-items: start;
	}

	.newsroom-head-rule {
		display: none;
	}

	.newsroom-head-lead {
		padding-top: 0.35rem;
	}
}

.newsroom-layout {
	display: grid;
	gap: 1.75rem;
	align-items: stretch;
}

@media (min-width: 992px) {
	.newsroom-layout {
		grid-template-columns: 1.2fr 1fr;
		gap: 2rem 2.5rem;
		align-items: stretch;
	}

	.newsroom-layout--single {
		grid-template-columns: 1fr;
	}
}

.news-feature {
	background: #fff;
	border-radius: calc(var(--radius-card) + 2px);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(27, 67, 50, 0.06);
	transition: box-shadow var(--transition), transform var(--transition);
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.news-feature:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.news-feature-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	color: inherit;
	text-decoration: none;
	position: relative;
}

.news-feature-link:hover {
	color: inherit;
}

.news-feature-link.agrimag-card-with-hit > .agrimag-card-hit-target {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.news-feature-visual {
	position: relative;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background: var(--color-forest-dark);
}

.news-feature-visual-fallback {
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background: linear-gradient(135deg, #1b4332, #2d6a4f);
}

.news-feature-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-feature:hover .news-feature-visual img {
	transform: scale(1.03);
}

.news-feature-body {
	padding: 1.35rem 1.5rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

@media (min-width: 768px) {
	.news-feature-body {
		padding: 1.5rem 1.75rem 1.75rem;
	}
}

.news-dateline {
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-bottom: 0.5rem;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
}

.news-label {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-forest);
	padding: 0.2rem 0.55rem;
	border: 1px solid rgba(27, 67, 50, 0.22);
	border-radius: 3px;
	margin-bottom: 0.65rem;
}

.news-feature-title {
	font-family: var(--font-serif);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--color-forest);
	margin: 0 0 0.65rem;
}

.news-feature-dek {
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--color-text-muted);
	margin: 0 0 1rem;
}

.news-feature-body .home-author {
	margin: 0.4rem 0 0.55rem;
}

.news-feature-cta {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-forest);
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	gap: 0.4rem;
}

.news-feature:hover .news-feature-cta {
	color: var(--color-forest-dark);
}

@media (min-width: 992px) {
	.news-feature-cta {
		margin-top: auto;
		padding-top: 0.35rem;
	}
}

.news-wire {
	background: #fff;
	border-radius: var(--radius-card);
	border: 1px solid rgba(27, 67, 50, 0.08);
	padding: 0.25rem 0;
	box-shadow: 0 4px 20px rgba(27, 67, 50, 0.05);
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.news-wire-label {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin: 0;
}

.news-wire-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.45rem 1.25rem;
	padding: 0.95rem 1.25rem 0.7rem;
	flex-shrink: 0;
	border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

.newsroom-cta-wire {
	font-family: var(--font-sans);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-forest);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
	border-bottom: 1px solid transparent;
	margin-left: auto;
	padding-bottom: 0.05rem;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.newsroom-cta-wire:hover {
	color: var(--color-forest-dark);
	border-bottom-color: rgba(27, 67, 50, 0.35);
}

.newsroom-cta-wire:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

.newsroom-cta-wire svg {
	width: 0.95rem;
	height: 0.95rem;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.newsroom-cta-wire:hover svg {
	transform: translateX(3px);
}

.news-wire-items {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.news-wire-item {
	margin: 0;
	border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

.news-wire-item:last-child {
	border-bottom: none;
}

.news-wire-link {
	display: block;
	padding: 1rem 1.25rem 1.1rem;
	color: inherit;
	text-decoration: none;
	transition: background var(--transition);
}

.news-wire-link:hover {
	background: rgba(27, 67, 50, 0.04);
	color: inherit;
}

.news-wire-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
	margin-bottom: 0.4rem;
}

.news-wire-meta time {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-text-muted);
}

.news-wire-cat {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-forest);
	opacity: 0.85;
}

.news-wire-title {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-forest);
	margin: 0 0 0.35rem;
	letter-spacing: -0.015em;
}

.news-wire-lead {
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--color-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-wire-byline {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.45rem;
	font-size: inherit;
	line-height: 1.25;
}

.news-wire-by {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
}

.news-wire-author-name {
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.25;
	color: var(--color-forest);
}

a.news-wire-author-name {
	color: var(--color-forest);
	text-decoration: none;
	transition: color var(--transition);
}

a.news-wire-author-name:hover {
	color: var(--color-gold);
	text-decoration: none;
}

/* Filo notizie: solo il nome autore allineato al resto del main home (prefisso «Di» resta .news-wire-by) */
.section-newsroom .news-wire-byline .news-wire-author-name,
.section-newsroom .news-wire-byline a.news-wire-author-name {
	font-size: 0.9rem;
	line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
	.newsroom-cta-wire svg {
		transition: none;
	}

	.newsroom-cta-wire:hover svg {
		transform: none;
	}
}

/* ========== Avicoltura (hub + card blog-depth-side) ========== */
.section-avicoltura {
	--avic-accent: #b85c38;
	--avic-accent-soft: rgba(184, 92, 56, 0.12);
	--blog-depth-pad: 1rem;
	--blog-depth-gap: 1.25rem;
	background: linear-gradient(180deg, #fdfaf6 0%, #f7f2eb 42%, #faf8f3 100%);
}

@media (min-width: 992px) {
	.section-avicoltura {
		--blog-depth-gap: 1.35rem;
	}
}

.hub-rail-head {
	margin-bottom: 2.25rem;
	min-width: 0;
}

.hub-rail-head__rule {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.85rem;
}

.hub-rail-head__rule::after {
	content: "";
	flex: 1;
	min-width: 2rem;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--hub-rail-accent, var(--color-forest)) 0%, rgba(27, 67, 50, 0.08) 72%, transparent 100%);
}

.section-avicoltura .hub-rail-head--avic {
	--hub-rail-accent: var(--avic-accent);
}

.hub-rail-eyebrow {
	flex-shrink: 0;
	font-family: var(--font-sans);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(27, 67, 50, 0.52);
	margin: 0;
}

.hub-rail-title {
	font-family: var(--font-serif);
	font-size: clamp(1.9rem, 3.6vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.038em;
	line-height: 1.08;
	color: var(--color-forest);
	margin: 0 0 0.7rem;
}

.hub-rail-lead {
	margin: 0;
	max-width: 38rem;
	font-size: 1.0625rem;
	line-height: 1.62;
	color: var(--color-text-muted);
}

.avic-layout {
	display: grid;
	gap: 1.75rem;
	align-items: stretch;
	min-width: 0;
}

.avic-layout > * {
	min-width: 0;
}

@media (min-width: 992px) {
	.avic-layout {
		grid-template-columns: minmax(0, 1.15fr) minmax(15.5rem, 1fr);
		gap: 2rem 2.5rem;
	}

	.avic-layout--single {
		grid-template-columns: 1fr;
	}
}

.avic-feature {
	background: #fff;
	border-radius: calc(var(--radius-card) + 2px);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(27, 67, 50, 0.06);
	transition: box-shadow var(--transition), transform var(--transition);
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.avic-feature:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.avic-feature-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	color: inherit;
	text-decoration: none;
	position: relative;
}

.avic-feature-link:hover {
	color: inherit;
}

.avic-feature-link.agrimag-card-with-hit > .agrimag-card-hit-target {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	width: 100%;
}

.avic-feature-visual {
	position: relative;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background: var(--color-forest-dark);
}

.avic-feature-visual-fallback {
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background: linear-gradient(135deg, #5c3d2e, #b85c38);
}

.avic-feature-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.avic-feature:hover .avic-feature-visual img {
	transform: scale(1.03);
}

.avic-feature-body {
	padding: 1.35rem 1.5rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

@media (min-width: 768px) {
	.avic-feature-body {
		padding: 1.5rem 1.75rem 1.75rem;
	}
}

.avic-label {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--avic-accent);
	padding: 0.2rem 0.55rem;
	border: 1px solid rgba(184, 92, 56, 0.35);
	border-radius: 3px;
	margin-bottom: 0.65rem;
}

.avic-feature-title {
	font-family: var(--font-serif);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--color-forest);
	margin: 0 0 0.65rem;
}

.avic-feature-dek {
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--color-text-muted);
	margin: 0 0 1rem;
}

.avic-feature-cta {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-forest);
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	gap: 0.4rem;
	margin-top: 1.1rem;
}

.avic-feature:hover .avic-feature-cta {
	color: var(--color-forest-dark);
}

.section-avicoltura .avic-feature-body .home-author {
	margin: 0.5rem 0 0;
}

@media (min-width: 992px) {
	.avic-feature-cta {
		margin-top: auto;
		padding-top: 1.15rem;
	}
}

.avic-side-stack {
	display: flex;
	flex-direction: column;
	gap: var(--blog-depth-gap);
	min-height: 0;
	min-width: 0;
}

@media (min-width: 992px) {
	.avic-side-stack {
		height: 100%;
	}
}

.blog-depth-side-item {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 1rem;
	padding: var(--blog-depth-pad);
	border-radius: var(--radius-card, 1rem);
	background: #fff;
	border: 1px solid rgba(27, 67, 50, 0.1);
	box-shadow: 0 6px 24px rgba(27, 67, 50, 0.06);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	min-height: 0;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	position: relative;
}

.blog-depth-side-item.agrimag-card-with-hit > .agrimag-card-hit-target {
	display: flex;
	align-items: stretch;
	gap: 1rem;
	width: 100%;
	min-width: 0;
	flex: 1;
}

.blog-depth-side-item:hover {
	border-color: rgba(27, 67, 50, 0.2);
	box-shadow: 0 10px 32px rgba(27, 67, 50, 0.1);
	color: inherit;
}

.blog-depth-side-item.agrimag-card-with-hit .agrimag-card-hit:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
}

.blog-depth-side-thumb {
	position: relative;
	flex-shrink: 0;
	width: 5.75rem;
	min-height: 5.25rem;
	border-radius: 0.65rem;
	overflow: hidden;
	align-self: stretch;
	box-sizing: border-box;
	border: 1px solid rgba(27, 67, 50, 0.08);
	background: rgba(27, 67, 50, 0.04);
}

.blog-depth-side-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.blog-depth-side-thumb-fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #e8ebe9, #dfe6e3);
}

.blog-depth-side-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.blog-depth-side-text h3 {
	font-family: var(--font-serif);
	font-size: 1rem;
	line-height: 1.3;
	margin: 0.35rem 0 0.25rem;
	color: var(--color-forest-dark);
}

.blog-depth-side-text .excerpt {
	font-size: 0.82rem;
	margin: 0;
	color: rgba(27, 67, 50, 0.68);
	line-height: 1.45;
}

.section-avicoltura .avic-side-stack .blog-depth-side-text h3 {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.section-avicoltura .avic-side-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.45rem 1.25rem;
	padding-top: 0.85rem;
	margin-top: 0.15rem;
}

.section-avicoltura .avic-side-foot .newsroom-cta-wire:hover {
	color: var(--avic-accent);
	border-bottom-color: rgba(184, 92, 56, 0.45);
}

.section-avicoltura .blog-depth-side-text .home-author {
	margin-top: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
	.avic-feature,
	.avic-feature-visual img {
		transition: none;
	}

	.avic-feature:hover {
		transform: none;
	}

	.avic-feature:hover .avic-feature-visual img {
		transform: none;
	}
}

/* ========== Apicoltura (hub speculare: card sinistra, guida destra) ========== */
.section-apicoltura {
	--apic-accent: #a35f10;
	--apic-accent-soft: rgba(163, 95, 16, 0.12);
	--blog-depth-pad: 1rem;
	--blog-depth-gap: 1.25rem;
	background: linear-gradient(180deg, #fffdf8 0%, #f9f4e8 42%, #fcf9f2 100%);
}

@media (min-width: 992px) {
	.section-apicoltura {
		--blog-depth-gap: 1.35rem;
	}
}

.section-apicoltura .hub-rail-head--apic {
	--hub-rail-accent: var(--apic-accent);
}

.apic-layout {
	display: grid;
	gap: 1.75rem;
	align-items: stretch;
	min-width: 0;
}

.apic-layout > * {
	min-width: 0;
}

@media (max-width: 991.98px) {
	.section-apicoltura .apic-feature {
		order: -1;
	}
}

@media (min-width: 992px) {
	.apic-layout {
		grid-template-columns: minmax(15.5rem, 1fr) minmax(0, 1.15fr);
		gap: 2rem 2.5rem;
	}

	.apic-layout--single {
		grid-template-columns: 1fr;
	}
}

.apic-feature {
	background: #fff;
	border-radius: calc(var(--radius-card) + 2px);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(27, 67, 50, 0.06);
	transition: box-shadow var(--transition), transform var(--transition);
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.apic-feature:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
}

.apic-feature-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	color: inherit;
	text-decoration: none;
	position: relative;
}

.apic-feature-link:hover {
	color: inherit;
}

.apic-feature-link.agrimag-card-with-hit > .agrimag-card-hit-target {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	height: 100%;
	width: 100%;
}

.apic-feature-visual {
	position: relative;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background: var(--color-forest-dark);
}

.apic-feature-visual-fallback {
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background: linear-gradient(135deg, #3d2914, #a35f10);
}

.apic-feature-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.apic-feature:hover .apic-feature-visual img {
	transform: scale(1.03);
}

.apic-feature-body {
	padding: 1.35rem 1.5rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

@media (min-width: 768px) {
	.apic-feature-body {
		padding: 1.5rem 1.75rem 1.75rem;
	}
}

.apic-label {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--apic-accent);
	padding: 0.2rem 0.55rem;
	border: 1px solid rgba(163, 95, 16, 0.38);
	border-radius: 3px;
	margin-bottom: 0.65rem;
}

.apic-feature-title {
	font-family: var(--font-serif);
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--color-forest);
	margin: 0 0 0.65rem;
}

.apic-feature-dek {
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--color-text-muted);
	margin: 0 0 1rem;
}

.apic-feature-cta {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-forest);
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	gap: 0.4rem;
	margin-top: 1.1rem;
}

.apic-feature:hover .apic-feature-cta {
	color: var(--color-forest-dark);
}

.section-apicoltura .apic-feature-body .home-author {
	margin: 0.5rem 0 0;
}

@media (min-width: 992px) {
	.apic-feature-cta {
		margin-top: auto;
		padding-top: 1.15rem;
	}
}

.apic-side-stack {
	display: flex;
	flex-direction: column;
	gap: var(--blog-depth-gap);
	min-height: 0;
	min-width: 0;
}

@media (min-width: 992px) {
	.apic-side-stack {
		height: 100%;
	}
}

.section-apicoltura .apic-side-stack .blog-depth-side-text h3 {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.section-apicoltura .apic-side-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.45rem 1.25rem;
	padding-top: 0.85rem;
	margin-top: 0.15rem;
}

.section-apicoltura .apic-side-foot .newsroom-cta-wire:hover {
	color: var(--apic-accent);
	border-bottom-color: rgba(163, 95, 16, 0.45);
}

.section-apicoltura .blog-depth-side-text .home-author {
	margin-top: 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
	.apic-feature,
	.apic-feature-visual img {
		transition: none;
	}

	.apic-feature:hover {
		transform: none;
	}

	.apic-feature:hover .apic-feature-visual img {
		transform: none;
	}
}

/* ========== Dal blog / approfondimenti (blog-depth) ========== */
.section-blog-depth {
	--blog-depth-pad: 1rem;
	--blog-depth-gap: 1.25rem;
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #fff 0%, rgba(216, 226, 220, 0.35) 100%);
}

.section-blog-depth .container {
	position: relative;
	z-index: 1;
}

@media (min-width: 992px) {
	.section-blog-depth {
		--blog-depth-gap: 1.35rem;
	}
}

.section-blog-depth::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
	pointer-events: none;
}

.blog-depth-head {
	position: relative;
	max-width: 42rem;
	margin-bottom: 2rem;
}

.blog-depth-head .section-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	color: var(--color-forest);
}

.blog-depth-head .section-subtitle {
	color: var(--color-text-muted);
	max-width: 36rem;
}

.blog-depth-eyebrow {
	font-family: var(--font-sans);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(27, 67, 50, 0.55);
	margin-bottom: 0.5rem;
}

.blog-depth-layout {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--blog-depth-gap);
	min-width: 0;
}

.blog-depth-top-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--blog-depth-gap);
	min-width: 0;
}

.blog-depth-hero {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 0;
	min-width: 0;
	max-width: 100%;
	border-radius: var(--radius-card, 1rem);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 12px 40px rgba(27, 67, 50, 0.1);
	border: 1px solid rgba(27, 67, 50, 0.08);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-depth-hero-inner {
	flex: 0 1 auto;
	display: grid;
	gap: var(--blog-depth-gap);
	padding: var(--blog-depth-pad);
	min-height: 0;
	width: 100%;
	grid-template-columns: 1fr;
	grid-template-rows: auto auto;
}

@media (min-width: 992px) {
	.blog-depth-top-row {
		flex-direction: row;
		align-items: stretch;
		gap: 1.5rem;
	}

	/* Primo articolo 3/5, colonna con due card laterali 2/5 */
	.blog-depth-top-row > .blog-depth-hero {
		flex: 3 1 0%;
		min-width: 0;
		min-height: 0;
		align-self: stretch;
	}

	.blog-depth-top-row > .blog-depth-side {
		flex: 2 1 0%;
		min-width: 0;
		min-height: 0;
		align-self: stretch;
	}

	/*
	 * Griglia interna hero: niente minimo fisso in rem sulla colonna testo (evita che
	 * la colonna immagine collassi quando lo spazio è stretto).
	 */
	.blog-depth-hero-inner {
		flex: 1 1 auto;
		min-height: 0;
		min-width: 0;
		height: 100%;
		grid-template-columns: minmax(0, 0.88fr) minmax(0, 0.62fr);
		grid-template-rows: 1fr;
		align-items: stretch;
		column-gap: 1rem;
	}

	.blog-depth-hero-inner > * {
		min-width: 0;
		min-height: 0;
	}

	.section-blog-depth .blog-depth-side {
		height: 100%;
	}

}

.blog-depth-hero:hover {
	box-shadow: 0 18px 48px rgba(27, 67, 50, 0.14);
	transform: translateY(-2px);
	color: inherit;
}

.blog-depth-hero.agrimag-card-with-hit .agrimag-card-hit:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
}

.blog-depth-hero-media {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 220px;
	aspect-ratio: 3 / 4;
	border-radius: 0.65rem;
	overflow: hidden;
	background: rgba(27, 67, 50, 0.06);
}

@media (min-width: 992px) {
	.blog-depth-hero-media {
		width: 100%;
		/* Evita altezza 0: solo img absolute toglie il flusso e height:100% può non risolvere */
		min-height: 220px;
		height: 100%;
		max-height: none;
		aspect-ratio: unset;
		align-self: stretch;
	}
}

/* Immagine nel flusso flex: riempie il box senza collassare l’altezza (vedi .news-feature-visual) */
.blog-depth-hero-media img,
.blog-depth-hero-media .wp-post-image {
	flex: 1 1 auto;
	min-height: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.blog-depth-hero-media-fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #e8ebe9, #b7c9bf);
}

.blog-depth-hero-body {
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-width: 0;
}

@media (min-width: 992px) {
	.blog-depth-hero-body {
		justify-content: center;
		align-self: stretch;
		align-items: flex-start;
		min-height: 0;
		overflow-wrap: break-word;
		word-break: break-word;
		hyphens: auto;
	}
}

.blog-depth-hero-body h3 {
	font-family: var(--font-serif);
	font-size: clamp(1.05rem, 1.9vw, 1.4rem);
	line-height: 1.22;
	margin: 0.35rem 0 0.45rem;
	color: var(--color-forest-dark);
}

.blog-depth-hero-body .excerpt {
	margin-bottom: 0.55rem;
	color: rgba(27, 67, 50, 0.75);
	font-size: 0.88rem;
	line-height: 1.35;
}

.blog-depth-hero-body .home-author {
	margin: 0.45rem 0 0.55rem;
}

.blog-depth-hero-body .link-read-more {
	align-self: flex-start;
}

.link-read-more {
	font-weight: 600;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: inherit;
}

.link-read-more svg {
	transition: transform var(--transition);
}

.blog-depth-hero:hover .link-read-more svg {
	transform: translateX(4px);
}

.blog-depth-side {
	display: flex;
	flex-direction: column;
	gap: var(--blog-depth-gap);
	min-width: 0;
	min-height: 0;
}

.section-blog-depth .blog-depth-side .blog-depth-side-item {
	flex: 0 0 auto;
}

.blog-depth-bottom {
	display: grid;
	gap: var(--blog-depth-gap);
	grid-template-columns: 1fr;
}

/* Due colonne solo da desktop: sotto i 992px restano in colonna (niente affiancamento su mobile) */
@media (min-width: 992px) {
	.blog-depth-bottom {
		grid-template-columns: 1fr 1fr;
	}
}

.blog-depth-bottom-item {
	display: flex;
	align-items: stretch;
	gap: 1rem;
	padding: var(--blog-depth-pad);
	border-radius: var(--radius-card, 1rem);
	background: #fff;
	border: 1px solid rgba(27, 67, 50, 0.1);
	box-shadow: 0 6px 24px rgba(27, 67, 50, 0.06);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	min-height: 0;
}

.blog-depth-bottom-item:hover {
	border-color: rgba(27, 67, 50, 0.2);
	box-shadow: 0 10px 32px rgba(27, 67, 50, 0.1);
	color: inherit;
}

.blog-depth-bottom-item:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
}

.blog-depth-bottom-thumb {
	position: relative;
	flex-shrink: 0;
	width: 6.25rem;
	min-height: 5.5rem;
	border-radius: 0.65rem;
	overflow: hidden;
	align-self: stretch;
	border: 1px solid rgba(27, 67, 50, 0.08);
	background: rgba(27, 67, 50, 0.04);
}

.blog-depth-bottom-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.blog-depth-bottom-thumb-fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #e8ebe9, #dfe6e3);
}

.blog-depth-bottom-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.blog-depth-bottom-text h3 {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	line-height: 1.28;
	margin: 0.35rem 0 0.3rem;
	color: var(--color-forest-dark);
}

.blog-depth-bottom-text .excerpt {
	font-size: 0.86rem;
	margin: 0;
	color: rgba(27, 67, 50, 0.68);
	line-height: 1.45;
}

.blog-depth-bottom-text .home-author {
	margin-top: 0.45rem;
}

.blog-depth-cta-wrap {
	position: relative;
	text-align: center;
	margin-top: 2.25rem;
}

.section-blog-depth .blog-depth-side .blog-depth-side-text h3 {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
	.blog-depth-hero,
	.blog-depth-side-item,
	.blog-depth-bottom-item {
		transition: none;
	}

	.blog-depth-hero:hover {
		transform: none;
	}

	.blog-depth-hero:hover .link-read-more svg {
		transform: none;
	}

	.blog-flash-card,
	.theme-card,
	.theme-card-media img,
	.theme-card-arrow {
		transition: none;
	}

	.blog-flash-card:hover,
	.theme-card:hover {
		transform: none;
	}

	.theme-card:hover .theme-card-media img,
	.theme-card:hover .theme-card-arrow {
		transform: none;
	}
}

/* ========== Blog: Letture brevi (schede lampo) ========== */
.section-blog-flash {
	position: relative;
	background: var(--color-forest-dark);
	color: rgba(255, 255, 255, 0.92);
}

.section-blog-flash::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(233, 196, 106, 0.12) 0%, transparent 55%);
	pointer-events: none;
}

.blog-flash-head {
	position: relative;
	z-index: 1;
	max-width: 38rem;
	margin-bottom: 1.75rem;
}

.blog-flash-eyebrow {
	font-family: var(--font-sans);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(233, 196, 106, 0.9);
	margin-bottom: 0.45rem;
}

.blog-flash-title {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	line-height: 1.2;
	margin: 0;
	color: #fff;
}

.blog-flash-lead {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}

.blog-flash-grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1rem;
}

@media (min-width: 768px) {
	.blog-flash-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.15rem;
	}
}

.blog-flash-card {
	position: relative;
	display: block;
	padding: 1.35rem 1.35rem 1.35rem 1.5rem;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.blog-flash-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--color-gold);
	opacity: 0.85;
}

.blog-flash-card:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
	color: inherit;
}

.blog-flash-card.agrimag-card-with-hit .agrimag-card-hit:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 3px;
}

.blog-flash-num {
	font-family: var(--font-serif);
	font-size: 2.25rem;
	line-height: 1;
	color: rgba(233, 196, 106, 0.35);
	margin-bottom: 0.35rem;
}

.blog-flash-card .badge-mini {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.blog-flash-card h3 {
	font-family: var(--font-serif);
	font-size: 1.05rem;
	line-height: 1.3;
	margin: 0.4rem 0 0;
	color: #fff;
}

.section-blog-flash .home-author--textonly {
	margin-top: 0.85rem;
}

.section-blog-flash .home-author--textonly .home-author-body {
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 0.35rem;
	min-width: 0;
	max-width: 100%;
	white-space: nowrap;
}

.section-blog-flash .home-author--textonly .home-author-label {
	flex-shrink: 0;
}

.section-blog-flash .home-author--textonly .home-author-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.section-blog-flash a.home-author.agrimag-author-hit {
	color: inherit;
}

.section-blog-flash a.home-author.agrimag-author-hit .home-author-name {
	transition: color var(--transition);
}

.section-blog-flash a.home-author.agrimag-author-hit:hover .home-author-name {
	color: var(--color-gold);
	text-decoration: none;
}

.section-blog-flash .home-author--inverse .home-author-label,
.section-blog-flash .home-author--inverse .home-author-name {
	color: rgba(255, 255, 255, 0.85);
}

/* ========== Percorsi editoriali (bento) ========== */
.section-themes-explore {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 10% 20%, rgba(216, 226, 220, 0.55) 0%, transparent 55%),
		radial-gradient(ellipse 70% 50% at 90% 80%, rgba(233, 196, 106, 0.18) 0%, transparent 50%),
		linear-gradient(180deg, rgba(253, 252, 240, 0.9) 0%, #fff 45%, rgba(253, 252, 240, 0.5) 100%);
}

.section-themes-explore::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	opacity: 0.5;
	pointer-events: none;
}

.themes-explore-header {
	position: relative;
	z-index: 1;
	margin-bottom: 2.5rem;
}

.themes-explore-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-forest);
	margin-bottom: 0.85rem;
}

.themes-explore-title {
	font-family: var(--font-serif);
	font-size: clamp(2rem, 4.5vw, 2.85rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.12;
	color: var(--color-forest);
	margin-bottom: 0.85rem;
}

.themes-explore-lead {
	font-size: clamp(1rem, 2vw, 1.12rem);
	color: var(--color-text-muted);
	max-width: 32rem;
	margin: 0 auto;
	line-height: 1.55;
}

.themes-bento-row {
	position: relative;
	z-index: 1;
	--theme-radius: 20px;
}

@media (max-width: 575.98px) {
	.theme-card {
		min-height: 260px;
	}
}

.theme-card {
	position: relative;
	display: block;
	height: 100%;
	min-height: 280px;
	border-radius: var(--theme-radius);
	overflow: hidden;
	color: #fff !important;
	text-decoration: none !important;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		0 4px 24px rgba(27, 67, 50, 0.12),
		0 0 0 1px rgba(27, 67, 50, 0.06) inset;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.45s ease,
		border-color 0.35s ease;
}

@media (min-width: 992px) {
	.theme-card {
		min-height: 320px;
	}

	.theme-card--featured {
		min-height: 340px;
	}
}

.theme-card:hover {
	transform: translateY(-8px) scale(1.01);
	box-shadow:
		0 24px 48px rgba(27, 67, 50, 0.22),
		0 0 0 1px rgba(255, 255, 255, 0.15) inset;
	border-color: rgba(255, 255, 255, 0.22);
}

.theme-card:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.65);
	outline-offset: 3px;
}

.theme-card-media {
	position: absolute;
	inset: 0;
}

.theme-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-card-media-fallback {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #2d6a4f, #1b4332);
}

.theme-card:hover .theme-card-media img {
	transform: scale(1.08);
}

.theme-card-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		165deg,
		rgba(15, 41, 32, 0.1) 0%,
		rgba(15, 41, 32, 0.35) 35%,
		rgba(15, 41, 32, 0.88) 100%
	);
}

.theme-card-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 1.35rem 1.35rem 1.5rem;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 41, 32, 0.55) 40%, rgba(15, 41, 32, 0.92) 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.theme-card-index {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 0.35rem;
}

.theme-card h3 {
	font-family: var(--font-serif);
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 0.4rem;
	line-height: 1.15;
	color: #fff;
}

.theme-card-blurb {
	font-size: 0.88rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.theme-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 1rem;
	padding-top: 0.85rem;
}

.theme-card-stat {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.theme-card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-gold);
	border: 1px solid rgba(27, 67, 50, 0.14);
	color: var(--color-forest-dark);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease, border-color 0.25s ease;
}

.theme-card:hover .theme-card-arrow {
	transform: translateX(4px);
	filter: brightness(1.08);
	border-color: rgba(27, 67, 50, 0.22);
}

/* ========== Home: missione / citazione ========== */
.section-home-mission .about-quote-box {
	text-align: center;
}

.about-quote-line {
	font-family: var(--font-serif);
	font-size: clamp(1.35rem, 3.2vw, 2rem);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--color-forest);
	margin: 0 auto 1.35rem;
	max-width: 38rem;
	text-wrap: balance;
}

.about-quote-sub {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--color-text-muted);
	margin: 0 auto;
	max-width: 32rem;
	text-wrap: balance;
}

/* ========== Newsletter homepage strip (come index.html) ========== */
.newsletter-strip {
	background: var(--color-cream-dark);
	border-radius: var(--radius-card);
	border: 1px solid rgba(27, 67, 50, 0.1);
	padding: 2.5rem 2rem;
}

.newsletter-strip .form-control {
	border-radius: var(--radius-pill);
	border: 1px solid rgba(27, 67, 50, 0.2);
	padding: 0.75rem 1.25rem;
}

.newsletter-strip .form-control:focus {
	border-color: var(--color-forest);
	box-shadow: 0 0 0 0.2rem rgba(27, 67, 50, 0.15);
}

.newsletter-strip .newsletter-form-home .form-check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	text-align: left;
	padding-left: 0;
	margin: 0.75rem 0 0;
}

.newsletter-strip .newsletter-form-home .form-check-input {
	float: none;
	margin-left: 0;
	margin-top: 0.2rem;
	width: 1.05rem;
	height: 1.05rem;
	flex-shrink: 0;
	border-color: rgba(27, 67, 50, 0.35);
}

.newsletter-strip .form-check-input:checked {
	background-color: var(--color-forest);
	border-color: var(--color-forest);
}

.newsletter-strip .newsletter-form-home .form-check-label {
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--color-text-muted);
	padding-left: 0;
}

.newsletter-strip .newsletter-form-home .form-check-label a {
	color: var(--color-forest);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.btn-subscribe {
	background: var(--color-forest);
	color: #fff;
	font-weight: 600;
	border-radius: var(--radius-pill);
	padding: 0.75rem 1.75rem;
	border: none;
	transition: background var(--transition), transform var(--transition);
}

.btn-subscribe:hover {
	background: var(--color-forest-dark);
	color: #fff;
	transform: translateY(-2px);
}
