/* ==========================================================================
   Duval Sobreira — estilos do site
   Preto e branco, Barlow, linhas finas e a diagonal do símbolo como motivo.
   ========================================================================== */

:root {
	--ds-black: #141414;
	--ds-ink: #232323;
	--ds-text: #474747;
	--ds-muted: #7a7874;
	--ds-line: #e4e2dd;
	--ds-line-strong: #c9c6bf;
	--ds-soft: #f5f4f1;
	--ds-error: #a3281f;
	--ds-font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ds-gutter: clamp(20px, 4.5vw, 64px);
	--ds-max: 1360px;
	--ds-wide: 1240px;
	--ds-content: 760px;
	--ds-header-h: 88px;
	--ds-section: clamp(72px, 10vw, 150px);
	--ds-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 781px) {
	:root { --ds-header-h: 70px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ds-header-h) + 24px);
}

body {
	margin: 0;
	background: #fff;
	color: var(--ds-text);
	font-family: var(--ds-font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }

a {
	color: var(--ds-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	transition: color .2s, opacity .2s;
}
a:hover { color: var(--ds-black); }

:focus-visible { outline: 2px solid var(--ds-black); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--ds-black);
	font-family: var(--ds-font);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem); font-weight: 300; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.2em; }
strong, b { font-weight: 600; color: var(--ds-ink); }
address { font-style: normal; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none;
	width: auto; height: auto;
	top: 12px; left: 12px; z-index: 1000;
	padding: 12px 18px;
	background: #fff;
	color: var(--ds-black);
	font-weight: 600;
}

.container {
	width: 100%;
	max-width: calc(var(--ds-max) + 2 * var(--ds-gutter));
	margin-inline: auto;
	padding-inline: var(--ds-gutter);
}

.site-main { display: block; outline: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, background-color .3s;
}
@supports (backdrop-filter: blur(1px)) {
	.site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header.is-scrolled { border-bottom-color: var(--ds-line); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: var(--ds-header-h);
}

.brand {
	display: inline-flex;
	align-items: flex-end;
	gap: 10px;
	color: var(--ds-black);
	text-decoration: none;
}
.brand:hover { color: var(--ds-black); }
.brand__symbol { flex: none; width: auto; height: 50px; }
.brand__name {
	padding-bottom: 5px;
	font-size: 1.1875rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.005em;
	white-space: nowrap;
}
.brand__name strong { color: inherit; font-weight: 700; }
.custom-logo-link { display: inline-flex; }
.custom-logo { width: auto; max-height: 60px; }

@media (max-width: 781px) {
	.brand__symbol { height: 40px; }
	.brand__name { padding-bottom: 4px; font-size: 1.0625rem; }
}

.site-nav__list {
	display: flex;
	gap: clamp(20px, 3vw, 44px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	position: relative;
	display: block;
	padding: 8px 0;
	color: var(--ds-ink);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}
.site-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .5s var(--ds-ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: left;
}

.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ds-black);
	cursor: pointer;
}
.menu-toggle__lines { position: relative; display: block; width: 28px; height: 17px; }
.menu-toggle__lines span {
	position: absolute;
	right: 0;
	height: 1.5px;
	background: currentColor;
	transition: transform .45s var(--ds-ease), width .45s var(--ds-ease), top .45s var(--ds-ease), opacity .2s;
}
.menu-toggle__lines span:nth-child(1) { top: 0; width: 100%; }
.menu-toggle__lines span:nth-child(2) { top: 7.5px; width: 64%; }
.menu-toggle__lines span:nth-child(3) { top: 15px; width: 82%; }
.menu-toggle:hover .menu-toggle__lines span { width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(1) { top: 7.5px; width: 100%; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(3) { top: 7.5px; width: 100%; transform: rotate(-45deg); }

@media (max-width: 959px) {
	.site-nav { display: none; }
	.menu-toggle { display: inline-flex; }
}

/* Sem JavaScript: o menu fica visível em linha, em vez do botão. */
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 959px) {
	html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 14px; }
	html:not(.js) .site-nav { display: block; width: 100%; }
	html:not(.js) .site-nav__list { flex-wrap: wrap; gap: 4px 20px; }
}

