/* ======================================================================
   Tipos de letra (Crimson Pro e Montserrat, licença SIL Open Font License)
   ====================================================================== */

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/crimson-pro-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/crimson-pro-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ======================================================================
   Variáveis
   ====================================================================== */

:root {
  /* Cores */
  --azul: #014592;
  --azul-esc: #013470;
  --azul-claro: #3F72BF;
  --gelo: #D6E4F7;
  --gelo-esc: #A9C1E3;
  --carvao: #3A4352;
  --preto: #1E2633;
  --cinza: #5E6878;
  --cinza-claro: #6B7689;  /* 4,6:1 sobre branco: o mínimo para texto pequeno */
  --fundo: #F1F5FB;
  --linha: #DBE4F0;
  --branco: #FFFFFF;
  --marinho: #12305E;
  --marinho-esc: #0A1F40;
  --remax: #DC1B2E;
  --remax-esc: #B0141F;

  /* Cantos */
  --raio-btn: 10px;
  --raio-medio: 12px;
  --raio-cartao: 16px;

  /* Tipos de letra */
  --display: "Crimson Pro", Georgia, "Times New Roman", serif;
  --texto: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --max: 1220px;
  --gut: clamp(20px, 5vw, 56px);

  /* Movimento: chegada que desacelera */
  --saida: cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 560px) {
  :root {
    --raio-medio: 10px;
    --raio-cartao: 14px;
  }
}

/* ======================================================================
   Base
   ====================================================================== */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-color: #A9BCD6 #EEF2F8;
}
body {
  margin: 0;
  background: var(--branco);
  color: var(--preto);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
button {
  font-family: inherit;
}
h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.005em;
  font-weight: 500;
}
h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1;
  letter-spacing: -.01em;
}
h2 {
  font-size: clamp(28px, 4vw, 46px);
}
h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}
h4 {
  font-size: 17px;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.sec {
  padding: clamp(64px, 8vw, 116px) 0;
}
.centro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.lead {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--cinza);
  margin-top: 16px;
}
.claro {
  background: var(--fundo);
}
:focus-visible {
  outline: 3px solid var(--foco, var(--azul));
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: var(--azul);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
}
.risco::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--azul);
  margin-top: 20px;
}
.centro.risco::after {
  margin-left: auto;
  margin-right: auto;
}
/* Entrada dos blocos ("do sonho à realidade"): chegam desfocados e ficam nítidos.
   .rev é um bloco; .foco é um item de uma lista (data-escalonar), que entra um pouco depois do anterior.
   Só com a classe .anima, que o JavaScript liga quando não se pede menos movimento: sem JavaScript, tudo aparece logo. */
/* escondem-se de uma vez (sem transição) e só a entrada é animada */
.anima .rev:not(.dentro),
.anima .foco:not(.dentro) {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(12px);
  transition: none;
}
.anima .rev.dentro,
.anima .foco.dentro {
  opacity: 1;
  filter: none;
  transform: none;
  transition: opacity .5s var(--saida), filter .5s var(--saida), transform .5s var(--saida);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.anima .rev.dentro {
  transition-duration: .65s;
}
/* o traço azul dos títulos desenha-se depois de o título aparecer (do centro, ou da esquerda) */
.anima .risco-traco:not(.dentro)::after {
  transform: scaleX(0);
}
.anima .risco-traco.dentro::after {
  transform: scaleX(1);
  transition: transform .9s var(--saida) .25s;
}
.anima .risco-traco:not(.centro)::after {
  transform-origin: left;
}
/* fotografias: chegam desfocadas e um pouco ampliadas, e assentam (uma vez, só filter e transform) */
.anima .foto-foco:not(.dentro) img:not(.ap-logo):not(.marca-agua) {
  filter: blur(10px) saturate(.5);
  transform: scale(1.08);
}
.anima .foto-foco.dentro img:not(.ap-logo):not(.marca-agua) {
  animation: fotoFoco 1.1s cubic-bezier(.33, 1, .68, 1) backwards, fotoAssenta 1.6s var(--saida) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
/* frases: cada palavra ganha foco com a sua vez */
.palavra {
  display: inline-block;
}
.anima [data-palavras] .palavra {
  opacity: .12;
  filter: blur(4px);
  transform: translateY(6px);
  transition: opacity .45s var(--saida), filter .45s var(--saida), transform .45s var(--saida);
  transition-delay: calc(var(--i, 0) * 14ms);
}
.anima [data-palavras].dentro .palavra {
  opacity: 1;
  filter: none;
  transform: none;
}
/* animações contínuas paradas enquanto estão fora do ecrã */
.fora,
.fora *,
.fora::before,
.fora::after,
.fora *::before,
.fora *::after {
  animation-play-state: paused !important;
}
.verm {
  color: var(--remax);
}
.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero,
.numeros,
.apresenta-faixa,
.resultados,
.faixa-cta,
.mensagem-equipa,
footer,
.blog-hero,
.equipa-topo,
.equipa-grupo,
.chat-painel {
  --foco: #fff;
}
.form-rt, .cookies, .jovens-caixa, .concelhos {
  --foco: var(--azul);
}
::selection {
  background: #CFE0F7;
  color: #0A1F40;
}
.numero b,
.res-item b,
.lei-data,
.msg time,
.blog-cartao time,
.artigo-cartao time,
.leitor time {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 74px;
  }
  .sec {
    padding: 52px 0;
  }
  h2 {
    font-size: 26px;
  }
  .lead {
    font-size: 16px;
    margin-top: 12px;
  }
  .risco::after {
    margin-top: 14px;
    width: 46px;
    height: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ======================================================================
   Botões
   ====================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--texto);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--raio-btn);
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-azul {
  background: var(--azul);
  color: #fff;
}
.btn-azul:hover {
  background: var(--azul-esc);
}
.btn-linha {
  border: 2px solid currentColor;
  background: transparent;
  padding: 13px 26px;
}
.btn-linha:hover {
  background: var(--branco);
  color: var(--preto);
  border-color: var(--branco);
}
.btn-remax {
  background: var(--remax);
  color: #fff;
  border-radius: var(--raio-btn);
}
.btn-remax:hover {
  background: var(--remax-esc);
  color: #fff;
}

/* ======================================================================
   Cabeçalho e menu
   ====================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #FAFCFF;
  border-bottom: 1px solid var(--linha);
}
header .wrap {
  max-width: 1560px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 88px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--texto);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo img {
  height: 60px;
  width: auto;
  flex: none;
  display: block;
}
.menu {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu>li>a {
  color: var(--carvao);
  text-decoration: none;
  font-family: var(--texto);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  display: block;
}
.menu>li>a:hover, .menu>li>a.ativo {
  color: var(--azul);
  border-bottom-color: var(--azul);
}
.menu .btn {
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 0;
  color: #fff;
  white-space: nowrap;
}
.menu>li>a.btn, .menu>li>a.btn:hover, .menu>li>a.btn.ativo {
  color: #fff;
  border-bottom-color: transparent;
}
.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  line-height: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--preto);
  margin: 5px 0;
  transition: transform .22s, opacity .22s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.menu-social {
  display: none;
}

@media (max-width: 1120px) {
  .burger {
    display: block;
  }
  .menu {
    position: fixed;
    inset: 88px 0 auto 0;
    background: #FAFCFF;
    border-bottom: 1px solid var(--linha);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gut) 30px;
    display: none;
    max-height: calc(100vh - 88px);
    overflow: auto;
  }
  .menu.open {
    display: flex;
  }
  .menu>li>a {
    padding: 16px 0;
    font-size: 13.5px;
    border-bottom: 1px solid var(--linha);
  }
  .menu .btn {
    margin-top: 18px;
  }
  .menu-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
  }
  .menu .menu-social a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--linha);
    border-radius: var(--raio-btn);
  }
  .menu .menu-social a:hover {
    background: var(--azul);
    border-color: var(--azul);
  }
  .menu-social svg {
    width: 18px;
    height: 18px;
    fill: var(--carvao);
  }
  .menu-social a:hover svg {
    fill: #fff;
  }
}

@media (max-width: 980px) {
  .logo img {
    height: 50px;
  }
}

@media (max-width: 560px) {
  .nav {
    height: 68px;
  }
  .logo {
    font-size: 18px;
    gap: 8px;
  }
  .menu {
    inset: 68px 0 auto 0;
    max-height: calc(100vh - 68px);
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 44px;
  }
}

@media (max-width: 560px) {
  .logo img {
    height: 34px;
  }
}

/* ======================================================================
   Topo
   ====================================================================== */

.hero {
  position: relative;
  background: var(--preto);
  color: #fff;
  overflow: hidden;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  padding: clamp(70px, 10vw, 120px) 0;
}
.hero-fundo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--preto);
}
.hero-fundo video, .hero-fundo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fundo.yt {
  background: var(--preto) center/cover no-repeat;
}
/* Vídeo do YouTube (16:9) a cobrir o topo inteiro, como um fundo */
.hero-fundo iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%) scale(1.06);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-fundo iframe.visivel {
  opacity: 1;
}
.hero.com-video .hero-veu {
  background: linear-gradient(100deg, rgba(8, 22, 48, .86) 0%, rgba(8, 22, 48, .66) 45%, rgba(1, 30, 70, .45) 100%);
}
.hero-veu {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(8, 22, 48, .95) 0%, rgba(8, 22, 48, .8) 48%, rgba(1, 69, 146, .45) 100%);
}
/* Linha no fundo do topo: base branca e uma barra azul que avança e recua devagar (só transform) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 100%;
  height: 6px;
  background: #fff;
}
.hero::after {
  background: linear-gradient(90deg, var(--azul) 72%, var(--azul-claro));
  transform: scaleX(.5);
  transform-origin: left;
  animation: heroLinha 7s ease-in-out infinite;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero .sobre {
  font-family: var(--texto);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gelo);
  margin: 0 0 18px;
}
.hero h1 {
  max-width: 14ch;
  font-weight: 400;
}
.hero .valores {
  font-family: var(--texto);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 300;
  color: var(--gelo);
  margin: 22px 0 0;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero p.sub {
  color: #D2DCEA;
  max-width: 52ch;
  margin-top: 18px;
  font-size: clamp(16px, 1.7vw, 18.5px);
}
.hero p.sub b {
  color: #fff;
  font-weight: 700;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.hero-cta .btn {
  position: relative;
  overflow: hidden;
  border-radius: var(--raio-btn);
  padding: 17px 26px;
  font-size: 13px;
  letter-spacing: .08em;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.hero-cta .btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-cta .btn .btn-seta {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}
.hero-cta .btn:hover {
  transform: translateY(-2px);
}
.hero-cta .btn:hover .btn-seta {
  transform: translateX(4px);
}
.hero-cta .btn-azul {
  background: linear-gradient(135deg, #1E6FE0 0%, #014592 55%, #013470 100%);
  box-shadow: 0 14px 30px -12px rgba(1, 69, 146, .95), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.hero-cta .btn-azul:hover {
  background: linear-gradient(135deg, #2A7BEA 0%, #0450A6 55%, #013470 100%);
  box-shadow: 0 18px 36px -12px rgba(30, 111, 224, .95), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.hero-cta .btn-azul::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: btnBrilho 6s ease-in-out 1.5s infinite;
  pointer-events: none;
}
.hero-cta .btn-linha {
  border: 1px solid #fff;
  background: #fff;
  color: var(--azul-esc);
  padding: 16px 26px;
  box-shadow: 0 14px 28px -14px rgba(10, 20, 40, .75);
}
.hero-cta .btn-linha:hover {
  background: #E6EEF9;
  color: var(--azul-esc);
  border-color: #E6EEF9;
  box-shadow: 0 18px 34px -14px rgba(10, 20, 40, .8);
}
.selos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px;
  color: #B6C2D3;
}
.selo {
  display: flex;
  align-items: center;
}
.selo+.selo::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #7C889A;
  margin: 0 16px;
}
.selo b {
  font-weight: 600;
  color: #E6EDF7;
}
.hero.com-video .hero-veu::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .05;
  pointer-events: none;
}
.hero-cta .btn-remax {
  background: linear-gradient(135deg, #F0334A 0%, var(--remax) 55%, var(--remax-esc) 100%);
  box-shadow: 0 14px 28px -14px rgba(10, 20, 40, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.hero-cta .btn-remax:hover {
  background: linear-gradient(135deg, #F54A5F 0%, #E52538 55%, var(--remax-esc) 100%);
  box-shadow: 0 18px 34px -14px rgba(10, 20, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}

@supports (width: 1cqw) {
  .hero-fundo {
    container-type: size;
  }
  /* Vídeo do YouTube (16:9) a cobrir o topo inteiro, como um fundo */
  .hero-fundo iframe {
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
    min-width: 0;
    min-height: 0;
  }
}
/* Entrada do topo: as linhas chegam desfocadas e ficam nítidas, uma a uma; o fundo assenta devagar.
   Só CSS, para começar no primeiro desenho da página, sem esperar pelo JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap>* {
    animation: focoEntra .7s var(--saida) backwards;
  }
  .hero .wrap>:nth-child(2) {
    animation-name: tituloEntra;
    animation-duration: .95s;
    animation-delay: .08s;
  }
  .hero .wrap>:nth-child(3) {
    animation-delay: .22s;
  }
  .hero .wrap>:nth-child(4) {
    animation-delay: .3s;
  }
  .hero .wrap>:nth-child(5) {
    animation-delay: .4s;
  }
  .hero .wrap>:nth-child(6) {
    animation-delay: .52s;
  }
  .hero-fundo {
    animation: fundoAssenta 2.6s cubic-bezier(.22, 1, .36, 1) backwards;
  }
}
@keyframes tituloEntra {
  from { opacity: 0; filter: blur(12px); transform: translateY(18px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes fundoAssenta {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes heroLinha {
  0%, 100% { transform: scaleX(.34); }
  50% { transform: scaleX(.66); }
}
@keyframes btnBrilho {
  0% { transform: translateX(-150%) skewX(-20deg); }
  22%, 100% { transform: translateX(350%) skewX(-20deg); }
}

@media (max-width: 560px) {
  .hero {
    padding: 44px 0 52px;
    min-height: 520px;
  }
  .hero .sobre {
    font-size: 11.5px;
    letter-spacing: .1em;
    margin-bottom: 12px;
  }
  .hero h1 {
    font-size: 36px;
    max-width: none;
  }
  .hero .valores {
    font-size: 15px;
    letter-spacing: .06em;
    margin-top: 16px;
  }
}
.hero .hero-pergunta {
  border-left: 3px solid #fff;
  padding-left: 16px;
  color: #fff;
  letter-spacing: .14em;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .hero p.sub {
    font-size: 15.5px;
    margin-top: 14px;
    line-height: 1.6;
  }
  .hero-cta {
    gap: 10px;
    margin-top: 26px;
  }
  .hero-cta .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
  }
  .selos {
    gap: 6px 18px;
    margin-top: 28px;
    padding-top: 16px;
    font-size: 12px;
  }
  /* no telemóvel os selos partem de linha: sem pontos, para nenhuma linha começar por um */
  .selo+.selo::before {
    display: none;
  }
}

