/* Banner Sobre Nós — full-bleed escuro com corte cyan */

.page-sobre-nos {
	--ligarena-contact-footer-slope: clamp(4rem, 8vw, 7rem);
}

@media (max-width: 900px) {
	.page-sobre-nos {
		--ligarena-contact-footer-slope: clamp(2.5rem, 6.5vw, 3.5rem);
	}
}

.ligarena-dark-hero .hero-section,
.ligarena-dark-hero .ct-page-title,
.ligarena-dark-hero .entry-header,
.page-sobre-nos .hero-section,
.page-sobre-nos .ct-page-title,
.page-sobre-nos .entry-header {
	display: none;
}

.ligarena-dark-hero .ct-header-spacer,
.page-sobre-nos .ct-header-spacer {
	display: none !important;
}

.ligarena-dark-hero #main-container,
.page-sobre-nos #main-container {
	position: relative;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.ligarena-dark-hero main#main,
.ligarena-dark-hero .site-main,
.ligarena-dark-hero article,
.ligarena-dark-hero .entry-content,
.ligarena-dark-hero .ct-container,
.ligarena-dark-hero .ct-content-block,
.ligarena-dark-hero .site-content,
.page-sobre-nos main#main,
.page-sobre-nos .site-main,
.page-sobre-nos article,
.page-sobre-nos .entry-content,
.page-sobre-nos .ct-container,
.page-sobre-nos .ct-container-full,
.page-sobre-nos .ct-content-block,
.page-sobre-nos .site-content {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.ligarena-dark-hero [data-vertical-spacing*="top"],
.page-sobre-nos [data-vertical-spacing*="top"] {
	padding-top: 0 !important;
}

.page-sobre-nos [data-vertical-spacing*="bottom"],
.page-sobre-nos .ct-container-full[data-vertical-spacing*="bottom"] {
	padding-bottom: 0 !important;
}

.ligarena-dark-hero .entry-content > .ligarena-sobre-banner,
.ligarena-dark-hero .entry-content.is-layout-constrained > .ligarena-sobre-banner,
.page-sobre-nos .entry-content > .ligarena-sobre-banner,
.page-sobre-nos .entry-content.is-layout-constrained > .ligarena-sobre-banner {
	max-width: none !important;
	margin-block-start: 0 !important;
	margin-top: 0 !important;
	margin-block-end: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
}

.page-sobre-nos .entry-content > .ligarena-sobre-versatilidade,
.page-sobre-nos .entry-content.is-layout-constrained > .ligarena-sobre-versatilidade,
.ligarena-dark-hero .entry-content > .ligarena-sobre-versatilidade,
.ligarena-dark-hero .entry-content.is-layout-constrained > .ligarena-sobre-versatilidade,
.page-sobre-nos .entry-content > .ligarena-para-quem-section,
.page-sobre-nos .entry-content.is-layout-constrained > .ligarena-para-quem-section,
.ligarena-dark-hero .entry-content > .ligarena-para-quem-section,
.ligarena-dark-hero .entry-content.is-layout-constrained > .ligarena-para-quem-section,
.page-sobre-nos .entry-content > .ligarena-razoes-section,
.page-sobre-nos .entry-content.is-layout-constrained > .ligarena-razoes-section,
.ligarena-dark-hero .entry-content > .ligarena-razoes-section,
.ligarena-dark-hero .entry-content.is-layout-constrained > .ligarena-razoes-section,
.page-sobre-nos .entry-content > .ligarena-sustentabilidade-section,
.page-sobre-nos .entry-content.is-layout-constrained > .ligarena-sustentabilidade-section,
.ligarena-dark-hero .entry-content > .ligarena-sustentabilidade-section,
.ligarena-dark-hero .entry-content.is-layout-constrained > .ligarena-sustentabilidade-section {
	max-width: none !important;
	margin-block-start: 0 !important;
	margin-top: 0 !important;
	margin-block-end: 0 !important;
	margin-bottom: 0 !important;
}

/* Permite a imagem hexagonal invadir a secção seguinte (desktop) */
.page-sobre-nos .entry-content > .ligarena-sobre-versatilidade,
.page-sobre-nos .entry-content.is-layout-constrained > .ligarena-sobre-versatilidade,
.ligarena-dark-hero .entry-content > .ligarena-sobre-versatilidade,
.ligarena-dark-hero .entry-content.is-layout-constrained > .ligarena-sobre-versatilidade {
	margin-bottom: calc(-1 * var(--ligarena-versatilidade-media-overflow, 5rem)) !important;
	margin-block-end: calc(-1 * var(--ligarena-versatilidade-media-overflow, 5rem)) !important;
}

@media (max-width: 1024px) {
	.page-sobre-nos .entry-content > .ligarena-sobre-versatilidade,
	.page-sobre-nos .entry-content.is-layout-constrained > .ligarena-sobre-versatilidade,
	.ligarena-dark-hero .entry-content > .ligarena-sobre-versatilidade,
	.ligarena-dark-hero .entry-content.is-layout-constrained > .ligarena-sobre-versatilidade {
		margin-bottom: 0 !important;
		margin-block-end: 0 !important;
	}
}

.page-sobre-nos .ligarena-cta-banner,
.ligarena-dark-hero .ligarena-cta-banner {
	margin-top: calc(-1 * var(--ligarena-cta-slope-top, var(--ligarena-contact-footer-slope, 4rem)) - 4px) !important;
	margin-block-start: calc(-1 * var(--ligarena-cta-slope-top, var(--ligarena-contact-footer-slope, 4rem)) - 4px) !important;
}

.page-sobre-nos .ligarena-footer-template,
.ligarena-dark-hero .ligarena-footer-template {
	margin-top: calc(-1 * var(--ligarena-footer-slope, var(--ligarena-contact-footer-slope, 4rem)) - 4px);
}

/* Junção diagonal Sustentabilidade com a secção anterior */
.page-sobre-nos .entry-content > .ligarena-sustentabilidade-section,
.page-sobre-nos .entry-content.is-layout-constrained > .ligarena-sustentabilidade-section,
.ligarena-dark-hero .entry-content > .ligarena-sustentabilidade-section,
.ligarena-dark-hero .entry-content.is-layout-constrained > .ligarena-sustentabilidade-section {
	margin-top: calc(-1 * var(--ligarena-sustentabilidade-slope-top, 5rem)) !important;
	margin-block-start: calc(-1 * var(--ligarena-sustentabilidade-slope-top, 5rem)) !important;
}

.ligarena-dark-hero .entry-content,
.page-sobre-nos .entry-content {
	overflow: visible;
}

/* Permite o carrossel horizontal dos hexágonos na página Sobre Nós.
   Para quem mantém overflow visível para a imagem da Versatilidade invadir. */
.page-sobre-nos .ligarena-solucao-section:not(.ligarena-para-quem-section),
.ligarena-dark-hero .ligarena-solucao-section:not(.ligarena-para-quem-section) {
	overflow: hidden;
}

.page-sobre-nos .ligarena-para-quem-section,
.ligarena-dark-hero .ligarena-para-quem-section {
	overflow: visible;
	position: relative;
	z-index: 1;
}

.page-sobre-nos .ligarena-para-quem-section .ligarena-solucao-section__container,
.ligarena-dark-hero .ligarena-para-quem-section .ligarena-solucao-section__container {
	position: relative;
	z-index: 1;
}

.page-sobre-nos .ligarena-solucao-section__grid,
.ligarena-dark-hero .ligarena-solucao-section__grid {
	overflow-x: auto;
	overflow-y: hidden;
}

.ligarena-sobre-banner {
	--ligarena-sobre-navy: #001c48;
	--ligarena-sobre-title-size: clamp(2.15rem, 1.15rem + 3.4vw, 4.9rem);
	--ligarena-sobre-text-size: var(--ligarena-font-size-lead);
	/* Zona reservada ao header — o copy nunca entra aqui */
	--ligarena-sobre-banner-header-gap: calc(
		var(--ligarena-header-height, 6rem) + clamp(1.25rem, 2.5vw, 2.25rem)
	);
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: var(--ligarena-sobre-banner-header-gap) 1fr auto 1fr;
	align-content: stretch;
	width: 100vw;
	max-width: 100vw;
	min-height: 100vh;
	min-height: 100svh;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 0 var(--ligarena-site-pad-x) clamp(2.5rem, 5vw, 4.5rem);
	box-sizing: border-box;
	color: #ffffff;
	overflow: hidden;
}

body.admin-bar .ligarena-sobre-banner {
	--ligarena-sobre-banner-header-gap: calc(
		var(--ligarena-header-height, 6rem) + 32px + clamp(1.25rem, 2.5vw, 2.25rem)
	);
}

.ligarena-sobre-banner__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.ligarena-sobre-banner__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.ligarena-sobre-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0, 28, 72, 1) 0%,
		rgba(0, 28, 72, 0.75) 35%,
		rgba(0, 28, 72, 0.35) 100%
	);
}

