.ligarena-capacidades-porto-section {
	--porto-diagonal-right: 72.5%;
	--porto-diagonal-left: 100%;
	position: relative;
	isolation: isolate;
	z-index: 2;
	width: 100vw;
	max-width: 100vw;
	min-height: 56vh;
	aspect-ratio: 1793 / 909;
	margin-top: -5px;
	margin-bottom: 0;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background-color: rgba(250, 252, 255, 0.1);
	background-image: url("../img/home/porto-city-image.webp");
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
	clip-path: polygon(
		0 0,
		100% 0,
		100% var(--porto-diagonal-right),
		0 var(--porto-diagonal-left)
	);
}

.ligarena-capacidades-porto-section::before {
	content: "";
	position: absolute;
	inset: 0;
	margin-top: -5px;
	background: linear-gradient(180deg, rgba(0, 28, 72, 1) 0%, rgba(0, 28, 72, 0.3) 60%);
	pointer-events: none;
	z-index: 1;
}

.ligarena-capacidades-porto-section__content {
	position: relative;
	z-index: 2;
	min-height: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: clamp(2rem, 4vw, 3rem) 10vw clamp(3.2rem, 7vw, 6rem);
	text-align: center;
	box-sizing: border-box;
}

.ligarena-capacidades-porto-section__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	width: 100%;
	max-width: min(100%, 52rem);
}

.ligarena-capacidades-porto-section__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	text-transform: uppercase;
	font-family: var(--ligarena-font-heading);
	font-size: clamp(0.72rem, 0.48rem + 0.42vw, 1.05rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	padding: clamp(0.62rem, 0.35rem + 0.45vw, 0.9rem) clamp(0.95rem, 0.5rem + 0.85vw, 1.6rem);
	border: 1px solid #ffffff;
	background: #ffffff;
	color: #001c48;
	transition:
		transform 220ms ease,
		box-shadow 220ms ease,
		background-color 220ms ease,
		color 220ms ease,
		border-color 220ms ease;
}

.ligarena-capacidades-porto-section__cta:hover,
.ligarena-capacidades-porto-section__cta:focus-visible {
	background: transparent;
	color: #ffffff;
	border-color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.ligarena-capacidades-porto-section__headline {
	margin: 0;
	color: #ffffff;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	text-align: center;
	white-space: nowrap;
}

/* Visível após animação — o GSAP controla o estado inicial (opacity:0) */
.ligarena-capacidades-porto-section.ligarena-section-revealed
	.ligarena-capacidades-porto-section__headline,
.ligarena-capacidades-porto-section.ligarena-section-revealed
	.ligarena-capacidades-porto-section__cta {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ligarena-capacidades-porto-section__headline,
	.ligarena-capacidades-porto-section__cta {
		opacity: 1 !important;
		transform: none !important;
	}
}

@media (min-width: 1025px) {
	.ligarena-capacidades-porto-section__inner {
		width: auto;
		max-width: min(92vw, 58rem);
		gap: clamp(2rem, 3.5vw, 3.5rem);
	}

	.ligarena-capacidades-porto-section__content {
		padding-bottom: clamp(4rem, 8vw, 7rem);
	}
}

@media (max-width: 1024px) {
	.ligarena-capacidades-porto-section {
		--porto-diagonal-right: 76.5%;
		--porto-diagonal-left: 94%;
		min-height: clamp(300px, 58vw, 400px);
		aspect-ratio: auto;
	}

	.ligarena-capacidades-porto-section::before {
		background: linear-gradient(180deg, rgba(0, 28, 72, 1) 0%, rgba(0, 28, 72, 0.3) 100%);
	}

	.ligarena-capacidades-porto-section__content {
		align-items: center;
		justify-content: flex-start;
		min-height: inherit;
		padding: clamp(2.25rem, 16vw, 3.75rem) clamp(1rem, 5vw, 1.5rem) 30%;
	}

	.ligarena-capacidades-porto-section__headline {
		width: 100%;
		white-space: normal;
		margin: 0 auto;
	}

	.ligarena-capacidades-porto-section__cta {
		width: 100%;
		max-width: 20rem;
		font-size: clamp(0.74rem, 2.2vw + 0.4rem, 0.9rem);
		padding: clamp(0.72rem, 2.2vw, 0.95rem) clamp(0.9rem, 3vw, 1.25rem);
	}
}