@media (max-width: 460px) {
  .hero {
    min-height: 570px;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 595px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Linha no fundo do topo: o azul avança e recua devagar */
  .hero::after {
    animation: none;
  }
  .hero-cta .btn-azul::after {
    display: none;
  }
}

/* ======================================================================
   Números
   ====================================================================== */

.numeros {
  position: relative;
  background: var(--marinho-esc);
  color: #fff;
  padding: clamp(34px, 4vw, 56px) 0;
}
.numeros::before,
.numeros::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 6px;
  background: #fff;
}
.numeros::after {
  background: linear-gradient(270deg, var(--azul) 72%, var(--azul-claro));
  transform: scaleX(.5);
  transform-origin: right;
  animation: heroLinha 7s ease-in-out infinite;
}
.numeros .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: transparent;
  gap: clamp(14px, 1.6vw, 20px);
  padding: 0 var(--gut);
}
.numero {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--raio-medio);
  padding: clamp(22px, 2.6vw, 32px);
  transition: background .25s ease, transform .25s ease;
}
.numero b {
  display: block;
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
}
.numero small {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: #C5D4EC;
  max-width: 20ch;
}
.numero:hover {
  background: rgba(255, 255, 255, .13);
  transform: translateY(-3px);
}
.numero .numero-mais {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.numero strong {
  color: #fff;
  font-weight: 700;
}
button.numero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.numero-concelhos small {
  margin-bottom: 16px;
}
.numero-ver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: var(--raio-btn);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.numero-ver svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
a.numero-imoveis {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}
.numero-imoveis small {
  margin-bottom: 16px;
}
.numero-imoveis .numero-ver svg {
  width: 13px;
  height: 13px;
}
.numero-imoveis:hover .numero-ver,
.numero-concelhos:hover .numero-ver,
.numero-concelhos[aria-expanded="true"] .numero-ver {
  background: #fff;
  border-color: #fff;
  color: var(--azul);
}
.numero-concelhos[aria-expanded="true"] {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
}
.numero-concelhos[aria-expanded="true"] .numero-ver svg {
  transform: rotate(180deg);
}

/* Painel dos concelhos: abre por baixo dos quatro cartões */
.concelhos {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3.6vw, 52px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 44px);
  background: #fff;
  color: var(--preto);
  border-radius: var(--raio-cartao);
  box-shadow: 0 30px 60px -30px rgba(1, 20, 50, .6);
  animation: concelhosAbre .35s ease both;
}
.concelhos[hidden] {
  display: none;
}
.concelhos-sobre {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--azul);
}
.concelhos h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--marinho);
}
.concelhos-intro {
  margin: 12px 0 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--cinza);
}
.concelhos h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-family: var(--texto);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--marinho);
}
.concelhos h3 span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cinza-claro);
}
.concelhos-lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
}
.concelhos-lista:last-child {
  margin-bottom: 0;
}
.concelhos-lista li {
  padding: 6px 12px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-btn);
  background: var(--fundo);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.concelhos-principal li {
  background: #E9F1FC;
  border-color: #C8DAF3;
  color: var(--azul-esc);
  font-weight: 600;
}
.concelhos-lista li small {
  margin-left: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--remax-esc);
}
.concelhos-lista li.realce {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
}
.concelhos-lista li.realce small {
  color: #fff;
}
.concelhos-mapa {
  margin: 0;
}
.concelhos-mapa svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--raio-medio);
  background: radial-gradient(60% 55% at 42% 42%, #fff, transparent 75%), linear-gradient(160deg, #F2F7FD, #E5EDF8);
}
.mapa-zona {
  fill: var(--azul);
  stroke: var(--azul);
  stroke-width: 64;
  stroke-linejoin: round;
  opacity: .07;
}
.mapa-zona-lt {
  fill: var(--cinza);
  stroke: var(--cinza);
}
.mapa-rio {
  fill: none;
  stroke: #A3C0E6;
  stroke-width: 5;
  stroke-linecap: round;
}
.mapa-regiao {
  font-family: var(--texto);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  fill: var(--azul);
  opacity: .5;
}
.mapa-regiao-lt {
  fill: var(--cinza);
}
.mapa-tejo {
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  fill: #6F93C6;
}
.mapa-ponto circle {
  fill: var(--azul);
  stroke: #fff;
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s ease;
}
.mapa-lt circle {
  fill: var(--cinza-claro);
}
.mapa-sede circle {
  fill: var(--remax);
}
.mapa-sede .mapa-anel {
  fill: none;
  stroke: var(--remax);
  stroke-width: 2;
  animation: mapaPulso 2.6s ease-out infinite;
}
.mapa-ponto text {
  font-family: var(--texto);
  font-size: 15px;
  font-weight: 600;
  fill: var(--carvao);
  paint-order: stroke;
  stroke: #F2F7FD;
  stroke-width: 4px;
  stroke-linejoin: round;
  transition: fill .2s ease;
}
.mapa-sede text {
  font-weight: 700;
  fill: var(--preto);
}
.mapa-ponto.realce circle {
  transform: scale(1.45);
}
.mapa-ponto.realce text {
  fill: var(--azul);
}
.concelhos-mapa figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--cinza);
}
.legenda {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legenda::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--azul);
}
.legenda-agencia::before {
  background: var(--remax);
}
.legenda-lt::before {
  background: var(--cinza-claro);
}
.concelhos-nota {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--cinza-claro);
}
.concelhos-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: var(--raio-btn);
  background: #fff;
  color: var(--carvao);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.concelhos-fechar:hover {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
}
.concelhos-fechar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
@keyframes concelhosAbre {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes mapaPulso {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(2.6); opacity: 0; }
}

@media (max-width: 900px) {
  .concelhos {
    grid-template-columns: 1fr;
  }
  .concelhos-mapa {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .numeros .wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .numeros {
    padding: 28px 0;
  }
  .numeros .wrap {
    gap: 10px;
  }
  .numero {
    padding: 18px 16px;
    border-radius: var(--raio-medio);
  }
  .numero b {
    font-size: 32px;
  }
  .numero small {
    margin-top: 6px;
    font-size: 12.5px;
    max-width: none;
  }
  .numero-concelhos small {
    margin-bottom: 12px;
  }
  .numero-ver {
    padding: 6px 9px 6px 11px;
    font-size: 12px;
    letter-spacing: .08em;
  }
  .numero-ver .so-largo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .concelhos {
    gap: 22px;
    padding: 22px 16px 18px;
  }
  .concelhos h2 {
    font-size: 24px;
    padding-right: 46px;
  }
  .concelhos-intro {
    font-size: 14.5px;
    margin-bottom: 20px;
  }
  .concelhos-lista {
    gap: 6px;
  }
  .concelhos-lista li {
    padding: 5px 10px;
    font-size: 13px;
  }
  .concelhos-fechar {
    top: 12px;
    right: 12px;
  }
  /* o mapa fica com metade do tamanho: letras maiores e alguns nomes noutro sítio */
  .mapa-ponto text {
    font-size: 20px;
    stroke-width: 5px;
  }
  .mapa-regiao {
    font-size: 16px;
  }
  .mapa-tejo {
    font-size: 23px;
  }
  .mapa-ponto[data-c="entroncamento"] text {
    transform: translate(-13px, 0px);
    text-anchor: start;
  }
  .mapa-ponto[data-c="constancia"] text {
    transform: translate(13px, 7px);
    text-anchor: start;
    dominant-baseline: central;
  }
  .mapa-ponto[data-c="abrantes"] text {
    transform: translate(0px, 22px);
    dominant-baseline: hanging;
  }
  .mapa-ponto[data-c="macao"] text {
    transform: translate(20px, 0px);
    text-anchor: end;
  }
  .mapa-tejo {
    transform: translate(24px, -26px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .numeros::after {
    animation: none;
  }
  .numero:hover {
    transform: none;
  }
}

/* ======================================================================
   Quem somos
   ====================================================================== */

.apresenta {
  background: var(--fundo);
  padding-bottom: clamp(60px, 8vw, 110px);
}
.apresenta-faixa {
  position: relative;
  background: var(--preto) url("../img/faixa-quem-somos.webp") center/cover no-repeat;
  padding: clamp(46px, 6vw, 70px) 0 clamp(150px, 18vw, 220px);
}
.apresenta-faixa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 22, 48, .82), rgba(8, 22, 48, .9));
}
.apresenta-selos {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 26px;
  color: #fff;
  text-align: center;
}
.apresenta-selos span {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .92;
}
.apresenta-selos i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}
.apresenta-cartao {
  position: relative;
  margin-top: clamp(-190px, -15vw, -120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: var(--raio-cartao);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .35);
}
.ap-texto {
  padding: clamp(34px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ap-texto h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 20px;
}
.ap-texto p {
  font-size: 16.5px;
  line-height: 1.75;
  color: #343D4B;
  margin: 0 0 14px;
}
.ap-texto p:last-of-type {
  margin-bottom: 0;
}
.ap-texto b {
  color: var(--preto);
  font-weight: 600;
}
.ap-foto {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #E4EAF2;
}
.ap-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ap-f1 img {
  object-position: 50% 74.5%;
}
.ap-f2 img {
  object-position: 50% 95.6%;
}
.ap-foto img.ap-logo {
  inset: auto;
  top: clamp(8px, 1.7vw, 24px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(70px, 12vw, 170px);
  height: auto;
  object-fit: contain;
  opacity: .5;
  filter: blur(.6px);
  pointer-events: none;
  z-index: 2;
}
.ap-servicos {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
}
.ap-servicos li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 0 13px 18px;
  border-left: 3px solid var(--azul);
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(1, 69, 146, .05), transparent);
}
.ap-servicos b {
  font-size: 16px;
}
.ap-servicos span {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cinza);
}
.ap-t2 .ap-servicos {
  margin-bottom: 0;
}
.ap-servicos li:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .apresenta-cartao {
    grid-template-columns: 1fr;
  }
  .ap-foto {
    min-height: 260px;
  }
  .ap-t1 {
    order: 1;
  }
  .ap-f1 {
    order: 2;
  }
  .ap-t2 {
    order: 3;
  }
  .ap-f2 {
    order: 4;
  }
  .apresenta .ap-foto {
    aspect-ratio: 5/3;
    min-height: 0;
  }
  .ap-f1 img {
    object-position: 50% 67.4%;
  }
  .ap-f2 img {
    object-position: 50% 71.8%;
  }
}

