/* Artigo / notícia */
body.has-fcf-single-post .hero-section,
body.has-fcf-single-post .entry-header,
body.has-fcf-single-post .page-title,
body.has-fcf-single-post .ct-breadcrumbs,
body.has-fcf-single-post .post-navigation,
body.has-fcf-single-post .ct-related-posts,
body.has-fcf-single-post .ct-author-box {
	display: none !important;
}

body.has-fcf-single-post main.site-main {
	padding-top: 0 !important;
}

body.has-fcf-single-post #main-container {
	background: #fff;
}

.fcf-single-post {
	--fcf-single-hero-height: 60vh;
	--fcf-single-hero-height: 60dvh;
	--fcf-single-panel-overlap: clamp(72px, 10vh, 132px);
	--fcf-single-panel-pad-x: clamp(24px, 4vw, 72px);
	--fcf-single-panel-pad-y: clamp(32px, 4.5vw, 56px);
	--fcf-h1-size: clamp(2.25rem, 1.15rem + 3.45vw, 4rem);
	--fcf-h1-weight: 700;
	--fcf-h1-line: 1.02;
	--fcf-h1-spacing: 0.02em;
	--fcf-h5-size: clamp(0.9375rem, 0.78rem + 0.5vw, 1.3125rem);
	--fcf-h5-weight: 700;
	--fcf-h5-line: 1.15;
	--fcf-h5-spacing: 0.04em;
	--fcf-body-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
	--fcf-body-line: 1.65;
	--fcf-content-img-max: min(720px, 100%);
	--fcf-content-img-min: 140px;
	--fcf-content-img-gap: clamp(10px, 1.5vw, 18px);
	color: var(--fcf-blue-900, #051e33);
}

.fcf-single-post__hero {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	height: var(--fcf-single-hero-height);
	min-height: var(--fcf-single-hero-height);
	margin: 0 calc(50% - 50vw);
	overflow: hidden;
	background: var(--fcf-blue-700, #183e67);
}

.fcf-single-post__hero-image {
	position: absolute;
	inset: 0;
	background-position: center 22%;
	background-repeat: no-repeat;
	background-size: cover;
}

.fcf-single-post__hero-image--placeholder {
	background-position: center center;
	background-size: cover;
}

.fcf-single-post__hero-image--placeholder + .fcf-single-post__hero-overlay {
	opacity: 0.45;
}

.fcf-single-post__hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgba(5, 30, 51, 0.82) 0%,
		rgba(5, 30, 51, 0.52) 32%,
		rgba(5, 30, 51, 0.22) 62%,
		rgba(5, 30, 51, 0) 100%
	);
	pointer-events: none;
}

.fcf-single-post__main {
	position: relative;
	z-index: 2;
	margin-top: calc(var(--fcf-single-panel-overlap) * -1);
	padding-bottom: clamp(48px, 8vh, 96px);
}

.fcf-single-post__container {
	width: var(--theme-container-width, min(100%, var(--theme-normal-container-max-width, min(1920px, calc(100vw - (var(--fcf-site-gutter, 0px) * 2))))));
	max-width: var(--theme-normal-container-max-width, min(1920px, calc(100vw - (var(--fcf-site-gutter, 0px) * 2))));
	margin-inline: auto;
}

.fcf-single-post__panel {
	background: #fff;
	padding: var(--fcf-single-panel-pad-y) var(--fcf-single-panel-pad-x);
}

