/* =====================================================================
   Redesign da homepage – mesma estrutura, design novo
   Carregado só na homepage (PT e EN) por inc/pdc-home.php
   ===================================================================== */
:root {
  --h-paper: #f7f4ee;
  --h-ink: #22343a;
  --h-terra: #c0703a;
  --h-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 0 · HERO (vídeo + logótipo) ---------- */
body .heroSectionRow {
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden !important;
  background: #10201f;
}

body .heroSectionRow .backgroundVideo,
body .heroSectionRow .backgroundVideo > .vc_column-inner,
body .heroSectionRow .backgroundVideo > .vc_column-inner > .wpb_wrapper {
  position: static;
  height: 100%;
}

/* vídeo a ocupar o ecrã inteiro, com um zoom-out lento à entrada */
body .heroSectionRow .container-video {
  position: absolute;
  inset: 0;
  height: 100% !important;
  max-height: none !important;
  overflow: hidden;
}

body .heroSectionRow .container-video video {
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  transform: scale(1.06);
  animation: pdc-hero-zoom 14s var(--h-ease) forwards;
}

@keyframes pdc-hero-zoom { to { transform: scale(1); } }

/* véu: ligeiro escurecimento nas margens e em baixo, para o logótipo e o rodapé lerem bem */
body .heroSectionRow .backgroundVideo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(10, 22, 24, 0.12) 0%, rgba(10, 22, 24, 0.48) 100%),
    linear-gradient(0deg, rgba(10, 22, 24, 0.5), rgba(10, 22, 24, 0) 35%);
}

/* logótipo ao centro, a aparecer devagar */
body .heroSectionRow .logo-video {
  top: 50%;
  z-index: 3;
  height: auto !important;
}

body .heroSectionRow .logo-video img {
  width: clamp(150px, 15vw, 230px);
  height: auto !important;
  opacity: 0;
  transform: translateY(14px);
  animation: pdc-hero-logo 1.6s 0.5s var(--h-ease) forwards;
}

@keyframes pdc-hero-logo { to { opacity: 1; transform: none; } }

/* o tema antigo dá altura de ecrã a tudo dentro do vídeo (.riverside-block1 .backgroundVideo *):
   repor a altura natural nos elementos novos do hero */
