/*
Theme Name:     Near
Author:         Bspacy
Version:        1.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    near
*/

/*** Fonts ***/

@font-face {
  font-family: "TrendsetterPrestigeDEMO";
  src:
    url("assets/fonts/TrendsetterPrestigeDEMO/TrendsetterPrestigeDEMO-Reg.ttf")
      format("truetype"),
    url("assets/fonts/TrendsetterPrestigeDEMO/TrendsetterPrestigeDEMO-Reg.otf")
      format("opentype"),
    url("assets/fonts/TrendsetterPrestigeDEMO/TrendsetterPrestigeDEMO-Reg.woff")
      format("woff"),
    url("assets/fonts/TrendsetterPrestigeDEMO/TrendsetterPrestigeDEMO-Reg.woff2")
      format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "PTSans";
  src:
    url("assets/fonts/PTSans/PTSans-Regular.ttf") format("truetype"),
    url("assets/fonts/PTSans/PTSans-Regular.otf") format("opentype"),
    url("assets/fonts/PTSans/PTSans-Regular.woff") format("woff"),
    url("assets/fonts/PTSans/PTSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "PTSans";
  src:
    url("assets/fonts/PTSans/PTSans-Bold.ttf") format("truetype"),
    url("assets/fonts/PTSans/PTSans-Bold.otf") format("opentype"),
    url("assets/fonts/PTSans/PTSans-Bold.woff") format("woff"),
    url("assets/fonts/PTSans/PTSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

/*** Estrutura ***/

* {
  box-sizing: border-box;
}
.wpb-content-wrapper {
  overflow: hidden !important;
}
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--cream);
  background-color: var(--cream-light);
  position: relative !important;
}

/* Esconder a scrollbar (mantendo o scroll funcional) */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge antigo */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome / Safari / Edge */
}

a,
a:hover,
a:focus,
a:active {
  text-decoration: none;
  color: var(--grey);
  cursor: pointer;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
input,
a,
span,
li {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* Placeholder Color */
input::placeholder {
  color: var(--black);
  opacity: 1;
}

/* Autofill Background/Color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #fbf2eb inset !important;
  -webkit-text-fill-color: var(--black) !important;
}

input:focus,
select:focus {
  outline: none !important;
}

/* Remove number input spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quform-edit-form {
  display: none;
}

.vc_column-inner {
  padding: 0px !important;
}

.vc_btn3-container,
.wpb_content_element,
.vc_do_custom_heading {
  margin: 0px !important;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h1 span,
h1 div {
  font-family: "TrendsetterPrestigeDEMO", sans-serif;
  font-size: 90px;
  font-weight: 400;
  line-height: 82px;
  color: var(--yellow);
}

h2,
h2 div {
  font-family: "TrendsetterPrestigeDEMO", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 40px;
  color: var(--orange);
}

h2.big,
h2.big div {
  font-size: 90px;
  line-height: 86px;
  color: var(--cream);
}

h3.bigger {
  color: #fffbed;
  font-family: "TrendsetterPrestigeDEMO", sans-serif;
  font-size: 115px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.153px;
}

h3,
h3 span,
h3 div {
  font-family: "PTSans";
  font-size: 25px;
  font-weight: 400;
  line-height: 25px;
  color: var(--white);
}

h4 {
}

h5 {
}

h6 {
}

p,
li,
a,
span,
div {
  font-family: "PTSans";
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  color: var(--grey);
}

p strong,
p strong span {
  font-weight: 700;
}

button {
  font-family: "PTSans";
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
}

header li,
header li a,
header li a span {
  font-family: "PTSans";
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  color: var(--dark-grey);
  letter-spacing: 3px;
}

.vc_btn3-container.vc_btn3-inline.vc_do_btn a.vc_btn3,
.vc_btn3-container.vc_btn3-inline.vc_do_btn button.vc_btn3 {
  font-family: "PTSans";
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 3px;
  background-color: var(--orange);
  border: 0px;
  padding: 20px 30px;
  color: var(--white);
  background-image: none;
  border-radius: 50px;
  text-transform: uppercase;
}

.wpb_text_column p:not(:last-child) {
  margin-bottom: 10px !important;
}

.wpb_single_image .vc_single_image-wrapper,
.wpb_single_image figure {
  width: 100%;
  height: 100%;
}

.wpb_single_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.container-video video,
.container-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

:root {
  --black: #000000;
  --white: #fffbed;
  --orange: #ad5326;
  --cream: #f9ecd1;
  --cream-light: #f2e6d2;
  --grey: #7e736e;
  --dark-grey: #193240;
  --yellow: #f8e8c9;
  --dark-blue: #182228;
  --dark-blue-footer: #152027;
  --blue: #5b829c;
  --brown: #5b4a3a; /* era sobreposta por um :root no style_maps.css antigo — fica o valor que estava a ser usado (checkboxes do formulário) */

  --header-height: 62px;
  --padding-inline: 84px;
  --paddingVert: 120px;
  --container-width: 1420px;
  --compensateHeader: calc(var(--header-height) + 40px);
  --adminbar: 30px;
}

/* --------------------- UTILITY CLASSES --------------------- */
.noPadding {
  padding-left: 0;
  padding-right: 0;
}

/* --------------------- GRELHA (container do Figma) ---------------------
   Figma (1920px): container de 1420px centrado → margens laterais de 250px.
   --grelha-margem   = distância da margem do ecrã à linha da grelha (onde começam títulos, caixas…)
   --grelha-interior = linha interior do Figma, 240px para dentro (topo: hero, "Um lugar…", "A Autenticidade…")
   --grelha-px       = 1px do Figma à escala do ecrã (largura da grelha / 1420) → as medidas do Figma
                       escrevem-se como calc(240 * var(--grelha-px)) e acompanham todos os ecrãs, incluindo 4K
   Desktop (≥992px): proporcional ao ecrã (250/1920 = 13.02vw), nunca menos do que a margem antiga.
   Tablet/mobile: igual ao que já era (--padding-inline - 15px, porque as rows do WPBakery têm -15px de margem).
   Para mudar a grelha do site inteiro, muda-se só aqui. */
:root {
  --grelha-margem: calc(var(--padding-inline) - 15px);
  --grelha-interior: var(--grelha-margem);
  --grelha-px: calc((100vw - 2 * var(--grelha-margem)) / 1420);
}

@media only screen and (min-width: 992px) {
  :root {
    --grelha-margem: max(calc(var(--padding-inline) - 15px), 13.02vw);
    --grelha-interior: calc(var(--grelha-margem) + 240 * var(--grelha-px));
  }
}

@media only screen and (min-width: 2100px) {
  :root {
    /* ecrãs 4K: o conteúdo não passa de 1540px (como o resto do tema) */
    --grelha-margem: max(13.02vw, calc((100vw - 1540px) / 2));
  }
}

/* Rows com .pagePaddings: o conteúdo começa/acaba exatamente na linha da grelha
   (+15px que a row do WPBakery tira com a margem negativa) */
.pagePaddings {
  padding-left: calc(var(--grelha-margem) + 15px);
  padding-right: calc(var(--grelha-margem) + 15px);
}
.verticalPadding {
  padding-top: var(--paddingVert);
  padding-bottom: var(--paddingVert);
}

/* Espaço entre secções uniforme (= --paddingVert): quando duas rows com .verticalPadding estão
   seguidas, a de cima perde o padding de baixo — senão somavam-se (120 + 120 = 240px).
   Vale para todas as páginas e acompanha os breakpoints (usa a mesma variável). */
.verticalPadding:has(+ .verticalPadding),
.small-section:has(+ .verticalPadding) {
  padding-bottom: 0;
}

#main {
  min-height: 100vh;
  /* background-color: var(--beige); */
}
/* Botão voltar ao topo: ver "BOTÃO VOLTAR AO TOPO" no fim do ficheiro */

/* --------------------- PROJECT-SPECIFIC RULES --------------------- */
/* Hide reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Hide WPML footer badge */
.otgs-development-site-front-end {
  display: none;
}
/* Preloader */

#preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
/* Esconde o fill antes do JS correr, para não aparecer preenchido durante um instante */
.gsap-svg-draw path {
  fill-opacity: 0;
}
#preloader img {
  width: 100px;
  height: 100px;
  animation: preloader-spin 3s linear infinite;
}

#preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes preloader-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* -------------------------------------------------------------------------- */
/* TEIMOSOS                                                                   */
/* -------------------------------------------------------------------------- */
.teimosos-wrapper {
  position: fixed !important;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 9989 !important; /* Garante que fica por cima de tudo */
  visibility: hidden; /* Evita FOUT no carregamento */
}
.teimosos-wrapper a {
  background-color: var(--orange);
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  padding: 6px 42px 10px 32px;
  padding: 10px 42px 10px 32px;

  font-size: unset;
  line-height: unset;
  display: flex;
  border: 1px solid var(--orange);
  filter: drop-shadow(2px 4px 0 rgba(0, 0, 0, 0.1));
  transition: all 300ms linear;
}

.teimosos-wrapper a span {
  color: var(--cream);
  font-size: 26px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.788px;
  text-transform: uppercase;
  transition: all 300ms linear;
}

.teimosos-wrapper a:hover {
  background-color: var(--cream-light);
}

.teimosos-wrapper a:hover span {
  color: var(--orange);
}
/* ------------ LIGHTBOX VIDEO ---- */
/* Lightbox do vídeo — escondida por defeito */
/* Lightbox do vídeo — escondida por defeito, pronta para fade */
#homepageVideoWrapper {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* Quando ativa, faz fade in */
#homepageVideoWrapper.active {
  opacity: 1;
  visibility: visible;
}

#homepageVideoInner {
  position: relative;
  width: 90%;
  max-width: 1440px;
  transform: scale(0.95);
  transition: transform 0.35s ease;
}

/* Vídeo entra com um leve scale up junto com o fade */
#homepageVideoWrapper.active #homepageVideoInner {
  transform: scale(1);
}

#homepageVideo {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* Botão fechar, canto superior direito do vídeo */
#closeVideo {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

/* -------------------------------------------------------------------------- */
/* HEADER                                                                     */
/* -------------------------------------------------------------------------- */
.burguer {
  display: none;
}
/* hamburguer menu */
.menu-mobile {
  display: none;
}
header * {
  transition: all 300ms linear;
}

header {
  padding: 22px calc(var(--padding-inline) + 30px) 10px;
  position: fixed;
  width: 100%;
  top: 0px;
  left: 0px;
  z-index: 9990;
  transition: all 300ms linear;
}

header.header-colored {
  background-color: var(--cream-light);
  transition: all 300ms linear;
}

/* Com sessão iniciada, a barra do WordPress (fixa no topo) tapava o header e cortava o logo.
   Desce o header a altura da barra: 32px no desktop, 46px até 782px.
   Abaixo de 600px a barra deixa de ser fixa (sai com o scroll) → o header volta ao topo */
body.admin-bar header {
  top: 32px;
}

@media only screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

