/**
 * Footer FC Famalicão — cartão institucional.
 */

 body.has-fcf-site-footer #footer.ct-footer {
	display: none !important;
}

/* Faixa azul contínua — parceiros + footer (sem branco nas margens / cantos). */
body.has-fcf-footer-zone #footer,
body.has-fcf-footer-zone #main-container {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

body.has-fcf-footer-zone #footer {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--fcf-blue-800, #123357);
}

body.has-fcf-footer-zone .fcf-site-footer-zone {
	box-sizing: border-box;
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	background: var(--fcf-blue-800, #123357);
	overflow: hidden;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Continuação suave do azul da secção App → parceiros/footer. */
body.has-fcf-app-download.has-fcf-footer-zone .fcf-site-footer-zone {
	background: linear-gradient(
		180deg,
		var(--fcf-blue-800, #123357) 0%,
		var(--fcf-blue-800, #123357) 72%,
		var(--fcf-blue-900, #051e33) 100%
	);
}

body.has-fcf-app-download.has-fcf-footer-zone .fcf-partners,
body.has-fcf-app-download.has-fcf-footer-zone .fcf-site-footer-rise,
body.has-fcf-app-download.has-fcf-footer-zone .fcf-site-footer-shell {
	background: transparent;
}

body.has-fcf-footer-zone .fcf-partners {
	background: var(--fcf-blue-800, #123357);
	margin-bottom: 0;
}

body.has-fcf-site-footer .fcf-site-footer-rise {
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none;
	margin: 0;
	overflow: hidden;
	isolation: isolate;
	background: var(--fcf-blue-800, #123357);
}

body.has-fcf-site-footer .fcf-site-footer-rise::after {
	display: none;
}

/* Faixa azul full-bleed; abaixo de 2200 o cartão alinha com o contentor do site. */
body.has-fcf-site-footer .fcf-site-footer-shell {
	--fcf-footer-container-max: min(
		100%,
		var(
			--theme-normal-container-max-width,
			var(
				--fcf-site-max-width,
				min(1920px, calc(100vw - (var(--fcf-site-gutter, 48px) * 2)))
			)
		)
	);
	--fcf-footer-shell-padding: var(--fcf-site-gutter, 48px);
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding: var(--fcf-footer-shell-padding) var(--fcf-footer-shell-padding) 50px;
	overflow: visible;
	background: var(--fcf-blue-800, #123357);
	will-change: transform;
}

body.has-fcf-site-footer .fcf-site-footer-shell.is-ready {
	will-change: auto;
}

.fcf-site-footer-shell .fcf-site-footer {
	width: 100%;
	max-width: var(--fcf-footer-container-max);
	margin-inline: auto;
}

.fcf-site-footer {
	--fcf-footer-bg: #051e33;
	--fcf-footer-ink: #a2bacc;
	--fcf-footer-ink-hover: #ffffff;
	--fcf-footer-crest-color: #123357;
	--fcf-footer-crest-opacity: 1;
	--fcf-footer-radius: clamp(1.25rem, 2.4vw, 2rem);
	--fcf-footer-ease: cubic-bezier(0.22, 1, 0.36, 1);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	background: var(--fcf-footer-bg);
	color: var(--fcf-footer-ink);
	border-radius: var(--fcf-footer-radius);
}

.fcf-site-footer__inner {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	padding-block: 2.75rem;
	padding-inline: 0;
	min-height: 0;
}

.fcf-site-footer__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.75rem;
	width: 100%;
	max-width: 100%;
}

.fcf-site-footer__tagline {
	margin: 0;
	color: var(--fcf-footer-ink);
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif) !important;
	font-size: clamp(1.75rem, 5vw, 2.25rem);
	font-weight: 700;
	font-style: italic;
	font-synthesis: none;
	letter-spacing: 0.02em;
	line-height: 0.92;
	text-transform: uppercase;
}

.fcf-site-footer__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, max-content));
	align-items: start;
	justify-content: start;
	column-gap: clamp(2.25rem, 3.5vw, 3.5rem);
	row-gap: 1rem;
	width: fit-content;
	max-width: 100%;
}

.fcf-site-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.4rem, 0.75vw, 0.625rem);
	min-width: 0;
	max-width: min(100%, 26rem);
}

.fcf-site-footer__link {
	display: inline-block;
	max-width: 100%;
	color: var(--fcf-footer-ink);
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif) !important;
	font-size: clamp(0.9375rem, 0.35vw + 0.82rem, 1.3125rem);
	font-weight: 600;
	font-style: normal;
	font-synthesis: none;
	letter-spacing: 0.04em;
	line-height: 1.35;
	text-transform: uppercase;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: color 0.2s var(--fcf-footer-ease);
}

