/* =====================================================================
   Páginas internas (Serviços / Projetos) — estilo herdado da home.
   Enfileirado por functions.php. As classes .proj, .proj-figure, .play,
   .sec-head, .kicker, etc. vêm do style.css principal.
   ===================================================================== */

/* ---- cabeçalho da página (afasta do header fixo) ---- */
.page-intro {
	padding: clamp(8rem, 18vh, 12rem) 0 clamp(1.5rem, 3vh, 2.5rem);
}
.page-title {
	font-family: var(--serif);
	font-weight: 300;
	font-size: clamp(2.6rem, 6vw, 5rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	margin: 1.3rem 0 0;
	max-width: 18ch;
}
/* Título dourado da página (em Cormorant; substitui o título duplicado) */
.page-kicker {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(2rem, 4vw, 3.1rem);
	letter-spacing: 0.1em;
	line-height: 1.1;
	color: var(--gold-soft);
	margin: 0;
}
.page-lead {
	font-size: 16px;
	color: var(--white);
	line-height: 1.9;
	max-width: 54ch;
	margin-top: 1.6rem;
}
.page-grid-sec {
	padding-top: clamp(1rem, 3vh, 2rem);
}

/* ---- intro da página Sobre: texto à esquerda, imagem vertical ao longo do texto ---- */
.sobre-intro {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: stretch;
}
.sobre-intro-text {
	min-width: 0;
}
.sobre-intro-text .page-kicker {
	margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}
.sobre-intro-text .entry-content {
	max-width: none;
}
.sobre-intro-img {
	position: relative;
	min-height: 460px;
}
.sobre-intro-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 820px) {
	.sobre-intro {
		grid-template-columns: 1fr;
		gap: clamp(1.6rem, 5vw, 2.4rem);
	}
	.sobre-intro-img {
		position: relative;
		aspect-ratio: 3 / 4;
		min-height: 0;
		max-width: 420px;
	}
}

/* ---- grelha geral de projetos (uniforme) ---- */
.proj-grid-all {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.4rem, 2.6vw, 2.4rem);
}
.proj-grid-all .proj-figure {
	aspect-ratio: 4 / 5;
}
.proj-ph {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--noir-3), var(--noir-2));
}
@media (max-width: 900px) {
	.proj-grid-all {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.proj-grid-all {
		grid-template-columns: 1fr;
	}
}

/* ---- grelha geral de serviços (mesmo padrão do bloco da home) ---- */
.page-servicos .svc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(2rem, 5vw, 5rem);
	row-gap: 0;
	border-top: 1px solid var(--hair);
}
.page-servicos .svc-cell {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	padding: clamp(1.4rem, 2.4vh, 2rem) 0;
	border-bottom: 1px solid var(--hair);
}
.page-servicos .svc-text {
	min-width: 0;
}
.page-servicos .svc-cell h4 {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(1.25rem, 1.8vw, 1.6rem);
	line-height: 1.2;
	margin: 0 0 0.45rem;
	color: var(--white);
}
.page-servicos .svc-cell p {
	font-size:16px;
	color: var(--white);
	line-height: 1.8;
	margin: 0;
	max-width: 46ch;
}
@media (max-width: 900px) {
	.page-servicos .svc-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- filtros de projetos ---- */
.proj-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.7rem;
	margin-bottom: clamp(2rem, 4vh, 3rem);
}
.proj-filter {
	font-family: var(--sans);
	font-size:16px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 241, 234, 0.55);
	background: transparent;
	border: 1px solid var(--hair);
	padding: 0.62em 1.15em;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.35s, border-color 0.35s, background 0.35s;
}
.proj-filter:hover {
	color: var(--white);
	border-color: var(--gold-soft);
}
.proj-filter.is-active {
	color: var(--noir);
	background: var(--gold);
	border-color: var(--gold);
}
.proj-filter-sep {
	width: 1px;
	height: 1.3em;
	background: var(--hair);
	margin: 0 0.3rem;
}
.proj.is-hidden {
	display: none;
}