@media (max-width: 560px) {
  .apresenta {
    padding-bottom: 52px;
  }
  .apresenta-faixa {
    padding: 34px 0 120px;
  }
  .apresenta-selos {
    gap: 8px 14px;
  }
  .apresenta-selos span {
    font-size: 11px;
    letter-spacing: .1em;
  }
  .apresenta-cartao {
    margin-top: -90px;
    border-radius: var(--raio-cartao);
  }
  .ap-texto {
    padding: 26px 22px;
  }
  .ap-texto h2 {
    font-size: 25px;
    margin-bottom: 14px;
  }
  .ap-texto p {
    font-size: 15.5px;
    line-height: 1.65;
  }
  .ap-foto {
    min-height: 210px;
  }
  .ap-servicos {
    margin: 18px 0 20px;
  }
  .ap-servicos li {
    padding: 10px 0 10px 14px;
    margin-bottom: 8px;
  }
  .ap-servicos b {
    font-size: 15px;
  }
  .ap-servicos span {
    font-size: 13.5px;
  }
}

/* ======================================================================
   Consultores
   ====================================================================== */

.grelha {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(auto-fit, minmax(250px, 310px));
  justify-content: center;
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: 52px;
}
#consultores {
  position: relative;
  overflow: hidden;
  background: var(--fundo);
}
#consultores::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(1, 69, 146, .16) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 0%, #000, transparent 80%);
}
#consultores .wrap {
  position: relative;
}
#consultores .pessoa {
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 44px -30px rgba(1, 40, 90, .5), 0 2px 6px -2px rgba(1, 40, 90, .08);
}
#consultores .pessoa-info {
  position: relative;
  border-top: 3px solid var(--azul);
}
.pessoa {
  background: var(--branco);
  border: 1px solid var(--linha);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--raio-medio);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* as fotos dos consultores não têm fundo (WebP com transparência): ficam sobre um fundo claro de estúdio,
   igual nos três; sem foto, o símbolo da equipa fica sobre azul */
.retrato {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, var(--branco) 0%, var(--fundo) 58%, var(--linha) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.retrato.sem-foto {
  background: linear-gradient(160deg, var(--azul), var(--azul-esc));
}
.retrato img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.retrato img.marca-agua {
  width: 46%;
  height: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: .4;
}
.pessoa-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pessoa h3 {
  font-size: 19px;
}
.pessoa p {
  font-size: 14.5px;
  color: var(--cinza);
  margin: 10px 0 18px;
}
.pessoa:hover {
  transform: translateY(-4px);
  border-color: #C3CEDD;
  box-shadow: 0 20px 38px -24px rgba(0, 0, 0, .45);
}
a.retrato {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
a.retrato img {
  transition: transform .45s ease;
}
a.retrato:hover img, a.retrato:focus-visible img {
  transform: scale(1.04);
}
.ver-perfil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 10px;
  font-family: var(--texto);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(1, 69, 146, .96), rgba(1, 69, 146, .72));
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .25s ease, transform .25s ease;
}
.ver-perfil svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.retrato:hover .ver-perfil, a.retrato:focus-visible .ver-perfil {
  opacity: 1;
  transform: none;
}
a.retrato:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
}
.consultores-mais {
  margin: 44px auto 0;
}
.consultores-mais .btn-linha {
  color: var(--azul);
  background: rgba(255, 255, 255, .7);
}
.consultores-mais .btn-linha:hover {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
}

@media (max-width: 560px) {
  .grelha {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
  }
  .grelha>.pessoa:last-child:nth-child(odd) {
    grid-column: 1/-1;
    justify-self: center;
    width: calc(50% - 6px);
  }
  .pessoa {
    border-radius: var(--raio-medio);
  }
  .pessoa-info {
    padding: 14px;
  }
  .pessoa h3 {
    font-size: 15.5px;
    line-height: 1.25;
  }
  .pessoa p {
    font-size: 12.8px;
    line-height: 1.5;
    margin: 8px 0 12px;
  }
  .consultores-mais {
    margin-top: 26px;
  }
}

@media (hover: none) {
  .ver-perfil {
    opacity: 1;
    transform: none;
    font-size: 11.5px;
    padding: 8px 8px;
    background: linear-gradient(0deg, rgba(1, 69, 146, .92), rgba(1, 69, 146, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pessoa:hover {
    transform: none;
  }
}

/* ======================================================================
   Frase da equipa
   ====================================================================== */

.faixa-frase {
  position: relative;
  background: var(--marinho-esc);
  color: #fff;
  overflow: hidden;
  padding: 22px 0;
}
/* as pontas da faixa desvanecem: a frase entra e sai sem corte seco */
.faixa-frase::before,
.faixa-frase::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(36px, 8vw, 140px);
  pointer-events: none;
}
.faixa-frase::before {
  left: 0;
  background: linear-gradient(90deg, var(--marinho-esc), rgba(10, 31, 64, 0));
}
.faixa-frase::after {
  right: 0;
  background: linear-gradient(270deg, var(--marinho-esc), rgba(10, 31, 64, 0));
}
.faixa-pista {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: frasePassa 48s linear infinite;
}
.faixa-pista span {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  white-space: nowrap;
  color: #fff;
}
.faixa-pista i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--remax);
  flex: none;
}
@keyframes frasePassa {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .faixa-pista {
    animation: none;
  }
}

/* ======================================================================
   Blog na página inicial
   ====================================================================== */

.blog-inicio-sec {
  background: var(--fundo);
  color: var(--preto);
}
.blog-inicio-sec .lead {
  color: var(--cinza);
  font-style: italic;
  letter-spacing: .01em;
}
.blog-inicio-sec .risco::after {
  background: var(--azul);
}
.blog-inicio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: 44px;
}
.blog-cartao {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-radius: var(--raio-cartao);
  background: #fff;
  color: var(--preto);
  text-decoration: none;
  border: 1px solid var(--linha);
  box-shadow: 0 18px 40px -30px rgba(18, 48, 94, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-cartao:hover {
  transform: translateY(-4px);
  border-color: #C3D2E6;
  box-shadow: 0 24px 44px -26px rgba(18, 48, 94, .5);
}
.blog-cartao .data-curta {
  display: none;
}
.blog-cartao time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul);
}
.blog-cartao h3 {
  font-size: 19px;
  line-height: 1.3;
  color: var(--marinho);
}
.blog-cartao p {
  font-size: 14.5px;
  color: var(--cinza);
  margin: 0;
  flex: 1;
}
.blog-cartao>span {
  font-size: 13px;
  font-weight: 700;
  color: var(--remax);
}
.blog-cartao>span::after {
  content: " →";
}
.blog-inicio-mais {
  margin: 34px auto 0;
}
.blog-inicio-mais .btn-linha {
  border-radius: var(--raio-btn);
  color: var(--azul);
}
.blog-inicio-mais .btn-linha:hover {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
}

@media (max-width: 860px) {
  .blog-inicio {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .blog-inicio::-webkit-scrollbar {
    display: none;
  }
  .blog-cartao {
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .blog-inicio {
    grid-auto-columns: calc(50% - 5px);
    gap: 10px;
    margin-top: 28px;
  }
  .blog-cartao {
    padding: 15px 13px;
    gap: 7px;
    border-radius: var(--raio-cartao);
  }
  .blog-cartao .data-longa {
    display: none;
  }
  .blog-cartao .data-curta {
    display: inline;
  }
  .blog-cartao time {
    font-size: 12px;
    letter-spacing: .05em;
  }
  .blog-cartao h3 {
    font-size: 14px;
    line-height: 1.3;
  }
  .blog-cartao p {
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-cartao>span {
    font-size: 12px;
  }
  .blog-inicio-mais {
    margin-top: 22px;
  }
}

/* ======================================================================
   Resultados RE/MAX
   ====================================================================== */

.resultados {
  background: var(--marinho-esc);
  color: #fff;
}
.resultados .lead {
  color: #C0CBDB;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}
.resultados .risco::after {
  background: var(--remax);
}
.res-grelha {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: 44px;
}
.res-item {
  padding: 24px 22px;
  border-radius: var(--raio-cartao);
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.res-item b {
  font-family: var(--texto);
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  color: #fff;
}
.res-item b small {
  font-size: .45em;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #C8D7EE;
}
/* só o texto por baixo do número (o número que conta também é um <span>, dentro do <b>) */
.res-item>span {
  font-size: 14px;
  color: #C8D3E4;
  line-height: 1.45;
}
.res-item em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: #5FD38D;
}
.res-destaques {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(12px, 1.6vw, 20px);
}
.res-dest {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--raio-cartao);
  background: #fff;
  color: var(--preto);
}
.res-dest b {
  display: block;
  font-size: 15.5px;
  color: var(--marinho);
  line-height: 1.3;
}
.res-dest p {
  margin: 6px 0 4px;
  font-size: 14px;
  color: var(--cinza);
  line-height: 1.5;
}
.res-dest small {
  color: var(--cinza-claro);
  font-size: 12px;
}
.res-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--raio-medio);
  background: var(--remax);
  display: grid;
  place-items: center;
}
.res-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.res-fonte {
  margin: 22px auto 0;
  max-width: 90ch;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.55;
  color: #8FA0BA;
}
.res-dest[data-prova] {
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.res-dest[data-prova]:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .6);
}
.res-dest[data-prova]:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: var(--raio-cartao);
}
.prova {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: visible;
}
.prova::backdrop {
  background: rgba(5, 14, 32, .82);
  backdrop-filter: blur(3px);
}
.prova[open] {
  animation: provaEntra .22s ease;
}
.prova-caixa {
  background: var(--marinho-esc);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--raio-cartao);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 24px);
}
.prova-topo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  color: #fff;
  font-size: 14px;
}
.prova-fechar {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--raio-btn);
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.prova-fechar:hover {
  background: rgba(255, 255, 255, .24);
}
.prova-fechar svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
}
.prova img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: var(--marinho-esc);
}
.prova-fonte {
  margin: 0;
  padding: 10px 18px 14px;
  font-size: 12px;
  color: #9FB0C9;
}
@keyframes provaEntra {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .res-grelha {
    grid-template-columns: 1fr 1fr;
  }
  .res-destaques {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prova[open] {
    animation: none;
  }
}

/* ======================================================================
   Testemunhos
   ====================================================================== */

.carrossel {
  margin-top: 48px;
  overflow: hidden;
}
.pista {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.test {
  flex: 0 0 100%;
  padding-right: clamp(18px, 2.4vw, 28px);
}
.test-inner {
  background: var(--branco);
  padding: clamp(26px, 3.4vw, 42px);
  height: 100%;
  border: 1px solid var(--linha);
  border-top: 3px solid var(--gelo-esc, #A9C1E3);
  border-radius: var(--raio-medio);
  position: relative;
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .4);
}
.test-inner p {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  margin-bottom: 22px;
  position: relative;
}
.test cite {
  font-style: normal;
  font-family: var(--texto);
  font-weight: 700;
  font-size: 15px;
  display: block;
}
.test span {
  font-size: 13.5px;
  color: var(--cinza);
}
.setas {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  justify-content: center;
}
.seta {
  width: 46px;
  height: 46px;
  border: 1px solid var(--linha);
  background: var(--branco);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: var(--raio-btn);
}
.seta:hover {
  background: var(--azul);
  border-color: var(--azul);
}
.seta svg {
  width: 18px;
  height: 18px;
  stroke: var(--preto);
  fill: none;
  stroke-width: 2;
}
.seta:hover svg {
  stroke: #fff;
}
.seta[disabled] {
  opacity: .35;
  cursor: default;
}
.seta[disabled]:hover {
  background: var(--branco);
  border-color: var(--linha);
}
.seta[disabled]:hover svg {
  stroke: var(--preto);
}
.test-inner::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  right: 22px;
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
  color: var(--gelo-esc, #A9C1E3);
  opacity: .45;
  pointer-events: none;
}

@media (min-width: 840px) {
  .test {
    flex: 0 0 50%;
  }
}

@media (max-width: 560px) {
  .carrossel {
    margin-top: 28px;
  }
  .test-inner {
    padding: 24px 20px;
    border-radius: var(--raio-medio);
  }
  .test-inner p {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .test-inner::before {
    font-size: 52px;
    top: 4px;
    right: 14px;
  }
  .setas {
    margin-top: 20px;
  }
  .seta {
    width: 42px;
    height: 42px;
  }
}

/* ======================================================================
   Contacto
   ====================================================================== */

.contactos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.contactos a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--linha);
  display: grid;
  place-items: center;
  transition: background .16s, border-color .16s;
  border-radius: var(--raio-btn);
}
.contactos a:hover {
  background: var(--azul);
  border-color: var(--azul);
}
.contactos svg {
  width: 16px;
  height: 16px;
  fill: var(--preto);
}
.contactos a:hover svg {
  fill: #fff;
}
.contacto-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 4.6vw, 66px);
  align-items: start;
  margin-top: 48px;
}
.dados {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.dados li {
  font-size: 16.5px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-medio);
  background: #fff;
  box-shadow: 0 14px 30px -26px rgba(18, 48, 94, .45);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dados a {
  color: var(--preto);
  text-decoration: none;
  border-bottom: 1px solid var(--gelo);
}
.dados small {
  display: block;
  color: var(--cinza);
  font-size: 12.5px;
  margin-bottom: 3px;
}
.dados li:hover {
  border-color: #B9CBE6;
  box-shadow: 0 18px 34px -24px rgba(18, 48, 94, .5);
  transform: translateY(-1px);
}
.dados li>div {
  min-width: 0;
  line-height: 1.5;
}
.dado-ico {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--raio-medio);
  background: linear-gradient(150deg, #1E6FE0, #013470);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px -10px rgba(30, 111, 224, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.dado-ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dados li small {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--cinza);
  margin-bottom: 4px;
}
.dados li small.nota {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 5px 0 0;
  color: var(--cinza-claro);
  font-size: 12px;
}
.dados li a {
  font-size: 17.5px;
  font-weight: 600;
  border-bottom: 1px solid #C9D6EA;
  transition: border-color .2s, color .2s;
}
.dados li a:hover {
  color: var(--azul);
  border-bottom-color: var(--azul);
}
.dados li span:not(.dado-ico) {
  color: var(--preto);
}
.dados li .dado-exemplo {
  font-size: 17.5px;
  font-weight: 600;
}
.contacto-grid .mapa {
  margin-top: 14px;
  border-radius: var(--raio-cartao);
  border: 0;
  box-shadow: 0 22px 44px -30px rgba(18, 48, 94, .55);
  --foco: #fff;
  background: var(--marinho-esc);
}
.contacto-grid .mapa iframe {
  filter: saturate(.9) contrast(1.03);
}
.contacto-grid .mapa-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.contacto-grid .mapa-link a {
  flex: 1 1 auto;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-btn);
  background: #fff;
  color: var(--azul-esc);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.contacto-grid .mapa-link a:first-child {
  background: linear-gradient(135deg, #1E6FE0, #014592);
  border-color: transparent;
  color: #fff;
}
.contacto-grid .mapa-link a:hover {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
}
.contacto-grid .mapa-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mapa {
  margin-top: 24px;
  aspect-ratio: 4/3;
  background: var(--marinho-esc);
  border: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
}
.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.mapa-link {
  margin: 10px 0 0;
  font-size: 13.5px;
}
.mapa-link a {
  color: #E6EDF7;
  text-decoration: none;
  border-bottom: 1px solid var(--gelo);
}
.mapa-aviso {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  color: #E6EDF7;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.mapa-aviso svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  opacity: .8;
}
.mapa-aviso b {
  font-size: 15px;
  font-weight: 600;
}
.mapa-aviso small {
  font-size: 12.5px;
  opacity: .7;
  max-width: 34ch;
}
.mapa-aviso .btn {
  margin-top: 6px;
}
.dados li a.dado-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--raio-btn);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: #15803D;
}
.dados li a.dado-wa:hover {
  color: #fff;
  background: #166534;
}
.dado-wa svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