.fcf-site-footer__link:hover,
.fcf-site-footer__link:focus-visible {
	color: var(--fcf-footer-ink-hover);
}

.fcf-site-footer__link:focus-visible,
.fcf-site-footer__social-link:focus-visible {
	outline: 2px solid var(--fcf-footer-ink);
	outline-offset: 3px;
}

.fcf-site-footer__divider {
	width: 100%;
	max-width: min(100%, 44rem);
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--fcf-footer-ink);
	transform-origin: 0 50%;
}

.fcf-site-footer__social + .fcf-site-footer__divider {
	margin-top: clamp(1.25rem, 4vw, 1.75rem);
}

.fcf-site-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.85rem 1rem;
	width: 100%;
	max-width: min(100%, 46rem);
}

.fcf-site-footer__social-link {
	color: var(--fcf-footer-ink);
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif) !important;
	font-size: clamp(0.9375rem, 0.4vw + 0.85rem, 1.5rem);
	font-weight: 700;
	font-style: normal;
	font-synthesis: none;
	letter-spacing: 0.03em;
	line-height: 1.15;
	text-transform: uppercase;
	text-decoration: none;
	-webkit-text-stroke: 0.55px currentColor;
	paint-order: stroke fill;
	transition: color 0.2s var(--fcf-footer-ease);
}

.fcf-site-footer__social-link:hover,
.fcf-site-footer__social-link:focus-visible {
	color: var(--fcf-footer-ink-hover);
}

/* Brasão — camada de fundo do cartão (ignora padding do inner). */
.fcf-site-footer__crest {
	position: absolute;
	z-index: 0;
	inset: 0;
	margin: 0;
	pointer-events: none;
}

.fcf-site-footer__crest-mark {
	display: block;
	width: 100%;
	height: 100%;
	background-color: transparent;
	background-image: url("../../images/footer-crest-famalicao.svg");
	background-repeat: no-repeat;
	background-position: 125% 20%;
	background-size: min(17.5rem, 72vw) auto;
	opacity: var(--fcf-footer-crest-opacity);
	will-change: opacity, transform;
}

.fcf-site-footer.is-ready .fcf-site-footer__crest-mark {
	will-change: auto;
}

@media (min-width: 782px) {
	.fcf-site-footer__inner {
		padding-block: 3.75rem;
		min-height: 0;
		padding: 50px;
	}

	.fcf-site-footer__content {
		gap: clamp(2rem, 3vw, 3rem);
		max-width: min(100%, calc(100% - clamp(7rem, 18vw, 14rem)));
	}

	.fcf-site-footer__tagline {
		font-size: clamp(2.25rem, 3.8vw, 3.25rem);
	}

	.fcf-site-footer__crest-mark {
		background-size: min(28rem, 52vw) auto;
		background-position: 125% 22%;
	}
}

@media (min-width: 782px) {
	.fcf-site-footer__links {
		column-gap: clamp(3rem, 4.5vw, 5rem);
		row-gap: 1.25rem;
	}

	.fcf-site-footer__social {
		gap: clamp(1rem, 2vw, 2rem);
	}
}

@media (min-width: 1200px) {
	.fcf-site-footer__inner {
		padding-block: clamp(4.5rem, 5vw, 7rem);
		min-height: clamp(16rem, 18vw, 24rem);
	}

	.fcf-site-footer__content {
		gap: clamp(2.35rem, 2.5vw, 3.75rem);
		max-width: min(100%, calc(100% - clamp(10rem, 14vw, 18rem)));
	}

	.fcf-site-footer__tagline {
		font-size: clamp(2.75rem, 2.8vw, 4.25rem);
	}

	.fcf-site-footer__links {
		column-gap: clamp(3.5rem, 5.5vw, 6.5rem);
		row-gap: clamp(1.5rem, 1.5vw, 2.125rem);
	}

	.fcf-site-footer__social {
		gap: clamp(1.5rem, 2vw, 3.5rem);
	}

	.fcf-site-footer__crest-mark {
		background-size: clamp(36rem, 38vw, 56rem) auto;
	}
}