/* ---- destaque dourado nos títulos dos serviços ---- */
#servicos .svc-cell h4,
.page-servicos .svc-cell h4 {
	color: var(--gold);
	font-size: clamp(1.35rem, 2vw, 1.8rem);
}

/* ---- serviços (página): layout editorial numerado, alternado ---- */
.svc-editorial { display: flex; flex-direction: column; gap: clamp(3rem, 8vh, 5.5rem); }
.svc-ed-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc-ed-text { padding-top: 0.4rem; }
.svc-ed-item.is-flipped .svc-ed-text { order: 2; }
.svc-ed-item.is-flipped .svc-ed-media { order: 1; }
.svc-ed-num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold-soft); opacity: 0.55; line-height: 1; display: block; margin-bottom: 0.9rem; }
.svc-ed-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.6rem); color: var(--gold); line-height: 1.14; margin: 0 0 1rem; }
.svc-ed-desc { font-size: 16px; color: var(--white); line-height: 1.9; margin: 0; max-width: 52ch; }
.svc-ed-media { position: relative; min-height: clamp(300px, 42vh, 440px); }
.svc-ed-img-a { position: absolute; top: 0; left: 0; width: 76%; height: 88%; object-fit: cover; }
.svc-ed-img-b { position: absolute; right: 0; bottom: 0; width: 44%; height: 56%; object-fit: cover; border: 6px solid var(--noir); }
.gallery-carousel.gc-svc { padding: 0; }
.gallery-carousel.gc-svc .gc-track { animation-duration: 55s; }
.gallery-carousel.gc-svc .gc-track img { height: clamp(170px, 24vh, 280px); }

/* ---- página de plataforma (F Luxury / F Club) ---- */
.plataforma-body { margin-top: clamp(1.6rem, 4vh, 2.6rem); max-width: 760px; }
.plataforma-video { max-width: 920px; margin: 0; }
.plataforma-cta { padding-top: clamp(2rem, 4vh, 3rem); }

/* corpo de texto do projeto (fp_texto) */
.proj-texto { margin-bottom: clamp(2rem, 4vh, 3rem); }

