/*
Theme Name: Cinerama Child
Theme URI: https://cinerama.qodeinteractive.com
Description: A child theme of Cinerama Theme
Author: Edge Themes
Author URI: http://themeforest.net/user/edge-themes
Version: 1.0.1
Text Domain: cinerama
Template: cinerama
*/

/* ==========================================================================
   Texto corrido: o tema usa #737373 com peso 300, pouco legível. Um pouco mais escuro.
   ========================================================================== */
body,
.edgtf-content p,
.af-projeto-sinopse,
.af-projeto-lista dt {
	color: #555;
}

/* ==========================================================================
   Ficha de projeto (single-portfolio-item.php)
   ========================================================================== */

.af-projeto-hero {
	position: relative;
	width: 100%;
	max-height: 80vh;
	overflow: hidden;
	background: #000;
}

.af-projeto-hero-img {
	display: block;
	width: 100%;
	height: 80vh;
	max-height: 80vh;
	object-fit: cover;
}

.af-projeto-header {
	padding: 70px 0 40px;
	text-align: center;
}

.af-projeto-meta {
	margin: 0 0 12px;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #666;
}

.af-projeto-title {
	margin: 0;
}

.af-projeto-sinopse {
	max-width: 760px;
	margin: 20px auto 0;
	font-size: 22px;
	font-style: italic;
	line-height: 1.5;
}

.af-projeto-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 60px;
	align-items: start;
}

.af-projeto-intro:not(:has(.af-projeto-cartaz)) {
	grid-template-columns: minmax(0, 1fr);
}

.af-projeto-cartaz img {
	display: block;
	width: 100%;
	height: auto;
}

.af-projeto-ficha {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px 30px;
	margin: 40px 0 0;
	padding: 30px 0 0;
	border-top: 1px solid rgba(128, 128, 128, 0.3);
}

.af-projeto-ficha dt,
.af-projeto-lista dd,
.af-projeto-premio-tipo {
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #666;
}

.af-projeto-ficha dd {
	margin: 4px 0 0;
}

.af-projeto-section {
	padding: 80px 0 0;
}

.af-projeto-section-title {
	margin: 0 0 30px;
	text-align: center;
}

.af-projeto-video {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.af-projeto-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Flex em vez de grid: a última linha incompleta fica centrada (pedido do cliente na reunião). */
.af-projeto-galeria-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.af-projeto-galeria-item {
	display: block;
	width: calc((100% - 20px) / 3);
}

.af-projeto-galeria-item img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: opacity 0.3s;
}

.af-projeto-galeria-item:hover img {
	opacity: 0.8;
}

.af-projeto-creditos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 60px;
}

.af-projeto-creditos-col:only-child {
	grid-column: 1 / -1;
}

.af-projeto-lista {
	margin: 0;
}

