/**
 * News Hero - Layout e stili
 * Riusa pattern da hero-landing.css con adattamenti
 */

/* ========================================
   HERO CONTAINER (layout primario)
   ======================================== */

.s4w-news-hero {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow: hidden;
}

.s4w-news-hero--primario {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 112px;
	padding-bottom: 0;
}

.s4w-news-hero__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
	width: 100%;
}

/* ========================================
   CONTENT (LABEL + TITOLO)
   ======================================== */

.s4w-news-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	width: 100%;
	max-width: 1344px;
	padding: 0 48px;
}

.s4w-news-hero__label {
	display: flex;
	justify-content: center;
	width: 100%;
}

.s4w-news-hero__label span {
	text-align: center;
}

.s4w-news-hero__content .s4w-title {
	width: 100%;
	text-align: center;
	margin: 0;
}

/* ========================================
   IMAGE
   ======================================== */

.s4w-news-hero__image {
	width: 100%;
	height: auto;
	max-height: 90vh;
	aspect-ratio: 1440 / 810;
	overflow: hidden;
	margin: 0 auto;
}

.s4w-news-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ========================================
   LAYOUT SECONDARIO (Figma node 1820:28828)
   ======================================== */

.s4w-news-hero-secondary {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	overflow: hidden;
}

.s4w-news-hero-secondary__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: 90vh;
}

/* Colonna testo — 50% */
.s4w-news-hero-secondary__col-text {
	width: 50% !important;
	flex: none;
	min-width: 0;
	position: relative;
	padding-top: 64px;
	padding-bottom: 64px;
	/* padding-left gestito da s4w-container--is-extended-right */
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}
	.s4w-news-hero-secondary__content {
		width: 100%;
		height: 100%;
		padding-right: 100px;
		display: flex;
		flex-flow: column;
		justify-content: space-between;
	}

.s4w-news-hero-secondary__top {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 560px;
}

.s4w-news-hero-secondary__label {
	display: block;
	text-transform: uppercase;
}

.s4w-news-hero-secondary__title {
	margin: 0 !important;
}

.s4w-news-hero-secondary__text {
	font-family: var(--font-secondary);
	font-size: var(--paragraph-medium);
	font-weight: var(--weight-regular);
	line-height: 1.6;
	color: var(--text-main-900);
}

.s4w-news-hero-secondary__text p {
	margin: 0;
}

/* Colonna immagine — 50% quadrata */
.s4w-news-hero-secondary__col-image {
	width: 50%;
	flex: none;
	min-width: 0;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.s4w-news-hero-secondary__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 1024px) {
	.s4w-news-hero-secondary__inner {
		height: auto;
	}

	.s4w-news-hero-secondary__col-text {
		padding-top: 48px;
		padding-bottom: 48px;
		min-height: auto;
	}
}

@media (max-width: 768px) {
	.s4w-news-hero-secondary__inner {
		flex-direction: column;
	}

	.s4w-news-hero-secondary__content {

		padding-right: 20px;
		text-align: center;
	}

	.s4w-news-hero-secondary__col-text {
		flex: none;
		width: 100%;
		padding-top: 96px;
		padding-bottom: 60px;
		min-height: auto;
	}
	.s4w-news-hero-secondary__text {
		margin-top:24px
	}

	.s4w-news-hero-secondary__col-text.s4w-container--is-extended-right {
		width: 100% !important;
	}
	.s4w-news-hero-secondary__top {
		max-width: 100%;
	}

	.s4w-news-hero-secondary__col-image {
		flex: none;
		width: 100%;
		aspect-ratio: 1 / 1;
	}
}

/* ========================================
   LAYOUT TERZIARIO (Figma node 1820:29081)
   ======================================== */

.s4w-news-hero-tertiary {
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	overflow: hidden;
}

.s4w-news-hero-tertiary__inner {
	display: flex;
	flex-direction: column;
	gap: 80px;
	padding-top: 112px;
	padding-bottom: 40px;
}

.s4w-news-hero-tertiary__header {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.s4w-news-hero-tertiary__title {
	margin: 0 !important;
	max-width: 1117px;
}

.s4w-news-hero-tertiary__text {
	font-family: var(--font-secondary);
	font-size: var(--label-large);
	font-weight: var(--weight-regular);
	line-height: 1.6;
	color: var(--text-main-900);
	max-width: 676px;
}

.s4w-news-hero-tertiary__text p {
	margin: 0;
}

.s4w-news-hero-tertiary__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.s4w-news-hero-tertiary__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 1024px) {
	.s4w-news-hero-tertiary__inner {
		padding-top: 80px;
		gap: 60px;
	}
}

@media (max-width: 768px) {
	.s4w-news-hero-tertiary__inner {
		padding-top: 60px;
		gap: 40px;
	}

	.s4w-news-hero-tertiary__text {
		font-size: var(--paragraph-medium);
		max-width: 100%;
	}
}

/* ========================================
   RESPONSIVE (primario)
   ======================================== */

@media (max-width: 1024px) {
	.s4w-news-hero--primario {
		padding-top: 90px;
		padding-bottom: 0px;
	}

	.s4w-news-hero__container {
		gap: 60px;
	}

	.s4w-news-hero__content {
		gap: 24px;
		padding: 0 32px;
	}
}

@media (max-width: 768px) {
	.s4w-news-hero--primario {
		padding-top: 90px;
		padding-bottom: 0px;
	}

	.s4w-news-hero__container {
		gap: 60px;
	}

	.s4w-news-hero__content {
		padding: 0 20px;
	}

	.s4w-news-hero__image {
		aspect-ratio: 1 / 1;
	}
}

@media (max-width: 480px) {
	.s4w-news-hero--primario {
		padding-top: 90px;
		padding-bottom: 0;
	}

	.s4w-news-hero__container {
		gap: 60px;
	}

	.s4w-news-hero__content {
		padding: 0 12px;
	}
}
