.atv-hero {
	position: relative;
	min-height: 100svh;
	margin-top: calc(-1 * var(--atv-header-h));
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: var(--color-white);
	background: var(--atv-scrim);
}

/* O núcleo do WP (:root :where(.is-layout-flow) > :first-child, 0,2,0) anula a margem negativa: reforçar
   (também quando o hero é o primeiro bloco do conteúdo da página inicial). */
.atv-main > .atv-hero:first-child,
.atv-main > .atv-hero--slider:first-child,
.atv-main > .wp-block-post-content:first-child > .atv-hero:first-child {
	margin-block-start: calc(-1 * var(--atv-header-h));
}

.atv-hero__media {
	position: absolute;
	inset: 0;
}

.atv-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
	transform: scale(1.06);
	transition: transform 900ms ease;
}

.atv-hero.is-ready .atv-hero__image {
	transform: scale(1);
}

.atv-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 20%, var(--atv-scrim) 100%);
}

.atv-hero__content {
	position: relative;
	z-index: 1;
	padding: calc(var(--atv-header-h) + var(--spacing-layout-m)) var(--spacing-layout-s) calc(var(--spacing-layout-l) + 8rem);
	max-width: 40rem;
}

.atv-hero__brand {
	margin: 0 0 var(--spacing-xs);
	font-family: var(--font-heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.atv-hero h1 {
	margin: 0 0 var(--spacing-m);
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: var(--fontsize-heading-xl-mobile);
	line-height: var(--lineheight-s);
	letter-spacing: -0.03em;
	color: var(--color-white);
	max-width: 12ch;
}

.atv-hero__content > :not(.atv-hero__inner),
.atv-hero__inner > * {
	opacity: 0;
	transform: translateY(16px);
}

.atv-hero.is-ready .atv-hero__content > :not(.atv-hero__inner),
.atv-hero.is-ready .atv-hero__inner > * {
	opacity: 1;
	transform: none;
	transition: opacity 700ms ease, transform 700ms ease;
}

.atv-hero.is-ready .atv-hero__content > *:nth-child(2),
.atv-hero.is-ready .atv-hero__inner > *:nth-child(2) {
	transition-delay: 80ms;
}

.atv-hero.is-ready .atv-hero__content > *:nth-child(3),
.atv-hero.is-ready .atv-hero__inner > *:nth-child(3) {
	transition-delay: 160ms;
}

@media (min-width: 768px) {
	.atv-hero h1 {
		font-size: var(--fontsize-heading-xl);
	}
}

@media (min-width: 1440px) {
	.atv-hero h1 {
		font-size: var(--fontsize-heading-xxl);
	}
}

@media (prefers-reduced-motion: reduce) {
	.atv-hero__image,
	.atv-hero__content > *,
	.atv-hero__inner > * {
		transition: none;
		transform: none;
		opacity: 1;
	}
}