/* Painel do menu (telemóvel e tablet) */
.menu-panel {
	position: fixed;
	top: var(--ds-panel-top, var(--ds-header-h));
	left: 0; right: 0; bottom: 0;
	z-index: 99;
	overflow-y: auto;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s var(--ds-ease), visibility .35s;
}
.menu-panel[hidden] { display: none; }
/* Ao abrir, a visibilidade muda logo (sem transição) para o foco poder entrar no painel. */
.menu-panel.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ds-ease), visibility 0s; }
.menu-panel__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	min-height: 100%;
	padding-block: 24px 36px;
}
.menu-panel__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ds-line); }
.menu-panel__list li {
	border-bottom: 1px solid var(--ds-line);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .5s var(--ds-ease), transform .5s var(--ds-ease);
	transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.menu-panel.is-open .menu-panel__list li { opacity: 1; transform: none; }
.menu-panel__list a {
	display: block;
	padding: 18px 0;
	color: var(--ds-black);
	font-size: clamp(1.75rem, 7vw, 2.5rem);
	font-weight: 300;
	letter-spacing: -.015em;
	line-height: 1.15;
	text-decoration: none;
}
.menu-panel__list a[aria-current="page"] { font-weight: 500; }
.menu-panel__contacts { display: flex; flex-direction: column; gap: 6px; font-size: 1rem; }
.menu-panel__contacts > a { color: var(--ds-text); text-decoration: none; }
.menu-panel__contacts .social { margin-top: 14px; }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Conteúdo das páginas (blocos)
   -------------------------------------------------------------------------- */

.entry-content { padding-bottom: var(--ds-section); }
.entry-content::after { content: ""; display: table; clear: both; }

/* Coluna de texto alinhada à esquerda da grelha larga (composição assimétrica). */
.entry-content > * {
	width: min(calc(100% - 2 * var(--ds-gutter)), var(--ds-content));
	margin: 0 auto 1.5rem max(var(--ds-gutter), calc((100% - var(--ds-wide)) / 2));
}
.entry-content > .alignwide {
	width: min(calc(100% - 2 * var(--ds-gutter)), var(--ds-wide));
	margin-inline: auto;
}
.entry-content > .alignfull { width: 100%; max-width: none; margin-inline: 0; }

.entry-content > h2,
.entry-content > .wp-block-heading {
	margin-top: 2.6rem;
	margin-bottom: .9rem;
	font-size: clamp(1.4rem, 1.2rem + .8vw, 1.875rem);
}
.entry-content > h3 { margin-top: 2rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content ul:not([class]), .entry-content ol:not([class]) { padding-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }

.entry-content .wp-block-columns { gap: clamp(32px, 5vw, 80px); margin-bottom: 1.5rem; }
.entry-content .wp-block-column > :last-child { margin-bottom: 0; }

.is-style-ds-sobretitulo,
.entry-content .is-style-ds-sobretitulo {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	color: var(--ds-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1.3;
	text-transform: uppercase;
}
.is-style-ds-sobretitulo::before {
	content: "";
	flex: none;
	width: 26px;
	height: 1px;
	background: currentColor;
	transform: rotate(-45deg);
}

.is-style-ds-destaque,
.entry-content .is-style-ds-destaque {
	color: var(--ds-ink);
	font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -.005em;
}

.ds-display,
.entry-content .ds-display {
	margin: 0;
	font-size: clamp(2.125rem, 1.35rem + 2.8vw, 3.625rem);
	font-weight: 300;
	line-height: 1.06;
	letter-spacing: -.025em;
}

.ds-nota, .entry-content .ds-nota { margin-top: 3rem; color: var(--ds-muted); font-size: .875rem; }

/* Botões */
.entry-content .wp-block-buttons { gap: 12px; margin-top: 2rem; }
.entry-content .wp-block-button__link,
.ds-button {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 17px 30px;
	border: 1px solid var(--ds-black);
	border-radius: 0;
	background: var(--ds-black);
	color: #fff;
	font-family: var(--ds-font);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s;
}
.entry-content .wp-block-button__link:hover,
.ds-button:hover { background: transparent; color: var(--ds-black); }
.ds-button .ds-icon { width: 20px; height: 20px; transition: transform .35s var(--ds-ease); }
.ds-button:hover .ds-icon { transform: translateX(4px); }

.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--ds-black); }
.entry-content .is-style-outline .wp-block-button__link:hover { background: var(--ds-black); color: #fff; }

.entry-content .is-style-ds-seta .wp-block-button__link {
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--ds-black);
}
.entry-content .is-style-ds-seta .wp-block-button__link::after {
	content: "";
	width: 38px;
	height: 1px;
	background: currentColor;
	transition: width .45s var(--ds-ease);
}
.entry-content .is-style-ds-seta .wp-block-button__link:hover { background: none; color: var(--ds-black); }
.entry-content .is-style-ds-seta .wp-block-button__link:hover::after { width: 60px; }

/* Tabelas */
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
	padding: 14px 18px 14px 0;
	border: 0;
	border-bottom: 1px solid var(--ds-line);
	text-align: left;
	vertical-align: top;
}
.entry-content .wp-block-table th {
	border-bottom-color: var(--ds-black);
	color: var(--ds-ink);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.entry-content .wp-block-table td:first-child { color: var(--ds-ink); font-weight: 500; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Topo das páginas interiores
   -------------------------------------------------------------------------- */

.page-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(56px, 9vw, 132px) 0;
	margin-bottom: clamp(48px, 6vw, 88px);
}
.page-hero::after {
	content: "";
	position: absolute;
	top: -40%;
	right: 14%;
	width: 1px;
	height: 190%;
	background: var(--ds-line-strong);
	transform: rotate(45deg);
	transform-origin: center;
	pointer-events: none;
}
.page-hero__inner {
	position: relative;
	max-width: calc(var(--ds-wide) + 2 * var(--ds-gutter));
	padding-bottom: clamp(32px, 4vw, 56px);
}
.page-hero__inner::after {
	content: "";
	position: absolute;
	left: var(--ds-gutter);
	right: var(--ds-gutter);
	bottom: 0;
	height: 1px;
	background: var(--ds-line);
}
.page-hero__title { max-width: 18ch; margin: 0; }

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	color: var(--ds-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.breadcrumb li { display: flex; align-items: center; gap: 12px; }
.breadcrumb li + li::before {
	content: "";
	width: 16px;
	height: 1px;
	background: currentColor;
	transform: rotate(-45deg);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--ds-black); }

/* --------------------------------------------------------------------------
   Página inicial
   -------------------------------------------------------------------------- */

.ds-home .entry-content { padding-bottom: 0; }

.entry-content .ds-section { margin-block: 0; padding-block: var(--ds-section); }
.entry-content .ds-section + .ds-section { padding-top: 0; }

.ds-intro .wp-block-columns { margin-bottom: clamp(56px, 7vw, 104px); }
.ds-intro .wp-block-column:last-child { padding-top: clamp(0px, 3vw, 44px); }

/* Áreas de atuação */
.entry-content .is-style-ds-areas {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ds-line);
	border-bottom: 1px solid var(--ds-line);
	counter-reset: ds-area;
}
.entry-content .is-style-ds-areas li {
	counter-increment: ds-area;
	margin: 0;
	padding: 28px 20px 30px;
	color: var(--ds-black);
	font-size: clamp(1.0625rem, .95rem + .45vw, 1.375rem);
	line-height: 1.25;
}
.entry-content .is-style-ds-areas li:first-child { padding-left: 0; }
.entry-content .is-style-ds-areas li + li { border-left: 1px solid var(--ds-line); }
.entry-content .is-style-ds-areas li::before {
	content: counter(ds-area, decimal-leading-zero);
	display: block;
	margin-bottom: 12px;
	color: var(--ds-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
}
@media (max-width: 781px) {
	.entry-content .is-style-ds-areas { grid-template-columns: 1fr; border-bottom: 0; }
	.entry-content .is-style-ds-areas li,
	.entry-content .is-style-ds-areas li:first-child {
		display: flex;
		align-items: baseline;
		gap: 20px;
		padding: 18px 0;
		border-left: 0;
		border-bottom: 1px solid var(--ds-line);
	}
	.entry-content .is-style-ds-areas li + li { border-left: 0; }
	.entry-content .is-style-ds-areas li::before { margin: 0; min-width: 24px; }
}

/* Cabeçalho de secção: título à esquerda, ligação à direita */
.entry-content .ds-section-head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	column-gap: 24px;
	margin-bottom: clamp(32px, 4vw, 56px);
}
.entry-content .ds-section-head > * { margin: 0; }
.entry-content .ds-section-head .is-style-ds-sobretitulo { grid-column: 1 / -1; margin-bottom: 18px; }
.entry-content .ds-section-head .wp-block-buttons { margin: 0; }
@media (max-width: 600px) {
	.entry-content .ds-section-head { grid-template-columns: 1fr; row-gap: 12px; }
}