@media (min-width: 901px) {
  .contacto-grid {
    align-items: stretch;
  }
  .contacto-grid>div:first-child {
    display: flex;
    flex-direction: column;
  }
  .contacto-grid>div:first-child .mapa {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 260px;
  }
}

@media (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .contactos {
    gap: 6px;
  }
  .contactos a {
    width: 42px;
    height: 42px;
  }
  .contactos svg {
    width: 15px;
    height: 15px;
  }
  .contacto-grid {
    gap: 26px;
    margin-top: 28px;
  }
  .dados li {
    padding: 13px 14px;
    font-size: 15.5px;
    gap: 13px;
  }
  .dados li a {
    font-size: 16px;
  }
  .dado-ico {
    width: 38px;
    height: 38px;
    border-radius: var(--raio-medio);
  }
  .mapa {
    aspect-ratio: 1/1;
  }
  .dados a {
    display: inline-block;
    padding: 4px 0;
  }
  .mapa-link a {
    display: inline-block;
    padding: 8px 0;
  }
  .contacto-grid .mapa {
    aspect-ratio: 16/9;
    min-height: 0;
  }
  .mapa-aviso {
    padding: 12px;
    gap: 5px;
  }
  .mapa-aviso svg {
    width: 22px;
    height: 22px;
  }
  .mapa-aviso b {
    font-size: 13.5px;
  }
  .mapa-aviso small {
    font-size: 10.5px;
    line-height: 1.35;
  }
  .mapa-aviso .btn {
    margin-top: 2px;
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* ======================================================================
   Formulário
   ====================================================================== */

.caixa {
  background: var(--branco);
  color: var(--preto);
  border-top: 4px solid var(--azul);
}
.caixa-topo {
  padding: 26px clamp(22px, 2.6vw, 32px) 0;
}
.caixa .sobre {
  font-family: var(--texto);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--azul);
  margin: 0 0 8px;
}
.caixa h2 {
  font-size: clamp(22px, 2.4vw, 28px);
}
.caixa .sub {
  font-size: 14.5px;
  color: var(--cinza);
  margin: 8px 0 0;
}
.segmentos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--linha);
  padding: 2px;
  margin-top: 20px;
}
.tab {
  background: var(--branco);
  border: 0;
  padding: 11px 4px;
  font-family: var(--texto);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cinza);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.tab:hover {
  color: var(--preto);
}
.tab[aria-selected="true"] {
  background: var(--azul);
  color: #fff;
}
.caixa form {
  padding: 22px clamp(22px, 2.6vw, 32px) clamp(26px, 2.6vw, 32px);
}
.campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.largo {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cinza);
  margin-bottom: 5px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--texto);
  font-size: 16px;
  padding: 12px 13px;
  border: 1px solid var(--linha);
  background: var(--fundo);
  color: var(--preto);
  margin-bottom: 13px;
  border-radius: var(--raio-btn);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder {
  color: #96A2B4;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--azul);
  background: var(--branco);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 69, 146, .14);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.rgpd {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--cinza);
  line-height: 1.45;
  margin: 6px 0 16px;
}
.rgpd input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--azul);
}
.rgpd label {
  font-weight: 400;
  margin: 0;
  font-size: 12px;
  color: var(--cinza);
}
.caixa .btn {
  width: 100%;
}
.pe-form {
  font-size: 12.5px;
  color: var(--cinza);
  text-align: center;
  margin: 12px 0 0;
}
.estado {
  font-size: 14px;
  margin: 12px 0 0;
  display: none;
}
.estado.ok {
  display: block;
  color: #15703F;
}
.estado.erro {
  display: block;
  color: #B3261E;
}
.form-rt {
  border-top: 0;
  border-radius: var(--raio-medio);
  overflow: hidden;
  box-shadow: 0 40px 80px -34px rgba(18, 48, 94, .45), 0 0 0 1px rgba(18, 48, 94, .06);
}
.form-rt .caixa-topo {
  padding: 32px clamp(22px, 3vw, 36px) 0;
  position: relative;
}
.form-rt .caixa-topo::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul), #3A7BD5);
}
.form-rt .segmentos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--fundo);
  padding: 4px;
  border-radius: 999px;
  margin-top: 22px;
  border: 1px solid var(--linha);
}
.form-rt .tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 10px 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cinza);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.form-rt .tab svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.form-rt .tab:hover {
  color: var(--preto);
}
.form-rt .tab[aria-selected="true"] {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(1, 69, 146, .6);
}
.form-rt form {
  padding: 26px clamp(22px, 3vw, 36px) clamp(28px, 3vw, 34px);
}
.campo-isco {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-rt .grupo {
  border: 0;
  padding: 0;
  min-width: 0;
  margin: 0 0 12px;
}
.form-rt legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--texto);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--preto);
}
.form-rt legend span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
  width: 20px;
  height: 20px;
  font-size: 11px;
}
.form-rt .campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.form-rt .campo {
  margin-bottom: 10px;
}
.form-rt .campo.largo {
  grid-column: 1/-1;
}
.form-rt label {
  display: block;
  font-weight: 600;
  color: #4A5465;
  font-size: 12px;
  margin: 0 0 4px;
}
.form-rt .com-icone {
  position: relative;
}
.form-rt .com-icone>svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  fill: none;
  stroke: #96A2B4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke .2s;
  left: 12px;
  width: 16px;
  height: 16px;
}
.form-rt .com-icone:focus-within>svg {
  stroke: var(--azul);
}
.form-rt input[type=text],
.form-rt input[type=tel],
.form-rt input[type=email],
.form-rt select,
.form-rt textarea {
  width: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid #D3DCE8;
  border-radius: var(--raio-btn);
  font-family: var(--texto);
  font-size: 15.5px;
  color: var(--preto);
  transition: border-color .2s, box-shadow .2s;
}
.form-rt .com-icone input, .form-rt .com-icone select {
  height: 50px;
  padding: 0 14px 0 42px;
}
.form-rt select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23778396' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 38px !important;
}
.form-rt textarea {
  resize: vertical;
  line-height: 1.55;
  min-height: 72px;
  padding: 10px 12px;
  font-size: 15px;
}
.form-rt input::placeholder, .form-rt textarea::placeholder {
  color: #9DA9BA;
}
.form-rt input:hover, .form-rt select:hover, .form-rt textarea:hover {
  border-color: #B9C5D6;
}
.form-rt input:focus, .form-rt select:focus, .form-rt textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(1, 69, 146, .12);
  background: #fff;
}
.form-rt .foi-tocado:invalid {
  border-color: #C8453B;
}
.upload {
  margin-top: 2px;
}
.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.upload-zona {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  padding: 22px 16px !important;
  margin: 0 !important;
  border: 1.5px dashed #C3CEDD;
  border-radius: var(--raio-medio);
  background: #F6F9FD;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zona:hover,
.upload-zona.arrastar,
.upload-input:focus-visible+.upload-zona {
  border-color: var(--azul);
  background: rgba(1, 69, 146, .04);
}
.upload-zona.arrastar {
  border-style: solid;
}
.upload-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--linha);
  margin-bottom: 6px;
  transition: transform .2s;
}
.upload-zona:hover .upload-ico {
  transform: translateY(-2px);
}
.upload-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--azul);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.upload-zona b {
  font-weight: 600;
  color: var(--preto);
  font-size: 13.5px;
}
.upload-zona b em {
  font-style: normal;
  font-weight: 400;
  color: var(--cinza);
}
.upload-zona span {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--cinza);
}
.upload-zona small {
  font-weight: 400;
  color: #8A96A8;
  margin: 0;
  font-size: 12px;
}
.upload-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}
.upload-lista li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 10px 9px 12px;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: var(--raio-btn);
  font-size: 13.5px;
  animation: entrar .25s ease;
}
.upload-lista li>svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--azul);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.f-nome {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--preto);
}
.f-tam {
  color: #8A96A8;
  font-size: 12.5px;
  white-space: nowrap;
}
.f-tirar {
  flex: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--fundo);
  color: var(--cinza);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.f-tirar:hover {
  background: #F3DAD7;
  color: #B3261E;
}
.upload-erro {
  font-size: 12.5px;
  color: #B3261E;
  margin: 8px 0 0;
  min-height: 0;
}
.upload-erro:empty {
  display: none;
}
.upload-nota {
  color: #8A96A8;
  margin: 8px 0 0;
  margin-top: 6px;
  font-size: 12px;
}
.form-rt .rgpd {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 2px 0 12px;
}
.form-rt .rgpd input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #B9C5D6;
  border-radius: 6px;
  background: #fff center/13px no-repeat;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.form-rt .rgpd input:checked {
  background-color: var(--azul);
  border-color: var(--azul);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.form-rt .rgpd input:focus-visible {
  outline: 3px solid rgba(1, 69, 146, .35);
  outline-offset: 2px;
}
.form-rt .rgpd label {
  margin: 1px 0 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--cinza);
  cursor: pointer;
}
.form-rt .btn-enviar {
  width: 100%;
  margin: 0;
  padding: 17px 22px;
  border-radius: var(--raio-btn);
  gap: 10px;
  box-shadow: 0 12px 24px -12px rgba(1, 69, 146, .7);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.form-rt .btn-enviar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}