body .heroSectionRow .pdc-hero,
body .heroSectionRow .pdc-hero * {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body .heroSectionRow .pdc-hero { position: static; }

/* moldura fina por dentro do ecrã */
.pdc-hero__frame {
  position: absolute;
  z-index: 2;
  inset: clamp(14px, 2.2vw, 30px);
  top: calc(var(--pdc-hd, 96px) + 10px);     /* começa por baixo do header (não cruza o menu) */
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

/* rodapé do hero: local · Descobrir · Som */
.pdc-hero__foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(34px, 5vw, 62px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 calc(clamp(14px, 2.2vw, 30px) + clamp(16px, 2.6vw, 44px));
  font-family: "Avenir", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.pdc-hero__local { justify-self: start; }

.pdc-hero__cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit !important;
  text-decoration: none !important;
}

body .heroSectionRow .pdc-hero .pdc-hero__cue i {
  display: block;
  width: 1px;
  height: 48px !important;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden !important;
}

.pdc-hero__cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 1px;
  height: 50%;
  background: #fff;
  animation: pdc-hero-cue 2.2s var(--h-ease) infinite;
}

@keyframes pdc-hero-cue { to { top: 100%; } }

.pdc-hero__sound {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

body .heroSectionRow .pdc-hero .pdc-hero__eq { display: flex; gap: 2px; align-items: flex-end; height: 12px !important; }
body .heroSectionRow .pdc-hero .pdc-hero__eq b { width: 2px; height: 3px !important; background: #fff; }
.pdc-hero__sound[aria-pressed="true"] .pdc-hero__eq b { animation: pdc-hero-eq 1s ease-in-out infinite; }
.pdc-hero__sound[aria-pressed="true"] .pdc-hero__eq b:nth-child(2) { animation-delay: 0.2s; }
.pdc-hero__sound[aria-pressed="true"] .pdc-hero__eq b:nth-child(3) { animation-delay: 0.4s; }

@keyframes pdc-hero-eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(4); } }
.pdc-hero__eq b { transform-origin: bottom; }
.pdc-hero__sound.is-loading { opacity: 0.6; cursor: progress; }

@media (max-width: 767px) {
  body .heroSectionRow .logo-video img { width: 44vw; }
  .pdc-hero__foot { grid-template-columns: 1fr auto; }
  .pdc-hero__sound { display: none; }
  .pdc-hero__cue { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  body .heroSectionRow .container-video video,
  body .heroSectionRow .logo-video img,
  .pdc-hero__cue i::after { animation: none; opacity: 1; transform: none; }
}

/* ---------- 1 · MASTERPLAN ---------- */
/* fundo igual ao papel da ilustração, para não se ver o retângulo da imagem */
body .pdcMasterplanSection { background: #fdfbf7; padding-top: clamp(56px, 6vw, 96px); }
body .pdc-mp { --mp-paper: #fdfbf7; background: #fdfbf7; overflow: visible; }

/* legenda: barra com 3 colunas, sublinhado na cor do edifício */
body .pdc-mp__legend {
  max-width: 1000px;
  margin: 0 auto clamp(26px, 3.4vw, 48px);
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
  border-top: 1px solid rgba(34, 52, 58, 0.13);
  border-bottom: 1px solid rgba(34, 52, 58, 0.13);
}

body .pdc-mp__chip {
  position: relative;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 10px 20px;
  border: 0;
  border-left: 1px solid rgba(34, 52, 58, 0.13);
  color: #3c3b36;   /* cor original */
}

body .pdc-mp__chip:first-child { border-left: 0; }

body .pdc-mp__chip::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -1px;
  height: 2px;
  background: var(--pin-cor);
  transition: left 0.45s var(--h-ease), right 0.45s var(--h-ease);
}

body .pdc-mp__chip:hover::after,
body .pdc-mp__chip:focus-visible::after,
body .pdc-mp__chip.is-on::after { left: 0; right: 0; }

body .pdc-mp__chip:hover,
body .pdc-mp__chip:focus-visible,
body .pdc-mp__chip.is-on { border-bottom-color: transparent; }

body .pdc-mp__chip .pdc-mp__dot { display: none; }

/* nome e contagem: tipografia original (Avenir 13px, nome em maiúsculas) */
body .pdc-mp__lname {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease;
}

body .pdc-mp__lname::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pin-cor);
}

body .pdc-mp__chip:hover .pdc-mp__lname,
body .pdc-mp__chip.is-on .pdc-mp__lname { color: var(--pin-cor); }

body .pdc-mp__lcount::before { content: none; }

/* véu mais leve */
body .pdc-mp.is-active .pdc-mp__veil { opacity: 0.5; }

/* pontos */
body .pdc-mp__pin { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
body .pdc-mp__pin-label {
  border-radius: 0;
  padding: 7px 12px;
  font-family: "Avenir", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
}

/* cartão do edifício: pequeno, por cima do ponto (desktop) */
body .pdc-mp__info {
  min-width: 250px;
  max-width: 300px;
  width: auto;
  padding: 18px 46px 20px 22px;
  border-left: 0;
  background: #fff;
  box-shadow: 0 20px 50px rgba(20, 35, 40, 0.16);
  line-height: 1.4;
}

body .pdc-mp__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #8a8478;
}

body .pdc-mp__title {
  margin: 2px 0 8px !important;
  font-size: 30px !important;
  line-height: 1.05;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body .pdc-mp__state,
body .pdc-mp__count { margin: 0 0 2px !important; padding: 0 !important; font-size: 14px; line-height: 1.4; color: #4a5b60; }

body .pdc-mp__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--pin-cor) !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

body .pdc-mp__btn::after {
  content: "→";
  font-size: 14px;
  letter-spacing: 0;
  transition: transform 0.3s var(--h-ease);
}

body .pdc-mp__btn:hover { filter: none; transform: none; }
body .pdc-mp__btn:hover::after { transform: translateX(4px); }

body .pdc-mp__close {
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border: 0;
  font-size: 20px;
  line-height: 24px;
  color: #8a8478;
}

body .pdc-mp__close:hover { color: var(--h-ink); }
body .pdc-mp__close { font-family: "Avenir", sans-serif; }

@media (min-width: 768px) {
  body .pdc-mp__info.pdc-mp__info--pin {
    left: var(--px) !important;
    top: var(--py) !important;
    transform: translate(-50%, calc(-100% - 30px));
  }

  body .pdc-mp__info.pdc-mp__info--pin.pdc-mp__info--below { transform: translate(-50%, 30px); }
  body .pdc-mp__info.pdc-mp__info--pin.pdc-mp__info--below::after { top: -6px; bottom: auto; }

  body .pdc-mp__info.pdc-mp__info--pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (max-width: 767px) {
  body .pdc-mp__legend { flex-direction: row; align-items: stretch; gap: 0; margin-left: 20px; margin-right: 20px; padding-bottom: 0; }
  body .pdc-mp__chip { padding: 16px 4px 14px; }
  body .pdc-mp__lname { gap: 6px; text-align: center; }
  body .pdc-mp__lname::before { width: 6px; height: 6px; }
  body .pdc-mp__info { min-width: 0; max-width: none; margin: 18px 20px 26px; box-shadow: 0 12px 30px rgba(20, 35, 40, 0.1); }
}

/* masterplan: a imagem sobe para trás da legenda (a zona das montanhas pode ficar tapada)
   e as margens esbatem-se no fundo, para não se ver o retângulo da imagem */
body .pdcMasterplanSection { padding-top: clamp(28px, 3vw, 48px); }

body .pdc-mp__legend {
  position: relative;
  z-index: 6;
  background: rgba(253, 251, 247, 0.88);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

body .pdc-mp__stage {
  margin-top: clamp(-100px, -5.5vw, -40px);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 14%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 14%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 767px) {
  body .pdc-mp__stage {
    margin-top: -30px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 90%, transparent 100%);
  }
}

/* ---------- 2 · SETÚBAL (vidaMelhorSection) ---------- */
body .vidaMelhorSection {
  max-width: 1320px;
  width: auto !important;
  left: auto !important;
  margin: 0 auto !important;
  padding: clamp(40px, 4vw, 64px) clamp(20px, 5vw, 80px) clamp(60px, 6vw, 96px) !important;
  gap: clamp(30px, 7vw, 120px);
  align-items: center;
  background: #fdfbf7;
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}

/* faixa de fundo a toda a largura, por trás da grelha centrada */
body .vidaMelhorSection::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: #fdfbf7;
  z-index: -1;
}

body .vidaMelhorSection > .wpb_column:first-child { flex: 0 0 auto; width: 42%; }
body .vidaMelhorSection { flex-wrap: nowrap !important; }
body .vidaMelhorSection > .wpb_column:last-child { flex: 1 1 0; width: auto; min-width: 0; }
body .vidaMelhorSection > .wpb_column,
body .vidaMelhorSection > .wpb_column > .vc_column-inner { padding: 0 !important; }

/* textos: mantêm-se as fontes, tamanhos e cores originais do tema (sem regras aqui) */

/* foto vertical, revelada ao entrar no ecrã */
body .vidaMelhorSection .wpb_single_image {
  margin: 0;
  opacity: 1 !important;
  animation: none !important;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.4s var(--h-ease);
}

body .vidaMelhorSection .wpb_single_image.pdc-on { clip-path: inset(0); }

body .vidaMelhorSection .wpb_single_image figure,
body .vidaMelhorSection .wpb_single_image .vc_single_image-wrapper { display: block; width: 100%; margin: 0; overflow: hidden; }

/* a foto estende-se até à margem direita do ecrã (mais área de imagem) */
body .vidaMelhorSection > .wpb_column:last-child {
  margin-right: calc(-1 * (clamp(20px, 5vw, 80px) + max(0px, (100vw - 1320px) / 2)));
}

body .vidaMelhorSection .wpb_single_image img {
  display: block;
  width: 100% !important;
  height: min(80vh, 760px) !important;
  min-height: 520px;
  max-height: none !important;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.12);
  transition: transform 2s var(--h-ease);
}

body .vidaMelhorSection .wpb_single_image.pdc-on img { transform: scale(1); }

@media (max-width: 767px) {
  body .vidaMelhorSection { flex-direction: column; flex-wrap: wrap !important; gap: 40px; padding: 36px 20px 70px !important; }
  body .vidaMelhorSection > .wpb_column:first-child,
  body .vidaMelhorSection > .wpb_column:last-child { width: 100%; }
  body .vidaMelhorSection > .wpb_column:last-child { flex: 0 0 auto !important; margin-right: -20px; margin-left: -20px; width: calc(100% + 40px) !important; }
  body .vidaMelhorSection > .wpb_column:first-child { flex: 0 0 auto !important; }
  body .vidaMelhorSection .wpb_single_image img { height: auto !important; min-height: 0; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  body .vidaMelhorSection .wpb_single_image { clip-path: none; }
  body .vidaMelhorSection .wpb_single_image img { transform: none; }
}

/* ---------- 3 · ESTILO DE VIDA (slide-fullpage) ----------
   Tipografia original do tema (títulos e textos não mudam); muda a composição:
   os 3 capítulos ficam em lista, o ativo abre o texto e tem barra de progresso. */
body .slide-fullpage { --ev-dur: 7s; }
/* preso ao scroll: a animação de entrada do WPBakery (fadeInUp) prendia o transform e deixava um vazio no fim */
body .slide-fullpage.pdc-ev-pin { animation: none !important; opacity: 1 !important; transform: none; }
/* preso logo abaixo do header, com a altura de ecrã que sobra */
body .slide-fullpage.pdc-ev-pin { height: calc(100vh - var(--pdc-hd-pin, var(--pdc-hd, 0px))) !important; min-height: 520px; }
body .slide-fullpage.pdc-ev-pin .slide-gallery > div,
body .slide-fullpage.pdc-ev-pin .slide-gallery > div > div,
body .slide-fullpage.pdc-ev-pin .slide-gallery .wpb_gallery_slides { height: calc(100vh - var(--pdc-hd-pin, var(--pdc-hd, 0px))) !important; min-height: 520px; }
body .slide-fullpage .swiper-arrows { display: none !important; }

body .slide-fullpage .container-content { counter-reset: ev; width: min(520px, 100%) !important; max-width: none; }
body .slide-fullpage .side1 h6.vc_custom_heading { width: min(520px, 100%) !important; }
body .slide-fullpage .container-content h2.vc_custom_heading { width: 100% !important; }
/* véu à esquerda para os títulos lerem bem sobre qualquer imagem */
body .slide-fullpage .slide-gallery li { overflow: hidden; }
body .slide-fullpage .slide-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 22, 24, 0.62) 0%, rgba(10, 22, 24, 0.3) 45%, rgba(10, 22, 24, 0) 70%);
}