.af-projeto-lista-item {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.af-projeto-lista dd {
	margin: 0;
	text-align: right;
}

.af-projeto-producao p {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

/* Flex em vez de grid: com poucos prémios, a linha fica centrada. */
.af-projeto-premios-lista {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px 50px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.af-projeto-premio {
	flex: 0 1 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.af-projeto-premio-louro img {
	max-width: 160px;
	height: auto;
}

.af-projeto-premio-evento {
	font-weight: 600;
}

/* O tema define o holder como inline-block, o que impede o margin auto. */
.af-projeto-imprensa .edgtf-testimonials-holder {
	display: block;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.af-projeto-ligacoes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.af-projeto .edgtf-ps-navigation-holder {
	margin-top: 80px;
}

@media only screen and (max-width: 1024px) {
	.af-projeto-intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.af-projeto-cartaz {
		max-width: 420px;
		margin: 0 auto;
	}

	.af-projeto-galeria-item {
		width: calc((100% - 10px) / 2);
	}
}

@media only screen and (max-width: 680px) {
	.af-projeto-hero-img {
		height: 50vh;
	}

	.af-projeto-header {
		padding: 50px 0 30px;
	}

	.af-projeto-sinopse {
		font-size: 18px;
	}

	.af-projeto-section {
		padding-top: 60px;
	}

	.af-projeto-galeria-item {
		width: 100%;
	}

	.af-projeto-creditos {
		grid-template-columns: minmax(0, 1fr);
	}

	.af-projeto-creditos {
		gap: 40px;
	}
}

/* ==========================================================================
   Autores relacionados na ficha de projeto
   ========================================================================== */
.af-projeto-autores-lista {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.af-projeto-autor {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 160px;
	text-align: center;
}
.af-projeto-autor img {
	display: block;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter 0.3s;
}
.af-projeto-autor:hover img {
	filter: none;
}

/* ==========================================================================
   Página de autor (single-autor.php)
   ========================================================================== */
/* ==========================================================================
   Notícias: grelha de 3 cartões (home.php)
   ========================================================================== */
.af-noticias-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 50px 30px;
	padding: 70px 0 0;
}
.af-noticia {
	width: calc((100% - 60px) / 3);
}
.af-noticia-link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: inherit;
}
.af-noticia-img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin: 0 0 6px;
	transition: opacity 0.3s;
}
.af-noticia-link:hover img {
	opacity: 0.8;
}
.af-noticia-data {
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #666;
}
.af-noticia-titulo {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
}
.af-noticia-resumo {
	margin: 0;
}
.af-noticias-grid + .edgtf-blog-pagination {
	margin-top: 60px;
	text-align: center;
}
body.blog .edgtf-content {
	padding-bottom: 30px;
}
@media only screen and (max-width: 1024px) {
	.af-noticia {
		width: calc((100% - 30px) / 2);
	}
}
@media only screen and (max-width: 680px) {
	.af-noticia {
		width: 100%;
	}
}

/* Notícias relacionadas na barra lateral ([af_relacionadas]) */
.af-relacionadas {
	margin: 0;
	padding: 0;
	list-style: none;
}
.af-relacionadas li {
	margin: 0 0 22px;
}
.af-relacionada {
	display: flex;
	align-items: center;
	gap: 15px;
	color: inherit;
}
.af-relacionada-img {
	flex: 0 0 110px;
}
.af-relacionada-img img {
	display: block;
	width: 110px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: opacity 0.3s;
}
.af-relacionada:hover img {
	opacity: 0.8;
}
.af-relacionada-texto {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.af-relacionada-titulo {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #000;
}

/* Navegação entre notícias: uma só linha, um link em cada extremo, em qualquer largura. */
.edgtf-blog-single-navigation .edgtf-blog-single-navigation-inner {
	display: flex;
	justify-content: space-between;
	gap: 30px;
}
.edgtf-blog-single-navigation .edgtf-blog-single-navigation-inner::before,
.edgtf-blog-single-navigation .edgtf-blog-single-navigation-inner::after {
	display: none;
}
.edgtf-blog-single-navigation .edgtf-blog-single-prev,
.edgtf-blog-single-navigation .edgtf-blog-single-next {
	float: none;
	white-space: nowrap;
}
.edgtf-blog-single-navigation .edgtf-blog-single-next {
	margin-left: auto;
}

/* Folga antes do rodapé: mínimo de 100 px entre o fim do conteúdo e o rodapé em todas as páginas.
   O tema já dá 50 px nas fichas e 70 px nas listagens; estes valores completam o resto. */
.af-autor {
	padding-bottom: 100px;
}
.af-projeto {
	padding-bottom: 50px;
}
.tax-portfolio-category .edgtf-content {
	padding-bottom: 30px;
}
.single-post .edgtf-content {
	padding-bottom: 20px;
}
.af-autor-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 60px;
	align-items: start;
	padding: 80px 0 0;
}
.af-autor-intro:not(:has(.af-autor-retrato)) {
	grid-template-columns: minmax(0, 1fr);
}
.af-autor-retrato {
	position: sticky;
	top: 120px;
}
.af-autor-retrato img {
	display: block;
	width: 100%;
	height: auto;
}
.af-autor-header {
	margin: 0 0 30px;
}
.af-autor-nome {
	margin: 0;
}
.af-autor-funcao {
	margin: 10px 0 0;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #666;
}
.af-autor-bio p {
	margin: 0 0 1.2em;
}
/* Flex em vez de grid: os projetos ficam sempre centrados, mesmo que seja só um. */
.af-autor-projetos-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px 30px;
}
.af-autor-projeto {
	width: 240px;
}
.af-autor-projeto {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: inherit;
}
.af-autor-projeto-img img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	margin: 0 0 10px;
	transition: opacity 0.3s;
}
.af-autor-projeto:hover img {
	opacity: 0.8;
}
.af-autor-projeto-titulo {
	font-weight: 600;
	letter-spacing: 0.1em;
}
.af-autor-projeto-meta {
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #666;
}
.af-autor-filmografia .af-projeto-lista {
	max-width: 900px;
	margin: 0 auto;
}
@media only screen and (max-width: 1024px) {
	.af-autor-intro {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		padding-top: 60px;
	}
	.af-autor-retrato {
		position: static;
		max-width: 420px;
	}
}

/* ==========================================================================
   Páginas institucionais (Sobre, Contactos)
   ========================================================================== */
.af-pagina-texto {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 0 80px;
	text-align: center;
}
.af-pagina-destaque {
	font-size: 22px;
	font-style: italic;
	line-height: 1.6;
}
.af-contactos {
	padding: 40px 0 80px;
	text-align: center;
}
.af-contactos > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.af-contactos h4 {
	margin: 0 0 15px;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
@media only screen and (max-width: 768px) {
	.af-contactos > .wp-block-group__inner-container {
		grid-template-columns: minmax(0, 1fr);
	}
	.af-pagina-destaque {
		font-size: 18px;
	}
}
@media only screen and (max-width: 680px) {
	.af-autor-projetos-grid {
		gap: 30px 15px;
	}
	.af-autor-projeto {
		width: calc((100% - 15px) / 2);
	}
}

/* ==========================================================================
   Cabeçalho: seletor de idioma
   ========================================================================== */
.af-idiomas {
	display: flex;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.15em;
}
.af-idioma {
	color: #9a9a9a;
	transition: color 0.2s;
}
a.af-idioma:hover,
.af-idioma--ativo {
	color: #000;
}
/* O seletor do WPML no fundo da página fica substituído pelo do cabeçalho. */
.wpml-ls-statics-footer {
	display: none;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.af-copyright {
	margin: 0;
	text-align: center;
	font-size: 16px;
	line-height: 1.6;
	opacity: 0.85;
}

.af-copyright-dev {
	display: block;
}

.af-copyright a,
.af-copyright a:hover,
.af-copyright a:focus {
	color: inherit;
	text-decoration: underline;
}

/* ==========================================================================
   Página Autores ([af_autores])
   ========================================================================== */
.af-autores-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 50px 30px;
	padding: 40px 0 80px;
}
.af-autores-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: calc((100% - 90px) / 4);
	color: inherit;
	text-align: center;
}
.af-autores-retrato img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	margin: 0 0 12px;
	filter: grayscale(1);
	transition: filter 0.3s;
}
.af-autores-item:hover img {
	filter: none;
}
.af-autores-nome {
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.af-autores-funcao {
	font-size: 12px;
	letter-spacing: 0.1em;
	color: #666;
}
@media only screen and (max-width: 1024px) {
	.af-autores-item {
		width: calc((100% - 30px) / 2);
	}
}
@media only screen and (max-width: 480px) {
	.af-autores-item {
		width: 100%;
	}
}

/* Logótipo no cabeçalho mobile (a imagem é 2x; sem limite fica cortada). */
.edgtf-mobile-header .edgtf-mobile-logo-wrapper a {
	height: 50px !important;
}
.edgtf-mobile-header .edgtf-mobile-logo-wrapper img {
	height: 100%;
	width: auto;
}
.af-idiomas-mobile .af-idiomas {
	padding: 14px 4px;
	align-items: baseline;
}
.edgtf-mobile-nav .af-idiomas-mobile .af-idioma {
	display: inline;
	padding: 0;
	border: 0;
	margin: 0;
}

/* Trailer: o FluidVids do tema envolve o iframe num .fluidvids com altura calculada pelos
   atributos width/height. O contentor já tem 16:9, por isso o .fluidvids ocupa-o todo. */
.af-projeto-video .fluidvids {
	position: absolute;
	inset: 0;
	padding-top: 0 !important;
}

/* Louros desenhados (sem louro oficial do festival), como na maquete. */
.af-projeto-premio-corpo--louros {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.af-louro {
	flex: 0 0 auto;
	width: 42px;
	color: #000;
	line-height: 0;
}
.af-louro svg {
	display: block;
	width: 100%;
	height: auto;
}
.af-louro--dir {
	transform: scaleX(-1);
}
.af-projeto-premio-texto {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	max-width: 200px;
}

/* Navegação entre projetos: miniaturas maiores e título do projeto sob o rótulo. */
.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-prev a .edgtf-ps-nav-image,
.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-next a .edgtf-ps-nav-image {
	display: table-cell;
	width: 220px;
	vertical-align: middle;
}
.af-projeto .af-projeto-navegacao .edgtf-ps-nav-image img {
	display: block;
	width: 220px;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-prev a .edgtf-ps-nav-label,
.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-next a .edgtf-ps-nav-label {
	vertical-align: middle;
	padding: 0 25px;
}
.af-nav-titulo {
	display: block;
	margin-top: 6px;
	font-size: 15px;
	letter-spacing: 0.1em;
	color: #555;
}
/* Mobile: anterior e seguinte lado a lado, cada um com a imagem por cima do texto. */
@media only screen and (max-width: 680px) {
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
	}
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-prev,
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-next {
		float: none;
		flex: 0 0 50%;
		width: 50%;
		box-sizing: border-box;
	}
	/* Só com "seguinte", fica à direita como em desktop. */
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-next:only-child {
		margin-left: auto;
	}
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-prev {
		padding-right: 8px;
		text-align: left;
	}
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-next {
		padding-left: 8px;
		text-align: right;
	}
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-prev a,
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-next a {
		display: flex;
		flex-direction: column;
		width: 100%;
	}
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-prev a .edgtf-ps-nav-image,
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-next a .edgtf-ps-nav-image {
		display: block;
		order: 1;
		width: 100%;
	}
	.af-projeto .af-projeto-navegacao .edgtf-ps-nav-image img {
		width: 100%;
	}
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-prev a .edgtf-ps-nav-label,
	.af-projeto .af-projeto-navegacao .edgtf-ps-navigation .edgtf-ps-next a .edgtf-ps-nav-label {
		display: block;
		order: 2;
		padding: 12px 0 0;
	}
	.af-nav-titulo {
		font-size: 13px;
	}
}

/* ==========================================================================
   Ajustes mobile da ficha: imprensa e contactos
   ========================================================================== */
.af-projeto-contactos .af-projeto-lista-item:last-child {
	border-bottom: 0;
}

/* Emails legíveis: tamanho do texto corrido, sem maiúsculas e com quebra de linha.
   A entidade mantém o estilo de rótulo (pequeno, maiúsculas), o email é o valor. */
.af-projeto-contactos .af-projeto-lista dd a {
	display: inline-block;
	margin-top: 4px;
	font-size: 16px;
	text-transform: none;
	letter-spacing: 0.02em;
	color: #333;
	opacity: 1;
	overflow-wrap: anywhere;
}
.af-projeto-contactos .af-projeto-lista dd a:hover {
	color: #000;
}
@media only screen and (max-width: 680px) {
	/* O tema dá 180 px de margem lateral ao carrossel; em mobile fica uma coluna estreitíssima. */
	.af-projeto .af-projeto-imprensa .edgtf-testimonials {
		padding: 0 !important;
		overflow: hidden;
	}
	/* Folga lateral em cada slide: sem ela, a última letra do slide anterior espreitava na margem. */
	.af-projeto .af-projeto-imprensa .edgtf-testimonial-text-holder {
		box-sizing: border-box;
		padding: 0 10px;
	}
	.af-projeto .af-projeto-imprensa .edgtf-testimonials .edgtf-testimonial-text {
		font-size: 17px !important;
		line-height: 1.55 !important;
	}
	.af-projeto .af-projeto-imprensa .edgtf-testimonials .edgtf-testimonial-author {
		font-size: 13px !important;
	}
	.af-projeto-contactos .af-projeto-lista-item {
		flex-direction: column;
		gap: 6px;
	}
	.af-projeto-contactos .af-projeto-lista dd {
		text-align: left;
	}
}

/* ==========================================================================
   Ficha de projeto: título sobre a imagem de topo e cabeçalho transparente
   ========================================================================== */
.af-projeto-hero-img {
	/* Muitos stills trazem faixas pretas (2.00:1 dentro de 16:9); a ampliação esconde-as. */
	transform: scale(1.12);
}
.af-projeto-hero-sombra {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.75) 100%);
	pointer-events: none;
}
.af-projeto-hero-texto {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 70px;
	padding: 0 20px;
	text-align: center;
	color: #fff;
}
.af-projeto-hero-texto .af-projeto-meta {
	color: #fff;
	opacity: 0.85;
}
.af-projeto-hero-texto .af-projeto-title {
	margin: 0;
	color: #fff;
	font-size: clamp(38px, 6vw, 84px);
	line-height: 1.05;
}
.af-projeto-header--hero {
	padding-top: 60px;
}
.af-hero-ativo .af-projeto-hero,
.af-hero-ativo .af-projeto-hero-img {
	max-height: 88vh;
}
.af-hero-ativo .af-projeto-hero-img {
	height: 88vh;
}