.form-rt .btn-enviar:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -12px rgba(1, 69, 146, .8);
}
.form-rt .btn-enviar:hover svg {
  transform: translateX(3px);
}
.form-rt .btn-enviar[disabled] {
  opacity: .7;
  cursor: wait;
  transform: none;
}
.form-rt .pe-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 12px;
}
.form-rt .pe-form svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #8A96A8;
  stroke-width: 2;
  stroke-linecap: round;
}
.form-rt .estado {
  text-align: center;
  padding: 12px 14px;
  border-radius: var(--raio-btn);
  margin-top: 14px;
}
.form-rt .estado.ok {
  background: #E8F4EC;
}
/* o erro é só uma linha de texto, sem caixa (pedido do dono a 13/10/2026) */
.form-rt .estado.erro {
  padding: 0;
  margin-top: 10px;
  font-size: 13px;
  background: none;
}
.form-rt .caixa-topo .sobre {
  margin: 0 0 4px;
  font-size: 11.5px;
}
.form-rt .caixa-topo h2 {
  font-size: clamp(20px, 2vw, 24px);
}
.upload-zona .upload-ico {
  grid-row: 1/3;
  width: 34px;
  height: 34px;
  margin: 0;
}
.upload-zona .upload-ico svg {
  width: 17px;
  height: 17px;
}
.upload-zona>span:not(.upload-ico) {
  display: none;
}
.upload-zona small, .upload-nota {
  color: #627085;
}
input, textarea {
  caret-color: var(--azul);
}
@keyframes entrar {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1100px) {
  .form-rt .grupo:first-of-type .campos {
    grid-template-columns: .85fr .85fr 1.3fr;
  }
  .form-rt .grupo:first-of-type .campo.largo {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  /* No telemóvel o formulário vem antes dos contactos */
  .contacto-grid>.form-rt {
    order: -1;
  }
}

@media (max-width: 560px) {
  .form-rt .campos {
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
  }
  .form-rt {
    border-radius: var(--raio-medio);
  }
  .form-rt .caixa-topo {
    padding: 24px 20px 0;
  }
}
.form-rt .caixa-topo {
  padding: 22px clamp(18px, 2.4vw, 28px) 0;
}

@media (max-width: 560px) {
  .form-rt h2 {
    font-size: 22px;
  }
  .form-rt .sub {
    font-size: 13.5px;
  }
}
.form-rt .sub {
  margin-bottom: 0;
  font-size: 13.5px;
  margin-top: 4px;
}

@media (max-width: 560px) {
  .form-rt .segmentos {
    margin-top: 16px;
  }
}
.form-rt .segmentos {
  margin-top: 14px;
}

@media (max-width: 560px) {
  .form-rt .tab {
    font-size: 12.5px;
    gap: 5px;
    padding: 12px 4px;
  }
  .form-rt .tab svg {
    width: 13px;
    height: 13px;
  }
  .form-rt form {
    padding: 20px;
  }
}
.form-rt form {
  padding: 18px clamp(18px, 2.4vw, 28px) 22px;
}

@media (max-width: 360px) {
  /* nos ecrãs mais estreitos os três separadores só cabem sem os ícones */
  .form-rt .tab svg {
    display: none;
  }
}

@media (max-width: 560px) {
  .form-rt legend {
    font-size: 12.5px;
    margin-bottom: 12px;
  }
}
.form-rt legend {
  margin-bottom: 9px;
  font-size: 12.5px;
}

@media (max-width: 560px) {
  .form-rt .com-icone input, .form-rt .com-icone select {
    height: 46px;
  }
}
.form-rt .com-icone input, .form-rt .com-icone select {
  height: 42px;
  padding-left: 38px;
  font-size: 15px;
}

@media (max-width: 560px) {
  .upload-zona {
    padding: 18px 14px !important;
  }
}
.upload-zona {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 1px;
  text-align: left;
  padding: 10px 14px !important;
}

@media (max-width: 560px) {
  .upload-ico {
    width: 38px;
    height: 38px;
  }
  .form-rt .btn-enviar {
    padding: 15px 18px;
  }
}
.form-rt .btn-enviar {
  padding: 14px 20px;
}
.form-rt .tab {
  padding: 7px 6px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .form-rt .rgpd input {
    width: 22px;
    height: 22px;
  }
  .form-rt .campo.largo {
    grid-column: 1/-1;
  }
  /* 16px: com menos, o iPhone aproxima a página ao tocar no campo */
  .form-rt .com-icone input,
  .form-rt .com-icone select,
  .form-rt textarea {
    font-size: 16px;
  }
  .form-rt .com-icone input, .form-rt .com-icone select {
    padding-left: 34px;
  }
  .form-rt .com-icone>svg {
    left: 10px;
  }
  .form-rt .grupo:nth-of-type(2) .campos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .campos {
    grid-template-columns: 1fr;
  }
}

/* ======================================================================
   Mensagem da equipa
   ====================================================================== */

.mensagem-equipa {
  position: relative;
  overflow: hidden;
  background: var(--marinho-esc);
  color: #fff;
  padding: clamp(50px, 6vw, 80px) 0;
}
/* Padrão com o logótipo RE/MAX Rumo 2 */
.mensagem-equipa::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: 0;
  pointer-events: none;
  opacity: .11;
  filter: blur(.6px);
  transform: rotate(-18deg);
  background-image: url("../img/padrao-remax.webp"), conic-gradient(rgba(0, 0, 0, .55) 25%, transparent 0 50%, rgba(0, 0, 0, .55) 0 75%, transparent 0);
  background-size: 240px 150px, 480px 300px;
  background-repeat: repeat;
}
.mensagem-equipa>.wrap {
  position: relative;
  z-index: 1;
}
.mensagem-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
}
.mensagem-foto {
  border-radius: var(--raio-cartao);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 26px 50px -24px rgba(1, 20, 50, .6);
}
.mensagem-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
}
.mensagem-equipa blockquote {
  margin: 0;
}
.mensagem-equipa blockquote p {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.45;
  margin: 0 0 14px;
}
.mensagem-equipa .assinatura {
  display: block;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.anima .mensagem-equipa blockquote:not(.dentro) .assinatura {
  opacity: 0;
}
.anima .mensagem-equipa blockquote.dentro .assinatura {
  opacity: 1;
  transition: opacity .8s ease 1s;
}

@media (max-width: 760px) {
  .mensagem-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================================
   Rodapé
   ====================================================================== */

footer {
  background: var(--marinho-esc);
  color: #A6B2C3;
  font-size: 14px;
  line-height: 1.6;
  padding: clamp(30px, 3.6vw, 46px) 0 18px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: clamp(20px, 2.4vw, 36px);
}
footer h3 {
  font-family: var(--texto);
  color: #fff;
  font-size: 14px;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer li {
  margin-bottom: 5px;
}
footer a {
  color: #A6B2C3;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
.social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  border-radius: var(--raio-btn);
}
.social a:hover {
  background: var(--azul);
  border-color: var(--azul);
}
.social svg {
  width: 17px;
  height: 17px;
  fill: #A6B2C3;
}
.foot-logo {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}
.social a:hover svg {
  fill: #fff;
}
.legal {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: #818DA0;
}
.legal p {
  margin: 0 0 4px;
}
.foot-marcas {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.foot-marcas .foot-logo {
  margin: 0;
}
.foot-remax {
  height: 58px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }
  footer {
    padding: 22px 0 14px;
    font-size: 13px;
  }
  .legal {
    margin-top: 32px;
    font-size: 12px;
  }
  .foot-grid>div:first-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 12px;
  }
  .foot-grid>div:first-child .foot-marcas {
    margin: 0;
    gap: 14px;
  }
  .foot-grid>div:first-child .foot-logo {
    height: 40px;
  }
  .foot-grid>div:first-child .foot-remax {
    height: 46px;
  }
  .foot-grid>div:first-child .social {
    margin: 0;
    order: 1;
  }
  .foot-grid>div:first-child p {
    order: 2;
    grid-column: 1/-1;
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
  }
  .foot-grid>div:first-child .social a {
    width: 34px;
    height: 34px;
  }
  .foot-grid>div:first-child h3 {
    display: none;
  }
  .foot-navegar {
    display: none;
  }
  footer h3 {
    font-size: 12px;
    margin-bottom: 8px;
  }
  footer li {
    font-size: 12.5px;
    line-height: 1.35;
    margin-bottom: 2px;
  }
  footer .legal {
    margin-top: 14px;
    padding-top: 12px;
  }
  footer .legal p {
    font-size: 10.5px;
    line-height: 1.45;
    margin: 0 0 6px;
  }
  footer li a {
    display: inline-block;
    padding: 4px 0;
  }
}

/* ======================================================================
   Voltar ao topo e aviso de cookies
   ====================================================================== */

.topo {
  position: fixed;
  right: 25px;
  bottom: 90px;
  z-index: 95;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--azul);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.topo.visivel {
  opacity: 1;
  pointer-events: auto;
}
.topo svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
}
.cookies {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 130;
  width: calc(100% - 32px);
  max-width: 1000px;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-top: 3px solid var(--azul);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .22);
  padding: 14px 20px;
  display: none;
  border-radius: var(--raio-medio);
}
.cookies.mostrar {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cookies p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cinza);
  margin: 0;
  flex: 1 1 320px;
}
.cookies-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookies .btn {
  padding: 10px 16px;
  font-size: 13.5px;
}
.cookies .btn-linha {
  border-color: var(--linha);
  color: var(--preto);
}
.cookies .btn-linha:hover {
  background: var(--preto);
  color: #fff;
  border-color: var(--preto);
}
.cookies-mais {
  display: none;
}

@media (max-width: 560px) {
  .cookies {
    padding: 12px 12px 12px;
    bottom: 10px;
    width: calc(100% - 20px);
    border-radius: var(--raio-medio);
  }
  .cookies p {
    font-size: 12px;
    line-height: 1.45;
    flex-basis: 100%;
  }
  .cookies-btns {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cookies .btn {
    text-align: center;
    justify-content: center;
    padding: 10px 6px;
    font-size: 11.5px;
    letter-spacing: .04em;
    white-space: nowrap;
    border-radius: var(--raio-btn);
  }
  .cookies .btn:last-child {
    grid-column: 1/-1;
  }
  .topo {
    width: 40px;
    height: 40px;
    right: 20px;
    bottom: 76px;
  }
  .cookies.mostrar {
    gap: 10px;
  }
  .cookies-mais {
    display: inline;
    color: var(--azul);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
  }
  .cookies-btns .btn:last-child {
    display: none;
  }
}

/* ======================================================================
   Assistente
   ====================================================================== */

.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
  background: linear-gradient(150deg, #0B3F86, #0A1F3F);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(1, 30, 70, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(1, 30, 70, .55);
}
.chat-fab img {
  width: 34px;
  height: auto;
  display: block;
}
.chat-fab .ponto {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #35C46B;
  border: 2px solid #0A1F3F;
}
.chat-fab[aria-expanded="true"] .ponto {
  display: none;
}
.chat-painel {
  --c-fundo: #0B1628;
  --c-topo: #0A2A57;
  --c-bolha: #1A2940;
  --c-linha: rgba(255, 255, 255, .09);
  --c-texto: #E7EDF7;
  --c-suave: #93A3BC;
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 125;
  width: min(390px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 110px));
  background: var(--c-fundo);
  color: var(--c-texto);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 10, 30, .55);
  display: none;
  flex-direction: column;
  font-family: var(--texto);
}
.chat-painel.aberto {
  display: flex;
  animation: chatEntra .22s ease;
}
.chat-topo small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #A9BBD6;
  line-height: 1.3;
  white-space: nowrap;
}
.chat-topo small::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35C46B;
  flex: none;
}
.chat-botoes {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.chat-botoes button:hover {
  background: rgba(255, 255, 255, .2);
}
.chat-botoes svg {
  width: 17px;
  height: 17px;
  stroke: #fff;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
}
.chat-botoes .chat-lingua {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  margin-right: 2px;
  background: rgba(255, 255, 255, .1);
  border-radius: 7px;
  align-self: center;
}
.chat-botoes .chat-lingua button {
  width: auto;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: transparent;
  color: #A9BBD6;
  font: 700 9.5px var(--texto);
  letter-spacing: .05em;
}
.chat-botoes .chat-lingua button:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.chat-botoes .chat-lingua button[aria-pressed="true"] {
  background: #fff;
  color: #0A2A57;
}
.msg-bot {
  align-self: flex-start;
}
.msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-avatar img {
  width: 16px;
  height: auto;
}
.msg-corpo {
  min-width: 0;
}
.msg-user p {
  background: #2F6FD6;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-user time {
  text-align: right;
}
.msg-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.msg-acoes a:hover, .msg-acoes button:hover {
  background: #2F6FD6;
  border-color: #2F6FD6;
  color: #fff;
}
.msg-acoes a.wa {
  border-color: #1F8F4E;
  color: #7EE0A6;
}
.msg-acoes a.wa:hover {
  background: #1DA851;
  border-color: #1DA851;
  color: #fff;
}
.msg-acoes button:disabled {
  opacity: .45;
  cursor: default;
  background: #12233D;
  border-color: #3A5A8C;
  color: #D6E3F7;
}
.a-escrever p {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 21px;
}
.a-escrever i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8FA3C4;
  animation: chatPonto 1s infinite ease-in-out;
}
.a-escrever i:nth-child(2) {
  animation-delay: .15s;
}
.a-escrever i:nth-child(3) {
  animation-delay: .3s;
}
.chat-chips:empty {
  display: none;
}
.chat-chips::-webkit-scrollbar {
  display: none;
}
.chat-chips button:hover {
  border-color: #2F6FD6;
  color: #fff;
  background: #2F6FD6;
}
.chat-form:focus-within {
  border-color: #2F6FD6;
}
.chat-form input::placeholder {
  color: #7D8DA8;
}
.chat-form button:hover {
  background: #255CB5;
}
.chat-form button svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}
@keyframes chatEntra {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes chatPonto {
  0%, 80%, 100% { opacity: .3; transform: none; }
  40% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 560px) {
  .chat-fab {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }
  .chat-fab img {
    width: 30px;
  }
}

@media (max-width: 520px) {
  .chat-painel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 76px;
    height: min(460px, calc(100dvh - 150px));
    border-radius: 14px;
  }
  .chat-topo {
    padding: 9px 10px 9px 12px;
    gap: 9px;
  }
}
.chat-topo {
  background: var(--c-topo);
  padding: 12px 12px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--c-linha);
}

