/* Secção Testemunhos — homepage */

.ligarena-testemunhos {
	--ligarena-testemunhos-navy: #001c48;
	--ligarena-testemunhos-cyan: #5bc8e1;
	--ligarena-testemunhos-hex: #223f6e;
	--ligarena-testemunhos-slope: clamp(3.5rem, 7vw, 6.5rem);
	--ligarena-testemunhos-pad-top: clamp(5.5rem, 9vw, 9rem);
	--ligarena-testemunhos-pad-bottom: clamp(7rem, 11vw, 11.5rem);
	position: relative;
	z-index: 2;
	isolation: isolate;
	width: 100vw;
	max-width: 100vw;
	margin-top: calc(-1 * var(--ligarena-testemunhos-slope));
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 0;
	padding: calc(var(--ligarena-testemunhos-slope) + var(--ligarena-testemunhos-pad-top))
		var(--ligarena-site-pad-x, 10vw)
		var(--ligarena-testemunhos-pad-bottom);
	background: var(--ligarena-testemunhos-navy);
	color: #ffffff;
	box-sizing: border-box;
	overflow: hidden;
	clip-path: polygon(
		0 0,
		100% var(--ligarena-testemunhos-slope),
		100% 100%,
		0 100%
	);
}

/* Com capacidades/porto no conteúdo WP — junção recta (mesmo navy) */
.home .entry-content:has(.ligarena-capacidades-section) .ligarena-testemunhos,
.home .entry-content:has(.ligarena-capacidades-porto-section) .ligarena-testemunhos {
	margin-bottom: 0;
	padding-bottom: clamp(5rem, 8vw, 7.5rem);
}

.ligarena-testemunhos__hex {
	position: absolute;
	z-index: 0;
	width: min(130vw, 96rem);
	height: auto;
	pointer-events: none;
}