body .slide-fullpage .container-content > .vc_row {
  display: block !important;
  position: relative;
  counter-increment: ev;
  padding: 16px 0 !important;
  margin: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  cursor: pointer;
  min-height: 0 !important;
}

body .slide-fullpage .container-content > .vc_row:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.24); }

/* barra de progresso do capítulo ativo */
body .slide-fullpage .container-content > .vc_row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: #fff;
}

/* modo automático: a barra enche com o tempo */
body .slide-fullpage.pdc-ev-auto .container-content > .vc_row.active::before { animation: pdc-ev-bar var(--ev-dur) linear forwards; }
/* modo preso ao scroll: a barra acompanha o scroll dentro do capítulo */
body .slide-fullpage.pdc-ev-pin .container-content > .vc_row::before { width: 0; transition: width 0.15s linear; }
body .slide-fullpage.pdc-ev-pin .container-content > .vc_row.active::before { width: calc(var(--ev-p, 0) * 100%); }
body .slide-fullpage.pdc-ev-paused .container-content > .vc_row.active::before { animation-play-state: paused; }

@keyframes pdc-ev-bar { to { width: 100%; } }

/* título: mesmas fontes; os inativos ficam esbatidos */
body .slide-fullpage .container-content > .vc_row h2 {
  position: relative;
  margin: 0 !important;
  padding-left: 46px;
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

body .slide-fullpage .container-content > .vc_row h2::before {
  content: "0" counter(ev);
  position: absolute;
  left: 0;
  top: 0.55em;
  font-family: "Avenir", sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1;
  opacity: 0.8;
}

body .slide-fullpage .container-content > .vc_row.active h2,
body .slide-fullpage .container-content > .vc_row:hover h2 { opacity: 1; }

/* texto: só o capítulo ativo abre */
body .slide-fullpage .container-content > .vc_row .wpb_text_column {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0 !important;
  transition: grid-template-rows 0.6s var(--h-ease);
}

body .slide-fullpage .container-content > .vc_row .wpb_text_column > .wpb_wrapper {
  overflow: hidden;
  min-height: 0;
  padding-left: 46px;
}

body .slide-fullpage .container-content > .vc_row .wpb_text_column p:first-child { margin-top: 14px; }
body .slide-fullpage .container-content > .vc_row.active .wpb_text_column { grid-template-rows: 1fr; }

/* imagem: troca com fundido suave em vez de deslizar */
body .slide-fullpage .slide-gallery img { transform: scale(1.06); transition: transform 8s linear; }
body .slide-fullpage .slide-gallery .swiper-slide-active img { transform: scale(1); }

@media (max-width: 767px) {
  body .slide-fullpage .container-content > .vc_row h2 { padding-left: 34px; }
  body .slide-fullpage .container-content > .vc_row .wpb_text_column > .wpb_wrapper { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body .slide-fullpage .container-content > .vc_row.active::before { animation: none; width: 100%; }
  body .slide-fullpage .slide-gallery img { transition: none; transform: none; }
}

/* ---------- 4 · GALERIA (composição; fontes e tamanhos da galeria mantêm-se) ----------
   Fica dentro do bloco "O Parque da Cidade", no lugar do antigo carrossel, sem título próprio. */
body .pdc-section .pdc-gal { margin-top: clamp(48px, 5vw, 72px); padding: 0; }
/* "Ver Apartamentos" vem depois da galeria, como fecho do bloco */
body .pdc-section .pdc-gal + .vc_btn3-container.special > a { margin-top: clamp(36px, 4vw, 56px) !important; }
/* botão do tamanho do texto, centrado (antes ocupava a largura toda) */
body .pdc-section .pdc-gal + .vc_btn3-container.special { display: block !important; width: 100% !important; text-align: center; }
body .pdc-section .pdc-gal + .vc_btn3-container.special > a { width: auto !important; display: inline-block !important; padding: 12px 36px !important; }
/* telemóvel: o cartão do tema sobe 208px – reservar espaço para não tapar o botão */
@media (max-width: 767px) { body .pdc-section .pdc-gal + .vc_btn3-container.special > a { margin-bottom: 200px !important; } }   /* a margem de baixo original (177px) fica: o cartão seguinte sobe por cima dela */
body .pdc-gal .pdc-gal__head:not(:has(.pdc-gal__title)) { text-align: left; margin-bottom: 24px; }
@media (min-width: 768px) {

  /* cabeçalho: texto à esquerda, separadores à direita */
  body .pdc-gal .pdc-gal__head {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "eyebrow tabs" "title tabs";
    align-items: end;
    column-gap: 40px;
    text-align: left;
    margin-bottom: 40px;
  }
  body .pdc-gal .pdc-gal__eyebrow { grid-area: eyebrow; display: flex; align-items: center; gap: 14px; }
  body .pdc-gal .pdc-gal__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
  body .pdc-gal .pdc-gal__title { grid-area: title; margin: 10px 0 0; }
  body .pdc-gal .pdc-gal__head:not(:has(.pdc-gal__title)) { display: block; }
  body .pdc-gal .pdc-gal__head:not(:has(.pdc-gal__title)) .pdc-gal__tabs { justify-content: flex-start; padding-bottom: 0; }
  body .pdc-gal .pdc-gal__tabs { grid-area: tabs; justify-content: flex-end; flex-wrap: nowrap; gap: 8px 26px; padding-bottom: 8px; }
  body .pdc-gal .pdc-gal__tab { white-space: nowrap; }

  /* mosaico editorial em 12 colunas: grande à esquerda, alta à direita, duas menores em baixo */
  body .pdc-gal .pdc-gal__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(100px, 9.5vw, 150px);
  }
  body .pdc-gal .pdc-gal__item:nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 3; }
  body .pdc-gal .pdc-gal__item:nth-child(2) { grid-column: 8 / span 5; grid-row: 1 / span 2; }
  body .pdc-gal .pdc-gal__item:nth-child(3) { grid-column: 8 / span 5; grid-row: 3 / span 3; }
  body .pdc-gal .pdc-gal__item:nth-child(4) { grid-column: 1 / span 4; grid-row: 4 / span 2; }
  body .pdc-gal .pdc-gal__item:nth-child(5) { grid-column: 5 / span 3; grid-row: 4 / span 2; }
  /* separadores só com 4 imagens: a 4.ª ocupa o espaço todo em baixo (sem buraco) */
  body .pdc-gal .pdc-gal__grid:not(:has(.pdc-gal__item:nth-child(5):not(.is-off))) .pdc-gal__item:nth-child(4) { grid-column: 1 / span 7; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body .pdc-gal .pdc-gal__head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "tabs"; }
  body .pdc-gal .pdc-gal__tabs { justify-content: flex-start; margin-top: 22px; flex-wrap: wrap; }
}