@media (max-width: 520px) {
  .chat-topo img {
    height: 24px;
  }
}
.chat-topo img {
  height: 30px;
  width: auto;
  flex: none;
}

@media (max-width: 520px) {
  .chat-topo b {
    font-size: 13.5px;
  }
}
.chat-topo b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

@media (max-width: 520px) {
  .chat-botoes button {
    width: 30px;
    height: 30px;
  }
}
.chat-botoes button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 0;
}

@media (max-width: 520px) {
  .chat-lista {
    padding: 12px 10px 8px;
    gap: 8px;
  }
}
.chat-lista {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #2A3B57 transparent;
}

@media (max-width: 520px) {
  .msg {
    font-size: 13px;
    line-height: 1.5;
    max-width: 94%;
  }
}
.msg {
  display: flex;
  gap: 8px;
  max-width: 90%;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .msg p {
    padding: 8px 11px;
  }
}
.msg p {
  margin: 0;
  padding: 10px 13px;
  white-space: pre-line;
  word-wrap: break-word;
  border-radius: 14px;
}
.msg-bot p {
  background: var(--c-bolha);
  color: var(--c-texto);
  border-bottom-left-radius: 4px;
}

@media (max-width: 520px) {
  .msg-avatar {
    width: 24px;
    height: 24px;
  }
}
.msg-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0B3F86;
  display: grid;
  place-items: center;
  align-self: flex-end;
  margin-bottom: 18px;
}

@media (max-width: 520px) {
  .msg time {
    font-size: 10px;
  }
}
.msg time {
  display: block;
  font-size: 10.5px;
  color: #6F7F98;
  margin-top: 4px;
  padding: 0 4px;
}

@media (max-width: 520px) {
  .msg-acoes a, .msg-acoes button {
    font-size: 12px;
    padding: 7px 11px;
  }
}
.msg-acoes a, .msg-acoes button {
  font-family: var(--texto);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid #3A5A8C;
  background: #12233D;
  color: #D6E3F7;
  cursor: pointer;
}

@media (max-width: 520px) {
  .chat-chips {
    padding: 6px 10px;
  }
}
.chat-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  border-top: 1px solid var(--c-linha);
  scrollbar-width: none;
}

@media (max-width: 520px) {
  .chat-chips button {
    font-size: 12px;
    padding: 6px 10px;
  }
}
.chat-chips button {
  flex: none;
  font-family: var(--texto);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 12px;
  border: 1px solid #2E4468;
  background: transparent;
  color: #C9D6EA;
  cursor: pointer;
  border-radius: 999px;
}

@media (max-width: 520px) {
  .chat-form {
    margin: 2px 10px 0;
    padding: 4px 4px 4px 12px;
  }
}
.chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 12px 0;
  padding: 6px 6px 6px 14px;
  background: #13223A;
  border: 1px solid #243858;
  border-radius: 12px;
}

@media (max-width: 520px) {
  .chat-form input {
    font-size: 16px;
    padding: 6px 0;
  }
}
.chat-form input {
  caret-color: #fff;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  outline: none;
  box-shadow: none;
}

@media (max-width: 520px) {
  .chat-form button {
    width: 34px;
    height: 34px;
  }
}
.chat-form button {
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #2F6FD6;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 520px) {
  .chat-aviso {
    padding: 6px 12px 8px;
    font-size: 10px;
  }
}
.chat-aviso {
  font-size: 10.5px;
  color: #6F7F98;
  text-align: center;
  padding: 8px 14px 10px;
  margin: 0;
  line-height: 1.45;
}
.msg time, .chat-aviso {
  color: #8494AD;
}

@media (prefers-reduced-motion: reduce) {
  .chat-painel.aberto {
    animation: none;
  }
}

/* ======================================================================
   Página do blog
   ====================================================================== */

.blog-hero {
  background: var(--marinho-esc);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 70px);
  position: relative;
}
.blog-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--azul) 0 50%, var(--gelo) 50% 100%);
}
.blog-hero .sobre {
  font-family: var(--texto);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gelo);
  margin: 0 0 16px;
}
.blog-hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  max-width: 18ch;
}
.blog-hero p {
  color: #D2DCEA;
  max-width: 56ch;
  margin-top: 18px;
  font-size: clamp(16px, 1.7vw, 18.5px);
}
.lei-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.lei-estado {
  font-size: 12.5px;
  color: var(--cinza-claro);
  margin: 0;
  white-space: nowrap;
}
.lei-estado::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1DA851;
  margin-right: 7px;
  vertical-align: 1px;
}
.lei-mais {
  margin: 14px 0 0;
  font-size: 14px;
}
.lei-mais a {
  font-family: var(--texto);
  font-weight: 700;
  color: var(--azul);
  text-decoration: none;
  border-bottom: 2px solid var(--azul);
}
.lei-lista {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--linha);
}
.lei-lista li {
  border-bottom: 1px solid var(--linha);
}
.lei-lista a {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--preto);
  transition: background .15s;
}
.lei-lista a:hover {
  background: var(--fundo);
}
.lei-data {
  font-family: var(--texto);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--azul);
}
.lei-titulo {
  font-size: 15.5px;
  line-height: 1.5;
}
.lei-titulo small {
  display: block;
  color: var(--cinza);
  font-size: 13.5px;
  margin-top: 4px;
}
.lei-ir {
  font-family: var(--texto);
  font-size: 13px;
  font-weight: 700;
  color: var(--azul);
  white-space: nowrap;
}
.lei-nota {
  font-size: 12.5px;
  color: var(--cinza-claro);
  margin-top: 18px;
}
.artigos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: 44px;
}
.artigo-cartao {
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: var(--raio-cartao);
  padding: clamp(22px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--preto);
  box-shadow: 0 18px 40px -30px rgba(18, 48, 94, .45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.artigo-cartao:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -26px rgba(18, 48, 94, .5);
}
.artigo-cartao time {
  font-family: var(--texto);
  font-size: 12px;
  font-weight: 600;
  color: var(--azul);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.artigo-cartao h3 {
  margin: 10px 0 10px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--marinho);
}
.artigo-cartao p {
  font-size: 15px;
  color: var(--cinza);
  margin: 0 0 18px;
}
.artigo-cartao span {
  margin-top: auto;
  font-family: var(--texto);
  font-size: 13px;
  font-weight: 700;
  color: var(--remax);
}
.artigo-cartao span::after {
  content: " →";
}
.leitor {
  max-width: 760px;
  margin: 0 auto;
}
.leitor .voltar {
  font-family: var(--texto);
  font-size: 14px;
  font-weight: 700;
  color: var(--azul);
  text-decoration: none;
  display: table;
  margin-bottom: 18px;
}
.leitor time {
  font-family: var(--texto);
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul);
}
.leitor h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  margin: 10px 0 26px;
}
.leitor h3 {
  font-size: 21px;
  margin: 34px 0 12px;
}
.leitor p, .leitor li {
  font-size: 17px;
  color: #353A44;
}
.leitor ul {
  padding-left: 20px;
}
.leitor li {
  margin-bottom: 10px;
}
.leitor-cta {
  margin-top: 34px;
}
/* partilhar um artigo: no fim, antes do "Falar com um consultor" */
.partilhar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--linha);
}
.leitor .partilhar-rotulo {
  flex-basis: 100%;
  margin: 0 0 4px;
  font-family: var(--texto);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul);
}
.partilhar-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #C9D6EA;
  border-radius: var(--raio-btn);
  background: var(--branco);
  color: var(--azul-esc);
  font-family: var(--texto);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.partilhar-btn:hover {
  border-color: var(--azul);
  background: #F1F5FB;
  transform: translateY(-1px);
}
.partilhar-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.leitor .partilhar-estado {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--cinza);
}
.leitor .partilhar-estado:empty {
  display: none;
}
.nota-artigo {
  margin-top: 36px;
  font-size: 13.5px !important;
  color: var(--cinza) !important;
  border-left: 3px solid var(--azul);
  padding-left: 14px;
}
.jovens {
  background: #F3F5F8;
}
.jovens-caixa {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 3.6vw, 48px);
  border-radius: var(--raio-cartao);
  border: 1px solid var(--linha);
  text-align: center;
  background: linear-gradient(160deg, #E7ECF3, #DFE6EF);
  border-color: #CDD7E4;
  box-shadow: 0 26px 50px -34px rgba(18, 48, 94, .5);
}
.jovens-titulo {
  font-family: var(--texto);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--marinho);
  margin: 0;
}
.jovens-pergunta {
  font-size: clamp(18px, 2.1vw, 24px);
  color: var(--marinho);
  margin: 10px 0 18px;
}
.jovens-caixa>p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  color: #4E5A6B;
}
.jovens-caixa ol {
  display: inline-block;
  text-align: left;
  margin: 14px auto 18px;
  padding-left: 24px;
  max-width: 56ch;
}
.jovens-caixa li {
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--marinho);
  line-height: 1.45;
}
.jovens-caixa li::marker {
  color: var(--remax);
}
.jovens-caixa .nota-artigo {
  font-size: 13px;
  text-align: left;
  max-width: 62ch;
  color: #56627A;
}
.faixa-cta {
  background: var(--marinho-esc);
  color: #fff;
  padding: clamp(40px, 5vw, 60px) 0;
}
.faixa-cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.faixa-cta h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  color: #fff;
}
.faixa-cta .btn-remax {
  padding: 17px 34px;
  letter-spacing: .14em;
}
.lei-estado-extra {
  display: block;
  margin: 3px 0 0 14px;
  white-space: normal;
  font-size: 12px;
}
.jovens-caixa>p, .jovens-caixa .nota-artigo {
  color: #465264;
}

@media (max-width: 900px) {
  .artigos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .lei-lista a {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .lei-ir {
    display: none;
  }
}

@media (max-width: 560px) {
  .blog-hero {
    padding: 44px 0 34px;
  }
  .blog-hero h1 {
    font-size: 30px;
  }
  .lei-lista a {
    padding: 14px 2px;
  }
  .lei-titulo {
    font-size: 15px;
  }
  .artigos {
    gap: 12px;
    margin-top: 28px;
  }
  .artigo-cartao {
    padding: 22px;
  }
  .artigo-cartao h3 {
    font-size: 18px;
  }
  .leitor h1 {
    font-size: 28px;
  }
  .leitor p, .leitor li {
    font-size: 16px;
  }
}

/* ======================================================================
   Página da equipa
   ====================================================================== */

.equipa-topo {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  background: var(--marinho-esc);
}
/* Torres Novas por trás, sob o azul, com a luz a mexer-se devagar */
.equipa-topo-fundo {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: url("../img/poster-video.webp") center/cover no-repeat;
}
.equipa-topo-fundo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 31, 64, .94) 0%, rgba(10, 31, 64, .84) 42%, rgba(1, 52, 112, .6) 100%);
}
.equipa-topo-fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(38% 48% at 76% 30%, rgba(63, 114, 191, .5), transparent 70%), radial-gradient(32% 42% at 18% 88%, rgba(30, 111, 224, .3), transparent 70%);
}
.anima .equipa-topo-fundo,
.anima .equipa-topo-foto img,
.anima .chip {
  will-change: transform;
}
.anima .equipa-topo-fundo {
  animation: fundoDeriva 26s ease-in-out infinite alternate;
}
.anima .equipa-topo-fundo::after {
  animation: luzDeriva 17s ease-in-out infinite;
}
.equipa-topo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4.6vw, 68px);
  align-items: center;
}
.equipa-topo .sobre {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gelo);
}
.equipa-topo h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 400;
  max-width: 12ch;
}
.equipa-lead {
  max-width: 44ch;
  margin: 20px 0 0;
  font-size: clamp(16px, 1.7vw, 18.5px);
  color: #D2DCEA;
}
.equipa-topo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.equipa-topo .btn-linha {
  color: #fff;
}
.equipa-topo-foto {
  margin: 0;
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--raio-cartao);
  background: #DDE5EF;
  box-shadow: 0 40px 80px -40px rgba(2, 10, 28, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}