@media only screen and (max-width: 600px) {
  body.admin-bar header {
    top: 0;
  }
}
.logo-header img {
  width: 94px;
  height: auto;
  object-fit: contain;
}

header:hover {
  background-color: var(--cream-light);
  transition: all 300ms linear;
}

/* wrapper com elementos do header */
.wrapper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 9999;
}
.headerMenuWrapper,
.headerMenuWrapper ul {
  display: flex;
  gap: 35px;
  align-items: center;
}

.headerMenuWrapper {
  gap: 100px;
}

.logo-header {
  /* position: absolute;
  left: 0px;
  top: 50%;
  transform: translate(0%, -25%); */
}
.headerMenuWrapper a,
.headerMenuWrapper span,
.headerMenuWrapper p,
.headerMenuWrapper li {
  color: var(--grey);
  /* font-family: "PT Sans"; */
  font-size: 12px;
  font-weight: 400;
  line-height: 160%;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.headerMenuWrapper a:hover {
  color: var(--orange);
}

/* ── MENU PRINCIPAL: item com submenu (ex: "Apartamentos") ── */
/* Só no header de desktop — o menu mobile usa a mesma classe .main-menu */

/* SVG da seta guardado numa variável, para não repetir o data URI */
.headerMenuWrapper .main-menu {
  --menu-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24' fill='none'%3E%3Cpath d='M0.391724 0.454226C0.391724 0.454226 11.3917 9.94062 11.3917 11.9542C11.3917 13.9678 0.391724 23.4542 0.391724 23.4542' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
}

.headerMenuWrapper .main-menu > li.menu-item-has-children {
  position: relative; /* referência para o submenu absoluto */
}

.headerMenuWrapper .main-menu > li.menu-item-has-children a {
  display: flex;
  align-items: center;
}

/* Seta antes do texto — o SVG é máscara, a cor vem do background-color */
.headerMenuWrapper .main-menu > li.menu-item-has-children > a::before,
.headerMenuWrapper .main-menu .sub-menu a::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 12px;
  height: 24px;
  margin-right: 8px;
  background-color: #7e736e;
  -webkit-mask: var(--menu-arrow) no-repeat center / contain;
  mask: var(--menu-arrow) no-repeat center / contain;
  transition:
    background-color 300ms linear,
    opacity 300ms linear;
}
.headerMenuWrapper .main-menu .sub-menu a::before {
  width: 6px;
  height: 12px;
}

/* Hover no item pai (incluindo quando o rato está no submenu) → texto e seta laranja */
.headerMenuWrapper .main-menu > li.menu-item-has-children:hover > a {
  color: var(--orange);
}

.headerMenuWrapper .main-menu > li.menu-item-has-children:hover > a::before {
  background-color: var(--orange);
}

/* Submenu — escondido por defeito, opções empilhadas na vertical */
.headerMenuWrapper .main-menu > li.menu-item-has-children > .sub-menu {
  position: absolute;
  top: 100%; /* colado ao item, sem espaço — senão o hover perde-se ao descer o rato */
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
  padding: 10px;
  list-style: none;
  background: var(--cream-light);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 300ms linear,
    visibility 300ms linear;
  gap: 8px;
  align-items: flex-start;
}

/* Hover no item pai → mostra o submenu */
.headerMenuWrapper .main-menu > li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}

/* Seta das opções do submenu: invisível, mas ocupa o espaço (o texto não salta no hover) */
.headerMenuWrapper .main-menu .sub-menu a::before {
  opacity: 0;
  background-color: var(--orange);
}

.headerMenuWrapper .main-menu .sub-menu a:hover::before {
  opacity: 1;
}

ul.idiomas-menu {
  /* position: absolute;
  top: 50px;
  right: 110px; */
  display: flex;
  gap: 10px;
}

ul.idiomas-menu li.wpml-ls-current-language a,
ul.idiomas-menu li.wpml-ls-current-language a span {
  font-weight: 700;
}

ul.idiomas-menu li:hover a,
ul.idiomas-menu li:hover a span {
  color: var(--orange);
}

/* Adiciona isto ao CSS global do site (todas as páginas) */
@view-transition {
  navigation: auto;
}

::view-transition-group(*) {
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
}

::view-transition-old(root) {
  animation: slide-out 0.3s ease forwards;
}

::view-transition-new(root) {
  animation: slide-in 0.3s ease forwards;
}

