/**
 * Services hero — grafico DIKW animato.
 *
 * @package GDS-Fullcreative
 */

.gds-services-section--hero .gds-services-hero__figure {
	overflow: visible;
}

.gds-services-section--hero .gds-services-hero__figure--mobile {
	display: none;
}

.gds-services-section--hero .gds-services-hero__graphic,
.gds-services-section--hero .gds-services-hero__graphic-svg-wrap {
	display: block;
	width: 100%;
	max-width: var(--gds-services-hero-graphic-max-w);
	height: auto;
	aspect-ratio: var(--gds-services-hero-graphic-ratio);
	margin-inline: auto;
	border: none;
	outline: none;
	background: transparent;
	object-fit: contain;
}

.gds-services-section--hero .gds-services-hero__graphic-svg-wrap svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

html.gds-anim-js .gds-services-section--hero .gds-services-hero__graphic:not(.gds-svg-ready),
html.gds-anim-js .gds-services-section--hero .gds-services-hero__graphic-svg-wrap:not(.gds-svg-ready) {
	opacity: 0;
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html.gds-anim-js .gds-services-section--hero .gds-services-hero__graphic,
	html.gds-anim-js .gds-services-section--hero .gds-services-hero__graphic-svg-wrap {
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
	}
}

@media (max-width: 1280px) {
	.gds-services-section--hero .gds-services-hero__figure--desktop {
		display: none;
	}

	.gds-services-section--hero .gds-services-hero__figure--mobile {
		display: block;
		overflow: visible;
	}

	/* Pallini nascosti finché GSAP non li accende */
	html.gds-anim-js .gds-services-section--hero:not(.gds-services-hero-anim-complete) .gds-services-hero__figure--mobile svg #bianchi path,
	html.gds-anim-js .gds-services-section--hero .gds-services-hero__figure--mobile svg #DIKW > #D path,
	html.gds-anim-js .gds-services-section--hero .gds-services-hero__figure--mobile svg #DIKW > #I path,
	html.gds-anim-js .gds-services-section--hero .gds-services-hero__figure--mobile svg #DIKW > #K path,
	html.gds-anim-js .gds-services-section--hero .gds-services-hero__figure--mobile svg #DIKW > #W path {
		opacity: 0;
	}

	.gds-services-section--hero.gds-anim-is-active .gds-services-hero__figure--mobile .gds-services-hero__graphic-svg-wrap,
	.gds-services-section--hero.gds-anim-is-active .gds-services-hero__figure--mobile .gds-services-hero__graphic {
		max-width: none;
		width: 100%;
		aspect-ratio: auto;
		overflow: visible;
	}

	.gds-services-section--hero.gds-anim-is-active .gds-services-hero__figure--mobile .gds-services-hero__graphic-svg-wrap svg,
	.gds-services-section--hero.gds-anim-is-active .gds-services-hero__figure--mobile svg.gds-services-hero__graphic {
		width: 100%;
		max-width: none;
		height: auto;
	}

	.gds-services-section--hero.gds-anim-is-active .gds-services-hero__figure--mobile svg path,
	.gds-services-section--hero.gds-anim-is-active .gds-services-hero__figure--mobile svg circle {
		animation: none !important;
		transform-box: fill-box;
		transform-origin: center;
	}

	@media (orientation: landscape) {
		.gds-services-section--hero.gds-anim-is-active .gds-services-hero__figure--mobile .gds-services-hero__graphic-svg-wrap,
		.gds-services-section--hero.gds-anim-is-active .gds-services-hero__figure--mobile .gds-services-hero__graphic {
			height: var(--gds-services-hero-mobile-graphic-h);
			max-height: var(--gds-services-hero-mobile-graphic-h);
		}
	}
}