.ligarena-sobre-banner__inner {
	position: relative;
	z-index: 2;
	grid-row: 3;
	width: 60%;
	max-width: none;
}

.ligarena-sobre-banner__title {
	width: 100%;
	max-width: none;
	margin: 0 0 clamp(1.1rem, 2.2vw, 1.75rem);
	font-family: var(--ligarena-font-heading, "LigaPortugal", "Montserrat", sans-serif);
	font-size: var(--ligarena-sobre-title-size);
	font-weight: var(--ligarena-font-weight-display);
	line-height: 1.08;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff;
}

.ligarena-sobre-banner__title-line {
	display: inline;
}

.ligarena-sobre-banner__title-line:not(:last-child)::after {
	content: "\00a0";
}

.ligarena-sobre-banner__text {
	display: grid;
	gap: clamp(0.85rem, 1.5vw, 1.25rem);
	margin: 0 0 clamp(1.35rem, 2.5vw, 2rem);
	max-width: none;
}

.ligarena-sobre-banner__text p {
	margin: 0;
	font-family: var(--ligarena-font-body, "Montserrat", sans-serif);
	font-size: var(--ligarena-sobre-text-size);
	font-weight: 400;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.92);
}

.ligarena-sobre-banner__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(2.4rem, 2vw + 1.4rem, 3rem);
	padding: 0 clamp(1.35rem, 2vw, 2rem);
	border: 0;
	background: var(--ligarena-sobre-navy);
	color: #ffffff;
	font-family: var(--ligarena-font-body, "Montserrat", sans-serif);
	font-size: clamp(0.68rem, 0.45rem + 0.4vw, 0.88rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.ligarena-sobre-banner__cta:hover,
.ligarena-sobre-banner__cta:focus-visible {
	background: color-mix(in srgb, var(--ligarena-sobre-navy) 88%, #ffffff);
	color: #ffffff;
	transform: translateY(-2px);
}

.ligarena-sobre-banner__cta:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.ligarena-sobre-banner {
		grid-template-rows: var(--ligarena-sobre-banner-header-gap) auto;
		min-height: 0;
		height: auto;
		padding-bottom: clamp(2.75rem, 8vw, 4.25rem);
	}

	.ligarena-sobre-banner__inner {
		grid-row: 2;
		width: 100%;
		max-width: none;
		padding-bottom: clamp(1.75rem, 5vw, 2.75rem);
	}

	.ligarena-sobre-banner__title {
		max-width: none;
	}

	.ligarena-sobre-banner__text {
		max-width: none;
	}
}

@media (max-height: 820px) and (min-width: 901px) {
	.ligarena-sobre-banner {
		grid-template-rows: var(--ligarena-sobre-banner-header-gap) 0 auto 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ligarena-sobre-banner__cta {
		transition: none;
	}

	.ligarena-sobre-banner__cta:hover,
	.ligarena-sobre-banner__cta:focus-visible {
		transform: none;
	}
}