@media (min-width: 1920px) {
	.fcf-site-footer__inner {
		padding-block: 7.5rem;
		padding: 100px 100px;
	}

	.fcf-site-footer__crest-mark {
		background-size: 56rem auto;
		background-position: 100% 22%;
	}
}

/* ≥2200: padding 50px e cartão full-bleed (já não alinhado ao contentor). */
@media (min-width: 2200px) {
	body.has-fcf-site-footer .fcf-site-footer-shell {
		--fcf-footer-shell-padding: 50px;
		padding: 50px;
	}

	.fcf-site-footer-shell .fcf-site-footer {
		max-width: none;
		margin-inline: 0;
	}

	.fcf-site-footer__inner {
		max-width: var(--fcf-footer-container-max);
	}

	.fcf-site-footer__crest-mark {
		background-position: calc(100% - clamp(0px, (100vw - 2200px) * 0.24, 18rem)) 22%;
	}
}

@media (min-width: 782px) {
	.fcf-site-footer__social {
		order: 3;
	}

	.fcf-site-footer__social + .fcf-site-footer__divider {
		order: 2;
		margin-top: 0;
	}
}

@media (min-width: 782px) {
	.fcf-site-footer__content {
		display: flex;
		flex-direction: column;
	}

	.fcf-site-footer__links {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, max-content));
		justify-content: start;
		column-gap: clamp(3rem, 4.5vw, 6.5rem);
		row-gap: 1rem;
		width: fit-content;
		max-width: 100%;
	}

	.fcf-site-footer__social + .fcf-site-footer__divider {
		max-width: min(100%, 44rem);
	}
}

@media (max-width: 781px) {
	body.has-fcf-site-footer .fcf-site-footer-shell {
		--fcf-footer-shell-padding: 1rem;
		--fcf-footer-container-max: 100%;
		padding: 1rem 1rem max(1.5rem, env(safe-area-inset-bottom, 0px));
	}

	.fcf-site-footer-shell .fcf-site-footer {
		max-width: 100%;
		width: 100%;
	}

	.fcf-site-footer {
		--fcf-footer-crest-opacity: 0.45;
		--fcf-footer-radius: 1rem;
	}

	.fcf-site-footer__inner {
		padding: 1.75rem 1.15rem 1.5rem;
		width: 100%;
		max-width: 100%;
	}

	.fcf-site-footer__content {
		max-width: 100%;
		gap: 1.35rem;
	}

	.fcf-site-footer__tagline {
		font-size: clamp(1.75rem, 8vw, 2.35rem);
		line-height: 0.95;
	}

	.fcf-site-footer__links {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
		width: 100%;
		max-width: 100%;
	}

	.fcf-site-footer__col {
		max-width: 100%;
		min-width: 0;
		gap: 0.55rem;
		width: 100%;
	}

	.fcf-site-footer__link {
		font-size: clamp(0.875rem, 3.6vw, 1rem);
		line-height: 1.3;
		letter-spacing: 0.03em;
	}

	.fcf-site-footer__social {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 0.65rem 0.9rem;
		width: 100%;
		max-width: 100%;
		margin-top: 0.15rem;
		order: 3;
	}

	.fcf-site-footer__social-link {
		font-size: clamp(0.9375rem, 3.8vw, 1.0625rem);
		-webkit-text-stroke: 0.4px currentColor;
	}

	.fcf-site-footer__social + .fcf-site-footer__divider {
		order: 2;
		margin-top: 0;
		max-width: 100%;
	}

	.fcf-site-footer__divider {
		max-width: 100%;
	}

	.fcf-site-footer__crest-mark {
		background-size: 100vw;
		background-position: right -10rem bottom -1.5rem;
	}
}

@media (max-width: 389px) {
	body.has-fcf-site-footer .fcf-site-footer-shell {
		padding-inline: 0.75rem;
	}

	.fcf-site-footer__inner {
		padding: 1.5rem 1rem 1.35rem;
	}

	.fcf-site-footer__link {
		font-size: 0.875rem;
	}

	.fcf-site-footer__social-link {
		font-size: 0.9375rem;
	}

	.fcf-site-footer__crest-mark {
		background-size: min(16rem, 68vw) auto;
		background-position: right -5rem bottom -1.25rem;
	}
}