/* Cabeçalho transparente (desktop) */
.af-hero-ativo .edgtf-page-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 300;
	background: transparent;
}
/* Só enquanto o cabeçalho está no topo: ao fazer scroll, o tema fixa-o (.fixed) e volta ao normal. */
.af-hero-ativo .edgtf-page-header .edgtf-fixed-wrapper:not(.fixed) .edgtf-menu-area {
	background: transparent !important;
}
.af-hero-ativo .edgtf-page-header .edgtf-fixed-wrapper:not(.fixed) .edgtf-normal-logo {
	opacity: 0 !important;
}
.af-hero-ativo .edgtf-page-header .edgtf-fixed-wrapper:not(.fixed) .edgtf-light-logo {
	opacity: 1 !important;
}
.af-hero-ativo .edgtf-page-header .edgtf-fixed-wrapper:not(.fixed) .edgtf-main-menu > ul > li > a,
.af-hero-ativo .edgtf-page-header .edgtf-fixed-wrapper:not(.fixed) .af-idioma--ativo,
.af-hero-ativo .edgtf-page-header .edgtf-fixed-wrapper:not(.fixed) a.af-idioma:hover {
	color: #fff !important;
}
.af-hero-ativo .edgtf-page-header .edgtf-fixed-wrapper:not(.fixed) .af-idioma {
	color: rgba(255, 255, 255, 0.55);
}
.af-hero-ativo .edgtf-page-header .edgtf-fixed-wrapper.fixed .edgtf-menu-area {
	background: #fff;
}
.af-hero-ativo .edgtf-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Cabeçalho transparente (mobile) */
.af-hero-ativo .edgtf-mobile-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 300;
}
.af-hero-ativo .edgtf-mobile-header .edgtf-mobile-header-inner {
	background: transparent !important;
	border-bottom: 0 !important;
}
.af-hero-ativo .edgtf-mobile-header .edgtf-mobile-logo-wrapper img {
	filter: invert(1);
}
.af-hero-ativo .edgtf-mobile-header .edgtf-mobile-menu-opener a {
	color: #fff !important;
}
/* Com o menu mobile aberto, volta ao fundo branco para se ler. */
.af-hero-ativo .edgtf-mobile-header.edgtf-animate-mobile-header .edgtf-mobile-header-inner,
.af-hero-ativo .edgtf-mobile-header .edgtf-mobile-nav {
	background: #fff !important;
}
@media only screen and (max-width: 680px) {
	.af-projeto-hero-texto {
		bottom: 40px;
	}
}