/* Painel escuro (chamada para contacto) */
.entry-content .is-style-ds-painel {
	position: relative;
	overflow: hidden;
	margin-block: 0;
	padding-block: var(--ds-section);
	background: var(--ds-black);
	color: rgba(255, 255, 255, .72);
}
.entry-content .is-style-ds-painel::before {
	content: "";
	position: absolute;
	top: -35%;
	right: 16%;
	width: 1px;
	height: 170%;
	background: rgba(255, 255, 255, .13);
	transform: rotate(45deg);
	pointer-events: none;
}
.entry-content .is-style-ds-painel > * {
	position: relative;
	width: min(calc(100% - 2 * var(--ds-gutter)), var(--ds-wide));
	margin-inline: auto;
}
.entry-content .is-style-ds-painel h2,
.entry-content .is-style-ds-painel h3,
.entry-content .is-style-ds-painel strong { color: #fff; }
.entry-content .is-style-ds-painel a { color: #fff; }
.entry-content .is-style-ds-painel .is-style-ds-sobretitulo { color: rgba(255, 255, 255, .5); }
.entry-content .is-style-ds-painel .wp-block-button__link { border-color: #fff; background: #fff; color: var(--ds-black); }
.entry-content .is-style-ds-painel .wp-block-button__link:hover { background: transparent; color: #fff; }
.entry-content .is-style-ds-painel .ds-display { margin-bottom: 24px; }
.entry-content .ds-cta .wp-block-columns { align-items: flex-end; }

.entry-content .ds-cta__big {
	margin-bottom: 1.2rem;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	font-weight: 300;
	line-height: 1.35;
	letter-spacing: -.01em;
}
.entry-content .ds-cta__big a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ds-ease); }
.entry-content .ds-cta__big a:hover { background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   Galerias
   -------------------------------------------------------------------------- */

/* Slider de destaque */
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider {
	position: relative;
	display: block;
	height: clamp(440px, calc(100vh - var(--ds-header-h)), 980px);
	margin: 0;
	overflow: hidden;
	background: var(--ds-soft);
}
@supports (height: 100svh) {
	.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider { height: clamp(440px, calc(100svh - var(--ds-header-h)), 980px); }
}
.admin-bar .entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider { height: clamp(440px, calc(100vh - var(--ds-header-h) - 32px), 980px); }
/* Telemóvel: as fotografias são horizontais — um slider de ecrã inteiro cortava-as
 * demasiado e escondia que há conteúdo por baixo. */
@media (max-width: 781px) {
	.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider,
	.admin-bar .entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider { height: clamp(400px, 72vh, 640px); }
	@supports (height: 100svh) {
		.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider,
		.admin-bar .entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider { height: clamp(400px, 72svh, 640px); }
	}
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .16) 32%, rgba(0, 0, 0, 0) 58%);
	pointer-events: none;
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider figure.wp-block-image:not(#ds) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	transition: opacity 1.4s ease;
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider figure.wp-block-image:first-child:not(#ds),
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider.is-ready figure.wp-block-image.is-active:not(#ds) { opacity: 1; z-index: 1; }
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider.is-ready figure.wp-block-image:not(.is-active):not(#ds) { opacity: 0; z-index: 0; }
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider figure.wp-block-image:not(#ds) img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.07);
	transition: transform 8s cubic-bezier(.25, .46, .45, .94);
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider figure.wp-block-image.is-active:not(#ds) img,
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider:not(.is-ready) figure.wp-block-image:first-child:not(#ds) img { transform: scale(1); }

.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider .blocks-gallery-caption {
	position: absolute;
	left: max(var(--ds-gutter), calc((100% - var(--ds-wide)) / 2));
	bottom: clamp(32px, 6vw, 72px);
	z-index: 3;
	max-width: min(15ch, 70%);
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -.02em;
	text-align: left;
	text-shadow: 0 1px 30px rgba(0, 0, 0, .2);
}

.ds-slider__controls {
	position: absolute;
	right: max(var(--ds-gutter), calc((100% - var(--ds-wide)) / 2));
	bottom: clamp(32px, 6vw, 72px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
}
.ds-slider__btn {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .55);
	background: rgba(0, 0, 0, .12);
	color: #fff;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s;
}
.ds-slider__btn:hover { border-color: #fff; background: #fff; color: var(--ds-black); }
.ds-slider__btn .ds-icon { width: 22px; height: 22px; }
.ds-slider__btn--prev .ds-icon { transform: rotate(180deg); }
.ds-slider__count {
	min-width: 76px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.ds-slider__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 3;
	width: 100%;
	height: 2px;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left;
}
.ds-slider__progress.is-running { animation: ds-progress var(--ds-slide-ms, 6500ms) linear forwards; }
.is-paused .ds-slider__progress.is-running,
.is-focus .ds-slider__progress.is-running { animation-play-state: paused; }
.is-paused .ds-slider__progress { opacity: .5; }
@keyframes ds-progress { to { transform: scaleX(1); } }

@media (max-width: 600px) {
	.ds-slider__controls { right: auto; left: var(--ds-gutter); bottom: 24px; }
	.entry-content .wp-block-gallery.has-nested-images.is-style-ds-slider .blocks-gallery-caption { bottom: 96px; max-width: 80%; }
	.ds-slider__btn { width: 44px; height: 44px; }
}

/* Grelha de projetos (página inicial) */
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-grelha {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(12px, 1.6vw, 24px);
	margin: 0;
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-grelha figure.wp-block-image:not(#ds) {
	display: block;
	width: auto;
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--ds-soft);
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-grelha figure.wp-block-image:not(#ds) a { display: block; width: 100%; height: 100%; }
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-grelha figure.wp-block-image:not(#ds) img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ds-ease), opacity .4s;
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-grelha figure.wp-block-image:not(#ds) a:hover img { transform: scale(1.045); }
@media (max-width: 781px) {
	.entry-content .wp-block-gallery.has-nested-images.is-style-ds-grelha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.entry-content .wp-block-gallery.has-nested-images.is-style-ds-grelha { grid-template-columns: 1fr; }
	.entry-content .wp-block-gallery.has-nested-images.is-style-ds-grelha figure.wp-block-image:not(#ds) { aspect-ratio: 4 / 3; }
}

/* Mosaico (galeria completa): linhas justificadas, fotografias sem cortes */
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-mosaico {
	--ds-row: clamp(170px, 21vw, 330px);
	display: flex;
	flex-wrap: wrap;
	gap: clamp(6px, .8vw, 12px);
	margin-top: clamp(24px, 3vw, 40px);
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-mosaico::after {
	content: "";
	flex-grow: 999999;
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-mosaico figure.wp-block-image:not(#ds) {
	display: block;
	flex-grow: calc(var(--ds-r, 1.5) * 100);
	flex-basis: calc(var(--ds-r, 1.5) * var(--ds-row));
	width: auto;
	max-width: 100%;
	margin: 0;
	aspect-ratio: var(--ds-r, 1.5);
	overflow: hidden;
	background: var(--ds-soft);
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-mosaico figure.wp-block-image:not(#ds) a { display: block; width: 100%; height: 100%; }
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-mosaico figure.wp-block-image:not(#ds) img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ds-ease), filter .4s;
}
.entry-content .wp-block-gallery.has-nested-images.is-style-ds-mosaico figure.wp-block-image:not(#ds) a:hover img { transform: scale(1.03); }
@media (max-width: 600px) {
	.entry-content .wp-block-gallery.has-nested-images.is-style-ds-mosaico { --ds-row: 150px; }
}

.entry-content [data-ds-lightbox] a { cursor: zoom-in; }

.ds-galeria-intro { max-width: 46ch; }

/* --------------------------------------------------------------------------
   Sobre o Atelier
   -------------------------------------------------------------------------- */

.entry-content .ds-sobre { gap: clamp(40px, 7vw, 120px); }
.entry-content .ds-sobre__simbolo {
	position: sticky;
	top: calc(var(--ds-header-h) + 48px);
	align-self: flex-start;
}
.entry-content .ds-sobre__simbolo .wp-block-image { margin: 0; }
.entry-content .ds-sobre__simbolo img { display: block; width: 100%; max-width: 360px; }
@media (max-width: 781px) {
	.entry-content .ds-sobre__simbolo { position: static; }
	.entry-content .ds-sobre__simbolo img { max-width: 132px; }
}

.entry-content .is-style-ds-cronologia {
	display: grid;
	grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
	column-gap: clamp(24px, 4vw, 56px);
	margin-top: clamp(40px, 5vw, 64px);
	border-bottom: 1px solid var(--ds-line);
}
.entry-content .is-style-ds-cronologia > * { margin: 0; }
.entry-content .is-style-ds-cronologia > h3 {
	grid-column: 1;
	padding: 26px 0;
	border-top: 1px solid var(--ds-line);
	color: var(--ds-black);
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1.2;
}
.entry-content .is-style-ds-cronologia > p {
	grid-column: 2;
	padding: 29px 0 28px;
	border-top: 1px solid var(--ds-line);
}
@media (max-width: 600px) {
	.entry-content .is-style-ds-cronologia { grid-template-columns: 1fr; }
	.entry-content .is-style-ds-cronologia > h3 { padding-bottom: 6px; }
	.entry-content .is-style-ds-cronologia > p { grid-column: 1; padding-top: 0; border-top: 0; }
}

.entry-content .ds-cta-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	margin-top: clamp(64px, 8vw, 120px);
	padding-top: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--ds-line);
}
.entry-content .ds-cta-inline > * { margin: 0; }
.entry-content .ds-cta-inline__text {
	color: var(--ds-black);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
	font-weight: 300;
	letter-spacing: -.015em;
	line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Contactos e formulário
   -------------------------------------------------------------------------- */

.entry-content .ds-contactos { gap: clamp(40px, 7vw, 120px); }
.entry-content .ds-contactos h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.entry-content .ds-contactos__form { padding: clamp(28px, 4vw, 56px); background: var(--ds-soft); }

.entry-content .ds-lista-contactos {
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ds-line);
}
.entry-content .ds-lista-contactos li {
	position: relative;
	margin: 0;
	padding: 22px 0 22px 44px;
	border-bottom: 1px solid var(--ds-line);
	color: var(--ds-ink);
	line-height: 1.6;
}
.entry-content .ds-lista-contactos li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 24px;
	width: 24px;
	height: 24px;
	background: var(--ds-black);
	-webkit-mask: var(--ds-ico) center / contain no-repeat;
	mask: var(--ds-ico) center / contain no-repeat;
}
.entry-content .ds-lista-contactos a { text-decoration: none; }
.entry-content .ds-lista-contactos a:hover { text-decoration: underline; }
.entry-content .ds-lista-contactos .ds-i-morada a {
	display: inline-block;
	margin-top: 8px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
}
.entry-content .ds-lista-contactos .ds-i-morada a:hover { text-decoration: none; }
.ds-i-morada { --ds-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 21s-6.5-6.1-6.5-11a6.5 6.5 0 0 1 13 0c0 4.9-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E"); }
.ds-i-telefone { --ds-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M5 3.8h3.2l1.6 4-2 1.3a10.6 10.6 0 0 0 5.1 5.1l1.3-2 4 1.6V17a2 2 0 0 1-2.2 2A15.4 15.4 0 0 1 3 6a2 2 0 0 1 2-2.2z'/%3E%3C/svg%3E"); }
.ds-i-email { --ds-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M3.5 5.5h17v13h-17z'/%3E%3Cpath d='m3.5 6 8.5 7 8.5-7'/%3E%3C/svg%3E"); }

.ds-form { position: relative; }
.ds-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ds-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.ds-field { display: flex; flex-direction: column; margin: 0; }
.ds-field--nome, .ds-field--mensagem, .ds-field--rgpd { grid-column: 1 / -1; }
.ds-field > label {
	margin-bottom: 4px;
	color: var(--ds-ink);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ds-req { color: var(--ds-muted); }
.ds-field input[type="text"],
.ds-field input[type="email"],
.ds-field input[type="tel"],
.ds-field textarea {
	width: 100%;
	padding: 10px 0 12px;
	border: 0;
	border-bottom: 1px solid var(--ds-line-strong);
	border-radius: 0;
	background: transparent;
	color: var(--ds-black);
	font: inherit;
	font-size: 1.0625rem;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .25s, box-shadow .25s;
}
.ds-field textarea { min-height: 150px; resize: vertical; }
.ds-field input:focus,
.ds-field textarea:focus {
	outline: none;
	border-bottom-color: var(--ds-black);
	box-shadow: 0 1px 0 0 var(--ds-black);
}
.ds-field.has-error input,
.ds-field.has-error textarea { border-bottom-color: var(--ds-error); box-shadow: 0 1px 0 0 var(--ds-error); }
.ds-field__error { min-height: 1.5em; margin-top: 4px; color: var(--ds-error); font-size: .8125rem; line-height: 1.4; }

.ds-field--rgpd {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	column-gap: 14px;
	align-items: start;
	margin-top: 10px;
}
.ds-field--rgpd > label {
	margin: 0;
	color: var(--ds-text);
	font-size: .9375rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.55;
	text-transform: none;
}
.ds-field--rgpd .ds-field__error { grid-column: 2; }
.ds-field--rgpd input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	border: 1px solid var(--ds-ink);
	border-radius: 0;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color .2s;
}
.ds-field--rgpd input[type="checkbox"]:checked {
	background: var(--ds-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ds-field--rgpd.has-error input[type="checkbox"] { border-color: var(--ds-error); }

.ds-form__submit { margin-top: 18px; }
.ds-form.is-sending .ds-form__submit { opacity: .55; pointer-events: none; }

.ds-form__status { display: none; margin-bottom: 28px; padding: 14px 18px; border-left: 3px solid; font-size: .9375rem; line-height: 1.5; outline: none; }
.ds-form__status.is-success { display: block; border-color: #2f6b3a; background: #eef5ee; color: #1e4a27; }
.ds-form__status.is-error { display: block; border-color: var(--ds-error); background: #fbeeec; color: #7a1d16; }

@media (max-width: 600px) {
	.ds-form__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Lista de artigos, 404
   -------------------------------------------------------------------------- */

.post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ds-line); }
.post-list__item a { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--ds-line); text-decoration: none; }
.post-list__title { color: var(--ds-black); font-size: 1.25rem; }
.post-list time, .entry-meta { color: var(--ds-muted); font-size: .875rem; }

.not-found { padding-block: clamp(72px, 12vw, 180px); text-align: center; }
.not-found__symbol { width: 72px; height: auto; margin-bottom: 28px; color: var(--ds-black); }
.not-found__code { margin: 0 0 8px; color: var(--ds-muted); font-size: .8125rem; font-weight: 600; letter-spacing: .2em; }
.not-found__title { margin-bottom: 16px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.not-found__links a { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer { padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--ds-line); font-size: .9375rem; }
.ds-home .site-footer { border-top: 0; }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 40px;
	padding-bottom: clamp(48px, 6vw, 80px);
}
.site-footer__symbol { width: 40px; height: auto; margin-bottom: 20px; color: var(--ds-black); }
.site-footer__name { margin: 0 0 6px; color: var(--ds-black); font-size: 1.25rem; line-height: 1.2; }
.site-footer__name strong { color: inherit; font-weight: 700; }
.site-footer__tagline { margin: 0; color: var(--ds-muted); }
.site-footer__title {
	margin: 0 0 16px;
	color: var(--ds-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.site-footer address { margin-bottom: 12px; color: var(--ds-ink); }
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li + li { margin-top: 6px; }
.site-footer a { color: var(--ds-ink); text-decoration: none; }
.site-footer a:hover { color: var(--ds-black); text-decoration: underline; }
.site-footer .site-footer__link {
	display: inline-block;
	padding-bottom: 2px;
	border-bottom: 1px solid currentColor;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.site-footer .site-footer__link:hover { text-decoration: none; }

.social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ds-line-strong);
	border-radius: 50%;
	color: var(--ds-black);
	transition: background-color .25s, color .25s, border-color .25s;
}
.site-footer .social a:hover,
.social a:hover { border-color: var(--ds-black); background: var(--ds-black); color: #fff; text-decoration: none; }
.social .ds-icon { width: 20px; height: 20px; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 24px 28px;
	border-top: 1px solid var(--ds-line);
	color: var(--ds-muted);
	font-size: .8125rem;
}
.site-footer__bottom::before { display: none; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer .site-footer__legal a { color: var(--ds-muted); }
.site-footer .site-footer__legal a:hover { color: var(--ds-black); }

@media (max-width: 959px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ds-black);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s, visibility .3s, background-color .25s;
}
.to-top:hover { background: #3a3a3a; color: #fff; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .ds-icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Visualizador de imagens (lightbox)
   -------------------------------------------------------------------------- */

.ds-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(12, 12, 12, .97);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.ds-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.ds-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 72px clamp(12px, 7vw, 112px);
	touch-action: pan-y;
}
.ds-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0;
	transition: opacity .35s;
	-webkit-user-select: none;
	user-select: none;
}
.ds-lightbox__img.is-loaded { opacity: 1; }
.ds-lightbox__bar {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	padding: 0 10px 0 24px;
	color: rgba(255, 255, 255, .75);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .16em;
	font-variant-numeric: tabular-nums;
}
.ds-lightbox button {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	opacity: .75;
	cursor: pointer;
	transition: opacity .2s;
}
.ds-lightbox button:hover, .ds-lightbox button:focus-visible { opacity: 1; }
.ds-lightbox button:focus-visible { outline-color: #fff; }
.ds-lightbox svg { width: 30px; height: 30px; }
.ds-lightbox__prev, .ds-lightbox__next { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); }
.ds-lightbox__prev { left: clamp(2px, 2vw, 28px); }
.ds-lightbox__next { right: clamp(2px, 2vw, 28px); }
.ds-lightbox__prev svg { transform: rotate(180deg); }
.ds-lightbox__spinner {
	position: absolute;
	width: 34px;
	height: 34px;
	border: 1.5px solid rgba(255, 255, 255, .2);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ds-spin .8s linear infinite;
}
.ds-lightbox__spinner[hidden] { display: none; }
@keyframes ds-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
	.ds-lightbox__stage { padding: 64px 0 76px; }
	.ds-lightbox__prev, .ds-lightbox__next { top: auto; bottom: 10px; transform: none; }
	.ds-lightbox__prev { left: calc(50% - 64px); }
	.ds-lightbox__next { right: calc(50% - 64px); }
}
body.ds-lightbox-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Entrada suave dos elementos ao fazer scroll (só com JavaScript)
   -------------------------------------------------------------------------- */

.js .ds-reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ds-ease), transform 1s var(--ds-ease); transition-delay: calc(var(--ds-delay, 0) * 1ms); }
.js .ds-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .ds-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Impressão
   -------------------------------------------------------------------------- */

@media print {
	.site-header, .menu-panel, .to-top, .site-footer__grid .social, .ds-slider__controls, .ds-form { display: none !important; }
	body { color: #000; }
	.entry-content .is-style-ds-painel { background: none; color: #000; }
	.entry-content .is-style-ds-painel h2, .entry-content .is-style-ds-painel a { color: #000; }
}