/* separadores da galeria: barra em cápsula, ativo preenchido, com número de fotos */
body .pdc-gal .pdc-gal__tabs {
  display: inline-flex !important;
  flex-wrap: nowrap;
  gap: 4px !important;
  padding: 5px !important;
  border: 1px solid rgba(34, 52, 58, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

body .pdc-gal .pdc-gal__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #3c3b36;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body .pdc-gal .pdc-gal__tab:hover { background: rgba(34, 52, 58, 0.06); color: #3c3b36; }
body .pdc-gal .pdc-gal__tab.is-on { background: var(--h-terra); color: #fff; border: 0; }

body .pdc-gal .pdc-gal__n {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(34, 52, 58, 0.08);
  font-size: 11px;
  letter-spacing: 0;
  line-height: 20px;
  text-align: center;
}

body .pdc-gal .pdc-gal__tab.is-on .pdc-gal__n { background: rgba(255, 255, 255, 0.25); }

@media (max-width: 767px) {
  body .pdc-gal .pdc-gal__tabs { display: flex !important; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  body .pdc-gal .pdc-gal__tabs::-webkit-scrollbar { display: none; }
  body .pdc-gal .pdc-gal__tab { flex: 0 0 auto; height: 38px; padding: 0 14px; }
}

/* ---------- 5 · VISTA AÉREA (linha só com a foto do estuário) ----------
   Faixa panorâmica, foto numa camada própria com movimento ao scroll (GSAP) e ponto a pulsar no bairro. */
body .vc_row.pdc-aerea {
  position: relative;
  height: 62vh !important;
  min-height: 380px;
  max-height: 720px;
  overflow: hidden !important;
  background-image: none !important;
  background-color: #1b2b30 !important;
}

body .vc_row.pdc-aerea > .wpb_column { position: static; }

/* a foto fica fixa no ecrã; a faixa recorta-a (clip-path) e a página passa por cima – funciona também no iPhone */
body .vc_row.pdc-aerea { clip-path: inset(0); -webkit-clip-path: inset(0); }

.pdc-aerea__img {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.pdc-aerea__pin {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--h-terra);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.pdc-aerea__pin::before,
.pdc-aerea__pin::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  animation: pdc-aerea-ping 2.4s var(--h-ease) infinite;
}

.pdc-aerea__pin::after { animation-delay: 1.2s; }

@keyframes pdc-aerea-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(4.2); opacity: 0; }
}

@media (max-width: 767px) {
  body .vc_row.pdc-aerea { height: 50vh !important; min-height: 320px; }
  .pdc-aerea__img { height: 130vh; }
}

@media (prefers-reduced-motion: reduce) {
  .pdc-aerea__pin::before, .pdc-aerea__pin::after { animation: none; opacity: 0; }
}

/* ---------- 7 · PLANTA DO PARQUE (plugin Image Hotspot) ---------- */
body .planta-pdc { padding: clamp(40px, 5vw, 80px) 20px clamp(40px, 4vw, 64px) !important; }

/* ícones: sombra suave, crescem ao passar */
body .planta-pdc .drag_element { transition: opacity 0.35s ease; }
body .planta-pdc .drag_element .pins_image,
body .planta-pdc .drag_element .pins_image_hover {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
  transition: transform 0.35s var(--h-ease);
}
body .planta-pdc .drag_element:hover .pins_image,
body .planta-pdc .drag_element:hover .pins_image_hover,
body .planta-pdc .drag_element.pdc-pl-hi .pins_image,
body .planta-pdc .drag_element.pdc-pl-hi .pins_image_hover { transform: scale(1.22); }
body .planta-pdc.pdc-pl-filt .drag_element:not(.pdc-pl-hi) { opacity: 0.25; }

/* caixa de informação (PowerTip): branca e limpa; fontes e tamanhos do plugin mantêm-se */
body #powerTip {
  background: #fff !important;
  color: #22343a !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
  box-shadow: 0 14px 34px rgba(20, 35, 40, 0.18) !important;
}
body #powerTip p { color: #22343a !important; margin: 0 !important; }
body #powerTip p + p { color: #8a8478 !important; margin-top: 2px !important; }
body #powerTip.n::before, body #powerTip.nw::before, body #powerTip.ne::before { border-top-color: #fff !important; }
body #powerTip.s::before, body #powerTip.sw::before, body #powerTip.se::before { border-bottom-color: #fff !important; }
body #powerTip.e::before { border-right-color: #fff !important; }
body #powerTip.w::before { border-left-color: #fff !important; }
body #powerTip .close_ihp svg { fill: #8a8478; }

/* legenda por baixo da planta */
.pdc-pl__legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: clamp(28px, 3vw, 44px) auto 0 !important;
  padding: 0 !important;
  list-style: none;
  border-top: 1px solid rgba(34, 52, 58, 0.13);
}

