/*
Theme Name:   Gleam Child (Petricor Weddings)
Description:  Tema filho do Gleam para o site Petricor Weddings. As alterações de aspeto ficam aqui, para não se perderem quando o Gleam for atualizado.
Author:       Petricor Studio
Template:     gleam
Version:      1.0.11
Text Domain:  gleam-child
*/

/* ===== Páginas V4 (modelo "Elementor Cabeçalho e Rodapé") =====
   Papel contínuo até ao rodapé, filete, ícones escuros e texto legal com contraste AA (#6B655D sobre #FAF6F0).
   Limitado a body.page-template-elementor_header_footer: as páginas antigas não são afetadas. */
body.page-template-elementor_header_footer,
body.custom-background.page-template-elementor_header_footer { background-color: #FAF6F0; } /* 1.0.6: vence o body.custom-background (#fcf9fb) do WordPress, que deixava uma faixa rosada por cima do rodapé */
body.page-template-elementor_header_footer footer { background-color: #FAF6F0; border-top: 1px solid #D8CDBD; }
/* 1.0.5 (2026-11-19): espaço entre o filete e os ícones sociais (estavam a ~11 px da linha) */
body.page-template-elementor_header_footer footer .social-footer { margin-top: 20px; }
body.page-template-elementor_header_footer footer .social-footer a,
body.page-template-elementor_header_footer footer .social-footer i { color: #1F1C18; }
body.page-template-elementor_header_footer footer .copyright,
body.page-template-elementor_header_footer footer .copyright a { color: #6B655D; }

/* ===== Foco visível com teclado (2026-11-17, Claudia) =====
   O Gleam apaga o foco (a:focus, .menu-nav ul li > a:focus { outline: none }). Só :focus-visible: não aparece ao clicar com o rato.
   pw-petroleo #2F5F69 sobre claro; pw-papel #FAF6F0 sobre escuro; branco com halo tinta no menu sobre imagem. Hex (não var) porque as páginas antigas não têm as variáveis V4. */
:is(a, button, [role="button"], input[type="submit"], .e-button, .elementor-button, summary):focus-visible {
	outline: 2px solid #2F5F69;
	outline-offset: 3px;
}
:is(.pw-topo, .pw-fecho, .mobile-menu-holder, footer) :is(a, button, .e-button, .elementor-button):focus-visible {
	outline-color: #FAF6F0;
}
body.page-template-elementor_header_footer footer :is(a, button, .e-button, .elementor-button):focus-visible {
	outline-color: #2F5F69;
}
.menu-nav ul li > a:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #1F1C18;
	border-radius: 1px;
}
.nav-fixed-top .menu-nav ul li > a:focus-visible {
	outline-color: #2F5F69;
	outline-offset: 3px;
	box-shadow: none;
}
/* Resto do cabeçalho sobre imagem (logótipo, botão do menu, ícones sociais): o mesmo anel do menu. */
.main-header :is(a, button):focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #1F1C18;
}
.main-header.nav-fixed-top :is(a, button):focus-visible {
	outline-color: #2F5F69;
	outline-offset: 3px;
	box-shadow: none;
}
.menu-mobile li a:focus-visible {
	outline: 2px solid #FAF6F0;
	outline-offset: 2px;
}
.wpcf7 :is(input:not([type="submit"]), textarea, select):focus-visible {
	outline: 2px solid #2F5F69;
	outline-offset: 2px;
}
.wpcf7 .wpcf7-submit:focus-visible {
	outline: 2px solid #2F5F69;
	outline-offset: 3px;
}
:is(.cmplz-cookiebanner, #cmplz-manage-consent) :is(a, button, .cmplz-btn):focus-visible {
	outline: 2px solid #2F5F69;
	outline-offset: 3px;
}
/* O contorno aparece logo: o Gleam anima "all" nos links e botões (0,3–1 s), incluindo o outline. */
:is(a, button, [role="button"], input, textarea, select, summary):focus-visible {
	transition: none;
}
/* Menu fechado fora do percurso do Tab: o painel do Gleam fica só fora do ecrã (translateX), por isso os links continuavam focáveis e invisíveis.
   visibility muda no fim da animação de fecho (0,7 s) e logo no início da de abertura. */
.mobile-menu-holder {
	visibility: hidden;
	transition: transform 0.7s cubic-bezier(0.25, 1, 0.35, 1), opacity 0.7s cubic-bezier(0.25, 1, 0.35, 1), visibility 0s linear 0.7s;
}
.mobile-menu-holder.is-active {
	visibility: visible;
	transition-delay: 0s;
}
/* O X do menu passa a botão focável (js/pw-menu.js, 1.0.4): o mesmo contorno papel dos links do painel. */
.mobile-menu-holder .exit-mobile:focus-visible {
	outline: 2px solid #FAF6F0;
	outline-offset: 4px;
}

/* ===== Menu do topo branco sobre a fotografia (2026-11-18) =====
   As Homes e as políticas têm a classe no-top-image, mas têm fotografia no topo; o Gleam pinta aí o menu de #151515.
   O CSS adicional só corrigia o PT (#menu-menu-pt-1 a) e pintava também o submenu da língua, que tem fundo branco.
   Aqui: primeiro nível branco (PT e EN), sublinhado branco, e o submenu volta às cores do Gleam. */
:is(#menu-menu-pt-1, #menu-menu-eng-1) > li > a {
	color: #FFFFFF;
}
:is(#menu-menu-pt-1, #menu-menu-eng-1) > li > a:before {
	border-color: #FFFFFF;
}
:is(#menu-menu-pt-1, #menu-menu-eng-1) ul li > a {
	color: #0E1219;
}
:is(#menu-menu-pt-1, #menu-menu-eng-1) ul li > a:hover {
	color: #8BB8C1;
}
/* Submenu da língua também com teclado: o Gleam só o abre com :hover. O contorno dentro dele (fundo branco) é petróleo. */
.menu-nav li:focus-within > ul {
	display: block;
}
.menu-nav ul li > a:focus-visible {
	outline-color: #2F5F69;
	box-shadow: none;
}
/* Mesma causa no telemóvel e no tablet: em no-top-image o Gleam pinta de escuro o botão do menu e os ícones do cabeçalho.
   Todas as páginas com no-top-image deste site têm fotografia ou vídeo no topo (verificado a 2026-11-18). */
.no-top-image .main-header .icon-bar,
.no-top-image .main-header .icon-bar::before,
.no-top-image .main-header .icon-bar::after {
	background: #FFFFFF;
}
.no-top-image .main-header .social-media li a {
	color: #FFFFFF;
}

/* ===== Grelha do portefólio dentro das páginas V4 (Histórias, Início; 2026-11-18, Claudia) =====
   O filtro do Gleam vinha em Gilroy maiúsculas e o ativo em #8BB8C1 (contraste 2:1). Passa a Figtree, texto #4D4842,
   ativo #1F1C18 com filete barro. Títulos dos cartões em Newsreader. Só nas páginas V4. */
body.page-template-elementor_header_footer .portfolio-filter a {
	font-family: Figtree, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: none;
	color: #4D4842; padding: 8px 2px; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
body.page-template-elementor_header_footer .portfolio-filter a:hover,
body.page-template-elementor_header_footer .portfolio-filter a.current {
	color: #1F1C18; border-bottom-color: #9A4F32;
}
body.page-template-elementor_header_footer .port-caption h2 {
	font-family: Newsreader, serif; font-weight: 400; letter-spacing: -.01em;
}
body.page-template-elementor_header_footer .portfolio-categ li {
	font-family: Figtree, sans-serif; letter-spacing: .04em;
}

/* ===== Vídeo de topo e vídeos-GIF (Início V4, 2026-11-18, Claudia) =====
   O vídeo vive num widget "html" dentro do pw-topo; o invólucro do widget fica por baixo do véu (z 1) e o botão por cima (z 3).
   Contraste do botão: papel sobre noite a 0,8 ≈ 7:1, mesmo sobre vídeo claro. */
.elementor-widget-html:has(.pw-video-topo) { position: absolute; inset: 0; margin: 0; z-index: auto !important; }
.pw-video-topo { position: absolute; inset: 0; }
.pw-video-topo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: 0; background: #1E2A2D; }
.pw-video-topo .pw-video-pausa { position: absolute; right: 40px; bottom: 28px; z-index: 3; }
.pw-video-pausa {
	font-family: Figtree, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .04em; line-height: 1;
	color: #FAF6F0; background: rgba(30,42,45,.8); border: 1px solid rgba(250,246,240,.6);
	border-radius: 2px; padding: 9px 14px; min-height: 32px; cursor: pointer; transition: background-color .2s ease;
}
.pw-video-pausa:hover { background: #1E2A2D; }
.pw-video-pausa--claro { color: #1F1C18; background: transparent; border-color: #1F1C18; margin-top: 20px; }
.pw-video-pausa--claro:hover { color: #FAF6F0; background: #1F1C18; }
/* Botão dos vídeos-GIF só com ícone (1.0.7, 2026-11-19; decisão do Rui "Discreto", aspeto da Claudia).
   A classe --icone é posta pelo js/pw-video.js; sem JavaScript fica o botão de texto acima. Cinza #6B655D sobre papel ≈ 5,4:1. */
.pw-video-pausa--icone {
	position: relative; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; margin-top: 12px;
	border-radius: 50%; color: #6B655D; background: transparent; border: 1px solid #6B655D;
	transition: color .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
}
.pw-video-pausa--icone:hover { color: #1F1C18; background: transparent; border-color: #1F1C18; }
.pw-video-pausa--icone:focus-visible { outline: 2px solid #1E2A2D; outline-offset: 3px; }
.pw-video-pausa--icone:active { transform: scale(.94); }
.pw-video-pausa--icone svg { display: block; width: 12px; height: 12px; fill: currentColor; }
.pw-gifs-bloco { display: flex; flex-direction: column; align-items: flex-end; }
.pw-gifs { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
.pw-gif { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pw-gif video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1E2A2D; }
.pw-gif figcaption { font-family: Figtree, sans-serif; font-size: 13px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; color: #6B655D; }
.pw-gif figcaption strong { font-weight: 600; color: #1F1C18; }
/* Título sobre o vídeo do Início: mais pequeno e em itálico (pedido do Rui, 2026-11-18). Só no topo com vídeo. */
.pw-topo:has(.pw-video-topo) h1 { font-size: 40px; font-style: italic; line-height: 1.15; letter-spacing: -.005em; }
@media (max-width: 767px) {
	.pw-video-topo .pw-video-pausa { right: 20px; bottom: 10px; }
	.pw-gifs { grid-template-columns: 1fr; gap: 24px; }
	.pw-video-pausa--icone { margin-top: 16px; }
	.pw-video-pausa--icone::before { content: ""; position: absolute; inset: -6px; } /* área de toque 44×44 */
	.pw-topo:has(.pw-video-topo) h1 { font-size: 28px; }
}

/* ===== Páginas das histórias, modelo V4 "sala escura" (single match_portfolio; 1.0.11, 2026-11-20) =====
   Desenho: Claudia (design-historia-v4.md). Substitui o bloco 1.0.10. Estrutura no single-match_portfolio.php do tema filho.
   Tokens V4 em hex (as histórias não têm as variáveis do Elementor): noite #1E2A2D, papel #FAF6F0, areia #EFE7DA, tinta #1F1C18,
   texto #4D4842, texto-suave #6B655D, petróleo #2F5F69, barro #9A4F32, chuva #8BB8C1 (só sobre noite), filete #D8CDBD.
   Prefixo #wrap-content.pw-historia: vence o "#wrap-content p" do Gleam sem !important.
   Eixo de leitura: o texto corrido começa a 42 % do contentor (34 % + 8 %); rótulos e frase de abertura à esquerda. */
body.single-match_portfolio,
body.custom-background.single-match_portfolio { background-color: #FAF6F0; }
#wrap-content.pw-historia { --pw-eixo: 42%; color: #4D4842; font-family: 'Figtree', sans-serif; }
.pw-historia-contentor { max-width: 1280px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }

/* 1. Topo noite com o h1 (o cabeçalho do Gleam fica por cima, transparente) */
.pw-historia-topo { background-color: #1E2A2D; padding: 180px 0 0; }
.pw-historia:not(.pw-historia--filme) .pw-historia-topo { padding-bottom: 72px; }
#wrap-content.pw-historia h1.pw-historia-titulo {
	max-width: 900px; margin: 0; color: #FAF6F0;
	font-family: 'Newsreader', Georgia, serif; font-size: 64px; font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; text-transform: none;
}
.pw-historia-vazio { color: #EFE7DA; padding-bottom: 96px; }

/* Faixas noite de largura total dentro do contentor (sessão, filme das antigas, chamada) */
#wrap-content.pw-historia .pw-sessao,
#wrap-content.pw-historia.pw-historia--filme .page-holder > figure.wp-block-embed:first-of-type > .wp-block-embed__wrapper,
#wrap-content.pw-historia .pw-chamada {
	background-color: #1E2A2D; box-shadow: 0 0 0 100vmax #1E2A2D; clip-path: inset(-1px -100vmax); /* -1px: sem fresta clara por arredondamento */
}

/* 2. Sessão: linha de dados + filme (novas) */
#wrap-content.pw-historia .pw-sessao { margin: 0; padding: 20px 0 96px; }
#wrap-content.pw-historia .pw-sessao > .wp-block-group__inner-container > :last-child,
#wrap-content.pw-historia .pw-sessao > :last-child { margin-bottom: 0; }
#wrap-content.pw-historia .page-holder p.pw-linha-dados {
	margin: 0; color: #EFE7DA; font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: 0.02em;
}
#wrap-content.pw-historia .page-holder p.pw-linha-dados em { color: #FAF6F0; font-family: 'Newsreader', Georgia, serif; font-size: 19px; font-weight: 400; font-style: italic; letter-spacing: 0; }
#wrap-content.pw-historia .pw-sessao .wp-block-embed { margin: 48px 0 0; }
/* Filme das antigas (primeiro Embed do conteúdo) */
#wrap-content.pw-historia.pw-historia--filme .page-holder > figure.wp-block-embed:first-of-type { margin: 0; padding: 0; }
#wrap-content.pw-historia.pw-historia--filme .page-holder > figure.wp-block-embed:first-of-type > .wp-block-embed__wrapper { margin: 0; padding: 48px 0 96px; }
#wrap-content.pw-historia.pw-historia--filme .page-holder > figure.wp-block-embed:first-of-type > figcaption { max-width: 640px; margin: 72px 0 0 var(--pw-eixo); color: #4D4842; font-family: 'Figtree', sans-serif; font-size: 17px; font-style: normal; line-height: 1.7; text-align: left; }
#wrap-content.pw-historia .page-holder > p:empty { display: none; }
/* Fachada do vídeo sobre noite: aviso em areia, ligação chuva; botão de play papel */
#wrap-content.pw-historia .pw-fachada { margin: 0; }
#wrap-content.pw-historia .pw-fachada__aviso,
#wrap-content.pw-historia .page-holder p.pw-fachada__aviso { margin: 12px 0 0; color: #EFE7DA; font-family: 'Figtree', sans-serif; font-size: 13px; line-height: 1.5; }
#wrap-content.pw-historia .page-holder p.pw-fachada__aviso a:not(.wp-block-button__link) { color: #8BB8C1; text-decoration: underline; text-underline-offset: 3px; }
#wrap-content.pw-historia .page-holder p.pw-fachada__aviso a:not(.wp-block-button__link):hover { color: #FAF6F0; }
#wrap-content.pw-historia .pw-fachada__play { background: rgba(250, 246, 240, 0.92); color: #1F1C18; box-shadow: none; transition: background-color 0.2s ease; }
#wrap-content.pw-historia .pw-fachada__botao:hover .pw-fachada__play { background: #FAF6F0; transform: none; }
#wrap-content.pw-historia .pw-fachada__botao:focus-visible { outline: 2px solid #FAF6F0; outline-offset: -6px; }
#wrap-content.pw-historia .pw-fachada__botao:focus-visible .pw-fachada__play { outline: 2px solid #FAF6F0; outline-offset: 4px; }
#wrap-content.pw-historia :is(.pw-sessao, .pw-chamada, .pw-historia-topo, .page-holder > figure.wp-block-embed:first-of-type > .wp-block-embed__wrapper) :is(a, button):focus-visible { outline-color: #FAF6F0; }

/* Texto corrido (novas e antigas): no eixo, até 640 px */
#wrap-content.pw-historia .page-holder p,
#wrap-content.pw-historia .page-holder li { color: #4D4842; font-family: 'Figtree', sans-serif; font-size: 17px; line-height: 1.7; }
#wrap-content.pw-historia .page-holder > p { max-width: 640px; margin: 0 0 24px var(--pw-eixo); }
#wrap-content.pw-historia .page-holder > p.has-text-align-center { margin-left: auto; margin-right: auto; }
#wrap-content.pw-historia:not(.pw-historia--filme) .page-holder { padding-top: 72px; }
#wrap-content.pw-historia .page-holder > figure.wp-block-embed:first-of-type + p:not(:empty) { margin-top: 72px; }
#wrap-content.pw-historia .page-holder :is(p, li, figcaption) a:not(.wp-block-button__link) { color: #2F5F69; text-decoration: underline; text-underline-offset: 3px; }
#wrap-content.pw-historia .page-holder :is(p, li, figcaption) a:not(.wp-block-button__link):hover { color: #1F1C18; }
#wrap-content.pw-historia .pw-sessao p a:not(.wp-block-button__link) { color: #8BB8C1; }
#wrap-content.pw-historia .page-holder figure > figcaption { color: #6B655D; font-size: 14px; }

/* 3. Relato: frase de abertura à esquerda, parágrafos no eixo */
#wrap-content.pw-historia .pw-relato { display: flow-root; margin: 96px 0 0; }
#wrap-content.pw-historia .pw-relato p { max-width: 640px; margin: 0 0 24px var(--pw-eixo); }
#wrap-content.pw-historia .pw-relato p:last-child { margin-bottom: 0; }
#wrap-content.pw-historia .pw-relato p.pw-abertura {
	float: left; width: 34%; max-width: none; margin: 0;
	color: #1F1C18; font-family: 'Newsreader', Georgia, serif; font-size: 26px; font-style: italic; font-weight: 400; line-height: 1.4;
}

/* 4. Fotogramas: um largo, dois lado a lado */
#wrap-content.pw-historia .wp-block-gallery.pw-fotogramas {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 96px 0 0; padding: 0;
}
#wrap-content.pw-historia .wp-block-gallery.pw-fotogramas > figure.wp-block-image { width: auto !important; margin: 0 !important; flex: none; }
#wrap-content.pw-historia .wp-block-gallery.pw-fotogramas > figure.wp-block-image:nth-child(3n+1),
#wrap-content.pw-historia .wp-block-gallery.pw-fotogramas > figure.wp-block-image:nth-child(3n+2):last-child { grid-column: 1 / -1; }
#wrap-content.pw-historia .wp-block-gallery.pw-fotogramas img { display: block; width: 100%; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
#wrap-content.pw-historia .wp-block-gallery.pw-fotogramas figcaption { display: none; }
/* Galerias das antigas */
#wrap-content.pw-historia .page-holder > .wp-block-gallery:not(.pw-fotogramas):not(:first-child) { margin-top: 72px; margin-bottom: 24px; }

/* 5. Testemunho */
#wrap-content.pw-historia blockquote.pw-testemunho {
	max-width: 640px; margin: 96px 0 0 var(--pw-eixo); padding: 24px 0 0; border: 0; position: relative; letter-spacing: 0;
}
#wrap-content.pw-historia blockquote.pw-testemunho::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 2px; background: #9A4F32; transform: none; }
#wrap-content.pw-historia blockquote.pw-testemunho p { max-width: none; margin: 0; color: #1F1C18; font-family: 'Newsreader', Georgia, serif; font-size: 26px; font-style: italic; line-height: 1.4; }
#wrap-content.pw-historia blockquote.pw-testemunho cite { display: block; margin-top: 16px; color: #6B655D; font-family: 'Figtree', sans-serif; font-size: 15px; font-style: normal; text-transform: none; letter-spacing: 0; line-height: 1.5; }

/* 6–7. Créditos e Outras histórias: rótulo à esquerda, lista no eixo */
#wrap-content.pw-historia :is(.pw-creditos, .pw-outras) { display: flow-root; }
#wrap-content.pw-historia .pw-creditos { margin: 96px 0 0; padding-top: 48px; border-top: 1px solid #D8CDBD; }
#wrap-content.pw-historia .pw-outras { margin: 48px 0 0; }
#wrap-content.pw-historia :is(.pw-creditos, .pw-outras) h2 {
	float: left; width: 34%; margin: 0; color: #9A4F32;
	font-family: 'Newsreader', Georgia, serif; font-size: 19px; font-style: italic; font-weight: 400; line-height: 1.3; letter-spacing: 0; text-transform: none;
}
#wrap-content.pw-historia :is(.pw-creditos, .pw-outras) ul { margin: 0 0 0 var(--pw-eixo); padding: 0; list-style: none; }
#wrap-content.pw-historia .pw-creditos ul { columns: 2; column-gap: 32px; }
#wrap-content.pw-historia .pw-creditos li { margin: 0 0 8px; font-size: 15px; line-height: 1.6; break-inside: avoid; }
#wrap-content.pw-historia .pw-outras ul { max-width: 640px; }
#wrap-content.pw-historia .pw-outras li { margin: 0; padding: 16px 0; border-top: 1px solid #D8CDBD; }
#wrap-content.pw-historia .pw-outras li:last-child { border-bottom: 1px solid #D8CDBD; }
#wrap-content.pw-historia .pw-outras li a:not(.wp-block-button__link) {
	color: #1F1C18; font-family: 'Newsreader', Georgia, serif; font-size: 24px; line-height: 1.3;
	text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color 0.2s ease;
}
/* Claudia 2026-11-20: sem sublinhado em repouso (os filetes já marcam a lista); sublinhado petróleo no hover e no foco */
#wrap-content.pw-historia .pw-outras li a:not(.wp-block-button__link):is(:hover, :focus-visible) { color: #2F5F69; text-decoration: underline; text-decoration-color: #2F5F69; }

/* 8. "Ver todas as histórias" (PHP) */
#wrap-content.pw-historia .page-holder > p.pw-historia-todas { margin: 40px 0 0 var(--pw-eixo); }
#wrap-content.pw-historia.pw-historia--antiga .page-holder > p.pw-historia-todas { margin-top: 72px; }
#wrap-content.pw-historia .page-holder p.pw-historia-todas a.pw-ligacao {
	color: #2F5F69; font-family: 'Figtree', sans-serif; font-size: 17px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease;
}
#wrap-content.pw-historia .page-holder p.pw-historia-todas a.pw-ligacao:hover { color: #1F1C18; }

/* 9. Chamada final (conteúdo pw-chamada nas novas; genérica nas antigas) */
#wrap-content.pw-historia .pw-chamada { margin: 120px 0 0; padding: 120px 0; }
#wrap-content.pw-historia .pw-chamada > .wp-block-group__inner-container,
#wrap-content.pw-historia .pw-chamada:not(:has(> .wp-block-group__inner-container)) { padding-left: var(--pw-eixo); }
#wrap-content.pw-historia .pw-chamada h2 {
	margin: 0; color: #FAF6F0; font-family: 'Newsreader', Georgia, serif; font-size: 48px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; text-transform: none;
}
#wrap-content.pw-historia .page-holder .pw-chamada p { max-width: 640px; margin: 16px 0 0; color: #EFE7DA; }
#wrap-content.pw-historia .pw-chamada .wp-block-buttons { margin: 32px 0 0; }
#wrap-content.pw-historia .pw-chamada .wp-block-button__link {
	display: inline-flex; align-items: center; padding: 16px 28px; border: 1px solid #EFE7DA; border-radius: 2px;
	background-color: #EFE7DA; color: #1F1C18; font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2; text-transform: none;
	text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease;
}
#wrap-content.pw-historia .pw-chamada .wp-block-button__link:hover { background-color: #FFFFFF; border-color: #FFFFFF; color: #1F1C18; }

/* Rodapé claro, colado à chamada */
body.single-match_portfolio footer { margin-top: 0; padding-top: 20px; background-color: #FAF6F0; border-top: 0; }
body.single-match_portfolio footer .social-footer { margin-top: 0; }
body.single-match_portfolio footer .social-footer a,
body.single-match_portfolio footer .social-footer i { color: #1F1C18; }
body.single-match_portfolio footer .copyright,
body.single-match_portfolio footer .copyright a { color: #6B655D; }
body.single-match_portfolio footer :is(a, button, .e-button, .elementor-button):focus-visible { outline-color: #2F5F69; }

@media (prefers-reduced-motion: reduce) {
	#wrap-content.pw-historia * { transition: none !important; }
}

/* Telemóvel */
@media (max-width: 767px) {
	.pw-historia-contentor { padding: 0 20px; }
	.pw-historia-topo { padding-top: 140px; }
	.pw-historia:not(.pw-historia--filme) .pw-historia-topo { padding-bottom: 48px; }
	#wrap-content.pw-historia h1.pw-historia-titulo { font-size: 38px; line-height: 1.08; }
	#wrap-content.pw-historia .pw-sessao { padding: 16px 0 56px; }
	#wrap-content.pw-historia .page-holder p.pw-linha-dados { font-size: 14px; }
	#wrap-content.pw-historia .page-holder p.pw-linha-dados em { font-size: 17px; }
	#wrap-content.pw-historia .pw-sessao .wp-block-embed { margin: 32px -20px 0; }
	#wrap-content.pw-historia.pw-historia--filme .page-holder > figure.wp-block-embed:first-of-type > .wp-block-embed__wrapper { margin: 0 -20px; padding: 32px 0 56px; }
	#wrap-content.pw-historia.pw-historia--filme .page-holder > figure.wp-block-embed:first-of-type > figcaption { margin: 48px 0 0; font-size: 16px; line-height: 1.65; }
	#wrap-content.pw-historia .page-holder p.pw-fachada__aviso { padding: 0 20px; font-size: 12px; }
	#wrap-content.pw-historia .pw-fachada__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
	#wrap-content.pw-historia .pw-fachada__botao:focus-visible { outline-offset: -4px; }
	#wrap-content.pw-historia .page-holder p,
	#wrap-content.pw-historia .page-holder li { font-size: 16px; line-height: 1.65; }
	#wrap-content.pw-historia .page-holder > p,
	#wrap-content.pw-historia .pw-relato p { margin-left: 0; }
	#wrap-content.pw-historia:not(.pw-historia--filme) .page-holder { padding-top: 48px; }
	#wrap-content.pw-historia .page-holder > figure.wp-block-embed:first-of-type + p:not(:empty) { margin-top: 48px; }
	#wrap-content.pw-historia .pw-relato { margin-top: 56px; }
	#wrap-content.pw-historia .pw-relato p.pw-abertura { float: none; width: auto; margin: 0 0 24px; font-size: 20px; }
	#wrap-content.pw-historia .wp-block-gallery.pw-fotogramas { gap: 8px; margin-top: 56px; }
	#wrap-content.pw-historia .page-holder > .wp-block-gallery:not(.pw-fotogramas):not(:first-child) { margin-top: 48px; }
	#wrap-content.pw-historia blockquote.pw-testemunho { margin: 56px 0 0; }
	#wrap-content.pw-historia blockquote.pw-testemunho::before { width: 40px; }
	#wrap-content.pw-historia blockquote.pw-testemunho p { font-size: 20px; }
	#wrap-content.pw-historia blockquote.pw-testemunho cite { font-size: 14px; }
	#wrap-content.pw-historia .pw-creditos { margin-top: 56px; padding-top: 40px; }
	#wrap-content.pw-historia :is(.pw-creditos, .pw-outras) h2 { float: none; width: auto; margin: 0 0 16px; font-size: 17px; }
	#wrap-content.pw-historia :is(.pw-creditos, .pw-outras) ul { margin-left: 0; }
	#wrap-content.pw-historia .pw-creditos ul { columns: 1; }
	#wrap-content.pw-historia .pw-outras li a:not(.wp-block-button__link) { font-size: 21px; }
	#wrap-content.pw-historia .page-holder > p.pw-historia-todas { margin-left: 0; font-size: 16px; }
	#wrap-content.pw-historia.pw-historia--antiga .page-holder > p.pw-historia-todas { margin-top: 48px; }
	#wrap-content.pw-historia .page-holder p.pw-historia-todas a.pw-ligacao { font-size: 16px; }
	#wrap-content.pw-historia .pw-chamada { margin-top: 72px; padding: 72px 0; }
	#wrap-content.pw-historia .pw-chamada > .wp-block-group__inner-container,
	#wrap-content.pw-historia .pw-chamada:not(:has(> .wp-block-group__inner-container)) { padding-left: 0; }
	#wrap-content.pw-historia .pw-chamada h2 { font-size: 32px; }
	#wrap-content.pw-historia .page-holder .pw-chamada p { font-size: 16px; line-height: 1.65; }
	#wrap-content.pw-historia .pw-chamada .wp-block-button__link { padding: 15px 24px; }
}