/* ===== página individual de projeto ===== */
.proj-hero { position: relative; min-height: clamp(360px, 62vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.proj-hero-bg { position: absolute; inset: 0; }
.proj-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.proj-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--noir) 2%, rgba(11, 11, 11, 0.55) 38%, rgba(11, 11, 11, 0.15) 100%); }
.proj-hero-inner { position: relative; z-index: 2; padding-top: clamp(7rem, 15vh, 9rem); padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.proj-back { display: inline-block; margin-bottom: 1.4rem; }
.proj-hero-cat { margin: 0; }
.proj-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.04; letter-spacing: -0.01em; margin: 0.7rem 0 0; max-width: 20ch; }
.proj-body .proj-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.55; color: var(--white); max-width: 64ch; margin: 0 0 clamp(2rem, 4vh, 3rem); }
.proj-video { margin: 0 0 clamp(2rem, 4vh, 3rem); max-width: 920px; }
.proj-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* fachada de vídeo (miniatura + play; iframe injetado no clique) */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--noir-2); cursor: pointer; }
.video-poster { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.2,.65,.25,1), opacity .4s; }
.video-embed:hover .video-poster { transform: scale(1.03); opacity: .82; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; width: 74px; height: 74px; border-radius: 50%; background: rgba(11,11,11,.5); border: 1px solid var(--gold-soft); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background .35s, border-color .35s; }
.video-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent var(--white); }
.video-embed:hover .video-play { background: var(--gold); border-color: var(--gold); }
.video-embed:hover .video-play::after { border-left-color: var(--noir); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.is-playing { cursor: default; }
.proj-back-bottom { margin-top: clamp(2.5rem, 5vh, 4rem); }

/* ===== conteúdo do editor de blocos ===== */
.entry-content { max-width: 760px; }
.entry-content > * { margin-top: 1.5rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { font-size: 18px; line-height: 1.85; color: var(--white); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--serif); font-weight: 400; color: var(--white); line-height: 1.18; margin-top: 2.6rem; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.entry-content h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content figure { margin: 2.2rem 0; }
.entry-content img { height: auto; max-width: 100%; }
.entry-content figcaption { font-size: 16px; color: var(--w-30); margin-top: 0.6rem; text-align: center; }
.entry-content blockquote, .entry-content .wp-block-quote { border-left: 2px solid var(--gold-soft); padding-left: 1.5rem; margin: 2.6rem 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.4; color: var(--white); }
.entry-content blockquote cite, .entry-content .wp-block-quote cite { display: block; margin-top: 1rem; font-size: 16px; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
/* Galeria de projeto — masonry limpo, largura total (não recorta as fotos).
   Vence o CSS do bloco de galeria do core com selector mais específico + !important. */
.single-projeto .entry-content { max-width: none; }
.single-projeto .entry-content > p,
.single-projeto .entry-content > h2,
.single-projeto .entry-content > h3,
.single-projeto .entry-content > h4,
.single-projeto .entry-content > ul,
.single-projeto .entry-content > ol,
.single-projeto .entry-content > blockquote,
.single-projeto .entry-content > .wp-block-quote { max-width: 760px; }
.entry-content .wp-block-gallery.has-nested-images {
	display: block !important;
	columns: 3;
	column-gap: 0.8rem;
	gap: 0 !important;
	margin: 2.6rem 0 0;
	padding: 0;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image {
	display: block !important;
	width: auto !important;
	margin: 0 0 0.8rem !important;
	break-inside: avoid;
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: auto !important;
	display: block;
}
@media (max-width: 900px) { .entry-content .wp-block-gallery.has-nested-images { columns: 2; } }
@media (max-width: 520px) { .entry-content .wp-block-gallery.has-nested-images { columns: 1; } }
.entry-content .wp-block-embed { margin: 2.2rem 0; }
.entry-content .wp-block-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ===== slide de imagens do projeto (imagem ativa grande + miniaturas) ===== */
.proj-slider { margin-top: clamp(2.4rem, 5vh, 3.6rem); }
.ps-stage { position: relative; width: 100%; height: clamp(420px, 58vh, 640px); background: var(--noir-2); overflow: hidden; }
.ps-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.5s ease; }
.ps-slide.is-active { opacity: 1; }
.ps-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border: 0; background: rgba(11, 11, 11, 0.45); color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; transition: background 0.3s; }
.ps-nav:hover { background: rgba(11, 11, 11, 0.8); }
.ps-prev { left: 0; }
.ps-next { right: 0; }
.ps-thumbs { display: flex; gap: 0.55rem; overflow-x: auto; margin-top: 0.7rem; padding-bottom: 0.4rem; }
.ps-thumb { flex: 0 0 auto; width: 92px; height: 92px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0.45; transition: opacity 0.3s; }
.ps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-thumb.is-active, .ps-thumb:hover { opacity: 1; }
@media (max-width: 560px) { .ps-thumb { width: 68px; height: 68px; } }

/* ===== contactos ===== */
.contact-intro .email { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--gold-soft); border-bottom: 1px solid rgba(217, 178, 88, 0.4); padding-bottom: 0.12em; transition: color 0.35s, border-color 0.35s; display: inline-block; margin-top: 1.6rem; }
.contact-intro .email:hover { color: var(--gold); border-color: var(--gold); }
.contact-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.contact-intro-text { min-width: 0; }
.contact-intro-img { position: relative; }
.contact-intro-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
@media (max-width: 820px) {
	.contact-intro-grid { grid-template-columns: 1fr; gap: clamp(1.6rem, 5vw, 2.4rem); }
	.contact-intro-img { max-width: 560px; }
}
.contact-offices-block + .contact-form-wrap { margin-top: clamp(2.6rem, 6vh, 4.5rem); }
.contact-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.contact-offices .office b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; display: block; margin-bottom: 0.5rem; color: var(--white); }
.contact-offices .office span { font-size: 16px; color: var(--white); line-height: 1.8; display: block; }
.office-card { border: 1px solid var(--hair); background: var(--noir-2); padding: clamp(1.4rem, 2.6vw, 2.1rem); }
@media (max-width: 760px) {
	.contact-offices { grid-template-columns: 1fr; gap: 1.2rem; }
	.entry-content .wp-block-gallery { grid-template-columns: 1fr; }
}