@keyframes slide-out {
  to {
    transform: translateY(-30px);
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* LP Barbara                                                                     */
/* -------------------------------------------------------------------------- */

.block1-lp {
  clip-path: url(#block1-lp-clip);
}

.block1-lp,
.block1-lp .container-video.clip-fullscreen {
  height: 105dvh;
  width: 100vw;
}

.block1-lp .container-video.clip-fullscreen {
  position: relative;
}

.block1-lp .container-video.clip-fullscreen::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: rgba(0, 0, 0, 0.1);
}

.block1-lp .vc_inner {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50vh;
  left: 13vw;
}

.block1-lp h1 {
  margin-block: 15px 35px !important;
}

.block1-lp .wpb_single_image {
  position: absolute;
  bottom: 160px;
  right: 25vw;
}

.block-contactos {
  overflow: visible !important;
}

.block-contactos .wpb_single_image {
  width: 210px;
  margin-inline: auto !important;
  margin-bottom: 50px !important;
}

.block-contactos .vc_inner {
  position: relative;
}

.block-contactos .vc_inner::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: url(#block-contactos-clip);
  background-color: var(--yellow);
  width: 100%;
  height: 190dvh;
  top: 0px;
  left: 0px;
}

.block-contactos h2 {
  padding-block: 125px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.block-contactos h2::before {
  content: "";
  width: 38px;
  height: 34px;
  background-image: url(/wp-content/uploads/icon-email.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.block-contactos .wpb_text_column:has(p) {
  width: 660px;
  margin-inline: auto !important;
  margin-bottom: 50px !important;
}

.block-contactos .wpb_text_column:has(p) p {
  text-align: center;
}

.block-contactos .quform {
  max-width: 790px;
  margin-inline: auto !important;
}

span.quform-required,
label.quform-label-text {
  color: var(--dark-grey) !important;
  font-size: 12px;
  line-height: 16px;
}

.quform-label {
  margin-left: 22px;
  margin-bottom: 12px;
  display: none !important;
}

.quform-element-textarea .quform-label {
  display: block !important;
}

.quform-input input,
.quform-input input::placeholder,
.quform-input select,
.quform-input textarea,
.quform-input textarea::placeholder,
.select2-container--quform .select2-selection .select2-selection__rendered,
label.quform-label-text {
  font-family: "PTSans" !important;
  font-weight: 400;
  font-size: 12px !important;
  line-height: 16px !important;
  color: var(--dark-grey);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.quform-input textarea::placeholder {
  opacity: 0.3;
}

.quform-input input,
.quform-input select,
.quform-input textarea,
.quform .select2-container--quform .select2-selection {
  border-radius: 0px;
  background-color: transparent;
  border: 0px !important;
  padding: 12px 22px !important;
  border-bottom: 1px solid var(--dark-grey) !important;
}

.quform-input textarea {
  border: 1px solid var(--dark-grey) !important;
  border-radius: 5px;
}

/* Dropdowns (País, Tipologia…) iguais aos outros campos: só a linha por baixo.
   O Safari (macOS/iOS) desenha o select nativo com fundo cinzento, cantos e setas duplas —
   appearance:none tira tudo e a seta passa a ser uma imagem nossa (chevron fino). */
.quform-input select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: auto;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23193240' stroke-width='1.2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 12px 7px !important;
  -webkit-text-fill-color: var(--dark-grey); /* no iOS o texto do select ficava azul/cinzento */
  opacity: 1;
}

/* Espaço para a seta — seletor mais forte que os "padding: … !important" dos breakpoints,
   que são comuns a todos os campos */
.quform .quform-input select {
  padding-right: 44px !important;
  /* Os inputs ignoram line-heights abaixo da altura natural da letra; o select não →
     com "normal" ficam exatamente com a mesma altura (também no Safari) */
  line-height: normal !important;
}

/* Sem a setinha do IE/Edge antigo */
.quform-input select::-ms-expand {
  display: none;
}

/* Foco: a linha por baixo escurece, sem o contorno azul do browser */
.quform-input select:focus {
  outline: none;
  border-bottom-color: var(--orange) !important;
}

.quform .quform-field-textarea {
  height: 90px;
}

.quform-element-textarea {
  margin-top: 0px;
}

span.quform-option-text,
span.quform-option-text a {
  font-size: 10px;
  color: var(--dark-grey);
  letter-spacing: 0px;
  line-height: 14px !important;
}

.quform-option-label,
.quform-option {
  line-height: 14px;
}

span.quform-option-text a:hover {
  text-decoration: underline;
}

.quform-options input {
  display: none;
}

.quform-options label.quform-option-label::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background-color: var(--dark-white);
  border: 1.5px solid var(--brown);
  position: absolute;
  left: -15px;
  top: -1.5px;
}

.quform-options {
  position: relative;
  margin-left: 20px;
}

.quform-options-simple .quform-option .quform-option-label {
  line-height: 14px;
  font-size: 10px;
}

.quform-options input:hover ~ label::before {
  filter: brightness(0.95);
}

.quform-options input:checked ~ label::after {
  content: "x";
  position: absolute;
  color: var(--brown);
  top: -1.5px;
  left: -10px;
  font-size: 12px;
}

.quform-element-checkbox .quform-spacer {
  padding: 0px;
}

span.quform-button-text.quform-button-submit-text {
  font-family: "PTSans";
  font-size: 20px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 3px;
  background-color: var(--orange);
  border: 0px;
  padding: 10px 40px;
  color: var(--white);
  background-image: none;
  border-radius: 50px;
  text-transform: uppercase;
}

button.quform-submit {
  width: fit-content !important;
  border: 0px;
  background-color: transparent !important;
  padding: 0px !important;
  position: relative;
  margin-top: 30px;
}

button.quform-submit:hover span.quform-button-text {
  background-color: var(--white);
  color: var(--orange);
  transition: 0.3s;
}

.quform-element-submit {
  display: flex;
  justify-content: center;
}

.block-quem_somos {
  width: 100vw;
  height: fit-content;
  overflow: visible !important;
}

.block-quem_somos::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: calc(100% + 2px);
  clip-path: url(#block-quem-somos-clip);
  background-color: var(--dark-blue);
}

.quform-success-message {
  text-align: center !important;
  background-color: transparent !important;
  border-left: unset !important;
}

.quform-success-message-icon {
  display: none !important;
}

.quform-error > .quform-error-inner {
  background-color: transparent !important;
}

.quform-loading {
  display: none !important;
}
.block-quem_somos .vc_column-inner > .wpb_wrapper {
  max-width: 820px;
  margin-inline: auto !important;
  padding-block: 250px 90px;
}
.quform-element-submit {
  margin: 0px !important;
}
.block-quem_somos h2 {
  margin-bottom: 70px !important;
}

.block-quem_somos .wpb_text_column .wpb_wrapper {
  display: flex;
  gap: 35px;
}

.block-quem_somos .wpb_text_column p {
  color: var(--cream);
  font-size: 16px;
  line-height: 25px;
  width: 50%;
}
.quform-spacer {
  margin: 0 0 0px 0 !important;
}

.block-quem_somos .wpb_single_image {
  width: 330px;
}

/* Footer */
/* ── FOOTER: forma SVG por cima do footer ── */

footer {
  width: 100vw;
  height: fit-content;
  /* background-color: var(--dark-blue-footer); */

  /* Controlo da forma — alterar só estas variáveis */
  --footer-shape-width: 125vw; /* largura da forma: 100vw, 125vw, 1800px... */
  --footer-shape-x: 0px; /* desvio horizontal (negativo = esquerda) */
  --footer-shape-y: 0px; /* desvio vertical da forma (negativo = sobe, a parte de cima fica cortada) */
  --footer-overlap: 200px; /* quanto a forma se vê por cima do footer (sobe sobre a secção anterior) */

  /* O footer "sobe" o valor do overlap e compensa com padding — o conteúdo fica no mesmo sítio */
  margin-top: calc(-1 * var(--footer-overlap));
  padding: calc(var(--footer-overlap) + 10px) 30px 10px;

  position: relative;
  isolation: isolate; /* a forma fica atrás do conteúdo do footer */
  overflow: clip; /* corta a forma nos lados e em baixo — a página não cresce */
  pointer-events: none; /* a faixa transparente de cima não bloqueia cliques na secção anterior */
  background: #f1e3ca;
}

/* Devolve os cliques ao conteúdo do footer (links, botões...) */
footer > * {
  pointer-events: auto;
}

footer::before {
  content: "";
  position: absolute;
  top: 0; /* a forma começa no topo do footer (já incluindo a faixa do overlap) */
  left: 50%;
  z-index: -1;
  width: var(--footer-shape-width);
  aspect-ratio: 2412 / 839; /* proporção original do SVG */
  transform: translate(
    calc(-50% + var(--footer-shape-x)),
    var(--footer-shape-y)
  );
  background: url("data:image/svg+xml,%3Csvg width='2412' height='839' viewBox='0 0 2412 839' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2231.08 122.147C2228.47 120.473 2225.84 118.908 2222.91 117.744C2219.49 116.4 2215.88 115.516 2212.21 115.151C2167.08 110.765 2126.44 129.781 2084.19 142.395C2039 155.881 1993.05 166.762 1946.63 174.991C1853.9 191.41 1759.24 197.191 1665.24 191.505C1563.04 185.311 1461.58 165.467 1365.06 131.196C1239.25 86.5274 1119.7 17.7142 986.986 3.01017C811.928 -16.3797 641.561 61.0504 486.565 144.895C331.568 228.74 175.155 323.029 0.00407613 341.869C0.00464678 530.167 6.84933e-06 485.673 0 838.174C354.999 838.174 846.647 838.166 1031.65 838.166C1161.65 838.167 1159.65 838.166 1366.65 838.166C1518.65 838.167 1264.15 839.444 1533.65 838.167C1785.64 838.167 1642.65 838.167 1805.65 838.167C1866.79 833.778 1605.15 831.665 1865.65 838.168C2187.15 831.667 1966.15 838.168 2258.64 831.667C2394.64 831.667 2376.87 675.169 2394.64 501.668C2394.64 430.168 2339.21 432.385 2394.64 399.669C2437.14 374.586 2385.96 284.816 2376.87 236.324C2371.01 205.051 2345.48 184.086 2318.82 169.831C2304.82 162.352 2289.68 158.016 2275.45 151.286C2259.53 143.745 2245.95 131.661 2231.07 122.169' fill='%23182228'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
}
a.powered-by {
  color: rgba(246, 240, 235, 0.6);
  font-size: 8px;
  font-weight: 275;
  line-height: normal;
}

.powered-by span {
  color: rgba(246, 240, 235, 0.6);
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}

body:has(.legalPage) footer {
  margin-top: 0px;
}
/* Exemplo: em mobile, forma mais larga e puxada para a esquerda */
@media only screen and (max-width: 768px) {
  footer {
    --footer-shape-width: 180vw;
    --footer-shape-x: -20vw;
  }
}

.wrapper-footer {
  max-width: 1062px;
  margin-inline: auto;
  display: flex;
  gap: 79px;
  align-items: flex-start;
  flex-direction: column;
}

footer .col-bottom {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

ul.menu-legal {
  display: flex;
  gap: 23px;
}

ul.menu-legal li,
ul.menu-legal li a {
  font-size: 10px;
  line-height: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--cream);
}

ul.menu-legal li:hover a {
  color: var(--cream);
}

footer .creditos {
  font-size: 14px;
  line-height: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cream);
}

footer .col-right {
  /* position: absolute;
  top: 30px;
  left: 0px; */
}

body:has(.block1-doc) footer .col-right {
  /* position: relative;
  top: 0px;
  left: 0px; */
}

body:has(.block1-doc) .wrapper-footer {
  display: flex;
  gap: 150px;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* PÁGINAS LEGAIS (row WPBakery com as classes .block1-doc .legalPage)         */
/* -------------------------------------------------------------------------- */
/* Coluna de leitura estreita (~75 caracteres por linha), títulos na fonte da marca.
   O índice "Nesta página" e o "Ver também" são gerados em JS
   (assets/js/script.js → "Páginas legais"), por isso não é preciso mexer no WPBakery. */

.block1-doc {
  --doc-texto: #4a403b; /* cinzento quente mais escuro que o --grey: melhor contraste no creme */
  --doc-linha: rgba(173, 83, 38, 0.22);
  max-width: calc(820px + 2 * var(--padding-inline)) !important;
  margin: 0 auto !important;
  left: 0 !important;
  padding: calc(var(--header-height) + 140px) var(--padding-inline) 160px;
}

/* Título + "etiqueta" por cima (mesmo estilo das labels do site) */
.block1-doc h1.vc_custom_heading {
  font-size: 80px;
  line-height: 0.95;
  font-weight: 400;
  color: var(--orange);
  margin-bottom: 48px !important;
}

.block1-doc h1.vc_custom_heading::before {
  content: "Informação legal";
  display: block;
  margin-bottom: 28px;
  font-family: "PTSans";
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
}

html[lang^="en"] .block1-doc h1.vc_custom_heading::before {
  content: "Legal information";
}

/* Texto corrido */
.block1-doc p,
.block1-doc li,
.block1-doc span,
.block1-doc div,
.block1-doc td {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--doc-texto);
}

.block1-doc .wpb_text_column p:not(:last-child) {
  margin-bottom: 1em !important;
}

/* 1.º parágrafo como introdução */
.block1-doc .wpb_text_column:first-of-type .wpb_wrapper > p:first-child {
  font-size: 22px;
  line-height: 1.5;
  color: var(--dark-blue);
}

.block1-doc strong,
.block1-doc b {
  font-weight: 700;
  color: var(--dark-blue);
}

/* Secções: linha fina por cima + espaço para o header fixo ao saltar pelo índice */
.block1-doc h2 {
  font-size: 36px;
  line-height: 1.1;
  color: var(--orange);
  margin: 64px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--doc-linha);
  scroll-margin-top: calc(var(--header-height) + 40px);
}

.block1-doc h3,
.block1-doc h4 {
  font-family: "PTSans";
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 28px 0 10px;
}

.block1-doc a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(173, 83, 38, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.block1-doc a:hover {
  color: var(--orange);
  text-decoration-color: currentColor;
}

/* Listas: ponto laranja em vez do disco por defeito */
.block1-doc .wpb_text_column ul,
.block1-doc .wpb_text_column ol {
  margin: 0 0 1em;
  padding-left: 0;
}

.block1-doc .wpb_text_column ul li {
  list-style: none;
  position: relative;
  padding-left: 26px;
}

.block1-doc .wpb_text_column ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.block1-doc .wpb_text_column ol {
  padding-left: 24px;
}

.block1-doc .wpb_text_column ol li {
  list-style: decimal;
  padding-left: 4px;
}

.block1-doc .wpb_text_column ol li::marker {
  color: var(--orange);
  font-weight: 700;
}

.block1-doc li + li {
  margin-top: 6px;
}

/* Tabelas (ex.: lista de cookies) */
.block1-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.block1-doc th,
.block1-doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  font-size: 16px;
  border-bottom: 1px solid var(--doc-linha);
}

.block1-doc th {
  font-weight: 700;
  color: var(--dark-blue);
}

/* Índice "Nesta página" (gerado em JS a partir dos h2) — mesma caixa do mapa */
.block1-doc .doc-indice {
  margin: 48px 0 8px;
  padding: 28px 32px;
  border: 1px solid #db7b53;
  border-radius: 30px;
}

.block1-doc .doc-etiqueta {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
}

.block1-doc .doc-indice ol {
  columns: 2;
  column-gap: 40px;
  margin: 0;
  padding: 0;
}

.block1-doc .doc-indice li {
  list-style: none;
  break-inside: avoid;
  margin: 0 0 10px;
}

.block1-doc .doc-indice a {
  font-size: 16px;
  line-height: 1.4;
  color: var(--doc-texto);
  text-decoration: none;
}

.block1-doc .doc-indice a:hover {
  color: var(--orange);
}

/* "Ver também" no fim do documento */
.block1-doc .doc-rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--doc-linha);
}

.block1-doc .doc-relacionadas a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "TrendsetterPrestigeDEMO", sans-serif;
  font-size: 32px;
  line-height: 1.1;
  text-decoration: none;
}

.block1-doc .doc-relacionadas a::after {
  content: "→";
  font-family: "PTSans";
  font-size: 22px;
  transition: transform 0.25s ease;
}

.block1-doc .doc-relacionadas a:hover::after {
  transform: translateX(6px);
}

.block1-doc .doc-relacionadas li {
  list-style: none;
}

.block1-doc .doc-relacionadas li + li {
  margin-top: 8px;
}


@media only screen and (max-width: 1550px) {
  .block1-doc {
    padding-top: calc(var(--header-height) + 110px);
  }
  .block1-doc h1.vc_custom_heading {
    font-size: 64px;
  }
  .block1-doc h2 {
    font-size: 30px;
  }
}

@media only screen and (max-width: 768px) {
  .block1-doc {
    padding: calc(var(--header-height) + 70px) 24px 120px;
  }
  .block1-doc h1.vc_custom_heading {
    font-size: 44px;
    margin-bottom: 32px !important;
  }
  .block1-doc h1.vc_custom_heading::before {
    margin-bottom: 20px;
  }
  .block1-doc p,
  .block1-doc li,
  .block1-doc span,
  .block1-doc div {
    font-size: 16px;
  }
  .block1-doc .wpb_text_column:first-of-type .wpb_wrapper > p:first-child {
    font-size: 18px;
  }
  .block1-doc h2 {
    font-size: 26px;
    margin: 48px 0 16px;
    padding-top: 32px;
  }
  .block1-doc .doc-indice {
    padding: 22px;
    border-radius: 24px;
  }
  .block1-doc .doc-indice ol {
    columns: 1;
  }
  .block1-doc .doc-indice a {
    font-size: 15px;
  }
  .block1-doc .doc-relacionadas a {
    font-size: 26px;
  }
  /* tabelas largas fazem scroll horizontal em vez de partir a página */
  .block1-doc table {
    display: block;
    overflow-x: auto;
  }
}