.pdc-pl__legend li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(34, 52, 58, 0.13);
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease;
}

.pdc-pl__legend li:hover,
.pdc-pl__legend li:focus-visible,
.pdc-pl__legend li.is-on,
.pdc-pl__legend li.is-hint { background: rgba(255, 255, 255, 0.85); }

.pdc-pl__legend img { width: 38px; height: 38px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2)); }
.pdc-pl__legend b { display: block; font-family: "Avenir", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.25; color: #22343a; }
.pdc-pl__legend small { display: block; font-family: "Avenir", sans-serif; font-size: 13px; line-height: 1.4; color: #8a8478; margin-top: 2px; }

@media (max-width: 1024px) { .pdc-pl__legend { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 767px) {
  body .planta-pdc .drag_element .pins_image,
  body .planta-pdc .drag_element .pins_image_hover { width: 24px !important; height: auto !important; }
  .pdc-pl__legend { grid-template-columns: 1fr; }
  .pdc-pl__legend li { padding: 12px 6px; }
}

/* ---------- 8 · APARTAMENTOS (tipografia original; muda a composição) ---------- */
body .apartamentos-home > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper { padding-top: clamp(56px, 5vw, 88px) !important; padding-bottom: clamp(70px, 7vw, 110px) !important; }

/* tabela: sem caixas cinzentas, linhas finas, linha acende ao passar; cabeçalho e fontes mantêm-se */
body .apartamentos-home table.apartamentos { width: 100%; border-collapse: collapse !important; border-spacing: 0 !important; }
body .apartamentos-home table.apartamentos th { padding: 14px 18px !important; }
body .apartamentos-home table.apartamentos tr,
body .apartamentos-home table.apartamentos td { background: transparent !important; }
body .apartamentos-home table.apartamentos td {
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(162, 127, 80, 0.22) !important;
  transition: background-color 0.3s ease;
}
body .apartamentos-home table.apartamentos th:first-child,
body .apartamentos-home table.apartamentos td:first-child { text-align: left; }
body .apartamentos-home table.apartamentos th:last-child,
body .apartamentos-home table.apartamentos td:last-child { text-align: right; }
body .apartamentos-home table.apartamentos tbody tr:hover td { background: rgba(194, 115, 56, 0.07) !important; }

/* cartões Riverside: foto aproxima, cartão sobe com sombra, botão destaca-se */
body .apartamentos-home .vc_col-sm-4 > .vc_column-inner {
  overflow: hidden;
  transition: transform 0.5s var(--h-ease), box-shadow 0.5s var(--h-ease);
}
body .apartamentos-home .vc_col-sm-4:hover > .vc_column-inner {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(20, 35, 40, 0.18);
}
body .apartamentos-home .vc_col-sm-4 .wpb_single_image:not(.logo-riverside) img { transition: transform 1.2s var(--h-ease); }
body .apartamentos-home .vc_col-sm-4:hover .wpb_single_image:not(.logo-riverside) img { transform: scale(1.06); }
body .apartamentos-home .vc_col-sm-4 .vc_btn3 { transition: transform 0.35s var(--h-ease), filter 0.35s ease; }
body .apartamentos-home .vc_col-sm-4:hover .vc_btn3 { transform: translateY(-3px); filter: brightness(1.06); }

@media (max-width: 767px) {
  body .apartamentos-home > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper { padding-top: 64px !important; padding-bottom: 72px !important; }
  body .apartamentos-home table.apartamentos th,
  body .apartamentos-home table.apartamentos td { padding: 12px 8px !important; }
}

/* ---------- 9 · MAPA (Google Maps do tema; lógica e pontos não mudam) ---------- */
body .mapa-brochura #map { height: 75vh !important; min-height: 560px; max-height: 820px; }

/* painel: creme com sombra, como o cartão do masterplan (fontes mantêm-se) */
body .mapa-brochura .map-menu-wrapper {
  background: rgba(253, 251, 247, 0.97) !important;
  box-shadow: 0 24px 60px rgba(20, 35, 40, 0.16) !important;
  border-radius: 0 !important;
}

/* filtros: linhas clicáveis; o ativo fica preenchido a terracota */
body .mapa-brochura #map-menu button {
  border-radius: 999px;
  padding-right: 14px !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}
body .mapa-brochura #map-menu button:hover { background: rgba(194, 115, 56, 0.09) !important; }
body .mapa-brochura #map-menu button.active { background: var(--h-terra) !important; color: #fff !important; }
body .mapa-brochura #map-menu button.active .category-icon { box-shadow: 0 0 0 2px #fff; border-radius: 50%; }

/* marcador do Parque da Cidade: ponto de referência, a pulsar (como na vista aérea) */
body .mapa-brochura .custom-marker:has(.adicional-marker-icon) { position: relative; }
body .mapa-brochura .custom-marker:has(.adicional-marker-icon)::before,
body .mapa-brochura .custom-marker:has(.adicional-marker-icon)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--h-terra);
  animation: pdc-mapa-ping 2.4s var(--h-ease) infinite;
  pointer-events: none;
}
body .mapa-brochura .custom-marker:has(.adicional-marker-icon)::after { animation-delay: 1.2s; }
@keyframes pdc-mapa-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }
body .mapa-brochura .custom-marker .adicional-marker-icon { position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25)); }