.equipa-topo-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.equipa-topo-visual {
  position: relative;
}
/* três factos a flutuar à volta da foto */
.equipa-chips {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 11px;
  border-radius: var(--raio-medio);
  background: #fff;
  color: var(--preto);
  box-shadow: 0 24px 44px -24px rgba(2, 10, 28, .75), 0 2px 8px -2px rgba(2, 10, 28, .25);
}
.chip:nth-child(1) {
  top: -22px;
  left: -26px;
}
.chip:nth-child(2) {
  top: 40%;
  right: -28px;
}
.chip:nth-child(3) {
  bottom: -26px;
  left: 14%;
}
.chip-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--raio-btn);
  background: linear-gradient(150deg, #1E6FE0, #013470);
}
.chip-ico svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip b {
  display: block;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  color: var(--marinho);
}
.chip small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cinza);
}
/* Entrada do topo: o texto e a foto chegam desfocados e ficam nítidos; depois os factos aparecem e flutuam */
.anima .equipa-topo:not(.entrar) .equipa-topo-texto>*,
.anima .equipa-topo:not(.entrar) .equipa-topo-foto,
.anima .equipa-topo:not(.entrar) .chip {
  opacity: 0;
}
.equipa-topo.entrar .equipa-topo-texto>* {
  animation: focoEntra .55s var(--saida) backwards;
}
.equipa-topo.entrar .equipa-topo-texto>:nth-child(2) {
  animation-delay: .05s;
}
.equipa-topo.entrar .equipa-topo-texto>:nth-child(3) {
  animation-delay: .1s;
}
.equipa-topo.entrar .equipa-topo-texto>:nth-child(4) {
  animation-delay: .15s;
}
.equipa-topo.entrar .equipa-topo-foto {
  animation: sobe .6s var(--saida) backwards;
}
.equipa-topo.entrar .equipa-topo-foto img {
  animation: fotoFoco .9s cubic-bezier(.33, 1, .68, 1) backwards, fotoRespira 22s ease-in-out 1s infinite alternate;
}
.equipa-topo.entrar .chip {
  animation: chipEntra .5s var(--saida) .4s backwards, chipFlutua 6s ease-in-out .9s infinite;
}
.equipa-topo.entrar .chip:nth-child(2) {
  animation-delay: .5s, 1.6s;
}
.equipa-topo.entrar .chip:nth-child(3) {
  animation-delay: .6s, 2.3s;
}

/* Faixa dos concelhos, por baixo do topo */
.faixa-concelhos {
  overflow: hidden;
  padding: 15px 0;
  background: var(--fundo);
  border-bottom: 1px solid var(--linha);
}
.faixa-concelhos-pista {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
}
.anima .faixa-concelhos-pista {
  animation: frasePassa 80s linear infinite;
}
.faixa-concelhos-pista span {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--marinho);
}
.faixa-concelhos-pista i {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--remax);
}

.equipa-missao {
  background: var(--branco);
}
.missao {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.missao::before {
  content: "\201C";
  display: block;
  height: 46px;
  font: 500 110px/1 var(--display);
  color: var(--gelo-esc);
}
.missao blockquote {
  margin: 0;
}
.missao blockquote p {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--marinho);
}
.missao blockquote b {
  font-weight: 600;
  color: var(--azul);
  background: linear-gradient(transparent 62%, rgba(169, 193, 227, .5) 62%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.anima .missao blockquote b {
  background-size: 0% 100%;
  transition: background-size .9s var(--saida) .7s;
}
.anima .missao.dentro blockquote b {
  background-size: 100% 100%;
}
.anima .missao::before {
  opacity: 0;
  transform: scale(.6) rotate(-12deg);
  transition: opacity .8s var(--saida), transform .8s var(--saida);
}
.anima .missao.dentro::before {
  opacity: 1;
  transform: none;
}
.anima .missao figcaption {
  opacity: 0;
  transition: opacity .7s ease .8s;
}
.anima .missao.dentro figcaption {
  opacity: 1;
}
.missao figcaption {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cinza);
}
.missao figcaption::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 18px;
  background: var(--azul);
}

.equipa-consultores {
  background: linear-gradient(180deg, var(--fundo) 0%, #E8EFF9 100%);
}
.equipa-grelha {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: 52px;
}
.perfil {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--branco);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--raio-cartao);
  box-shadow: 0 26px 50px -34px rgba(1, 40, 90, .55), 0 2px 6px -2px rgba(1, 40, 90, .08);
  transition: transform .35s var(--saida), box-shadow .35s var(--saida);
}
.perfil:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 60px -36px rgba(1, 40, 90, .6), 0 2px 6px -2px rgba(1, 40, 90, .08);
}
.perfil .retrato img {
  transition: transform .7s var(--saida);
}
.perfil:hover .retrato img,
.perfil a.retrato:hover img {
  transform: scale(1.06);
}
.perfil-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
  border-top: 3px solid var(--azul);
}
.perfil h3 {
  font-size: 25px;
}
.perfil-info>p {
  margin: 10px 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cinza);
}
.perfil-contactos {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--linha);
}
.perfil-contactos a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  vertical-align: top;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--preto);
  text-decoration: none;
  transition: color .2s ease;
}
.perfil-contactos a:hover {
  color: var(--azul);
}
.perfil-contactos svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: var(--raio-btn);
  background: #E9F1FC;
  fill: var(--azul);
  transition: background .2s ease, fill .2s ease;
}
.perfil-contactos a:hover svg {
  background: var(--azul);
  fill: #fff;
}
.perfil-contactos small {
  display: block;
  margin: -7px 0 0 45px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--cinza-claro);
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1001px) {
    .equipa-grelha {
      row-gap: 0;
    }
    .perfil {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
    }
    .perfil .retrato {
      align-self: stretch;
    }
    .perfil-info {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
    }
    .perfil-contactos {
      align-self: start;
      margin-top: 0;
    }
  }
}

.equipa-valores {
  background: var(--branco);
}
.valores-lista {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin: 48px 0 0;
  padding: 0;
}
.valores-lista li {
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--linha);
  border-radius: var(--raio-cartao);
  background: linear-gradient(180deg, #fff 0%, #F6F9FE 100%);
  box-shadow: 0 18px 40px -32px rgba(18, 48, 94, .5);
  transition: transform .35s var(--saida), box-shadow .35s var(--saida), border-color .35s ease;
}
.valores-lista li:hover {
  transform: translateY(-5px);
  border-color: #B9CBE6;
  box-shadow: 0 28px 50px -34px rgba(18, 48, 94, .55);
}
.valor-ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: var(--raio-medio);
  background: linear-gradient(150deg, #1E6FE0, #013470);
  box-shadow: 0 10px 20px -10px rgba(30, 111, 224, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .5s var(--saida);
}
.valores-lista li:hover .valor-ico {
  transform: rotate(-8deg) scale(1.08);
}
.anima .valor-ico svg>* {
  stroke-dasharray: var(--comp);
  stroke-dashoffset: var(--comp);
  transition: stroke-dashoffset .9s var(--saida);
  transition-delay: calc(var(--i, 0) * 70ms + .2s);
}
.anima .valores-lista .dentro .valor-ico svg>* {
  stroke-dashoffset: 0;
}
.valor-ico svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.valores-lista h3 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: 600;
}
.valores-lista p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cinza);
}

.equipa-grupo {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.4vw, 72px) 0;
  background: var(--marinho-esc);
  color: #fff;
}
.equipa-grupo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 26%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .1), transparent);
  transform: translateX(-140%) skewX(-18deg);
  pointer-events: none;
}
.anima .equipa-grupo::before {
  animation: grupoBrilho 9s ease-in-out 1s infinite;
}
.equipa-grupo>.wrap {
  position: relative;
  z-index: 1;
}
.equipa-grupo h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  text-align: center;
}
.grupo-lista {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  margin: 32px 0 0;
  padding: 0;
}
.grupo-lista li {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--raio-medio);
  background: rgba(255, 255, 255, .08);
  transition: background .25s ease, transform .25s ease;
}
.grupo-lista li:hover {
  background: rgba(255, 255, 255, .13);
  transform: translateY(-3px);
}
.grupo-lista b {
  display: block;
  font-family: var(--display);
  font-size: clamp(36px, 4.2vw, 50px);
  font-weight: 500;
  line-height: 1;
}
.grupo-lista span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #C5D4EC;
}

.premios {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 44px auto 0;
  padding: 0;
}
.premio {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-medio);
  background: #fff;
  box-shadow: 0 18px 40px -34px rgba(18, 48, 94, .5);
}
.premio-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--marinho-esc);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--remax);
}
.premio-ico svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.premio b {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}
.premio div span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--cinza);
}
.premio small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--azul);
}

.redes-cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
}
.rede-cartao {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--linha);
  border-radius: var(--raio-cartao);
  background: #fff;
  color: var(--preto);
  text-decoration: none;
  box-shadow: 0 18px 40px -30px rgba(18, 48, 94, .5);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rede-cartao:hover {
  transform: translateY(-3px);
  border-color: #B9CBE6;
  box-shadow: 0 24px 44px -28px rgba(18, 48, 94, .55);
}
.rede-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--raio-medio);
  background: linear-gradient(150deg, #1E6FE0, #013470);
  box-shadow: 0 10px 20px -10px rgba(30, 111, 224, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .5s var(--saida);
}
.rede-cartao:hover .rede-ico {
  transform: rotate(-6deg) scale(1.08);
}
.rede-ico svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.rede-texto {
  flex: 1;
  min-width: 0;
}
.rede-texto b {
  display: block;
  font-size: 17px;
}
.rede-texto span {
  display: block;
  font-size: 14px;
  color: var(--cinza);
  overflow-wrap: anywhere;
}
.rede-seguir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azul);
}
.rede-seguir svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.rede-cartao:hover .rede-seguir svg {
  transform: translateX(3px);
}