/* -------------------------------------------------------------------------- */
/* PÁGINA 404 (404.php)                                                        */
/* -------------------------------------------------------------------------- */
/* Texto à esquerda, imagem com forma orgânica à direita e o "404" grande por cima.
   Imagem: Personalizar → "Configurações Vídeo, Lógotipos, etc" → "Imagem da página 404". */

.pagina-404 {
  --p404-texto: #4a403b;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 90px;
  max-width: 1600px;
  min-height: 100svh;
  margin-inline: auto;
  /* página isolada (sem header nem footer): só o respiro em cima e em baixo */
  padding: 80px var(--padding-inline);
}

/* Logótipo no sítio onde estaria o do header (não há header nesta página) */
.pagina-404 {
  position: relative;
}

.p404-logo {
  position: absolute;
  top: 28px;
  left: var(--padding-inline);
  z-index: 3;
}

.p404-logo img {
  display: block;
  width: 84px;
  height: auto;
}

/* Entrada: cada elemento sobe e aparece, um a seguir ao outro (--i = ordem).
   A classe .is-visivel é posta pelo script no 404.php quando o preloader sai */
.p404-anim {
  opacity: 0;
  transform: translateY(30px);
}

.pagina-404.is-visivel .p404-anim {
  animation: p404-entrar 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 0.12s);
}