@media (max-width: 767px) {
  body .mapa-brochura #map { height: 62vh !important; min-height: 420px; }
  /* filtros numa fila de cápsulas que desliza (como na galeria) */
  body .mapa-brochura #map-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 8px;
    margin-right: -20px;
    padding: 2px 20px 6px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body .mapa-brochura #map-menu::-webkit-scrollbar { display: none; }
  body .mapa-brochura #map-menu button {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 5px 14px 5px 5px !important;
    border: 1px solid rgba(34, 52, 58, 0.14) !important;
    white-space: nowrap;
  }
  body .mapa-brochura #map-menu button .category-icon { width: 28px !important; height: 28px !important; margin: 0 !important; }
}

/* cartões Riverside: selo de disponibilidade, botão na cor do edifício, cartão clicável */
body .apartamentos-home .pdc-card { cursor: pointer; }
body .apartamentos-home .pdc-card > .vc_column-inner { position: relative; }
.pdc-card__badge {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--card-cor, var(--h-terra));
  color: #fff;
  font-family: "Avenir", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}
body .apartamentos-home .pdc-card .vc_btn3 {
  background-color: var(--card-cor, var(--h-terra)) !important;
  border-color: var(--card-cor, var(--h-terra)) !important;
}

/* telemóvel: carrossel horizontal com o próximo cartão a espreitar */
@media (max-width: 767px) {
  body .apartamentos-home .pdc-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    margin: 0 -20px !important;
    padding: 6px 20px 18px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }
  body .apartamentos-home .pdc-cards::-webkit-scrollbar { display: none; }
  body .apartamentos-home .pdc-cards > .pdc-card {
    flex: 0 0 82% !important;
    width: 82% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-align: start;
  }
  body .apartamentos-home .pdc-card:hover > .vc_column-inner { transform: none; }
}