/* cartões de projeto clicáveis */
.proj-link { display: flex; flex-direction: column; gap: 1.1rem; color: inherit; text-decoration: none; }

/* ===== formulário de contacto (Contact Form 7) — largura total ===== */
.contact-form-wrap { width: 100%; }
.contact-form-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--white); margin: 0 0 1.6rem; }
.contact-form-wrap form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.contact-form-wrap .fp-field:has(textarea),
.contact-form-wrap .fp-submit,
.contact-form-wrap .wpcf7-response-output { grid-column: 1 / -1; }
.fp-field { margin-bottom: 1.2rem; }
.fp-field label { display: block; font-size: 16px; letter-spacing: 0.06em; color: var(--gold-soft); margin-bottom: 0.5rem; }
.contact-form-wrap .wpcf7-form-control-wrap { display: block; }
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
	width: 100%;
	background: var(--noir-2);
	border: 1px solid var(--hair);
	color: var(--white);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	padding: 0.85em 1em;
	transition: border-color 0.3s;
}
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus { outline: none; border-color: var(--gold-soft); }
.contact-form-wrap textarea { min-height: 150px; resize: vertical; }
.fp-submit { margin-top: 0.4rem; }
.contact-form-wrap .wpcf7-submit {
	background: var(--gold);
	color: var(--noir);
	border: 0;
	cursor: pointer;
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.9em 1.9em;
	transition: background 0.3s;
}
.contact-form-wrap .wpcf7-submit:hover { background: #f0d78c; }
.contact-form-wrap .wpcf7-spinner { margin: 0 0 0 0.6rem; }
.contact-form-wrap .wpcf7-response-output { border: 1px solid var(--hair) !important; color: var(--white); margin: 1.4rem 0 0 !important; padding: 0.9em 1.1em !important; font-size: 16px; }
.contact-form-wrap .wpcf7-not-valid-tip { color: #e7b8b8; font-size: 16px; margin-top: 0.4rem; }
.contact-form-wrap .wpcf7-not-valid { border-color: #9c5a5a !important; }
@media (max-width: 600px) {
	.contact-form-wrap form { grid-template-columns: 1fr; }
	/* cabeçalhos de página: menos espaço no topo (o header é baixo no telemóvel) */
	.page-intro { padding: clamp(6rem, 15vh, 7.5rem) 0 1.1rem; }
	.page-grid-sec { padding-top: 0.4rem; }
	/* grelha de projetos: cartões mais limpos (imagem + categoria + título) */
	.proj-card-desc { display: none; }
	.proj-grid-all { gap: 1.3rem; }
	/* slide de imagens mais compacto */
	.ps-stage { height: clamp(320px, 52vh, 460px); }
	.ps-thumb { width: 60px; height: 60px; }
	/* serviços editoriais: empilhar texto + colagem */
	.svc-ed-item { grid-template-columns: 1fr; gap: 1.4rem; }
	.svc-ed-item.is-flipped .svc-ed-text { order: 1; }
	.svc-ed-item.is-flipped .svc-ed-media { order: 2; }
	.svc-ed-media { min-height: clamp(240px, 52vw, 320px); }
	.svc-editorial { gap: clamp(2.4rem, 7vh, 3.4rem); }
	/* contactos: espaçamentos mais justos */
	.contact-intro-grid { gap: 1.4rem; }
	.contact-offices-block + .contact-form-wrap { margin-top: clamp(2rem, 5vh, 3rem); }
}