.fcf-single-post__category {
	display: inline-block;
	margin: 0 0 18px;
	color: #a2bacc;
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	font-size: var(--fcf-h5-size);
	font-weight: var(--fcf-h5-weight);
	letter-spacing: var(--fcf-h5-spacing);
	line-height: var(--fcf-h5-line);
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.fcf-single-post__category:hover,
.fcf-single-post__category:focus-visible {
	color: var(--fcf-blue-900, #051e33);
	opacity: 0.82;
	outline: none;
}

.fcf-single-post__title {
	margin: 0 0 clamp(32px, 4.5vh, 52px) !important;
	padding: 0 !important;
	border: 0 !important;
	max-width: min(920px, 100%);
	color: var(--fcf-blue-900, #051e33) !important;
	background: none !important;
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif) !important;
	font-size: var(--fcf-h1-size) !important;
	font-weight: var(--fcf-h1-weight) !important;
	font-synthesis: none;
	line-height: var(--fcf-h1-line) !important;
	letter-spacing: var(--fcf-h1-spacing) !important;
	text-transform: uppercase;
	text-wrap: pretty;
}

.fcf-single-post__date {
	display: block;
	margin: 0 0 clamp(28px, 4vh, 40px);
	color: #111827;
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	font-size: var(--fcf-h5-size);
	font-weight: var(--fcf-h5-weight);
	font-synthesis: none;
	letter-spacing: var(--fcf-h5-spacing);
	line-height: var(--fcf-h5-line);
	text-transform: uppercase;
}

.fcf-single-post__content {
	max-width: none;
	color: #111827;
	font-family: var(--fcf-font-body, "Poppins", sans-serif);
	font-size: var(--fcf-body-size);
	line-height: var(--fcf-body-line);
}

.fcf-single-post__content > :first-child {
	margin-top: 0;
}

.fcf-single-post__content p {
	margin: 0 0 1.35em;
}

.fcf-single-post__content h2,
.fcf-single-post__content h3,
.fcf-single-post__content h4 {
	margin: 1.6em 0 0.75em;
	color: var(--fcf-blue-900, #051e33);
	font-family: var(--fcf-font-display, "korolev-compressed", sans-serif);
	font-weight: 700;
	line-height: 1.12;
	text-transform: uppercase;
}

.fcf-single-post__content h2 {
	font-size: clamp(1.65rem, 1.1rem + 1.75vw, 2.35rem);
}

.fcf-single-post__content h3 {
	font-size: clamp(1.35rem, 1rem + 1.1vw, 1.85rem);
}

.fcf-single-post__content h4 {
	font-size: clamp(1.125rem, 0.95rem + 0.65vw, 1.45rem);
}

.fcf-single-post__content a {
	color: var(--fcf-blue-700, #183e67);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.fcf-single-post__content img {
	display: block;
	width: auto;
	min-width: min(var(--fcf-content-img-min), 100%);
	max-width: var(--fcf-content-img-max);
	height: auto;
	margin-block: clamp(24px, 4vh, 40px);
	margin-inline: 0;
}

.fcf-single-post__content img.size-large,
.fcf-single-post__content img.size-full,
.fcf-single-post__content img.size-medium_large {
	max-width: 100%;
}

.fcf-single-post__content img.alignright {
	margin-left: auto;
	margin-right: 0;
}

/* Nota: sequências de imagens (um ou vários <p> só com <img>) já não são
 * estiladas aqui — o assets/js/noticias/single-gallery.js apanha-as e
 * substitui por uma galeria em grelha (ver single-gallery.css). Isto cobre
 * tanto o editor clássico (um <p> por imagem) como blocos soltos. */

.fcf-single-post__content figure.wp-block-image {
	display: inline-block;
	vertical-align: top;
	width: auto;
	max-width: var(--fcf-content-img-max);
	margin: 0 var(--fcf-content-img-gap) clamp(16px, 2.5vh, 28px) 0;
	text-align: left;
}

.fcf-single-post__content figure.wp-block-image img {
	margin-block: 0;
}

.fcf-single-post__content figure.wp-block-image.size-large,
.fcf-single-post__content figure.wp-block-image.size-full,
.fcf-single-post__content figure.wp-block-image.alignwide {
	display: block;
	max-width: 100%;
	margin-right: 0;
}

.fcf-single-post__content video:not(.wp-video video) {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: clamp(24px, 4vh, 40px) 0;
}

.fcf-single-post__content .wp-block-embed,
.fcf-single-post__content .wp-block-video,
.fcf-single-post__content figure.wp-block-embed,
.fcf-single-post__content figure.wp-block-video,
.fcf-single-post__content .wp-embed,
.fcf-single-post__content .wp-video {
	width: 100%;
	max-width: 100%;
	margin: clamp(28px, 4vh, 48px) 0;
}

.fcf-single-post__content figure.wp-block-embed,
.fcf-single-post__content figure.wp-block-video {
	margin-left: 0;
	margin-right: 0;
}

.fcf-single-post__content .wp-block-embed__wrapper,
.fcf-single-post__content .wp-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.fcf-single-post__content .wp-block-embed__wrapper iframe,
.fcf-single-post__content .wp-block-embed__wrapper video,
.fcf-single-post__content .wp-video video {
	position: absolute;
	inset: 0;
	width: 100% !important;
	max-width: none;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0;
	border: 0;
	aspect-ratio: unset;
}

/* oEmbed / editor clássico: iframe solto (sem wrapper de blocos — wp-block-library está desativado nos posts) */
.fcf-single-post__content iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: clamp(28px, 4vh, 48px) 0;
	border: 0;
	aspect-ratio: 16 / 9;
	min-height: clamp(180px, 56.25vw, 720px);
}

.fcf-single-post__content p > iframe:only-child,
.fcf-single-post__content .wp-embedded-content {
	margin-block: clamp(28px, 4vh, 48px);
}

@media (max-width: 768px) {
	.fcf-single-post {
		--fcf-single-panel-overlap: clamp(64px, 12vh, 96px);
	}

	.fcf-single-post__hero-image {
		background-position: center 18%;
	}

	.fcf-single-post__category {
		margin-bottom: 14px;
	}

	.fcf-single-post__title {
		max-width: none;
		margin-bottom: clamp(24px, 5vh, 36px) !important;
	}

	.fcf-single-post__date {
		margin-bottom: 24px;
	}
}

@media (min-width: 1000px) {
	.fcf-single-post {
		--fcf-h1-size: clamp(2.65rem, 1.45rem + 2.85vw, 4.25rem);
	}

	.fcf-single-post__title {
		max-width: min(1040px, 100%);
	}
}

/* Intro GSAP */
@media (prefers-reduced-motion: no-preference) {
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__hero-image {
		transform: scale(1.22);
		transform-origin: center center;
		will-change: transform;
	}

	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__category,
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__title,
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__date,
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__content {
		clip-path: inset(0 100% 0 0);
		will-change: clip-path;
	}

	html.fcf-single-will-animate body.has-fcf-single-post #header.ct-header {
		opacity: 0;
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__hero-image,
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__category,
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__title,
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__date,
	html.fcf-single-will-animate .fcf-single-post:not(.is-single-entered) .fcf-single-post__content,
	html.fcf-single-will-animate body.has-fcf-single-post #header.ct-header {
		opacity: 1;
		clip-path: none;
		pointer-events: auto;
	}
}