/* ==========================================================================
   Página inicial (front-page.php)
   ========================================================================== */
.af-slider {
	position: relative;
	height: 100vh;
	min-height: 560px;
	overflow: hidden;
	background: #000;
}
.af-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s;
}
.af-slide.is-ativo {
	opacity: 1;
	visibility: visible;
}
.af-slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.12);
}
.af-slide-texto {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 110px;
	z-index: 2;
	padding: 0 20px;
	text-align: center;
	color: #fff;
	pointer-events: none; /* os cliques passam para a cobertura do slide */
}
.af-slide-titulo a {
	pointer-events: auto;
}
.af-slide-texto .af-projeto-meta {
	margin: 16px 0 0;
	color: #fff;
	opacity: 0.85;
}
.af-slide-titulo {
	margin: 0;
	font-size: clamp(32px, 4.5vw, 60px);
	line-height: 1.1;
}
/* Branco também em hover e foco: o tema põe a preto os links em títulos (h2 a:hover). */
.af-slide-titulo a,
.af-slide-titulo a:hover,
.af-slide-titulo a:focus {
	color: #fff;
}
.af-slide-cobertura {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.af-slide-premios {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 34px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}
.af-slide-premio {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
}
.af-slide-premio img {
	max-height: 60px;
	width: auto;
}
.af-slide-premio .af-louro {
	width: 24px;
	color: #fff;
}
.af-slide-premio-texto {
	max-width: 150px;
	font-size: 12px;
	line-height: 1.35;
}
.af-slider-pontos {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 40px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 12px;
}
.af-slider-ponto {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.af-slider-ponto.is-ativo {
	background: #fff;
}
.af-home-titulo {
	margin: 0 0 50px;
	text-align: center;
}
.af-home-projetos {
	padding: 100px 0;
	background: #fff;
}
.af-home-projetos-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 50px 30px;
}
.af-home-projeto {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: calc((100% - 30px) / 2);
	color: #000;
	text-align: center;
}
.af-home-projeto:hover {
	color: #000;
}
.af-home-projeto-img {
	display: block;
	margin: 0 0 14px;
	overflow: hidden;
}
.af-home-projeto-img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transform: scale(1.12); /* esconde as faixas pretas dos stills, como no hero */
	transition: transform 0.5s ease;
}
.af-home-projeto:hover img {
	transform: scale(1.16);
}
.af-home-projeto-titulo {
	font-weight: 600;
	letter-spacing: 0.15em;
}
.af-home-projeto-meta {
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #666;
}
/* Conteúdo da home sempre em branco (hero escuro, conteúdo claro, rodapé escuro);
   Projetos e Notícias separados por um filete, como as secções da ficha. */