.faixa-cta-equipa .btn-remax {
  position: relative;
  overflow: hidden;
  gap: 10px;
  background: linear-gradient(135deg, #F0334A 0%, var(--remax) 55%, var(--remax-esc) 100%);
  box-shadow: 0 14px 28px -14px rgba(2, 10, 28, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.faixa-cta-equipa .btn-remax:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #F54A5F 0%, #E52538 55%, var(--remax-esc) 100%);
  box-shadow: 0 18px 34px -14px rgba(2, 10, 28, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.faixa-cta-equipa .btn-remax svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.faixa-cta-equipa .btn-remax .btn-seta {
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}
.faixa-cta-equipa .btn-remax:hover .btn-seta {
  transform: translateX(4px);
}
.anima .faixa-cta-equipa .btn-remax::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-150%) skewX(-20deg);
  animation: btnBrilho 6s ease-in-out 1.5s infinite;
  pointer-events: none;
}
/* Cada entrada mexe em propriedades diferentes das animações contínuas do mesmo elemento
   (a foto entra só com o desfoque, os factos só com a opacidade): assim o movimento contínuo
   fica todo na placa gráfica. Início e fim com valores do mesmo tipo, pela mesma razão. */
@keyframes focoEntra {
  from { opacity: 0; filter: blur(5px); transform: translateY(12px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes sobe {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fotoAssenta {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
@keyframes fotoFoco {
  from { filter: blur(10px) saturate(.5); }
  to { filter: blur(0) saturate(1); }
}
@keyframes fotoRespira {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -.8%, 0); }
}
@keyframes chipEntra {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes chipFlutua {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes fundoDeriva {
  from { transform: scale(1.06) translate3d(-2%, -1.5%, 0); }
  to { transform: scale(1.14) translate3d(2%, 1.5%, 0); }
}
@keyframes luzDeriva {
  0%, 100% { transform: translate3d(-6%, -4%, 0) scale(1); }
  50% { transform: translate3d(6%, 4%, 0) scale(1.15); }
}
@keyframes grupoBrilho {
  0% { transform: translateX(-140%) skewX(-18deg); }
  45%, 100% { transform: translateX(460%) skewX(-18deg); }
}

/* até 1000px os três cartões ficam apertados: passam a um por linha, com a foto ao lado */
@media (max-width: 1000px) {
  .equipa-grelha {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .perfil {
    flex-direction: row;
  }
  .perfil .retrato {
    flex: 0 0 38%;
    aspect-ratio: auto;
  }
  .perfil .retrato img {
    object-position: 50% 30%;
  }
  .perfil-info {
    border-top: 0;
    border-left: 3px solid var(--azul);
  }
}

@media (max-width: 900px) {
  .equipa-topo-grid {
    grid-template-columns: 1fr;
  }
  .chip:nth-child(1) {
    top: -16px;
    left: -8px;
  }
  .chip:nth-child(2) {
    right: -8px;
  }
  .chip:nth-child(3) {
    bottom: -20px;
  }
  .equipa-topo h1 {
    max-width: none;
  }
  .valores-lista,
  .grupo-lista {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .equipa-topo {
    padding: 36px 0 44px;
  }
  .equipa-topo h1 {
    font-size: 34px;
  }
  .equipa-topo .sobre {
    font-size: 12px;
    letter-spacing: .1em;
  }
  .equipa-topo-cta .btn {
    flex: 1 1 auto;
  }
  .equipa-chips {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    margin: -24px 8px 0;
  }
  .chip {
    position: static;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 10px 8px 11px;
    text-align: center;
  }
  .chip-ico {
    display: none;
  }
  .chip b {
    font-size: 20px;
  }
  .faixa-concelhos {
    padding: 12px 0;
  }
  .missao::before {
    height: 34px;
    font-size: 84px;
  }
  .missao blockquote p {
    font-size: 21px;
  }
  .equipa-grelha {
    margin-top: 30px;
  }
  .perfil {
    flex-direction: column;
  }
  .perfil .retrato {
    flex: none;
    aspect-ratio: 1/1;
  }
  .perfil .retrato img {
    object-position: 50% 18%;
  }
  .perfil-info {
    padding: 20px;
    border-left: 0;
    border-top: 3px solid var(--azul);
  }
  .perfil h3 {
    font-size: 22px;
  }
  .valores-lista {
    margin-top: 30px;
  }
  .valores-lista h3 {
    font-size: 22px;
  }
  .grupo-lista {
    gap: 10px;
    margin-top: 24px;
  }
  .grupo-lista li {
    padding: 18px;
  }
  .grupo-lista b {
    font-size: 32px;
  }
  .redes-cartoes {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 30px;
  }
  .rede-cartao {
    padding: 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rede-cartao:hover,
  .rede-cartao:hover .rede-ico,
  .perfil:hover,
  .perfil:hover .retrato img,
  .perfil a.retrato:hover img,
  .valores-lista li:hover,
  .valores-lista li:hover .valor-ico,
  .grupo-lista li:hover,
  .faixa-cta-equipa .btn-remax:hover,
  .faixa-cta-equipa .btn-remax:hover .btn-seta {
    transform: none;
  }
}

/* ======================================================================
   Páginas legais
   ====================================================================== */

.legal-sec {
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px);
  background: var(--branco);
}
.legal-doc {
  max-width: 800px;
}
.legal-voltar {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--azul);
  text-decoration: none;
  margin-bottom: 28px;
}
.legal-voltar:hover {
  text-decoration: underline;
}
.legal-art .sobre {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azul);
  margin: 0 0 10px;
}
.legal-art h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  margin: 0 0 8px;
}
.legal-art .atualizado {
  font-size: 13px;
  color: var(--cinza);
  margin: 0 0 26px;
}
.legal-art h2 {
  font-size: clamp(19px, 2.2vw, 23px);
  margin: 38px 0 12px;
}
.legal-art p, .legal-art li {
  font-size: 16px;
  line-height: 1.72;
  color: #343D4B;
}
.legal-art ul {
  padding-left: 20px;
  margin: 0 0 14px;
}
.legal-art li {
  margin-bottom: 8px;
}
.legal-art .lista-simples {
  list-style: none;
  padding: 0;
}
.legal-art a {
  color: var(--azul);
}
.legal-art code {
  background: var(--fundo);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 14px;
}
.legal-resumo {
  background: var(--fundo);
  border-left: 3px solid var(--azul);
  padding: 16px 20px;
  border-radius: 0 var(--raio-btn) var(--raio-btn) 0;
  margin: 0 0 8px;
}
.tabela-rolar {
  overflow-x: auto;
  margin: 14px 0 18px;
}
.legal-art table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 460px;
}
.legal-art th, .legal-art td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--linha);
  line-height: 1.5;
}
.legal-art th {
  background: var(--fundo);
  font-weight: 600;
  color: var(--preto);
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--linha);
  font-size: 14px;
}
.legal-nav a {
  color: var(--cinza);
  text-decoration: none;
}
.legal-nav a:hover, .legal-nav a.atual {
  color: var(--azul);
}

@media (max-width: 560px) {
  .legal-sec {
    padding: 32px 0 52px;
  }
  .legal-art h1 {
    font-size: 28px;
  }
  .legal-art h2 {
    font-size: 19px;
    margin-top: 28px;
  }
  .legal-art p, .legal-art li {
    font-size: 15.5px;
  }
  .legal-art th, .legal-art td {
    padding: 10px 12px;
  }
  .legal-nav a {
    display: inline-block;
    padding: 6px 0;
  }
  .tabela-rolar {
    overflow: visible;
  }
  .tabela-rolar table {
    min-width: 0;
  }
  .tabela-rolar thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .tabela-rolar tr {
    display: block;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid var(--linha);
    border-radius: var(--raio-medio);
    background: #F7F9FC;
  }
  .tabela-rolar td {
    display: block;
    padding: 3px 0;
    border: 0;
  }
  .tabela-rolar td[data-rotulo]::before {
    content: attr(data-rotulo);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--azul);
  }
}

/* ======================================================================
   Página de erro (404)
   ====================================================================== */

/* «main.erro» e não só «.erro»: a mensagem de erro do formulário também tem a classe «erro»
   e herdava daqui a altura do ecrã inteiro */
main.erro {
  --foco: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px var(--gut);
  text-align: center;
  color: #fff;
  background: var(--marinho-esc);
}
.erro-logo img {
  width: auto;
  height: 64px;
}
.erro-codigo {
  margin: 24px 0 0;
  font: 500 clamp(96px, 18vw, 180px)/1 var(--display);
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .14);
}
main.erro h1 {
  margin-top: -.25em;
  font-size: clamp(30px, 4.4vw, 46px);
}
main.erro .lead {
  max-width: 46ch;
  color: #C0CBDB;
}
.erro-botoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
main.erro .btn-linha {
  color: #fff;
}
.erro-contacto {
  margin: 28px 0 0;
  font-size: 14px;
  color: #A9B6C8;
}
.erro-contacto a {
  color: #fff;
}

@media (max-width: 560px) {
  .erro-botoes .btn {
    width: 100%;
  }
}

/* ======================================================================
   Telemóvel: lista do blog, «Informações importantes» e «Como trabalhamos»
   mais juntas (escolhido pelo dono a 13/10/2026); fica no fim para ganhar às regras de cima
   ====================================================================== */
@media (max-width: 560px) {
  /* Blog: os artigos numa só lista, com o resumo em duas linhas e «Ler artigo» ao lado da data */
  .artigos {
    gap: 0;
    margin-top: 24px;
    background: #fff;
    border: 1px solid var(--linha);
    border-radius: var(--raio-cartao);
    box-shadow: 0 18px 40px -30px rgba(18, 48, 94, .45);
    overflow: hidden;
  }
  .artigo-cartao {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 12px;
    padding: 16px 18px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .artigo-cartao + .artigo-cartao {
    border-top: 1px solid var(--linha);
  }
  .artigo-cartao:hover {
    transform: none;
    box-shadow: none;
    background: #F7FAFE;
  }
  .artigo-cartao time {
    grid-row: 1;
    grid-column: 1;
  }
  .artigo-cartao span {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    font-size: 12px;
  }
  .artigo-cartao h3,
  .artigo-cartao p {
    grid-column: 1 / -1;
  }
  .artigo-cartao h3 {
    margin: 6px 0 4px;
    font-size: 17px;
  }
  .artigo-cartao p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* «Informações importantes»: título numa linha, texto à esquerda, menos margens */
  .jovens.sec {
    padding: 36px 0;
  }
  .jovens-caixa {
    padding: 22px 20px;
    text-align: left;
  }
  .jovens-titulo {
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: 0;
    text-transform: none;
  }
  .jovens-pergunta {
    font-size: 17px;
    margin: 6px 0 12px;
  }
  .jovens-caixa>p {
    margin-left: 0;
    margin-right: 0;
    font-size: 15px;
  }
  .jovens-caixa ol {
    display: block;
    margin: 12px 0 14px;
    padding-left: 20px;
  }
  .jovens-caixa li {
    margin-bottom: 8px;
    font-size: 15px;
  }
  .jovens-caixa .nota-artigo {
    margin: 14px 0 0;
  }

  /* «Como trabalhamos»: o ícone ao lado do título, cartões mais baixos */
  .valores-lista {
    gap: 10px;
    margin-top: 24px;
  }
  .valores-lista li {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 16px 18px;
  }
  .valor-ico {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    margin: 2px 0 0;
  }
  .valor-ico svg {
    width: 21px;
    height: 21px;
  }
  .valores-lista h3,
  .valores-lista p {
    grid-column: 2;
  }
  .valores-lista h3 {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.2;
  }
  .valores-lista p {
    font-size: 14.5px;
    line-height: 1.55;
  }
}

/* ======================================================================
   Telemóvel: mais seis zonas compactas (escolhidas pelo dono a 13/10/2026)
   ====================================================================== */
@media (max-width: 560px) {
  /* 1 · Equipa: fichas com a foto pequena ao lado do nome */
  .perfil {
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-areas: "foto nome" "texto texto" "contactos contactos";
    column-gap: 16px;
    align-items: center;
    padding: 16px 18px 18px;
    border-top: 3px solid var(--azul);
  }
  .perfil .retrato {
    grid-area: foto;
    width: 92px;
    aspect-ratio: 3 / 4;
    border-radius: var(--raio-medio);
  }
  .perfil .retrato img {
    object-position: 50% 20%;
  }
  .perfil .ver-perfil {
    display: none;
  }
  .perfil-info {
    display: contents;
  }
  .perfil h3 {
    grid-area: nome;
    margin: 0;
  }
  .perfil-info>p {
    grid-area: texto;
    margin: 14px 0 12px;
  }
  .perfil-contactos {
    grid-area: contactos;
    padding-top: 14px;
  }

  /* 2 · Início: a mesma foto da equipa não se repete */
  .apresenta .ap-f2,
  .mensagem-foto {
    display: none;
  }

  /* 3 · Início: contactos num só cartão e os dois botões do mapa lado a lado */
  .dados {
    gap: 0;
    background: #fff;
    border: 1px solid var(--linha);
    border-radius: var(--raio-cartao);
    box-shadow: 0 14px 30px -26px rgba(18, 48, 94, .45);
    overflow: hidden;
  }
  .dados li {
    padding: 12px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .dados li+li {
    border-top: 1px solid var(--linha);
  }
  .dados li:hover {
    transform: none;
    box-shadow: none;
  }
  .dado-ico {
    width: 34px;
    height: 34px;
  }
  .dado-ico svg {
    width: 17px;
    height: 17px;
  }
  .contacto-grid .mapa-link {
    flex-wrap: nowrap;
  }
  .contacto-grid .mapa-link a {
    flex: 1 1 0;
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* 4 · Equipa: «Com o apoio do Grupo RE/MAX Rumo» com dois cartões lado a lado */
  .grupo-lista {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .grupo-lista li {
    padding: 16px;
  }
  .grupo-lista li:last-child {
    grid-column: 1 / -1;
  }
  .grupo-lista b {
    font-size: 28px;
  }
  .grupo-lista span {
    margin-top: 6px;
    font-size: 13.5px;
  }

  /* 5 · Blog: o resumo de cada lei em duas linhas */
  .lei-titulo small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 6 · Início: o texto de cada consultor em quatro linhas (a ficha completa está na página da Equipa) */
  .pessoa p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