/* ---------- 10 · CONTACTOS (Quform: só estilo – campos, destinatários e textos não mudam) ---------- */
@media (min-width: 1025px) {
  body .home-contactos { max-width: none !important; }
  body .home-contactos > .vc_col-sm-12 { width: 100% !important; }
  body .home-contactos > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper {
    display: grid;
    grid-template-columns: 5fr 6fr;
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, 6vw, 100px);
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: start;
  }
  body .home-contactos > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > * { grid-column: 1; text-align: left !important; margin-left: 0 !important; }
  body .home-contactos > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .wpb_raw_code { grid-column: 2; grid-row: 1 / span 3; width: 100% !important; max-width: none !important; }
  body .home-contactos .wpb_text_column * { text-align: left !important; }
  body .home-contactos > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > h2 { margin-top: 18px; }
}

/* formulário num cartão branco */
body .home-contactos .wpb_raw_code form {
  background: #fff;
  padding: clamp(24px, 3vw, 44px);
  box-shadow: 0 24px 60px rgba(20, 35, 40, 0.1);
}

/* campos: linha por baixo em vez de caixa cinzenta */
body .home-contactos .quform-form .quform-element:not(.quform-sr-only) .quform-input input.quform-field,
body .home-contactos .quform-form .quform-element:not(.quform-sr-only) .quform-input select.quform-field,
body .home-contactos .quform-form .quform-element:not(.quform-sr-only) .quform-input textarea.quform-field {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(162, 127, 80, 0.45) !important;
  border-radius: 0 !important;
  min-height: 48px;
  transition: border-color 0.3s ease;
}
body .home-contactos .quform-form .quform-element:not(.quform-sr-only) .quform-input textarea.quform-field { min-height: 110px; }
/* campo-armadilha anti-spam do Quform: continua escondido */
body .home-contactos .quform-sr-only textarea { min-height: 0 !important; }
body .home-contactos .quform-input input:focus,
body .home-contactos .quform-input select:focus,
body .home-contactos .quform-input textarea:focus {
  border-bottom-color: var(--h-terra) !important;
  outline: none !important;
  box-shadow: 0 1px 0 0 var(--h-terra) !important;
}