.af-home-noticias {
	padding: 0 0 100px;
	background: #fff;
}
.af-home-noticias .edgtf-container-inner {
	padding-top: 100px;
	border-top: 1px solid rgba(128, 128, 128, 0.3);
}
.af-home-projetos:has(+ .af-home-noticias) {
	padding-bottom: 100px;
}
.af-home-noticias .af-noticias-grid {
	padding-top: 0;
}
.af-home-mais {
	margin: 50px 0 0;
	text-align: center;
}
.af-home-mais a {
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #000;
}
@media only screen and (max-width: 680px) {
	.af-slider {
		height: 88vh;
	}
	.af-slide-texto {
		bottom: 80px;
	}
	.af-slider-pontos {
		bottom: 28px;
	}
	.af-slide-premios {
		gap: 10px 18px;
	}
	.af-slide-premio-texto {
		max-width: 110px;
		font-size: 11px;
	}
	.af-home-projetos {
		padding: 70px 0;
	}
	.af-home-noticias {
		padding: 0 0 70px;
	}
	.af-home-noticias .edgtf-container-inner {
		padding-top: 70px;
	}
	.af-home-projeto {
		width: 100%;
	}
}

/* ==========================================================================
   Páginas Séries e Cinema ([af_projetos])
   ========================================================================== */
