/**
 * Homepage sezione 3 — About Us.
 *
 * Coordinate allineate al viewBox SVG 1922×1082.
 *
 * @package GDS-Fullcreative
 */

.gds-home-section--about-us {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background-color: #2a2f3a;
	overflow: hidden;
}

.about-us-home {
	position: relative;
	width: min(100%, 1922px);
	margin-inline: auto;
	aspect-ratio: 1922 / 1082;
}

.about-us-home__figure {
	position: absolute;
	inset: 0;
	margin: 0;
}

.about-us-home__bg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.about-us-home__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.about-us-home__overlay a {
	pointer-events: auto;
}

.about-us-home__intro {
	position: absolute;
	top: 12.75%;
	left: 13.58%;
	width: min(42%, 640px);
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 2.2vw, 32px);
}

.about-us-home__title {
	margin: 0;
	color: #ffffff;
	font-family: var(--font-primary, "Helvetica Neue", Helvetica, Arial, sans-serif);
	/* 35px ancorato a 1440 (come hero e case study). */
	font-size: clamp(28px, 2.43vw, 35px);
	font-weight: 300;
	line-height: 1.26;
	letter-spacing: 0;
}

.about-us-home__lead {
	margin: 0;
	color: #ffffff;
	font-family: var(--font-primary, "Helvetica Neue", Helvetica, Arial, sans-serif);
	font-size: clamp(16px, 1.15vw, 22px);
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: 0;
}