.p404-imagem {
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.2s ease,
    transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pagina-404.is-visivel .p404-imagem {
  opacity: 1;
  transform: none;
}

@keyframes p404-entrar {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p404-anim,
  .p404-imagem {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

.pagina-404--sem-imagem {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.p404-etiqueta,
.p404-links-titulo {
  display: block;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
}

.pagina-404 h1.p404-titulo {
  margin: 26px 0 28px;
  font-size: 96px;
  line-height: 0.92;
  color: var(--orange);
}

.pagina-404 p.p404-texto {
  max-width: 30em;
  font-size: 20px;
  line-height: 1.55;
  color: var(--p404-texto);
}

.p404-acoes {
  margin-top: 40px;
}

/* Botão no estilo dos botões do WPBakery do site (pílula laranja) */
.pagina-404 a.p404-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: 50px;
  background: var(--orange);
  font-size: 16px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  transition: background-color 0.25s ease;
}

.pagina-404 a.p404-btn:hover {
  background: #8f4219;
  color: var(--white);
}

.pagina-404 a.p404-btn span {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  transition: transform 0.25s ease;
}

.pagina-404 a.p404-btn:hover span {
  transform: translateX(-4px);
}

/* Atalhos para as páginas do menu principal */
.p404-links {
  margin-top: 56px;
}

.p404-links-titulo {
  color: var(--grey);
  margin-bottom: 16px;
}

.p404-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagina-404 .p404-links a {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid rgba(173, 83, 38, 0.4);
  border-radius: 50px;
  font-size: 13px;
  line-height: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.pagina-404 .p404-links a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* Imagem com forma orgânica + "404" grande */
.p404-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.p404-imagem {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 72svh;
  object-fit: cover;
  border-radius: 48% 52% 46% 54% / 42% 44% 56% 58%;
}

.pagina-404 span.p404-numero {
  position: absolute;
  left: -0.22em;
  bottom: -0.16em;
  z-index: 2;
  font-family: "TrendsetterPrestigeDEMO", sans-serif;
  font-size: clamp(150px, 15vw, 290px);
  line-height: 1;
  color: var(--orange);
  pointer-events: none;
}

/* Sem imagem: o número fica por cima do título */
.pagina-404--sem-imagem span.p404-numero {
  position: static;
  display: block;
  margin-bottom: 10px;
  font-size: 180px;
}

@media only screen and (max-width: 1550px) {
  .pagina-404 {
    gap: 60px;
  }
  .pagina-404 h1.p404-titulo {
    font-size: 76px;
  }
  .pagina-404 p.p404-texto {
    font-size: 18px;
  }
}

@media only screen and (max-width: 768px) {
  .pagina-404 {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    min-height: 100svh;
    align-content: center;
    padding: 110px 24px 60px;
  }
  .p404-visual {
    order: -1; /* imagem primeiro */
    width: 80%;
    justify-self: center;
  }
  .p404-imagem {
    aspect-ratio: 1 / 1;
  }
  .pagina-404 span.p404-numero {
    font-size: 110px;
  }
  .pagina-404--sem-imagem span.p404-numero {
    font-size: 120px;
  }
  .pagina-404 h1.p404-titulo {
    font-size: 48px;
    margin: 20px 0;
  }
  .pagina-404 p.p404-texto {
    font-size: 17px;
  }
  .pagina-404 a.p404-btn {
    padding: 16px 24px;
    font-size: 14px;
    line-height: 14px;
  }
  .p404-links {
    margin-top: 40px;
  }
  .p404-logo {
    top: 20px;
    left: 24px;
  }
  .p404-logo img {
    width: 70px;
  }
}
/* -------------------------------------------------------------------------- */
/* HOMEPAGE                                                                   */
/* -------------------------------------------------------------------------- */

/**************** Hero Section (hero-section) *************/

/**************** Small Section (small-section) *************/
.small-section {
  padding-block: 60px;
  background-color: var(--cream-light);
}

.small-section > div > div > div {
  max-width: calc(1178px + 30px);
  margin-inline: auto;
}

.small-section > div > div > div .wpb_text_column {
  max-width: 370px;
}
/**************** Masterplan Section (masterplan-section) *************/
.masterplan-section .wpb_raw_html {
  max-width: var(--container-width);
  margin-inline: auto !important;
}

.masterplan-section {
  position: relative;
  background-color: var(--cream-light);
}
.cards-section > div,
.masterplan-section > div {
  position: relative;
  z-index: 2;
}

.masterplan-section::before {
  content: "";
  background-image: url(/wp-content/uploads/map-shape-opacity.svg);
  background-position: top left;
  background-repeat: no-repeat;
  background-size: contain;
  width: 3757px;
  width: 200vw;
  max-width: unset;
  height: 2449px;
  position: absolute;
  left: 0px;
  object-fit: cover;
  top: 0px;
  /* transform: translate(0%, -60%); */
  mix-blend-mode: multiply;

  z-index: 1;
  pointer-events: none;
}
/* "A Autenticidade da Vida Algarvia" (título do bspacy-masterplan-comercial) na linha interior
   da grelha — o plugin põe 10vw; o Figma tem 240px (12.5vw) a partir da caixa */
@media only screen and (min-width: 992px) {
  .masterplan-section .mpc .mpc-title {
    margin-left: calc(var(--grelha-interior) - var(--grelha-margem));
  }
}
/**************** Cards Section (cards-section) *************/
.cards-section {
  padding-bottom: 0px;
  background-color: var(--cream-light);
}
/**************** Galeria Section (galeria-slide-section) *************/
.galeria-slide-section {
  padding-right: 0px;
  padding-left: 9vw;
}

@media only screen and (min-width: 992px) {
  .galeria-slide-section {
    padding-left: calc(var(--grelha-margem) + 15px); /* grelha (antes 9vw) */
  }
}
/**************** Desenhado Section (desenhado-section) *************/
/* aqui */

/**************** Amenities Section (amenities-section) *************/
.amenities-section {
  position: relative;
  z-index: 3;
  padding-inline: calc(var(--padding-inline) + 15px);
}

/* Masterplan (plugin bspacy-masterplan) na grelha, como no Figma (desktop):
   mapa com a largura do container, legenda e título encostados à linha da esquerda */
@media only screen and (min-width: 992px) {
  .amenities-section {
    padding-inline: calc(var(--grelha-margem) + 15px);
  }
  .amenities-section .mp-fe-map-col {
    width: 100%;
  }
  .amenities-section .mp-fe-legend-col {
    left: 0;
    transform: none;
  }
  /* medalhão decorativo continua colado à margem direita do ecrã */
  .amenities-section .medalion-svg {
    right: calc(10px - var(--grelha-margem));
  }
}
/**************** Próxima Casa Section (proxima-casa-section) *************/
.proxima-casa-section h2 {
  color: var(--dark-blue);
}

/* Desktop: título encostado à linha da grelha (como no Figma), por cima dos cartões */
@media only screen and (min-width: 992px) {
  .proxima-casa-section h2 {
    text-align: left !important; /* a row já está na grelha */
  }
}
.proxima-casa-section {
  position: relative;
}
.proxima-casa-section .wpb_column {
  position: relative;
  z-index: 2;
}

/* A forma decorativa (::before, z-index 1) prolonga-se ~900px abaixo da secção: sem isto ficava
   POR CIMA do texto da secção seguinte (elemento posicionado pinta por cima de conteúdo normal).
   A secção seguinte passa a ficar por cima — a forma continua visível por trás (fundo transparente). */
.proxima-casa-section + .vc_row {
  position: relative;
  z-index: 2;
}

.proxima-casa-section::before {
  content: "";
  background-image: url(/wp-content/uploads/colored-cartao-shape-2-scaled.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  /* width: 3450px; */
  width: 200vw;
  max-width: unset;
  height: 1213px;
  position: absolute;
  left: 60%;
  top: 55%;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  /* filter: brightness(0.5); */
  z-index: 1;
  pointer-events: none;
}
/**************** Contactos Section (contactos-section) *************/

.before-contacts-section {
  padding-bottom: 0px;
}
.before-contacts-section .wpb_single_image {
  width: 100%;
}

.contactos-section {
  position: relative;
  z-index: 3;
}
.above-form-logo img {
  width: 250px;
  height: auto;
  object-fit: contain;
}

.contactos-section > div > div > .wpb_wrapper {
  max-width: 921px;
  margin-inline: auto;
  border: 1px solid var(--orange);
  border-radius: 15px;
  padding: 31px 67px;
}

.contactos-section > div > div > .wpb_wrapper > .wpb_single_image img {
  width: 34px;
  height: auto;
  object-fit: contain;
}
.tavira-algarve {
  margin-block: 22px 16px !important;
}
.tavira-algarve.wpb_text_column img {
  width: 20px;
  height: auto;
  object-fit: contain;
}

.tavira-algarve.wpb_text_column p {
  color: var(--orange);
  font-family: "TrendsetterPrestigeDEMO", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1.44px;
  text-transform: uppercase;
}

.contactos-section .top-form-wrapper .wpb_text_column:nth-child(2) p a {
  color: var(--grey);
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.contactos-section > div > div > .wpb_wrapper > .wpb_text_column p {
  color: var(--dark-blue);
  font-size: 25px;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  margin-block: 25px 52px;
}

/**************** Quem Somos Section (quem-somos-section) *************/
.quem-somos-section {
  position: relative;
  overflow: visible !important;
}

/* Forma decorativa da secção "Quem Somos" (como no Figma):
   - começa logo abaixo do topo da secção → o limite (inclinado) fica no espaço entre o
     formulário e o título, nunca por trás do formulário (antes era top:-10%, que dependia
     da altura da secção e a puxava para cima)
   - acompanha a largura do ecrã (203vw = 3900px num ecrã de 1920), para se ver sempre o mesmo
     recorte que no Figma; nunca menos de 1800px, para em mobile cobrir a secção toda */
.quem-somos-section {
  --qs-mancha-topo: max(3.2vw, 24px); /* distância do topo da secção ao início da imagem */
  padding-top: calc(var(--paddingVert) + max(8.4vw, 40px)) !important; /* espaço extra por cima do título */
}

.quem-somos-section::before {
  content: "";
  position: absolute;
  top: var(--qs-mancha-topo);
  left: 50%;
  transform: translateX(-50%);
  width: max(203vw, 1800px);
  aspect-ratio: 3944 / 1983; /* proporção da imagem */
  background: url(/wp-content/uploads/quem-somos-shape-full.webp) no-repeat top center / 100% 100%;
  pointer-events: none;
}

.quem-somos-section > div > div > .wpb_wrapper {
  max-width: 1062px;
  margin-inline: auto;
  display: flex;
  gap: 0px;
  flex-direction: column;
}
.quem-somos-section > div > div > .wpb_wrapper > .vc_do_custom_heading {
  color: #182228;
}
.quem-somos-text-row > div > div > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  margin-block: 58px 28px;
}
.quem-somos-text-row > div > div > div p {
  color: #5c4c45;
  font-size: 16px;
  font-weight: 300;
  line-height: 150%;
  letter-spacing: 0.32px;
}
.bottom-quem-somos > div > div > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 85px;
  max-width: 336px;
  margin-left: auto;
  z-index: 33;
  position: relative;
}

.bottom-quem-somos > div > div > div a {
  color: #182228;
  color: var(--dark-blue);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
/* -------------------------------------------------------------------------- */
/* APARTAMENTOS                                                               */
/* -------------------------------------------------------------------------- */

/**************** Hero Section (apartamentos-hero-section) *************/

/**************** Viver Bem Section (viver-bem-section) *************/
.viver-bem-section {
  padding-left: calc(var(--padding-inline) + 30px);
  height: calc(
    100vh - var(--header-height) - 10px
  ); /* a secção ocupa sempre o ecrã inteiro */
  height: calc(
    100svh - var(--header-height) - 10px
  ); /* mobile: ignora a barra do browser */
  max-height: 998px;
  min-height: 600px !important;
  padding-bottom: 0; /* sem padding em cima/baixo, senão a imagem não cabe */
  box-sizing: border-box;
  margin-bottom: 50px;
}

.viver-bem-section > div > div > div {
  position: relative;
}

/* Toda a cadeia de wrappers entre a secção e a imagem herda a altura da secção */
.viver-bem-section > div,
.viver-bem-section > div > div,
.viver-bem-section > div > div > div,
.viver-bem-mascara,
.viver-bem-mascara .vc_figure,
.viver-bem-mascara .vc_single_image-wrapper {
  height: 100%;
}

/* Os wrappers do WPBakery têm de ocupar a largura toda */
.viver-bem-mascara .vc_figure,
.viver-bem-mascara .vc_single_image-wrapper {
  display: block;
  width: 100%;
}

/* Imagem recortada pela forma do SVG.
   Largura = coluna, altura = secção → a forma só estica no eixo que muda */
.viver-bem-mascara .vc_single_image-img {
  display: block;
  width: 100% !important;
  max-width: none;
  height: 100% !important; /* !important para ganhar ao height:auto do WPBakery/tema */
  object-fit: cover; /* a foto não deforma, só a máscara */
  object-position: bottom;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1802 998' preserveAspectRatio='none'%3E%3Cpath d='M1062.24 76.6461C1369.05 0.793388 1454.32 -1.63776 1751.96 0.431383C1779.43 0.62235 1801.76 22.9566 1801.76 50.4281V948C1801.76 975.614 1779.37 998 1751.76 998H335.06C30.7395 998 36.1195 596.656 3.31077 395.984C-7.83819 293.591 4.55878 173.056 113.053 115.476C188.655 75.3627 289.135 79.4305 377.633 96.9854C466.131 114.54 551.523 144.016 642.462 150.172C786.4 159.917 924.459 110.712 1062.24 76.6461Z' fill='%23000'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1802 998' preserveAspectRatio='none'%3E%3Cpath d='M1062.24 76.6461C1369.05 0.793388 1454.32 -1.63776 1751.96 0.431383C1779.43 0.62235 1801.76 22.9566 1801.76 50.4281V948C1801.76 975.614 1779.37 998 1751.76 998H335.06C30.7395 998 36.1195 596.656 3.31077 395.984C-7.83819 293.591 4.55878 173.056 113.053 115.476C188.655 75.3627 289.135 79.4305 377.633 96.9854C466.131 114.54 551.523 144.016 642.462 150.172C786.4 159.917 924.459 110.712 1062.24 76.6461Z' fill='%23000'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
}

.viver-bem-content-wrapper {
  position: absolute;
  left: calc(var(--padding-inline) + 50px);
  top: 25%;
  z-index: 2;
}

.viver-bem-content-wrapper h2 {
  margin-block: 20px 20px !important;
  max-width: 574px;
}

.viver-bem-content-wrapper .wpb_text_column {
  max-width: 259px;
}

.viver-bem-content-wrapper .wpb_text_column p {
  color: var(--white);
}
/**************** Tipologias Section (tipologias-section) *************/
.tipologias-section {
  padding-bottom: 50px;
}

/**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
.tipologias-section,
.vivencias-section,
.galeria-slide-section,
.tipologias-detalhe-section {
  position: relative;
  background-color: var(--cream-light);
}

.tipologias-section > div,
.vivencias-section > div,
.galeria-slide-section > div,
.tipologias-detalhe-section > div {
  position: relative;
  z-index: 2;
}

.tipologias-detalhe-section::before {
  content: "";
  background-image: url(/wp-content/uploads/tipologias-detalhe-section-shape-opacity.svg);
  background-position: left;
  background-repeat: no-repeat;
  background-size: contain;
  width: 1854px;
  width: 100vw;
  max-width: unset;
  height: 2845px;
  position: absolute;
  left: -100px;
  object-fit: cover;
  top: 0px;
  transform: translate(0%, -60%);
  mix-blend-mode: multiply;

  z-index: 1;
  pointer-events: none;
}
/* aqui PEDRO */

/****************************** MEDIA QUERIES ************************************/
/* PARA ECRAS 4k - criar container para nao ir para as pontas */
@media (min-width: 2100px) {
  :root {
    --bigpage-container: 1540px;
    --padding-inline: calc((100% - var(--bigpage-container)) / 2);
  }
  /* colocar esta classe onde quiser limitar o crescimento em divs genéricas */
  .bigscreen-limit {
    max-width: var(--bigpage-container);
    margin-inline: auto;
  }
  /*Colocar esta classe nas rows principais das páginas para forçar o container*/
  .vc_row_bigscreen-limit {
    padding-left: calc((100% - var(--bigpage-container)) / 2);
    padding-right: calc((100% - var(--bigpage-container)) / 2);
    box-sizing: border-box;
  }

  header {
    padding: 22px var(--padding-inline) 10px;
  }
  /**************** Viver Bem Section (viver-bem-section) *************/
  .viver-bem-section {
    padding-inline: var(--padding-inline) !important;
  }
}
@media only screen and (max-width: 1750px) {
  :root {
    --paddingVert: 90px;
    --container-width: 1320px;
  }

  h1,
  h1 span,
  h1 div {
    font-size: calc(90px * 0.8);
    line-height: calc(82px * 0.8);
  }

  h2,
  h2 div {
    font-size: calc(36px * 0.8);
    line-height: calc(40px * 0.8);
  }

  h2.big,
  h2.big div {
    font-size: calc(90px * 0.8);
    line-height: calc(86px * 0.8);
  }

  h3.bigger {
    font-size: calc(115px * 0.8);
    letter-spacing: calc(1.153px * 0.8);
  }
  h3,
  h3 span,
  h3 div {
    font-size: calc(25px * 0.8);
    line-height: calc(25px * 0.8);
  }
  /* -------------------------------------------------------------------------- */
  /* TEIMOSOS                                                                   */
  /* -------------------------------------------------------------------------- */

  .teimosos-wrapper a {
    border-top-left-radius: calc(50px * 0.9);
    border-bottom-left-radius: calc(50px * 0.9);
    /* padding: calc(6px * 0.9) calc(42px * 0.9) calc(10px * 0.9) calc(32px * 0.9); */
    padding: calc(10px * 0.9) calc(42px * 0.9) calc(10px * 0.9) calc(32px * 0.9);
  }

  .teimosos-wrapper a span {
    font-size: calc(26px * 0.9);
    letter-spacing: calc(0.788px * 0.9);
  }

  /* -------------------------------------------------------------------------- */
  /* HOMEPAGE                                                                   */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (hero-section) *************/

  /**************** Masterplan Section (masterplan-section) *************/

  /**************** Cards Section (cards-section) *************/

  /**************** Desenhado Section (desenhado-section) *************/

  /**************** Amenities Section (amenities-section) *************/

  /**************** Contactos Section (contactos-section) *************/

  .above-form-logo img {
    width: calc(250px * 0.8);
    height: auto;
  }

  .contactos-section > div > div > .wpb_wrapper {
    max-width: calc(921px * 0.8);
    padding: 28px 64px;
  }

  .contactos-section > div > div > .wpb_wrapper > .wpb_single_image img {
    width: calc(34px * 0.8);
    height: auto;
  }
  .tavira-algarve {
    margin-block: calc(22px * 0.8) calc(16px * 0.8) !important;
  }
  .tavira-algarve.wpb_text_column img {
    width: calc(20px * 0.8);
    height: auto;
  }

  .tavira-algarve.wpb_text_column p {
    font-size: calc(36px * 0.8);
    letter-spacing: calc(1.44px * 0.8);
  }

  .contactos-section .top-form-wrapper .wpb_text_column:nth-child(2) p a {
    font-size: calc(12px * 0.8);
    letter-spacing: calc(1.8px * 0.8);
  }

  .contactos-section > div > div > .wpb_wrapper > .wpb_text_column p {
    font-size: calc(25px * 0.8);
    margin-block: calc(25px * 0.8) calc(52px * 0.8);
  }

  .quform-3 .quform-spacer,
  .quform-3 .quform-element-group.quform-group-style-bordered > .quform-spacer,
  .quform-3 .quform-group-style-bordered > .quform-child-elements {
    padding-bottom: 14px !important;
  }

  button.quform-submit {
    margin-top: 22px;
  }
  /**************** Quem Somos Section (quem-somos-section) *************/

  .bottom-quem-somos > div > div > div {
    gap: 60px;
    /* max-width: 336px; */
  }

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */
  /**************** Viver Bem Section (viver-bem-section) *************/

  .viver-bem-content-wrapper h2 {
    max-width: 450px;
  }

  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

@media only screen and (max-width: 1550px) {
  :root {
    --padding-inline: 70px;
    --paddingVert: 70px;
    --container-width: 1100px;
  }

  h1,
  h1 span,
  h1 div {
    font-size: calc(90px * 0.7);
    line-height: calc(82px * 0.7);
  }

  h2,
  h2 div {
    font-size: calc(36px * 0.7);
    line-height: calc(40px * 0.7);
  }

  h2.big,
  h2.big div {
    font-size: calc(90px * 0.7);
    line-height: calc(86px * 0.7);
  }
  h3.bigger {
    font-size: calc(115px * 0.7);
    letter-spacing: calc(1.153px * 0.7);
  }
  h3,
  h3 span,
  h3 div {
    font-size: calc(25px * 0.7);
    line-height: calc(25px * 0.7);
  }
  /* -------------------------------------------------------------------------- */
  /* TEIMOSOS                                                                   */
  /* -------------------------------------------------------------------------- */

  .teimosos-wrapper a {
    border-top-left-radius: calc(50px * 0.8);
    border-bottom-left-radius: calc(50px * 0.8);
    /* padding: calc(6px * 0.8) calc(42px * 0.8) calc(10px * 0.8) calc(32px * 0.8); */
    padding: calc(10px * 0.8) calc(42px * 0.8) calc(10px * 0.8) calc(32px * 0.8);
  }

  .teimosos-wrapper a span {
    font-size: calc(26px * 0.8);
    letter-spacing: calc(0.788px * 0.8);
  }

  header {
    padding: 18px var(--padding-inline) 7px;
  }

  .logo-header img {
    width: calc(94px * 0.9);
    height: auto;
    object-fit: contain;
  }
  /* -------------------------------------------------------------------------- */
  /* HOMEPAGE                                                                   */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (hero-section) *************/
  .small-section > div > div > div {
    max-width: calc((1178px + 0px) * 0.7);
    margin-inline: auto;
  }
  /**************** Masterplan Section (masterplan-section) *************/

  /**************** Cards Section (cards-section) *************/

  /**************** Desenhado Section (desenhado-section) *************/

  /**************** Amenities Section (amenities-section) *************/

  /**************** Contactos Section (contactos-section) *************/

  .above-form-logo img {
    width: calc(250px * 0.7);
    height: auto;
  }

  .contactos-section > div > div > .wpb_wrapper {
    /* max-width: calc(921px * 0.7); */
    /* padding: 28px 64px; */
  }

  .contactos-section > div > div > .wpb_wrapper > .wpb_single_image img {
    width: calc(34px * 0.7);
    height: auto;
  }
  .tavira-algarve {
    margin-block: calc(22px * 0.6) calc(16px * 0.6) !important;
  }
  .tavira-algarve.wpb_text_column img {
    width: calc(20px * 0.7);
    height: auto;
  }

  .tavira-algarve.wpb_text_column p {
    font-size: calc(36px * 0.7);
    letter-spacing: calc(1.44px * 0.7);
  }

  .contactos-section > div > div > .wpb_wrapper > .wpb_text_column p {
    font-size: calc(25px * 0.7);
    margin-block: 12px 24px;
  }

  .quform-3 .quform-spacer,
  .quform-3 .quform-element-group.quform-group-style-bordered > .quform-spacer,
  .quform-3 .quform-group-style-bordered > .quform-child-elements {
    padding-bottom: 10px !important;
  }
  .quform-3 .quform-spacer:has(input[type="checkbox"]) {
    padding-bottom: 3px !important;
  }
  button.quform-submit {
    margin-top: 10px;
  }

  .quform-input input,
  .quform-input select,
  .quform-input textarea,
  .quform .select2-container--quform .select2-selection {
    padding: 8px 18px !important;
  }
  span.quform-button-text.quform-button-submit-text {
    font-size: 17px;
    line-height: 1;
    letter-spacing: 2px;
    padding: 8px 30px;
  }
  /**************** Quem Somos Section (quem-somos-section) *************/
  .quem-somos-section > div > div > .wpb_wrapper {
    max-width: 800px;
  }

  .quem-somos-text-row > div > div > div {
    margin-block: 40px 24px;
  }

  .bottom-quem-somos > div > div > div {
    gap: 40px;
    max-width: 300px;
  }

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (apartamentos-hero-section) *************/

  /**************** Viver Bem Section (viver-bem-section) *************/

  .viver-bem-content-wrapper {
    left: calc(var(--padding-inline) + 30px);
    top: 25%;
  }

  .viver-bem-content-wrapper h2 {
    /* margin-block: 12px 30px !important; */
    max-width: 510px;
  }

  .viver-bem-content-wrapper .wpb_text_column {
    max-width: 259px;
  }

  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/

  /* ── FOOTER: forma SVG por cima do footer ── */

  footer {
    /* --footer-shape-width: 125vw;  */
    --footer-overlap: 150px; /* quanto a forma se vê por cima do footer (sobe sobre a secção anterior) */
    /* O footer "sobe" o valor do overlap e compensa com padding — o conteúdo fica no mesmo sítio */
    margin-top: calc(-1 * var(--footer-overlap));
    /* padding: calc(var(--footer-overlap) + 10px) 30px 10px; */
  }

  .wrapper-footer {
    max-width: 800px;
    gap: 60px;
  }
}

@media only screen and (max-width: 1440px) {
  :root {
    --padding-inline: 60px;
    --paddingVert: 70px;
    --container-width: 991px;
  }
  /* Estrutura */

  h1,
  h1 span,
  h1 div,
  h2.big,
  h2.big div {
    font-size: 70px;
    line-height: 62px;
  }
  h3.bigger {
    font-size: 90px;
    letter-spacing: calc(1.153px * 0.85);
  }

  h3,
  h3 span,
  h3 div {
    font-size: 22px;
    line-height: 23px;
  }

  .vc_btn3-container.vc_btn3-inline.vc_do_btn a.vc_btn3,
  .vc_btn3-container.vc_btn3-inline.vc_do_btn button.vc_btn3 {
    font-size: 16px;
    padding: 16px 30px;
  }

  /* Landing Page */

  .block1-lp .vc_inner {
    top: 40vh;
  }

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

@media only screen and (max-width: 1280px) {
  :root {
    /* --padding-inline: 60px; */
    --paddingVert: 70px;
    --container-width: 768px;
  }

  h1,
  h1 span,
  h1 div {
    font-size: calc(90px * 0.6);
    line-height: calc(82px * 0.6);
  }

  h2,
  h2 div {
    font-size: calc(36px * 0.6);
    line-height: calc(40px * 0.6);
  }

  h2.big,
  h2.big div {
    font-size: calc(90px * 0.6);
    line-height: calc(86px * 0.6);
  }

  h3.bigger {
    font-size: calc(115px * 0.6);
    letter-spacing: calc(1.153px * 0.6);
  }

  h3,
  h3 span,
  h3 div {
    font-size: calc(25px * 0.6);
    line-height: calc(25px * 0.6);
  }

  /* Landing Page */

  .block-quem_somos .vc_column-inner > .wpb_wrapper {
    max-width: 700px;
  }

  .block-quem_somos .wpb_single_image {
    width: 270px;
  }

  /* Footer */

  footer .creditos {
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 1.5px;
  }

  footer .col-left {
    gap: 50px;
  }

  ul.menu-legal {
    gap: 25px;
  }
  /* -------------------------------------------------------------------------- */
  /* TEIMOSOS                                                                   */
  /* -------------------------------------------------------------------------- */

  .teimosos-wrapper a {
    border-top-left-radius: calc(50px * 0.7);
    border-bottom-left-radius: calc(50px * 0.7);
    /* padding: calc(6px * 0.7) calc(42px * 0.7) calc(10px * 0.7) calc(32px * 0.7); */
    padding: calc(10px * 0.7) calc(42px * 0.7) calc(10px * 0.7) calc(32px * 0.7);
  }

  .teimosos-wrapper a span {
    font-size: calc(26px * 0.7);
    letter-spacing: calc(0.788px * 0.7);
  }
  /* -------------------------------------------------------------------------- */
  /* HOMEPAGE                                                                   */
  /* -------------------------------------------------------------------------- */
  /**************** Small Section (small-section) *************/
  .small-section {
    padding-block: 40px;
  }
  /* 
  /**************** Masterplan Section (masterplan-section) *************/

  /**************** Cards Section (cards-section) *************/

  /**************** Desenhado Section (desenhado-section) *************/

  /**************** Contactos Section (contactos-section) *************/

  .above-form-logo img {
    width: calc(250px * 0.6);
    height: auto;
  }

  .contactos-section > div > div > .wpb_wrapper > .wpb_single_image img {
    width: calc(34px * 0.6);
    height: auto;
  }
  .tavira-algarve {
    margin-block: calc(22px * 0.5) calc(16px * 0.5) !important;
  }
  .tavira-algarve.wpb_text_column img {
    width: calc(20px * 0.6);
    height: auto;
  }

  .tavira-algarve.wpb_text_column p {
    font-size: calc(36px * 0.6);
    letter-spacing: calc(1.44px * 0.6);
  }

  .contactos-section > div > div > .wpb_wrapper > .wpb_text_column p {
    font-size: calc(25px * 0.6);
    margin-block: 10px 22px;
  }

  .quform-3 .quform-spacer,
  .quform-3 .quform-element-group.quform-group-style-bordered > .quform-spacer,
  .quform-3 .quform-group-style-bordered > .quform-child-elements {
    padding-bottom: 8px !important;
  }
  .quform-3 .quform-spacer:has(input[type="checkbox"]) {
    padding-bottom: 2px !important;
  }
  button.quform-submit {
    margin-top: 8px;
  }

  .quform-input input,
  .quform-input select,
  .quform-input textarea,
  .quform .select2-container--quform .select2-selection {
    padding: 6px 16px !important;
  }
  span.quform-button-text.quform-button-submit-text {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1.7px;
    padding: 7px 28px;
  }

  .quform-input input,
  .quform-input input::placeholder,
  .quform-input select,
  .quform-input textarea,
  .quform-input textarea::placeholder,
  .select2-container--quform .select2-selection .select2-selection__rendered,
  label.quform-label-text {
    font-size: 10px !important;
    line-height: 10px !important;
    letter-spacing: 1.8px;
  }

  .quform-label {
    margin-bottom: 8px;
  }
  .quform .quform-field-textarea {
    height: 70px;
  }

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Viver Bem Section (viver-bem-section) *************/

  .viver-bem-content-wrapper {
    /* left: calc(var(--padding-inline) + 30px);
    top: 25%; */
  }

  .viver-bem-content-wrapper h2 {
    /* margin-block: 12px 30px !important; */
    max-width: 340px;
  }

  .viver-bem-content-wrapper .wpb_text_column {
    /* max-width: 259px; */
  }
  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

@media only screen and (max-width: 1100px) {
  /* Estrutura */

  h1,
  h1 span,
  h1 div,
  h2.big,
  h2.big div {
    font-size: 50px;
    line-height: 42px;
  }

  h2,
  h2 div {
    font-size: 30px;
    line-height: 34px;
  }

  h3.bigger {
    font-size: calc(115px * 0.5);
    letter-spacing: calc(1.153px * 0.5);
  }

  h3,
  h3 span,
  h3 div {
    font-size: 18px;
    line-height: 18px;
  }

  p,
  li,
  a,
  span,
  div {
    font-size: 16px;
    line-height: 20px;
  }

  .vc_btn3-container.vc_btn3-inline.vc_do_btn a.vc_btn3,
  .vc_btn3-container.vc_btn3-inline.vc_do_btn button.vc_btn3 {
    font-size: 12px;
    padding: 10px 20px;
    letter-spacing: 2px;
  }

  /* -------------------------------------------------------------------------- */
  /* LP BARBARA                                                                   */
  /* -------------------------------------------------------------------------- */

  .block1-lp .wpb_single_image img {
    height: 18px;
  }

  .block1-lp .wpb_single_image {
    bottom: 100px;
    right: 22vw;
  }

  .block-contactos .wpb_single_image {
    width: 150px;
  }

  .block-contactos .wpb_text_column:has(p) {
    width: 450px;
  }

  .block-contactos .quform {
    max-width: 600px;
  }

  span.quform-button-text.quform-button-submit-text {
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 2px;
    padding: 10px 30px;
  }

  .block-quem_somos .wpb_text_column p {
    font-size: 14px;
    line-height: 20px;
  }

  .block-quem_somos .vc_column-inner > .wpb_wrapper {
    max-width: 650px;
  }

  .block-quem_somos .wpb_single_image {
    width: 200px;
  }

  .block-quem_somos h2 {
    margin-bottom: 40px !important;
  }

  /* Footer */

  footer {
    /* padding: 25px 30px; */
    margin-top: calc(-0.5 * var(--footer-overlap));
  }
  .wrapper-footer {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
  }
  footer .col-bottom {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-direction: column;
  }
  ul.menu-legal {
    display: flex;
    gap: 23px;
    flex-direction: column;
    align-items: center;
  }
  footer .creditos {
    font-size: 20px;
    line-height: 1;
    letter-spacing: 1.5px;
    text-align: center;
  }
  ul.menu-legal li,
  ul.menu-legal li a {
    font-size: 16px;
    line-height: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--cream);
  }
  a.powered-by {
    font-size: 12px;
  }

  .powered-by span {
    font-size: 18px;
  }

  /* -------------------------------------------------------------------------- */
  /* HEADER                                                                   */
  /* -------------------------------------------------------------------------- */
  .main-menu-wrapper,
  .headerMenuWrapper > .wpml-ls,
  .fakeIdioma:not(.menu-mobile .fakeIdioma),
  .headerMenuWrapper > .idiomas-menu-wrapper {
    display: none;
  }
  header {
    padding: 10px var(--padding-inline) 6px;
  }

  .logo-header img {
    width: 80px;
    height: auto;
    object-fit: contain;
  }
  .logo-header {
    position: relative;
    left: unset;
    top: unset;
    transform: unset;
  }
  .wrapper-header {
    justify-content: space-between;
  }
  .menu-mobile .fakeIdioma {
    color: var(--black);
    font-size: 18px;
    line-height: 1;
  }

  /* MENU NORMAL */
  .burguer {
    height: 20px;
    width: 20px;
    display: block;
    transition: all 300ms linear;
    position: relative;
  }

  .burguer.open {
    height: 25px;
    width: 25px;
  }

  .burguer .line {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 2px;
    width: 100%;
    background-color: var(--orange);
    transition: all linear 300ms;
    border-radius: 4px;
  }

  .burguer .line:nth-child(1),
  .burguer .line:nth-child(2),
  .burguer .line:nth-child(3) {
    top: 0%;
    opacity: 1;
  }

  .burguer .line:nth-child(2) {
    top: 50%;
  }

  .burguer .line:nth-child(3) {
    top: 100%;
  }

  /* QUANDO SE ADICIONA A CLASSE - colocar os dois traços que cruzam a 50% e apenas dar rotação para ficarem o X */
  /* hambuerguer aberto */
  .burguer.open .line:nth-child(1) {
    width: 100%;
    top: 50%;
    transform: rotate(45deg);
  }

  .burguer.open .line:nth-child(2) {
    opacity: 0;
  }

  .burguer.open .line:nth-child(3) {
    width: 100%;
    top: 50%;
    transform: rotate(-45deg);
  }

  /* ── Menu mobile ──────────────────────────────────────────────────────
     Painel em ecrã inteiro que desce do topo. Itens alinhados à esquerda em serif
     (TrendsetterPrestige), separados por linhas finas; "Apartamentos" passa a ser
     um rótulo pequeno com Near I / Near II por baixo; contactos e idiomas no fundo.
     Ao abrir, os itens entram em cascata (transition-delay por item). */
  .menu-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    z-index: 9980;
    background-color: var(--white);
    transform: translateY(-100%);
    transition: transform 500ms cubic-bezier(0.76, 0, 0.24, 1);
    padding: calc(var(--header-height) + 36px) var(--padding-inline) 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .menu-mobile::before {
    content: "";
    background-image: url(/wp-content/uploads/colored-cartao-shape-2-scaled.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 3000px;
    max-width: unset;
    height: 100vh;
    position: absolute;
    left: 60%;
    top: 55%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
  }

  .menu-mobile.open {
    transform: translateY(0%);
  }

  /* Lista principal */
  .menu-mobile .main-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .menu-mobile .main-menu > li {
    display: block !important;
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid rgba(173, 83, 38, 0.18);
    /* entrada em cascata */
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 400ms ease, transform 400ms ease;
  }

  .menu-mobile.open .main-menu > li {
    opacity: 1;
    transform: none;
  }

  .menu-mobile.open .main-menu > li:nth-child(1) { transition-delay: 180ms; }
  .menu-mobile.open .main-menu > li:nth-child(2) { transition-delay: 240ms; }
  .menu-mobile.open .main-menu > li:nth-child(3) { transition-delay: 300ms; }
  .menu-mobile.open .main-menu > li:nth-child(4) { transition-delay: 360ms; }
  .menu-mobile.open .main-menu > li:nth-child(5) { transition-delay: 420ms; }
  .menu-mobile.open .main-menu > li:nth-child(6) { transition-delay: 480ms; }

  .menu-mobile .main-menu a {
    display: block;
    font-family: "TrendsetterPrestigeDEMO", sans-serif;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--dark-blue);
    cursor: pointer;
  }

  .menu-mobile .main-menu a:active,
  .menu-mobile .main-menu .current-menu-item > a {
    color: var(--orange);
  }

  /* "Apartamentos" (item com submenu): rótulo pequeno, não clicável */
  .menu-mobile .main-menu > li.menu-item-has-children > a {
    font-family: "PTSans", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    pointer-events: none;
    margin-bottom: 10px;
  }

  .menu-mobile .main-menu .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Contactos + idiomas, no fundo do painel */
  .menu-mobile-rodape {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    opacity: 0;
    transition: opacity 400ms ease 500ms;
  }

  .menu-mobile.open .menu-mobile-rodape {
    opacity: 1;
  }

  .menu-mobile-contactos {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .menu-mobile-contactos a {
    font-size: 14px;
    line-height: 1.4;
    color: var(--grey);
    overflow-wrap: anywhere;
  }

  .menu-mobile .idiomas-menu {
    display: flex;
    gap: 8px;
  }

  .menu-mobile .idiomas-menu a,
  .menu-mobile .idiomas-menu span {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.12em;
    color: var(--orange);
  }

  .menu-mobile .idiomas-menu a {
    padding: 8px 12px;
    border: 1px solid var(--orange);
    border-radius: 100px;
  }

  .menu-mobile .idiomas-menu .wpml-ls-current-language a {
    background-color: var(--orange);
  }

  .menu-mobile .idiomas-menu .wpml-ls-current-language a,
  .menu-mobile .idiomas-menu .wpml-ls-current-language span {
    color: var(--white);
  }

  /* Sem animações para quem as desligou no sistema */
  @media (prefers-reduced-motion: reduce) {
    .menu-mobile,
    .menu-mobile .main-menu > li,
    .menu-mobile-rodape {
      transition: none;
    }
  }

  /* -------------------------------------------------------------------------- */
  /* HOMEPAGE                                                                   */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (hero-section) *************/

  /**************** Small Section (small-section) *************/
  /* .small-section {
    padding-block: 40px;
  } */
  /* 
    .small-section > div > div > div {
      max-width: calc(1178px + 30px);
    } */

  .small-section > div > div > div .wpb_text_column {
    max-width: 300px;
  }
  /**************** Masterplan Section (masterplan-section) *************/

  /**************** Cards Section (cards-section) *************/

  /**************** Desenhado Section (desenhado-section) *************/
  /**************** Quem Somos Section (quem-somos-section) *************/

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (apartamentos-hero-section) *************/

  /**************** Viver Bem Section (viver-bem-section) *************/

  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

@media only screen and (max-width: 991px) {
  :root {
    --padding-inline: 30px;
    --paddingVert: 70px;
    --container-width: unset;
  }

  h1,
  h1 span,
  h1 div,
  h2.big,
  h2.big div {
    font-size: 44px;
    line-height: 36px;
  }

  /* Landing Page */

  .block1-lp {
    clip-path: url(#block1-lp-clip-mobile);
  }

  .block-contactos .vc_inner::before {
    clip-path: url(#block-contactos-clip-mobile);
    height: 125%;
  }

  .block-contactos .wpb_single_image {
    margin-block: 50px !important;
  }

  .block-quem_somos::before {
    clip-path: url(#block-quem-somos-clip-mobile);
  }

  .block-quem_somos .vc_column-inner > .wpb_wrapper {
    max-width: 820px;
    padding-block: 100px 50px;
    max-width: calc(100% - 100px);
  }

  /* -------------------------------------------------------------------------- */
  /* HOMEPAGE                                                                   */
  /* -------------------------------------------------------------------------- */

  /**************** Small Section (small-section) *************/

  .small-section {
    padding-inline: calc(var(--padding-inline) + 15px);
  }
  .small-section > div > div > div .wpb_text_column {
    max-width: 300px;
  }
  /**************** Masterplan Section (masterplan-section) *************/

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (apartamentos-hero-section) *************/

  /**************** Viver Bem Section (viver-bem-section) *************/

  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

@media only screen and (max-height: 900px) {
  /* Landing Page */

  .block1-lp .vc_inner {
    top: 40vh;
  }
}

@media only screen and (max-width: 768px) {
  .quem-somos-text-row > div > div > div {
    margin-block: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .quem-somos-text-row > div > div > div p {
    text-align: center;
  }
  .quem-somos-section > div > div > .wpb_wrapper {
    max-width: unset;
  }

  .quem-somos-text-row > div > div > div {
    margin-block: 20px 50px;
    gap: 20px;
  }

  .bottom-quem-somos > div > div > div {
    gap: 40px;
    max-width: unset;
    display: flex;
    align-items: center;
    max-width: 300px;
    margin-inline: auto;
  }

  footer {
    margin-top: 0px;
  }
}
@media only screen and (max-height: 650px) {
  /* Landing Page */

  .block1-lp .vc_inner {
    top: 50%;
    transform: translateY(-50%);
  }

  /* -------------------------------------------------------------------------- */
  /* TEIMOSOS                                                                   */
  /* -------------------------------------------------------------------------- */
  .teimosos-wrapper {
    top: unset;
    bottom: 60px;
  }
  .teimosos-wrapper a span {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

@media only screen and (max-width: 600px) {
  h1,
  h1 span,
  h1 div,
  h2.big,
  h2.big div {
    font-size: 38px;
    line-height: 1;
  }

  .teimosos-wrapper a span {
    font-size: 12px;
    letter-spacing: calc(0.788px * 0.3);
  }
  .teimosos-wrapper a {
    border-top-left-radius: calc(50px * 0.7);
    border-bottom-left-radius: calc(50px * 0.7);
    padding: 4px 12px 4px 12px;
  }

  /* -------------------------------------------------------------------------- */
  /* LP BARBARA                                                                   */
  /* -------------------------------------------------------------------------- */
  .block1-lp .wpb_single_image {
    bottom: 55px;
    right: 30px;
  }

  .block1-lp .vc_inner {
    top: 40vh;
    padding-inline: 30px;
    left: 0px;
  }

  .block-contactos .wpb_text_column:has(p) {
    width: 100%;
    padding-inline: 30px;
  }

  .block-contactos .quform {
    max-width: 100%;
    padding-inline: 30px;
  }

  .block-contactos h2 {
    padding-block: 80px 30px;
  }

  .block-quem_somos {
    margin-top: 50px !important;
  }

  .block-quem_somos .vc_column-inner > .wpb_wrapper {
    padding-block: 120px 50px;
    max-width: calc(100% - 60px);
  }

  .block-quem_somos .wpb_text_column .wpb_wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .block-quem_somos .wpb_text_column p {
    font-size: 14px;
    line-height: 20px;
    width: 100%;
  }

  .block-quem_somos .wpb_single_image {
    width: 250px;
    margin-top: 40px !important;
  }

  /* -------------------------------------------------------------------------- */
  /* FOOPTER                                                                   */
  /* -------------------------------------------------------------------------- */
  footer {
    --footer-shape-width: 300vw;
    --footer-shape-x: -20vw;
  }

  /* -------------------------------------------------------------------------- */
  /* HOMEPAGE                                                                   */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (hero-section) *************/

  /**************** Small Section (small-section) *************/

  /**************** Masterplan Section (masterplan-section) *************/

  /**************** Cards Section (cards-section) *************/

  /**************** Galeria Section (galeria-slide-section) *************/
  .galeria-slide-section {
    padding-inline: 0px !important;
  }
  /**************** Desenhado Section (desenhado-section) *************/

  /**************** Amenities Section (amenities-section) *************/

  /**************** Próxima Casa Section (proxima-casa-section) *************/
  .proxima-casa-section h2 {
    max-width: 300px;
    margin-inline: auto !important;
  }

  .proxima-casa-section::before {
    width: 3450px;
    height: 1213px;
  }

  /**************** Contactos Section (contactos-section) *************/
  .above-form-logo img {
    width: 20vw;
    height: auto;
  }
  .contactos-section {
    padding-top: 20px;
  }
  .contactos-section > div > div > .wpb_wrapper {
    max-width: unset;
    padding: 20px 24px;
  }

  .contactos-section > div > div > .wpb_wrapper > .wpb_single_image img {
    width: 18px;
    height: auto;
  }
  .tavira-algarve {
    margin-block: 12px 8px !important;
  }
  .tavira-algarve.wpb_text_column img {
    width: 12px;
    height: auto;
  }

  .tavira-algarve.wpb_text_column p {
    font-size: 22px;
    letter-spacing: 1.3px;
  }

  .contactos-section > div > div > .wpb_wrapper > .wpb_text_column p {
    font-size: 14px;
    margin-block: 10px 22px;
    max-width: 200px;
    margin-inline: auto;
  }

  .quform-input input,
  .quform-input input::placeholder,
  .quform-input select,
  .quform-input textarea,
  .quform-input textarea::placeholder,
  .select2-container--quform .select2-selection .select2-selection__rendered,
  label.quform-label-text {
    font-size: 11px !important;
    line-height: 1 !important;
    letter-spacing: 1.8px;
  }

  .quform .quform-field-textarea {
    height: 80px;
  }
  .quform-option-label,
  .quform-option {
    line-height: 1 !important;
  }

  .quform-input input,
  .quform-input select,
  .quform-input textarea,
  .quform .select2-container--quform .select2-selection {
    padding: 6px 8px !important;
  }

  .quform-label {
    margin-left: 8px;
  }


  .quform-element-submit {
    margin-top: 10px !important;
  }

  .quform-options label.quform-option-label::before {
    content: "";
    width: 11px;
    height: 11px;
  }
  /**************** Quem Somos Section (quem-somos-section) *************/

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (apartamentos-hero-section) *************/

  /**************** Viver Bem Section (viver-bem-section) *************/
  .viver-bem-section {
    padding-left: calc(var(--padding-inline) + 15px);
    max-height: 600px;
    min-height: 300px !important;
  }

  .viver-bem-content-wrapper {
    /* left: calc(var(--padding-inline) + 30px);
    top: 25%; */
  }

  .viver-bem-content-wrapper h2 {
    margin-block: 12px !important;
    max-width: 240px;
  }

  .viver-bem-content-wrapper .wpb_text_column {
    max-width: 210px;
  }

  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

@media only screen and (max-width: 500px) {
  /* -------------------------------------------------------------------------- */
  /* HOMEPAGE                                                                   */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (hero-section) *************/

  /**************** Small Section (small-section) *************/

  /**************** Masterplan Section (masterplan-section) *************/

  /**************** Cards Section (cards-section) *************/

  /**************** Galeria Section (galeria-slide-section) *************/

  /**************** Desenhado Section (desenhado-section) *************/

  /**************** Amenities Section (amenities-section) *************/

  /**************** Próxima Casa Section (proxima-casa-section) *************/

  /**************** Contactos Section (contactos-section) *************/

  /**************** Quem Somos Section (quem-somos-section) *************/

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Hero Section (apartamentos-hero-section) *************/

  /**************** Viver Bem Section (viver-bem-section) *************/

  /**************** Tipologias Section (tipologias-section) *************/

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

@media only screen and (max-width: 430px) {
  /* -------------------------------------------------------------------------- */
  /* HOMEPAGE                                                                   */
  /* -------------------------------------------------------------------------- */

  /**************** Masterplan Section (masterplan-section) *************/

  /* -------------------------------------------------------------------------- */
  /* APARTAMENTOS                                                               */
  /* -------------------------------------------------------------------------- */

  /**************** Tipologias Detalhe Section (tipologias-detalhe-section) *************/
}

/* ──────────────────────────────────────────────────────────────────────────
   Header compacto: quando ganha a cor de fundo (.header-colored, posta pelo
   script.js assim que há scroll) fica mais baixo e o logo mais pequeno.
   Transição já vem de "header, header * { transition: all 300ms linear }".
   ────────────────────────────────────────────────────────────────────────── */
/* nov 2026: mais baixo para ganhar espaço nas secções (1920px: 62px → 49px de altura) */
header.header-colored {
  padding-top: 9px;
  padding-bottom: 7px;
}

header.header-colored .logo-header img {
  width: 58px;
  display: block; /* tira o espaço de linha por baixo da imagem inline (~5px) */
}

@media only screen and (max-width: 1550px) {
  header.header-colored {
    padding-top: 8px;
    padding-bottom: 6px;
  }
  header.header-colored .logo-header img {
    width: 54px;
  }
}

@media only screen and (max-width: 1100px) {
  header.header-colored {
    padding-top: 6px;
    padding-bottom: 5px;
  }
  header.header-colored .logo-header img {
    width: 52px;
  }
}

/* -------------------------------------------------------------------------- */
/* BOTÃO VOLTAR AO TOPO (plugin "To Top" → #to_top_scrollup)                   */
/* -------------------------------------------------------------------------- */
/* Círculo terracota com seta bege, no estilo do "Contacte-nos".
   O plugin mete cor/tamanho/opacidade no seu CSS e inline — daí os !important.
   O plugin continua a controlar quando aparece/desaparece (display). */
#to_top_scrollup {
  width: 44px !important;
  height: 44px !important;
  right: 24px !important;
  bottom: 24px !important;
  border-radius: 50% !important;
  background-color: var(--orange) !important;
  color: var(--cream) !important;
  font-size: 22px !important;
  line-height: 44px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-align: center;
  opacity: 1 !important; /* o plugin deixava-o meio transparente */
  box-shadow: 0 4px 14px rgba(24, 34, 40, 0.18);
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

#to_top_scrollup:hover {
  background-color: #8f4219 !important;
  transform: translateY(-2px);
}

@media only screen and (max-width: 768px) {
  #to_top_scrollup {
    width: 40px !important;
    height: 40px !important;
    right: 16px !important;
    bottom: 16px !important;
    font-size: 20px !important;
    line-height: 40px !important;
  }
}

/* ===================== GRELHA — ajustes de desktop (≥992px) =====================
   Ficam no fim do ficheiro de propósito: têm de ganhar aos breakpoints de cima
   (1750/1550/1300), que ainda centram estas secções com larguras fixas.
   Variáveis em :root, no início do ficheiro (--grelha-margem / --grelha-interior). */
@media only screen and (min-width: 992px) {
  /* "Um lugar onde…" (small-section): texto na linha interior (Figma: 490px em 1920) */
  .small-section > div > div > div {
    max-width: none;
    margin-inline: 0;
    padding-left: calc(var(--grelha-interior) - var(--grelha-margem));
  }

  /* "A Autenticidade…" (masterplan comercial): a caixa ocupa a grelha toda
     (os breakpoints de cima davam-lhe larguras fixas que não batiam com a grelha) */
  .masterplan-section .wpb_raw_html {
    max-width: none;
  }

  /* Viver Bem (Near I/II): a imagem sai 102px (Figma) para fora da grelha (148px em 1920)
     e o texto fica na linha da grelha (250px) */
  .viver-bem-section {
    padding-left: calc(var(--grelha-margem) - 102 * var(--grelha-px) + 15px) !important; /* ganha ao !important do bloco 4K */
  }
  .viver-bem-content-wrapper {
    left: calc(102 * var(--grelha-px) + 15px); /* +15px: é uma inner row do WPBakery (margem de -15px) */
  }

  /* Cartões de apartamentos: ocupam a grelha toda (em 4K a grelha passa os 1420px do widget) */
  .apartment-cards-widget {
    max-width: none;
  }
}