.af-projetos {
	padding: 40px 0 50px;
}
.af-filtros {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 34px;
	margin: 0 0 50px;
}
.af-filtro {
	padding: 4px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #666;
	cursor: pointer;
	transition: color 0.2s;
}
.af-filtro:hover {
	color: #000;
}
.af-filtro[aria-pressed="true"] {
	border-bottom-color: #000;
	color: #000;
}
/* Flex: a última linha incompleta fica centrada (pedido do cliente na reunião). */
.af-projetos-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 50px 30px;
}
.af-projetos-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: calc((100% - 60px) / 3);
	color: inherit;
	text-align: center;
}
.af-projetos-item[hidden] {
	display: none;
}
.af-projetos-item .af-home-projeto-img img {
	transform: scale(1.12);
	transition: transform 0.5s ease;
}
.af-projetos-item:hover .af-home-projeto-img img {
	transform: scale(1.16);
}
.af-projetos-titulo {
	font-weight: 600;
	letter-spacing: 0.15em;
	color: #000;
}
.af-projetos-meta {
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #666;
}
.af-projetos-vazio {
	margin: 0;
	text-align: center;
}
@media only screen and (max-width: 1024px) {
	.af-projetos-item {
		width: calc((100% - 30px) / 2);
	}
}
@media only screen and (max-width: 680px) {
	.af-filtros {
		gap: 8px 20px;
	}
	.af-filtro {
		font-size: 12px;
		letter-spacing: 0.15em;
	}
	.af-projetos-item {
		width: 100%;
	}
}

/* ==========================================================================
   Pilotos v2 (reunião de 11/11/2026)
   ========================================================================== */