.ligarena-testemunhos__hex--bl {
	left: 0;
	bottom: 6%;
	width: min(82vw, 58rem);
	transform: translate(-42%, 12%);
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.ligarena-testemunhos__hex--r {
	right: 0;
	top: 8%;
	transform: translate(42%, -8%);
	opacity: 0.95;
}

.ligarena-testemunhos__container {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.ligarena-testemunhos__carousel {
	min-width: 0;
}

.ligarena-testemunhos__kicker {
	margin: 0 0 0.85rem;
	font-family: var(--ligarena-font-body, "Montserrat", sans-serif);
	font-size: clamp(0.68rem, 0.6rem + 0.18vw, 0.8rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ligarena-testemunhos-cyan);
}

.ligarena-testemunhos__title {
	margin: 0;
	color: #ffffff;
}

.ligarena-testemunhos__title-line {
	display: block;
}

.ligarena-testemunhos__track {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0.25rem 0 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ligarena-testemunhos__track::-webkit-scrollbar {
	display: none;
}

.ligarena-testemunhos__item {
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	scroll-snap-align: start;
	box-sizing: border-box;
}

.ligarena-testemunhos__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.ligarena-testemunhos__media {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(2rem, 4vw, 3.25rem);
	min-width: 0;
}

.ligarena-testemunhos__header {
	margin: 0;
}

.ligarena-testemunhos__item.has-video {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(1.75rem, 4vw, 4rem);
	align-items: center;
	border-top: 0;
	padding-top: 0;
}

.ligarena-testemunhos__video {
	position: relative;
	width: 100%;
	max-width: none;
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.2);
	cursor: pointer;
}

.ligarena-testemunhos__item.has-video .ligarena-testemunhos__video {
	margin: 0;
}

.ligarena-testemunhos__video-poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ligarena-testemunhos__video-play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: background 0.2s ease;
}

.ligarena-testemunhos__video-play:hover,
.ligarena-testemunhos__video-play:focus-visible {
	background: rgba(0, 0, 0, 0.28);
	outline: none;
}

.ligarena-testemunhos__video-play-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(3rem, 8vw, 4.5rem);
	height: clamp(3rem, 8vw, 4.5rem);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.ligarena-testemunhos__video-play-icon::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.65rem 0 0.65rem 1.1rem;
	border-color: transparent transparent transparent var(--ligarena-testemunhos-cyan, #00bcd4);
	transform: translateX(12%);
}

.ligarena-testemunhos__video.is-loaded .ligarena-testemunhos__video-poster,
.ligarena-testemunhos__video.is-loaded .ligarena-testemunhos__video-play {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.ligarena-testemunhos__video:not(.is-interactive) iframe {
	pointer-events: none;
}

.ligarena-testemunhos__video.is-interactive {
	cursor: auto;
}

.ligarena-testemunhos__video iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ligarena-testemunhos__item.has-video .ligarena-testemunhos__quote {
	margin-top: 0;
}

.ligarena-testemunhos__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.ligarena-testemunhos__quote p {
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
}

.ligarena-testemunhos__quote p::before {
	content: "\201C";
	color: var(--ligarena-testemunhos-cyan);
}

.ligarena-testemunhos__meta {
	display: grid;
	gap: 0.35rem;
}

.ligarena-testemunhos__name {
	font-family: var(--ligarena-font-body, "Montserrat", sans-serif);
	font-size: clamp(0.82rem, 0.72rem + 0.28vw, 0.95rem);
	font-weight: 700;
	font-style: normal;
	letter-spacing: 0.04em;
	line-height: 1.35;
	color: #ffffff;
}

.ligarena-testemunhos__role,
.ligarena-testemunhos__event {
	margin: 0;
	font-family: var(--ligarena-font-body, "Montserrat", sans-serif);
	font-size: clamp(0.72rem, 0.64rem + 0.2vw, 0.82rem);
	font-weight: 500;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
}

.ligarena-testemunhos__event {
	color: var(--ligarena-testemunhos-cyan);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ligarena-testemunhos__arrows {
	display: flex;
	align-items: center;
	gap: clamp(0.65rem, 1.2vw, 1rem);
	margin-top: clamp(1.35rem, 2.5vw, 2rem);
}

.ligarena-testemunhos__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
}

.ligarena-testemunhos__arrow img {
	display: block;
	width: clamp(1.35rem, 1.8vw, 1.65rem);
	height: auto;
	filter: brightness(0) invert(1);
	opacity: 0.95;
}

.ligarena-testemunhos__arrow--prev img {
	transform: scaleX(-1);
}

.ligarena-testemunhos__arrow:hover img,
.ligarena-testemunhos__arrow:focus-visible img {
	opacity: 1;
}

.ligarena-testemunhos__arrow:focus-visible {
	outline: 2px solid var(--ligarena-testemunhos-cyan);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.ligarena-testemunhos {
		--ligarena-testemunhos-pad-top: clamp(4rem, 8vw, 6.5rem);
		--ligarena-testemunhos-pad-bottom: clamp(5.5rem, 10vw, 8.5rem);
	}

	.ligarena-testemunhos__hex--r {
		width: min(150vw, 72rem);
		top: 6%;
		transform: translate(48%, -6%);
	}

	.ligarena-testemunhos__hex--bl {
		width: min(95vw, 44rem);
		bottom: 4%;
		transform: translate(-48%, 14%);
	}

	.ligarena-testemunhos__item.has-video {
		grid-template-columns: 1fr;
		gap: clamp(1.25rem, 3vw, 1.75rem);
	}
}

@media (max-width: 640px) {
	.ligarena-testemunhos {
		margin-top: calc(-1 * clamp(2.5rem, 6vw, 4rem));
		--ligarena-testemunhos-pad-top: clamp(3.5rem, 7vw, 5rem);
		--ligarena-testemunhos-pad-bottom: clamp(4.5rem, 9vw, 7rem);
		padding-top: calc(clamp(2.5rem, 6vw, 4rem) + var(--ligarena-testemunhos-pad-top));
	}
}