/* botão: igual, um pouco mais alto, escurece ao passar */
body .home-contactos .quform-submit {
  min-height: 52px;
  transition: filter 0.3s ease, transform 0.3s var(--h-ease);
}
body .home-contactos .quform-submit:hover { filter: brightness(0.92); transform: translateY(-1px); }

@media (max-width: 767px) {
  body .home-contactos .wpb_raw_code form { padding: 22px 18px; box-shadow: 0 12px 30px rgba(20, 35, 40, 0.08); }
}

/* ---------- 11 · QUEM SOMOS (Madre Development) – composição; tipografia original ---------- */
@media (min-width: 1025px) {
  body .home-quem-somos { max-width: none !important; }
  body .home-quem-somos > .vc_col-sm-12 { width: 100% !important; }
  body .home-quem-somos > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper {
    display: grid;
    grid-template-columns: 5fr 6fr;
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(40px, 6vw, 100px);
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(56px, 6vw, 90px) 30px 0;
    border-top: 1px solid rgba(194, 115, 56, 0.25);
    align-items: start;
  }
  body .home-quem-somos > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > * { grid-column: 1; }
  body .home-quem-somos > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .wpb_text_column { grid-column: 2; grid-row: 1 / span 3; }
  body .home-quem-somos > .vc_col-sm-12 > .vc_column-inner > .wpb_wrapper > .vc_row { margin-top: 30px; }
}

/* link do site: seta que avança ao passar */
body .home-quem-somos a[href*="madredevelopment"] { text-decoration: none !important; display: inline-flex; align-items: center; gap: 10px; }
body .home-quem-somos a[href*="madredevelopment"]::after { content: "→"; transition: transform 0.35s var(--h-ease); }
body .home-quem-somos a[href*="madredevelopment"]:hover::after { transform: translateX(5px); }
body .home-quem-somos img { transition: transform 0.5s var(--h-ease); }
body .home-quem-somos a:hover img, body .home-quem-somos .wpb_single_image:hover img { transform: scale(1.03); }

/* revisão geral: "Vai nascer um novo bairro verde" com menos vazio por cima (tema: 230px) */
body .pdc-section > .vc_col-sm-12 > div > div.wpb_wrapper { padding-top: clamp(100px, 9vw, 150px) !important; }
@media (max-width: 767px) { body .pdc-section > .vc_col-sm-12 > div > div.wpb_wrapper { padding-top: 70px !important; } }