/* Tipografia: texto corrido maior e entrelinha mais apertada em desktop; rótulos com mínimo de 13 px. */
/* "html body" porque o CSS dinâmico do tema (carregado depois) define o body a 17 px. */
html body,
html body p,
html body .edgtf-content p {
	font-size: 18px;
}
@media only screen and (min-width: 1025px) {
	html body,
	html body p,
	html body .edgtf-content p {
		line-height: 1.5;
	}
}
.af-projeto-ficha dd,
.af-projeto-premio-categoria,
.af-projeto-premio-evento {
	color: #555;
}
.af-projeto-ficha dt,
.af-projeto-lista dd,
.af-projeto-premio-tipo,
.af-projeto-creditos-item dt,
.af-projeto-ficha-destaque dt,
.af-projeto-apoios-categoria,
.af-autor-projeto-meta,
.af-home-projeto-meta {
	font-size: 13px;
}

/* Topo: título e, por baixo, Série · FIC · ano. */
.af-projeto-hero-texto .af-projeto-meta,
.af-projeto-header .af-projeto-meta {
	margin: 16px 0 0;
}
.af-projeto-hero + .edgtf-container .af-projeto-intro {
	padding-top: 80px;
}

/* Ficha: Criado por / Realizado por / Com em destaque, antes da grelha. */
.af-projeto-ficha-destaque {
	margin: 35px 0 0;
}
.af-projeto-ficha-destaque-item {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	align-items: baseline;
	padding: 10px 0;
}
.af-projeto-ficha-destaque dt {
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #666;
}
.af-projeto-ficha-destaque dd {
	margin: 0;
	font-size: 21px;
	line-height: 1.4;
	color: #222;
}
.af-projeto-imdb {
	margin: 25px 0 0;
}
.af-projeto-imdb a {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid currentColor;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #333;
}

/* Elenco e equipa: seguidos, em colunas; papel/função em rótulo, nome a negrito. */
.af-projeto-creditos {
	display: block;
}
.af-projeto-creditos-lista {
	margin: 0;
	column-count: 2;
	column-gap: 60px;
}
.af-projeto-creditos-item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 20px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(128, 128, 128, 0.2);
	break-inside: avoid;
}
.af-projeto-creditos-item dt {
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #666;
}
.af-projeto-creditos-item dd {
	margin: 0;
	font-weight: 700;
	color: #333;
	text-align: right;
}
.af-projeto-creditos-item dd:only-child {
	text-align: left;
}

/* Apoios: logótipos agrupados por categoria, como nos cartazes. */
.af-projeto-apoios-grupos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px 70px;
}
.af-projeto-apoios-categoria {
	margin: 0 0 15px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #666;
	text-align: center;
}
.af-projeto-apoios-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 25px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.af-projeto-apoios-logos li {
	text-align: center;
}
/* Altura comum (40 px); largura máxima generosa para as barras de cofinanciamento (vários logótipos seguidos). */
.af-projeto-apoios-logos img {
	display: block;
	width: auto;
	max-width: 200px;
	max-height: 40px;
}
.af-projeto-apoios-texto {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

/* Festivais e prémios: "Ver tudo" abre a lista dos restantes, sem louros. */
.af-projeto-premios-mais {
	margin: 40px auto 0;
	max-width: 900px;
	text-align: center;
}
.af-projeto-premios-mais summary {
	display: inline-block;
	cursor: pointer;
	list-style: none;
	padding-bottom: 2px;
	border-bottom: 1px solid currentColor;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #333;
}
.af-projeto-premios-mais summary::-webkit-details-marker {
	display: none;
}
.af-projeto-premios-mais .af-mais-fechar,
.af-projeto-premios-mais[open] .af-mais-abrir {
	display: none;
}
.af-projeto-premios-mais[open] .af-mais-fechar {
	display: inline;
}
.af-projeto-premios-resto {
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	text-align: left;
	column-count: 2;
	column-gap: 60px;
}
.af-projeto-premios-resto li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(128, 128, 128, 0.2);
	break-inside: avoid;
}

@media only screen and (max-width: 680px) {
	.af-projeto-hero + .edgtf-container .af-projeto-intro {
		padding-top: 50px;
	}
	.af-projeto-ficha-destaque-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
	.af-projeto-ficha-destaque dd {
		font-size: 19px;
	}
	.af-projeto-creditos-lista,
	.af-projeto-premios-resto {
		column-count: 1;
	}
}

/* Notícias em grelha: título com 2 linhas reservadas e resumo até 3 linhas, para os cartões alinharem
   independentemente do tamanho de cada texto. */