.about-us-home__items {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-us-home__item {
	position: absolute;
	margin: 0;
	color: #ffffff;
	font-family: var(--font-primary, "Helvetica Neue", Helvetica, Arial, sans-serif);
	/* 22px come la descrizione (XD 25); scala col grafico sotto 1440. */
	font-size: clamp(16px, 1.15vw, 22px);
	font-weight: 300;
	line-height: 1.28;
	letter-spacing: 0;
	white-space: nowrap;
	/* Centrato nel gap tra due linee SVG; leggero offset ottico verso l'alto. */
	transform: translateY(calc(-50% - 0.12em));
}

/* Midpoint tra Tracciato 19981 (y 479) e 19982 (y 564) — testo design ~x 653 */
.about-us-home__item--1 {
	top: 48.2%;
	left: 34%;
}

/* Midpoint tra 19982 (y 564) e 19983 (y 639) — testo design ~x 305 */
.about-us-home__item--2 {
	top: 55.6%;
	left: 15.9%;
}

/* Midpoint tra 19983 (y 639) e 19984 (y 714) — testo design ~x 464 */
.about-us-home__item--3 {
	top: 62.6%;
	left: 24.1%;
}

/* Midpoint tra 19984 (y 714) e 19985 (y 790) — testo design ~x 712 */
.about-us-home__item--4 {
	top: 69.5%;
	left: 37%;
}

html.gds-anim-js .gds-home-section--about-us:not(.gds-anim-is-active) .about-us-home__item {
	opacity: 0;
	transform: translate(-28px, calc(-50% - 0.12em));
}

.gds-home-section--about-us.gds-anim-is-active .about-us-home__item--1 {
	animation: about-us-text-in 0.75s ease 0.55s forwards;
}

.gds-home-section--about-us.gds-anim-is-active .about-us-home__item--2 {
	animation: about-us-text-in 0.75s ease 0.7s forwards;
}

.gds-home-section--about-us.gds-anim-is-active .about-us-home__item--3 {
	animation: about-us-text-in 0.75s ease 0.85s forwards;
}

.gds-home-section--about-us.gds-anim-is-active .about-us-home__item--4 {
	animation: about-us-text-in 0.75s ease 1s forwards;
}

.about-us-home__cta {
	position: absolute;
	top: 84.7%;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 10.62%;
	min-width: 187px;
	height: 4.53%;
	min-height: 49px;
	padding: 0 20px;
	border: 1px solid #ffffff;
	border-radius: 999px;
	background: transparent;
	color: #ffffff;
	font-family: var(--font-primary, "Helvetica Neue", Helvetica, Arial, sans-serif);
	font-size: var(--gds-home-btn-fs, 16px);
	font-weight: 300;
	line-height: var(--gds-home-btn-lh, 18px);
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.about-us-home__cta:hover,
.about-us-home__cta:focus-visible {
	color: #2a2f3a;
	background-color: #ffffff;
	border-color: #ffffff;
}

@keyframes about-us-text-in {
	from {
		opacity: 0;
		transform: translate(-28px, calc(-50% - 0.12em));
	}

	to {
		opacity: 1;
		transform: translateY(calc(-50% - 0.12em));
	}
}

@keyframes about-us-text-in-stacked {
	from {
		opacity: 0;
		transform: translateX(-28px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Tablet e mobile: stack verticale (come Cerchi sotto 1280px). */
@media (max-width: 1280px) {
	.gds-home-section--about-us {
		min-height: auto;
		padding-block: clamp(40px, 8vw, 50px) clamp(40px, 8vw, 56px);
		overflow: visible;
	}

	.about-us-home {
		/* Stesso padding laterale delle altre sezioni home (XD: 36px su 430). */
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: none;
		aspect-ratio: auto;
		padding-inline: var(--gds-home-pad-x);
	}

	.about-us-home__figure {
		display: none;
	}

	.about-us-home__overlay {
		position: relative;
		inset: auto;
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	.about-us-home__intro {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		max-width: none;
		gap: var(--gds-home-gap-title-lead);
	}

	.about-us-home__title {
		font-size: var(--gds-home-title-fs);
		line-height: var(--gds-home-title-lh);
		letter-spacing: 0;
	}

	.about-us-home__lead {
		font-size: var(--gds-home-text-fs);
		line-height: var(--gds-home-text-lh);
		letter-spacing: 0;
	}

	/* Timeline verticale (XD mobile): linee tratteggiate che sbordano fino al
	   bordo schermo dal lato opposto al pallino; pallini viola Ø24 alternati;
	   testo voce indentato (x65 vs x36 dell'SVG). Tratteggio 5px (dasharray 5). */
	.about-us-home__items {
		position: relative;
		inset: auto;
		display: flex;
		flex-direction: column;
		gap: 0;
		padding-bottom: 26px;
	}

	/* Linea finale sotto l'ultima voce: pallino a sinistra, bleed a destra. */
	.about-us-home__items::after {
		content: "";
		position: absolute;
		left: 0;
		right: calc(-1 * var(--gds-home-pad-x));
		bottom: 0;
		height: 1px;
		background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.6) 0 5px, transparent 5px 10px);
	}

	.about-us-home__items::before {
		content: "";
		position: absolute;
		left: 0;
		bottom: -12px;
		z-index: 1;
		width: 24px;
		height: 24px;
		box-sizing: border-box;
		border-radius: 50%;
		background: #9b6fe3;
		border: 2px solid #ffffff;
	}

	.about-us-home__item {
		position: relative;
		top: auto !important;
		left: auto !important;
		max-width: none !important;
		transform: none;
		margin: 0;
		padding: 26px 0 0 28px;
		color: #ffffff;
		font-size: var(--gds-home-text-fs);
		line-height: var(--gds-home-text-lh);
		letter-spacing: 0;
		white-space: normal;
	}

	.about-us-home__item + .about-us-home__item {
		margin-top: 26px;
	}

	/* Linea tratteggiata sopra ogni voce. */
	.about-us-home__item::after {
		content: "";
		position: absolute;
		top: 0;
		height: 1px;
		background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.6) 0 5px, transparent 5px 10px);
	}

	.about-us-home__item--1::after,
	.about-us-home__item--3::after {
		left: 0;
		right: calc(-1 * var(--gds-home-pad-x));
	}

	.about-us-home__item--2::after,
	.about-us-home__item--4::after {
		left: calc(-1 * var(--gds-home-pad-x));
		right: 0;
	}

	/* Pallini viola con bordo bianco (SVG: #9b6fe3, r 12.5). */
	.about-us-home__item::before {
		content: "";
		position: absolute;
		top: -12px;
		z-index: 1;
		width: 24px;
		height: 24px;
		box-sizing: border-box;
		border-radius: 50%;
		background: #9b6fe3;
		border: 2px solid #ffffff;
	}

	.about-us-home__item--1::before,
	.about-us-home__item--3::before {
		left: 0;
	}

	.about-us-home__item--2::before,
	.about-us-home__item--4::before {
		right: 0;
	}

	html.gds-anim-js .gds-home-section--about-us:not(.gds-anim-is-active) .about-us-home__item {
		transform: translateX(-28px);
	}

	.gds-home-section--about-us.gds-anim-is-active .about-us-home__item--1 {
		animation: about-us-text-in-stacked 0.75s ease 0.55s forwards;
	}

	.gds-home-section--about-us.gds-anim-is-active .about-us-home__item--2 {
		animation: about-us-text-in-stacked 0.75s ease 0.7s forwards;
	}

	.gds-home-section--about-us.gds-anim-is-active .about-us-home__item--3 {
		animation: about-us-text-in-stacked 0.75s ease 0.85s forwards;
	}

	.gds-home-section--about-us.gds-anim-is-active .about-us-home__item--4 {
		animation: about-us-text-in-stacked 0.75s ease 1s forwards;
	}

	.about-us-home__cta {
		position: relative;
		top: auto;
		left: auto;
		align-self: center;
		transform: none;
		margin-top: 16px;
	}
}

@media (max-width: 768px) {
	.gds-home-section--about-us {
		padding-block: 40px 48px;
	}

	.about-us-home {
		max-width: none;
		gap: 0;
	}

	.about-us-home__overlay {
		gap: 28px;
	}

	.about-us-home__intro {
		gap: 20px;
	}

	/* Font titolo/lead/voci restano gestiti dai clamp del blocco ≤1280px
	   (valori XD a 430px, scalati sotto), niente override che li rimpicciolisca. */
	.about-us-home__items {
		padding-bottom: 22px;
	}

	.about-us-home__item {
		padding-top: 22px;
	}

	.about-us-home__item + .about-us-home__item {
		margin-top: 22px;
	}

	.about-us-home__cta {
		margin-top: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gds-home-section--about-us .about-us-home__item {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}