.af-noticia-titulo {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}
.af-noticia-resumo {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media only screen and (max-width: 680px) {
	.af-projeto-ficha {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

/* Lightbox da galeria: o tema esconde a legenda (.pp_description) com !important; aqui volta a aparecer,
   para mostrar os créditos de cada still ("Nome - Projeto - ©Arquipélago Filmes"). */
html body .pp_pic_holder .pp_description {
	display: block !important;
	position: absolute;
	left: calc(50% + 50px);
	right: 30px;
	bottom: 50%;
	transform: translateY(50%);
	width: auto !important;
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
	text-align: right;
	color: #fff;
}
@media only screen and (max-width: 680px) {
	html body .pp_pic_holder .pp_description {
		left: calc(50% + 30px);
		right: 15px;
		font-size: 12px;
	}
}

/* Listas (filmografia): o tema dá 10 px de margem inferior aos dt, o que subia o texto dentro da linha. */
.af-projeto-lista dt,
.af-projeto-creditos-item dt,
.af-projeto-ficha-destaque dt {
	margin: 0;
}
.af-projeto-lista-item {
	align-items: center;
}

/* ==========================================================================
   Texto corrido em Mulish (13/11/2026). Títulos, menu, rótulos, ficha técnica,
   imprensa e rodapé mantêm a Josefin Sans.
   ========================================================================== */
html body .af-projeto-content p,
html body .af-projeto-content li,
html body .af-autor-bio p,
html body .af-autor-bio li,
html body .af-pagina-texto p,
html body .edgtf-content .af-noticia-resumo,
html body .edgtf-post-text-main p,
html body .edgtf-post-text-main li,
html body .edgtf-post-text-main blockquote,
html body .edgtf-post-text-main blockquote p,
.af-projeto-apoios-texto {
	font-family: "Mulish", sans-serif;
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	color: #444;
}
html body .af-pagina-texto p.af-pagina-destaque {
	font-size: 22px;
	line-height: 1.5;
}
.af-projeto-ficha-destaque dd {
	font-size: 19px;
}
@media only screen and (max-width: 680px) {
	html body .af-projeto-content p,
	html body .af-projeto-content li,
	html body .af-autor-bio p,
	html body .af-autor-bio li,
	html body .af-pagina-texto p,
	html body .edgtf-content .af-noticia-resumo,
	html body .edgtf-post-text-main p,
	html body .edgtf-post-text-main li,
	html body .edgtf-post-text-main blockquote,
	html body .edgtf-post-text-main blockquote p,
	.af-projeto-apoios-texto {
		font-size: 16px;
	}
	html body .af-pagina-texto p.af-pagina-destaque {
		font-size: 19px;
	}
	.af-projeto-ficha-destaque dd {
		font-size: 18px;
	}
}

/* Políticas de Privacidade e de Cookies */
.af-politica h2 {
	margin: 45px 0 15px;
	font-size: 22px;
}
.af-politica .wp-block-table {
	margin: 25px 0;
	overflow-x: auto;
}
.af-politica table {
	width: 100%;
	border-collapse: collapse;
	font-family: "Mulish", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #444;
}
.af-politica th,
.af-politica td {
	padding: 10px 12px;
	border: 1px solid rgba(128, 128, 128, 0.25);
	text-align: left;
	vertical-align: top;
}
.af-politica th {
	font-family: "Josefin Sans", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #666;
}
html body .af-politica li {
	font-family: "Mulish", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: #444;
	margin-bottom: 10px;
}
/* Texto legal alinhado à esquerda (as páginas de texto centram por defeito). */
.af-politica,
html body .af-politica p,
.af-politica h2 {
	text-align: left;
}
/* Em mobile, cada linha da tabela passa a um bloco, com o nome da coluna antes de cada valor. */
@media only screen and (max-width: 680px) {
	.af-politica thead {
		display: none;
	}
	.af-politica table,
	.af-politica tbody,
	.af-politica tr,
	.af-politica td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
	.af-politica tr {
		margin-bottom: 15px;
		border: 1px solid rgba(128, 128, 128, 0.25);
	}
	.af-politica td {
		border: 0;
		padding: 6px 12px;
		word-break: break-word;
	}
	.af-politica td::before {
		content: attr(data-label);
		display: block;
		font-family: "Josefin Sans", sans-serif;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: #666;
	}
}

/* Notícias: página sem notícias (home.php). */
.af-noticias-vazio {
	padding: 90px 0 110px;
	text-align: center;
}
.af-noticias-vazio p {
	margin: 0 0 15px;
}
.af-noticias-vazio a {
	text-decoration: underline;
}
