/* ============================================================
   Chivale & Thovela Advogados — Site público
   Estética: sóbria, editorial, autoritária · navy + dourado
   Motivo visual: blocos diagonais do logotipo
   ============================================================ */
:root {
  /* Primárias — amostradas do logotipo */
  --navy:        #0A065B;
  --navy-deep:   #060528;
  --navy-soft:   #262462;

  /* Acento premium */
  --gold:        #C9A24B;
  --gold-soft:   #E4CF97;

  /* Neutros */
  --white:       #FFFFFF;
  --off-white:   #F7F7FA;
  --blue-gray:   #F5F5F5;  /* fundo da secção de áreas de prática */
  --gray-100:    #ECECF1;
  --gray-200:    #D6D6E0;
  --gray-400:    #9A9AB0;
  --text:        #1C1C2E;
  --text-muted:  #5A5A6E;

  /* Escala de espaçamento */
  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  /* Altura da faixa de contacto sob a barra principal. O header é fixo, por
     isso cada hero reserva-lhe espaço no topo: essas folgas somam esta
     variável em vez de a terem embutida. Mudar a faixa (ou escondê-la, com
     0px) reajusta a página toda sem tocar em mais nenhuma regra. */
  --topbar-h: 42px;

  --radius: 10px;
  --shadow: 0 4px 24px rgba(10, 6, 91, 0.07);
  --shadow-hover: 0 12px 36px rgba(10, 6, 91, 0.14);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* O motor de tradução trabalha em segundo plano. A interface visual é o
   selector do cabeçalho, por isso o widget e a barra automática ficam ocultos. */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
body > .skiptranslate {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body { top: 0 !important; }
.language-loading { cursor: progress; }
.language-loading .lang-trigger { opacity: .6; pointer-events: none; }

html { scroll-behavior: smooth; overflow-x: hidden; }
/* Rede de segurança: nada (imagens, tabelas, conteúdo colado no editor) pode
   provocar rolagem horizontal. O header é position:fixed, por isso isto não o
   afeta. */
body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

.container { width: min(1200px, 92%); margin: 0 auto; }
.container-medium { width: min(920px, 92%); margin: 0 auto; }
.container-narrow { width: min(720px, 92%); margin: 0 auto; }

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 18px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Tipografia base ---------- */
h1, h2, h3, h4 { font-weight: 600; color: var(--navy); line-height: 1.25; letter-spacing: -0.015em; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gray-100); }
.btn-outline:hover { border-color: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Header: topbar de utilitários + pílula flutuante ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
}

/* Ações à direita: idioma, contactar, painel */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none; /* summary */
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.pill::-webkit-details-marker { display: none; }
.pill-ghost { border: 1.5px solid var(--gray-200); color: var(--text); background: var(--white); }
.pill-ghost:hover { border-color: var(--gold); }
.pill-solid {
  background: linear-gradient(135deg, #d4ae57 0%, var(--gold) 55%, #b58f3f 100%);
  color: var(--white);
  font-weight: 600;
  border: 1.5px solid #b58f3f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 8px rgba(181, 143, 63, 0.28);
}
.pill-solid:hover {
  background: linear-gradient(135deg, #cfa74e 0%, #bd9642 55%, #a9843a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 5px 16px rgba(181, 143, 63, 0.4);
}
.pill-solid .pill-icon { color: var(--white); }
.pill-outline { border: 1.5px solid var(--gray-200); color: var(--text-muted); background: var(--white); }
.pill-outline:hover { border-color: var(--navy); color: var(--navy); }

/* Ícones SVG dos botões (traço consistente, sem emojis) */
.pill-icon { width: 15px; height: 15px; flex-shrink: 0; }
.pill-ghost .pill-icon, .pill-outline .pill-icon { color: var(--gold); }
.caret {
  width: 10px;
  height: 10px;
  opacity: 0.55;
  transition: transform var(--transition);
}
.dropdown[open] .caret { transform: rotate(180deg); }

/* Dropdowns (details/summary, sem JS obrigatório) */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(6, 5, 40, 0.16);
  padding: 6px;
  z-index: 50;
}
.dropdown-menu.dropdown-right { left: auto; right: 0; }
.dropdown-item {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover { background: var(--off-white); color: var(--navy); }
.dropdown-item.active { color: var(--gold); font-weight: 600; }

/* Bandeiras dos idiomas (SVG, com contorno subtil) */
.flag {
  display: inline-flex;
  width: 19px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(28, 28, 46, 0.12);
}
.flag svg { width: 100%; height: 100%; display: block; }
.lang-option { display: flex; align-items: center; gap: 10px; }
/* Com 8 itens de menu, o nome do idioma por extenso não cabe na barra */
.lang-name { display: none; }

/* Botão de contacto no menu mobile */
.btn-header-solid {
  display: none;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
}

/* Barra principal: branca, compacta ao fazer scroll */
.header-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s ease;
}
/* O header usa um contentor mais largo para acomodar menu + ações */
.site-header .container { width: min(1360px, 94%); }
.site-header.scrolled .header-bar {
  border-bottom-color: transparent;
  box-shadow: 0 6px 28px rgba(6, 5, 40, 0.14);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 16px 0;
  transition: padding 0.3s ease;
}
.site-header.scrolled .header-inner { padding: 10px 0; }

/* Faixa de contacto, à cabeça do header. Partilha o navy do rodapé: são as
   duas barras que emolduram a página. */
.topbar {
  height: var(--topbar-h);
  background: var(--navy);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--s4), 6vw, 96px);
  height: 100%;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.topbar a:hover { color: var(--gold-soft); }
/* Abaixo dos 560px o telefone e o email lado a lado precisam de 441px e não
   cabem (a 390 há 367). Encolher a letra não resolvia — a 320 continuaria a
   transbordar —, por isso empilham-se. A altura sobe, e como as folgas dos
   heros somam --topbar-h, a página inteira reajusta-se sem mais nenhuma regra. */
@media (max-width: 560px) {
  :root { --topbar-h: 56px; }
  .topbar-inner { flex-direction: column; justify-content: center; gap: 3px; }
  .topbar a { font-size: 12px; }
  .topbar svg { width: 13px; height: 13px; }
}
.topbar svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-logo {
  width: 172px;
  height: auto;
  transition: width 0.3s ease;
}
.site-header.scrolled .brand-logo { width: 152px; }

/* CTA em pílula com círculo-seta (hero e página de conduta) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 55%, #b58f3f 100%);
  color: var(--navy-deep);
  border-radius: 999px;
  padding: 5px 5px 5px 20px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 10px rgba(201, 162, 75, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 28px rgba(201, 162, 75, 0.4);
}
.btn-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.btn-pill:hover .btn-circle { transform: rotate(45deg); }
.btn-pill-lg { padding: 6px 6px 6px 24px; font-size: 14px; letter-spacing: 0.03em; }
.btn-pill-lg .btn-circle { width: 34px; height: 34px; font-size: 15px; }

.site-nav { display: flex; align-items: center; justify-content: center; gap: 16px; flex: 1; min-width: 0; }
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}
/* Hero a ecrã inteiro em laptops e desktops */
@media (min-width: 1024px) {
  .hero { min-height: 100vh; }
  /* O header fixo (≈91-94px) cobre o topo do hero: baixa o enquadramento
     destes slides para o topo das torres/cúpula ficar visível */
  .hero-slide:nth-child(2),
  .hero-slide:nth-child(4) { background-position: center 94px; }
}
/* Slider do hero: crossfade lento com Ken Burns subtil */
.hero-slider { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  animation: kenburns 9s ease-out forwards;
}
/* Correções medidas por luminância: uniformiza a claridade dos 4 slides
   mantendo as cores reais das fotos */
.hero-slide:nth-child(1) { filter: brightness(0.79); }  /* ponte */
.hero-slide:nth-child(2) { filter: brightness(1.27); background-position: center top; transform-origin: center top; }  /* torres: preserva o topo */
.hero-slide:nth-child(3) { filter: brightness(1.17); }  /* baía */
.hero-slide:nth-child(4) { filter: brightness(1.56); background-position: center 12%; transform-origin: center top; }  /* estação: preserva a cúpula */
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* Indicadores: traços finos dourados */
.hero-dots-wrap {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
.hero-dots { display: flex; gap: 10px; pointer-events: auto; }
.hero-dot {
  width: 26px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), width 0.35s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.6); }
.hero-dot.is-active { background: var(--gold); width: 44px; }
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Véu leve no navy institucional (--navy) sobre toda a imagem,
     com reforço apenas na zona do texto para garantir legibilidade */
  background:
    linear-gradient(100deg, rgba(10, 6, 91, 0.55) 0%, rgba(10, 6, 91, 0.26) 50%, rgba(10, 6, 91, 0.04) 100%),
    rgba(10, 6, 91, 0.24);
}
/* Alinhado com o contentor do header (logotipo/menu) */
.hero-inner {
  position: relative;
  z-index: 2;
  padding: calc(120px + var(--topbar-h)) 0 70px;
  width: min(1360px, 94%);
  max-width: none;
}
/* Elementos exclusivos do painel lateral mobile (escondidos no desktop) */
.nav-extras, .nav-num, .drawer-head, .drawer-foot, .nav-overlay, .header-lang-dd { display: none; }
.hero .eyebrow { color: var(--gold-soft); }
/* Traço dourado de abertura: ancora o bloco de texto */
.hero-inner::before {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.015em;
  line-height: 1.22;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Page hero (páginas interiores) ---------- */
.page-hero {
  background:
    linear-gradient(100deg, var(--navy-deep) 0%, var(--navy) 70%, var(--navy-soft) 100%);
  padding: calc(165px + var(--topbar-h)) 0 var(--s7); /* espaço para o header fixo */
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  background-image: linear-gradient(45deg, transparent 46%, rgba(201, 162, 75, 0.22) 46%, rgba(201, 162, 75, 0.22) 54%, transparent 54%);
  background-size: 36px 36px;
  pointer-events: none;
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.page-lead {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin-top: var(--s3);
}
.section .page-lead, .article-page .page-lead { color: var(--text-muted); font-weight: 400; margin-bottom: var(--s4); }

/* ---------- Secções ---------- */
.section { padding: var(--s8) 0; }
/* Menos espaço entre o hero e a primeira secção de conteúdo (uniforme em todas as páginas) */
.photo-hero + .section { padding-top: var(--s6); }
.section-alt { background: var(--off-white); }
.section-header { max-width: 640px; margin-bottom: var(--s6); }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; }
.section-more {
  margin-top: var(--s5);
  padding-top: var(--s5);
  padding-bottom: var(--s5);
  text-align: center;
  border-top: 1px solid var(--gray-100);
}

/* ---------- Quem Somos (home) ---------- */
/* Menos respiro em baixo: a secção seguinte tem fundo próprio, por isso a
   mudança de cor já marca a separação e não é preciso um vazio branco largo. */
.about-home { padding: var(--s8) 0 var(--s7); }
.about-grid {
  display: grid;
  /* A foto é quadrada, logo a largura da coluna define a altura. Uma coluna
     mais estreita do que o texto mantém a imagem inteira e alinha as duas
     metades em altura (texto ≈360px). */
  grid-template-columns: minmax(0, 1fr) clamp(260px, 32vw, 420px);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.about-copy { max-width: 540px; }
.about-copy .eyebrow { margin-bottom: 18px; }
.about-copy .section-title { color: var(--navy); margin-bottom: 22px; }
/* O parágrafo do "Quem Somos" herda a escala comum dos textos de apoio
   (ver a regra .section-lead, .about-lead), só ajusta as margens. */
.about-lead { margin-top: 0; margin-bottom: 0; }

/* Áreas de prática: losango dourado do logotipo como marcador */
.about-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 26px 0 34px;
  padding-top: 26px;
  border-top: 1px solid var(--gray-100);
}
.about-pillars li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: 0.005em;
}
.about-pillars li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Imagem com moldura dourada deslocada — toque editorial premium */
.about-media {
  position: relative;
  isolation: isolate;
}
.about-media::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  z-index: -1;
}
.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 20px 50px rgba(10, 6, 91, 0.2);
}

/* Tablet (701–900px): mantém as duas colunas — há largura de sobra e empilhar
   deixava metade da linha vazia. Só os pilares passam a uma coluna, porque a
   coluna de texto encolheu. */
@media (min-width: 701px) and (max-width: 900px) {
  .about-home { padding: var(--s7) 0 var(--s6); }
  .about-copy { max-width: none; }
  .about-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0 30px;
    padding-top: 22px;
  }
}

/* Abaixo de 700px já não cabem duas colunas: empilha, imagem centrada */
@media (max-width: 700px) {
  .about-home { padding: var(--s7) 0 var(--s6); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-copy { max-width: 620px; }
  .about-media {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* Telemóvel: mantém a moldura dourada, com deslocamento reduzido */
@media (max-width: 560px) {
  /* Aproxima a secção do hero: 64px de topo abrem um vazio grande num
     ecrã estreito. Mantém o respiro maior em baixo, antes da secção seguinte. */
  .about-home { padding: var(--s6) 0 var(--s5); }
  /* A moldura avança 12px para fora da foto: encolhe-se a foto o mesmo tanto
     para que a moldura acabe na margem do contentor e não gere scroll lateral. */
  .about-media {
    width: calc(100% - 12px);
    margin-inline: 0 12px;
  }
  .about-media::before {
    inset: 12px -12px -12px 12px;
    border-radius: 12px;
  }
  .about-media img {
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(10, 6, 91, 0.18);
  }
  /* Linhas curtas não precisam de tanta entrelinha: 1.9 é arejado num ecrã
     largo, mas alonga o bloco no telemóvel. Ritmo vertical mais compacto. */
  .about-copy .eyebrow { margin-bottom: 14px; }
  .about-copy .section-title { margin-bottom: 16px; }
  .about-pillars {
    grid-template-columns: 1fr;
    gap: 11px;
    margin: 22px 0 28px;
    padding-top: 22px;
  }
  .about-grid { gap: 40px; }
}

/* ---------- Flash público ---------- */
.flash {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: var(--s4) 0;
  font-size: 15px;
  border-left: 4px solid;
}
.flash-success { background: #E8F4EC; color: #2E7D4F; border-color: #2E7D4F; }
.flash-error { background: #F9E9E7; color: #B3382E; border-color: #B3382E; }
.site-toast-region {
  position: fixed;
  top: calc(var(--topbar-h) + 88px);
  right: clamp(16px, 3vw, 42px);
  z-index: 180;
  display: grid;
  width: min(430px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}
.site-toast {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 13px 13px 13px 15px;
  overflow: hidden;
  border: 1px solid rgba(10, 6, 91, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .97);
  color: var(--text);
  box-shadow: 0 16px 44px rgba(6, 5, 40, .18);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  animation: toast-in .28s ease-out both;
}
.site-toast::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ''; background: currentColor; }
.site-toast--success { color: #26734a; }
.site-toast--error { color: #a9362d; }
.site-toast-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: currentColor; }
.site-toast-icon svg { width: 18px; height: 18px; color: #fff; }
.site-toast-message { color: var(--text); font-size: 12.5px; font-weight: 500; line-height: 1.55; }
.site-toast-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--gray-400); cursor: pointer; }
.site-toast-close:hover { background: var(--gray-100); color: var(--navy); }
.site-toast-close svg { width: 16px; height: 16px; }
.site-toast.is-leaving { animation: toast-out .2s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(14px); } }
@media (max-width: 720px) {
  .site-toast-region { top: 92px; right: 12px; left: 12px; width: auto; }
  .site-toast { min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-toast, .site-toast.is-leaving { animation: none; }
}

/* Secção das áreas: cinza azulado (tom do navy do logo, muito diluído).
   Faz os cartões brancos destacarem-se sem introduzir ruído visual. */
.section-practice {
  padding-top: var(--s7);
  padding-bottom: var(--s7);
  background: var(--blue-gray);
}

/* ---------- Áreas de prática ---------- */
.practice-grid {
  display: grid;
  /* min(320px, 100%): abaixo dos ~348px de ecrã o contentor fica menor que
     320px e uma coluna rígida sangrava para fora, dando scroll horizontal. */
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--s4);
}
/* Cartão de área: coluna com o link sempre encostado ao fundo, para que
   cartões de títulos longos e curtos alinhem entre si. */
.practice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--s5) var(--s5) var(--s4);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
/* Filete dourado que corre no topo ao passar o rato */
.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
  z-index: 2; /* acima da imagem, que sangra até ao topo do cartão */
}
.practice-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.practice-card:hover::before { transform: scaleX(1); }

/* Subgrid: número, título, resumo e link partilham as linhas da grelha, por
   isso alinham-se entre cartões mesmo com títulos de 1 a 3 linhas. */
@supports (grid-template-rows: subgrid) {
  .practice-grid { grid-auto-rows: auto; }
  .practice-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5; /* imagem, número, título, resumo, link */
    row-gap: 0;
  }
  .practice-link { align-self: end; margin-top: var(--s4); }
}

/* Imagem da área: sangra até às margens do cartão (anula o padding) */
.practice-media {
  display: block;
  margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s4);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-soft);
}
.practice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.practice-card:hover .practice-media img { transform: scale(1.06); }
.practice-number {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: var(--s3);
}
.practice-card h2,
.practice-card h3 {
  font-size: 18px;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0; /* o espaço até ao link vem do margin-top do .practice-link */
}
.practice-card p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: var(--s4);
}
.practice-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--gray-100);
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  transition: color var(--transition);
}
.practice-arrow { transition: transform var(--transition); }
/* Ícones SVG usados como setas em texto (substituem os antigos caracteres
   → / ↗, que em Android eram desenhados pela fonte de emoji a cores). */
.practice-arrow svg,
.util-arrow svg,
.btn-circle svg,
.btn svg,
.auth-primary-link svg,
.practice-related-links svg { vertical-align: -2px; }
.practice-card:hover .practice-link { color: var(--gold); }
.practice-card:hover .practice-arrow { transform: translateX(4px); }

/* Cartão de convite que fecha a grelha: fundo navy e motivo diagonal do logo.
   Ocupa as mesmas 5 faixas do subgrid, mas organiza-se por dentro. */
.practice-cta {
  grid-row: span 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s6) var(--s5);
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: transparent;
}
/* Marca de água: balança da justiça, em traço dourado muito ténue.
   SVG embutido — sem pedidos extra e nítido em qualquer resolução. */
.practice-cta::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 132px;
  height: 132px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A24B' stroke-width='0.45' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.6v18.2M9 20.8h6M12 5.4 4.6 7.2M12 5.4l7.4 1.8'/%3E%3Cpath d='M4.6 7.2 1.6 14.1a3 3 0 0 0 6 0L4.6 7.2Z'/%3E%3Cpath d='M19.4 7.2 16.4 14.1a3 3 0 0 0 6 0l-3-6.9Z'/%3E%3Ccircle cx='12' cy='4' r='1.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.22;
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}
.practice-cta:hover::after { transform: translateY(-5px); opacity: 0.34; }
.practice-cta .practice-number { color: var(--gold-soft); }
.practice-cta h2,
.practice-cta h3 {
  font-size: 21px;
  color: var(--white);
  margin-bottom: 12px;
}
.practice-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  margin-bottom: 0;
}
.practice-cta .practice-link {
  margin-top: var(--s4);
  border-top-color: rgba(255, 255, 255, 0.16);
  color: var(--gold-soft);
  position: relative;
  z-index: 1;
}
.practice-cta:hover {
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(10, 6, 91, 0.32);
}
.practice-cta:hover .practice-link { color: var(--gold); }

.practice-single-summary {
  margin: 0 0 var(--s5);
  padding: 0 0 var(--s4) 20px;
  border-bottom: 1px solid var(--gray-100);
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
}
.practice-related { margin-top: var(--s6); padding: var(--s6) 0; background: var(--gray-50, #f7f8fb); }
.practice-related .section-title { margin-bottom: var(--s4); }
.practice-related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--gray-200); }
.practice-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 17px 4px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.practice-related-links a:nth-child(odd) { padding-right: var(--s4); }
.practice-related-links a:nth-child(even) { padding-left: var(--s4); border-left: 1px solid var(--gray-200); }
.practice-related-links a span { color: var(--gold); transition: transform var(--transition); }
.practice-related-links a:hover span { transform: translateX(4px); }
@media (max-width: 640px) {
  .practice-related-links { grid-template-columns: 1fr; }
  .practice-related-links a:nth-child(n) { padding-inline: 2px; border-left: 0; }
}

/* Telemóvel: linhas curtas não precisam da entrelinha do desktop. Aperta-se o
   ritmo vertical e a caixa dos cartões, mantendo os alvos de toque ≥44px. */
@media (max-width: 560px) {
  .section-practice .section-header { margin-bottom: var(--s5); }
  .practice-grid { gap: var(--s3); }
  .practice-card { padding: var(--s4) var(--s4) 10px; }
  .practice-media { margin: calc(var(--s4) * -1) calc(var(--s4) * -1) var(--s3); }
  .practice-number { font-size: 11px; margin-bottom: 10px; }
  .practice-card h2,
  .practice-card h3 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 8px;
    text-wrap: balance; /* reparte as linhas do título de forma mais uniforme */
  }
  .practice-card p {
    font-size: 14px;
    line-height: 1.65;
  }
  .practice-link {
    margin-top: var(--s3);
    padding-top: 12px;
    padding-bottom: 6px; /* alvo de toque confortável sem alongar o cartão */
  }
  .practice-cta { padding: var(--s5) var(--s4); }
  .practice-cta h2,
  .practice-cta h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
  .practice-cta p { font-size: 14px; line-height: 1.65; }
  .practice-cta::after { width: 108px; height: 108px; right: 12px; bottom: 12px; }
}

/* Frase de apoio abaixo do título de secção */
/* Texto de apoio das secções e o parágrafo do "Quem Somos" partilham a mesma
   escala fluida: uma só regra garante que leem igual em todo o site e que a
   transição entre telemóvel e desktop é contínua, sem saltos nos breakpoints. */
.section-lead,
.about-lead {
  font-size: clamp(14.5px, 0.55vw + 12.9px, 15.5px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.004em;
  color: var(--text-muted);
  text-wrap: pretty;
  hyphens: none;
  -webkit-hyphens: none;
  max-width: 56ch;
}
.section-lead { margin-top: 14px; }

/* Telemóvel: linhas curtas dispensam a entrelinha do desktop, e a medida de
   56ch deixa de fazer sentido porque a coluna já é mais estreita do que isso. */
@media (max-width: 560px) {
  .section-lead,
  .about-lead {
    line-height: 1.7;
    max-width: none;
  }
  .section-lead { margin-top: 10px; }
}

.eyebrow-link { color: inherit; text-decoration: none; }
.eyebrow-link:hover { color: var(--gold); }

/* ---------- Blog na home: três artigos mais recentes ---------- */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  max-width: none;
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 4px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
.header-link:hover { color: var(--gold); }
.header-link:hover .practice-arrow { transform: translateX(4px); }

/* Menos respiro dos dois lados: acima e abaixo há secções com fundo próprio,
   e a mudança de cor já marca a separação. */
.blog-home { padding-top: var(--s7); padding-bottom: var(--s6); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s4);
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.blog-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-soft);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
/* Categoria sobre a imagem: liberta espaço no corpo e ancora a foto */
.badge-on-media {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: var(--gold-soft);
  background: rgba(10, 6, 91, 0.82);
  border-color: rgba(201, 162, 75, 0.5);
  backdrop-filter: blur(2px);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s4) var(--s4) var(--s3);
}
.blog-card-title {
  font-size: 17px;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 10px;
  text-wrap: balance;
  /* Duas linhas no máximo: mantém os três cartões à mesma altura */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--s4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--gray-100);
}
.blog-card-foot time { font-size: 12.5px; color: var(--gray-400); }
.blog-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
}
.blog-card:hover .blog-card-more { color: var(--gold); }
.blog-card:hover .practice-arrow { transform: translateX(4px); }

@media (max-width: 560px) {
  .section-header-row { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .blog-grid { gap: var(--s3); }
  .blog-card-title { font-size: 16px; line-height: 1.35; }
  .blog-card-excerpt { font-size: 14px; line-height: 1.6; }
}

/* ---------- Hero fotográfico (Quem Somos, Áreas de Prática) ---------- */
/* Fotografia sob véu navy. O texto vive num terço escuro à esquerda; a
   imagem fica legível à direita. A foto entra pelo modificador da página. */
.photo-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 58vh, 620px);
  padding: calc(160px + var(--topbar-h)) 0 var(--s7); /* espaço para o header fixo */
  overflow: hidden;
  background: var(--navy-deep);
}
/* Heros um pouco mais altos em todas as páginas, exceto o Código de Conduta
   (que já tem a sua própria altura) — a Home não usa .photo-hero. */
.photo-hero:not(.photo-hero--conduct):not(.photo-hero--contact) { min-height: clamp(480px, 66vh, 700px); }
/* Cada página declara aqui a sua foto e o enquadramento — em ecrã largo e em
   ecrã estreito. É o único ponto que varia entre heroes: tudo o resto (véu,
   motivo, alturas, tipografia) é partilhado. */
.photo-hero--about {
  --hero-img: url('../img/quem-somos.png');
  --hero-pos: center center;
  /* A panorâmica de Maputo é larga: num ecrã estreito o corte é lateral.
     Puxa-se o enquadramento para a zona densa da cidade, para o skyline
     ocupar o quadro em vez de sobrar água. */
  --hero-pos-sm: center center;
}
.photo-hero--practice {
  --hero-img: url('../img/banner04.webp');
  --hero-pos: center center;
  --hero-pos-sm: center center;
}
.photo-hero--team {
  --hero-img: url('../img/banner02.webp');
  --hero-pos: center center;
  --hero-pos-sm: center center;
}
.photo-hero--blog {
  --hero-img: url('../img/banner02.webp');
  --hero-pos: center center;
  --hero-pos-sm: center center;
}
.photo-hero--events {
  --hero-img: url('../img/banner03.webp');
  --hero-pos: center center;
  --hero-pos-sm: center center;
}
.photo-hero--social {
  --hero-img: url('../img/banner01.webp');
  --hero-pos: center center;
  --hero-pos-sm: center center;
}
.photo-hero--contact {
  --hero-img: url('../img/escritorio.webp');
  --hero-pos: center center;
  --hero-pos-sm: center center;
  /* Mesma altura do hero do Código de Conduta */
  min-height: clamp(620px, 86vh, 880px);
}
.photo-hero--conduct {
  --hero-img: url('../img/codigo-de-conduta-hero.png');
  --hero-pos: center center;
  /* No telemóvel o recorte é vertical: puxa-se o enquadramento para os dois
     advogados ficarem centrados, em vez de um sozinho encostado à direita. */
  --hero-pos-sm: center center;
  min-height: clamp(620px, 86vh, 880px);
}
.photo-hero-media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-position: var(--hero-pos, center center);
  background-size: cover;
  background-repeat: no-repeat;
  /* Zoom lento e contínuo: dá vida sem distrair */
  animation: photo-hero-zoom 22s ease-out forwards;
}
@keyframes photo-hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.photo-hero-overlay {
  position: absolute;
  inset: 0;
  /* Véu na cor exata do logotipo: forte à esquerda (onde está o texto),
     leve à direita (onde se vê a fotografia) */
  background:
    linear-gradient(100deg, rgba(10, 6, 91, 0.94) 0%, rgba(10, 6, 91, 0.72) 38%, rgba(10, 6, 91, 0.26) 72%, rgba(10, 6, 91, 0.12) 100%),
    linear-gradient(180deg, rgba(6, 5, 40, 0.5) 0%, transparent 30%, rgba(6, 5, 40, 0.45) 100%);
}
/* Motivo diagonal do logotipo, no canto direito */
.photo-hero-motif {
  position: absolute;
  right: 5%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translateY(-50%);
  background-image: linear-gradient(45deg, transparent 46%, rgba(201, 162, 75, 0.24) 46%, rgba(201, 162, 75, 0.24) 54%, transparent 54%);
  background-size: 36px 36px;
  pointer-events: none;
}
.photo-hero-inner { position: relative; z-index: 1; max-width: 760px; }
/* Variante centrada do hero (usada no Código de Conduta): título e acções ao
   centro, como um cartaz. */
.photo-hero-inner--center {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.photo-hero-inner--center .page-title::before { margin-inline: auto; }
.photo-hero-inner--center .eyebrow::before { display: none; }
.photo-hero-inner--center .page-lead { margin-inline: auto; }
.photo-hero-inner--center .hero-actions { justify-content: center; }

/* Botões de download do hero: pílula contornada com ícone em caixa, dois lado
   a lado. Fundo translúcido para assentar sobre a fotografia. */
.hero-downloads { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 26px 11px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  backdrop-filter: blur(2px);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}
.btn-download:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-soft);
  transform: translateY(-2px);
}
.btn-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
  transition: background var(--transition);
}
.btn-download-icon svg { width: 17px; height: 17px; }
.btn-download:hover .btn-download-icon { background: rgba(201, 162, 75, 0.22); }

/* Introdução da página Código de Conduta: parágrafo de abertura centrado,
   com um filete dourado por cima, entre o hero e os Valores Fundamentais. */
.conduct-intro { padding: var(--s5) 0 0; }
.conduct-intro-text {
  position: relative;
  padding-top: var(--s4);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  text-align: center;
  text-wrap: pretty;
}
.conduct-intro-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 2px;
  background: var(--gold);
}
.photo-hero .page-lead {
  margin-top: var(--s3);
  max-width: 56ch;
  /* 17px em ecrã largo, 15px em mobile: o lead nunca compete com o título */
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  text-wrap: pretty;
}

/* Migalhas de navegação */
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--s4);
}
.crumbs a { color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color var(--transition); }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); font-weight: 600; }

/* Título do hero: corpo mais contido e peso médio — num título curto, o
   tamanho grande com peso 700 lê-se como cartaz, não como página de firma.
   O filete dourado fino por cima faz o trabalho de destaque. */
.photo-hero .page-title {
  position: relative;
  color: var(--white);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 24px rgba(6, 5, 40, 0.45);
}
/* Traço uniforme em TODOS os heros: um único filete dourado sobre o título.
   O eyebrow (quando existe) não leva linha própria, para não haver traço duplo. */
.photo-hero .page-title::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}
.photo-hero .eyebrow::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .photo-hero-media { animation: none; }
}
@media (max-width: 860px) {
  /* Sem largura livre à direita, o motivo passaria por trás do texto */
  .photo-hero-motif { display: none; }
  .photo-hero {
    min-height: clamp(280px, 40svh, 380px);
    /* 104px chegam para o header fixo (logo de 140px ≈ 72px de barra) e
       deixam o filete dourado a respirar sob ele */
    padding: calc(104px + var(--topbar-h)) 0 var(--s4);
  }
  /* Mobile: um pouco mais altos (exceto conduta), mantendo-se contidos no ecrã */
  .photo-hero:not(.photo-hero--conduct):not(.photo-hero--contact) {
    min-height: clamp(340px, 50svh, 440px);
  }
  /* Hero mais compacto no telemóvel: título e lead menores, menos espaço */
  .photo-hero .page-title { font-size: 22px; }
  .photo-hero .page-title::before { margin-bottom: 12px; }
  .photo-hero .page-lead { font-size: 14px; line-height: 1.6; margin-top: var(--s2); }
  .section { padding: var(--s6) 0; }
  .photo-hero + .section { padding-top: var(--s5); }
  .photo-hero--conduct,
  .photo-hero--contact { min-height: clamp(500px, 72svh, 640px); }
  .photo-hero-media {
    background-position: var(--hero-pos-sm, var(--hero-pos, center center));
    animation: none;
  }
  /* Véu azul (navy) em degradê: presente no topo e mais denso em baixo, sob o
     título. Mantém-se na cor da marca — não escurece para preto — para o
     degradê azul aparecer também no telemóvel. */
  .photo-hero-overlay {
    background:
      linear-gradient(165deg, rgba(10, 6, 91, 0.5) 0%, rgba(10, 6, 91, 0.68) 55%, rgba(10, 6, 91, 0.9) 100%);
  }
}

/* Apresentação: fotografia com moldura dourada deslocada + texto editorial */
.about-intro-grid {
  display: grid;
  /* Texto à esquerda; a foto ocupa uma coluna estreita à direita. Como a
     fotografia é quadrada, é a largura da coluna que define a sua altura —
     assim acompanha o texto sem ser recortada. */
  grid-template-columns: minmax(0, 1fr) clamp(240px, 28vw, 340px);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.about-intro-media {
  position: relative;
  isolation: isolate;
  margin: 0;
}
/* Moldura dourada deslocada — o mesmo gesto do "Quem Somos" da home */
.about-intro-media::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  z-index: -1;
}
.about-intro-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* proporção original: nada é cortado */
  border-radius: 14px;
  display: block;
  box-shadow: 0 22px 55px rgba(10, 6, 91, 0.2);
}
.about-intro-copy .eyebrow { margin-bottom: 16px; }
.about-intro-copy .section-title { color: var(--navy); margin-bottom: var(--s4); }
/* Primeiro parágrafo com mais peso: entra na leitura, o resto sustenta */
.about-intro-lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--s4);
}
.about-intro-lead strong { color: var(--navy); font-weight: 600; }
.about-intro-copy p {
  color: var(--text-muted);
  font-size: clamp(14.5px, 0.55vw + 12.9px, 15.5px);
  line-height: 1.9;
  text-wrap: pretty;
}
.about-intro-copy p + p { margin-top: var(--s4); }

/* Selo do ícone: quadrado navy com o símbolo em dourado */
.about-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold);
  box-shadow: 0 8px 20px rgba(10, 6, 91, 0.18);
}
.about-icon-badge svg { width: 22px; height: 22px; display: block; }
/* Ícone no topo de cada card de valor (Código de Conduta) */
.value-icon { display: flex; margin-bottom: var(--s4); }
/* Cards de valores da conduta com a mesma tipografia dos cards de Quem Somos */
.conduct-values .practice-card h3 { line-height: 1.4; margin-bottom: 10px; }
.conduct-values .practice-card p { font-size: 13.5px; line-height: 1.7; }
/* Secções da página de conduta com espaçamento vertical mais contido.
   Selector com dupla classe (.section.conduct-section) para vencer as media
   queries que repõem o padding genérico de .section no tablet/telemóvel. */
.section.conduct-section { padding: var(--s6) 0; }
@media (max-width: 768px) {
  .section.conduct-section { padding: var(--s5) 0; }
}
/* Cabeçalho de secção centrado: além do texto, a própria caixa (com
   max-width) tem de ir ao centro, senão fica encostada à esquerda. */
.section-header--center { text-align: center; margin-inline: auto; }
/* Filete dourado centrado por cima do título (substitui o eyebrow removido). */
.section-header--center .section-title::before {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 18px;
}
.section-header--center .section-lead,
.section-header--center .text-lead { margin-inline: auto; }
/* Variante para fundo navy: contorno dourado em vez de bloco escuro */
.about-icon-badge-gold {
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid rgba(201, 162, 75, 0.45);
  box-shadow: none;
}

/* ---- Visão: faixa navy, o ponto alto da página ---- */
.about-vision {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 3.5vw, 56px) 0;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
}
.about-vision-motif {
  position: absolute;
  inset: 0;
  /* Entrelaçado dourado: duas diagonais cruzadas para uma textura mais rica */
  background-image:
    linear-gradient(45deg, transparent 47%, rgba(201, 162, 75, 0.16) 47%, rgba(201, 162, 75, 0.16) 53%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(201, 162, 75, 0.11) 47%, rgba(201, 162, 75, 0.11) 53%, transparent 53%);
  background-size: 38px 38px;
  /* Só nas margens: as riscas atenuam-se antes de chegar ao texto */
  -webkit-mask-image: radial-gradient(80% 125% at 50% 50%, transparent 45%, #000 100%);
  mask-image: radial-gradient(80% 125% at 50% 50%, transparent 45%, #000 100%);
  pointer-events: none;
}
/* Duas colunas: título à esquerda, texto à direita e alinhado à esquerda —
   blocos de texto centrados, um sobre o outro, leem-se mal. */
.about-vision-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
  text-align: left;
}
.about-vision-head .about-icon-badge { display: flex; margin-bottom: var(--s4); }
.about-vision-head .eyebrow { display: inline-flex; align-items: center; color: var(--gold-soft); }
.about-vision-head .section-title {
  color: var(--white);
  margin-top: 14px;
  text-wrap: balance;
}

/* Frase-manifesto: a ideia que fica, destacada por um filete dourado lateral */
.about-vision-lead {
  position: relative;
  padding-left: var(--s4);
  border-left: 2px solid var(--gold);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: var(--s5);
  text-wrap: pretty;
}
/* Peso leve (300) sobre navy: elegante, mas só se compensarmos o traço fino —
   corpo um pouco maior, branco frio rebaixado (o branco puro encandeia) e sem
   `antialiased`, porque em fundo escuro isso ainda mais afina as letras. */
.about-vision-body p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(13px, 0.45vw + 11.7px, 14px);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.015em;
  max-width: 62ch;
  text-wrap: pretty;
}
.about-vision-body p + p {
  margin-top: var(--s3);
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Valores: cartões numerados ---- */
.about-values { background: var(--blue-gray); padding: clamp(48px, 6vw, 80px) 0; }
.about-values-header { max-width: none; text-align: center; margin-inline: auto; margin-bottom: var(--s5); }
.about-values-header .eyebrow { display: inline-flex; align-items: center; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s4);
}
.value-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--s5) var(--s5) var(--s5);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Filete dourado que corre no topo ao passar o rato */
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-hover);
}
.value-card:hover::before { transform: scaleX(1); }
/* Número em marca-d'água, no canto */
.value-number {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  opacity: 0.06;
  letter-spacing: -0.02em;
}
.value-card .about-icon-badge { display: flex; margin-bottom: var(--s4); }
.value-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 10px;
}
.value-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .about-intro-media { max-width: 420px; margin-inline: auto; }
  .about-intro-media::before { inset: 12px -12px -12px 12px; }
  /* Visão em coluna única: cabeçalho centrado e mais compacto */
  .about-vision-inner { grid-template-columns: 1fr; gap: var(--s4); text-align: center; }
  .about-vision-head { display: flex; flex-direction: column; align-items: center; }
  .about-vision-head .about-icon-badge { margin-bottom: 12px; }
  .about-vision-head .section-title { margin-top: 6px; }
  /* Parágrafos mantêm-se à esquerda: texto corrido centrado lê-se mal */
  .about-vision-body { text-align: left; }
  /* Títulos das secções Visão e Valores mais contidos no telemóvel */
  .about-vision-head .section-title,
  .about-values-header .section-title,
  .conduct-section .section-title { font-size: 24px; }
}
@media (max-width: 560px) {
  /* Encolhe-se a foto o mesmo que a moldura avança, para nada sair do ecrã */
  .about-intro-media {
    width: calc(100% - 12px);
    margin-inline: 0 12px;
  }
  .about-vision-lead { max-width: none; }
}

/* ---------- Fale Connosco (home) ----------
   Mesmo fundo da secção de áreas, para as duas lerem como o mesmo sistema.
   Alturas alinhadas com as restantes secções da home: 64px no desktop,
   48px em tablet e telemóvel (a mudança de cor já marca a separação). */
.social-home { padding: var(--s7) 0 var(--s6); }
.home-contact {
  background: var(--blue-gray);
  padding: var(--s7) 0;
}
.home-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.home-contact-copy .section-lead { margin-bottom: var(--s5); }
/* A .contact-list base é para o cartão navy da página de contacto (texto branco,
   links dourados). Sobre fundo claro tem de inverter os tons. */
.home-contact-copy .contact-list {
  display: grid;
  gap: var(--s3);
  border-top: 1px solid var(--gray-200);
  padding-top: var(--s4);
}
.home-contact-copy .contact-list li {
  padding: 0;
  border-bottom: 0;
  color: var(--text);
  font-size: 15px;
}
.home-contact-copy .contact-list a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.home-contact-copy .contact-list a:hover { color: var(--gold); text-decoration: none; }
.home-contact-copy .contact-label { margin-bottom: 4px; }
/* O formulário fica num cartão branco, para se destacar do fundo cinza.
   Na home é uma versão compacta: campos mais baixos e caixa de mensagem
   mais curta do que na página /contacto, onde o formulário é o protagonista. */
.home-contact-form {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: var(--shadow);
}
.home-contact-form .field { margin-bottom: 9px; }
.home-contact-form label { font-size: 12.5px; margin-bottom: 3px; }
.home-contact-form input,
.home-contact-form textarea {
  padding: 7px 11px;
  font-size: 13.5px;
}
.home-contact-form textarea { min-height: 0; height: 74px; resize: vertical; }
.home-contact-form .btn { padding: 9px 20px; font-size: 13.5px; }
.home-contact-form .form-note { font-size: 12px; line-height: 1.5; margin-top: 10px; }

@media (max-width: 860px) {
  .home-contact-grid { grid-template-columns: 1fr; gap: var(--s5); }
}
/* Telemóvel: os campos empilham, por isso a altura vem sobretudo dos intervalos
   e das etiquetas. Aperta-se o ritmo, mas mantém-se a altura dos campos (~48px)
   para o alvo de toque continuar confortável. */
@media (max-width: 560px) {
  .home-contact-form { padding: 18px; }
  .home-contact-form .field { margin-bottom: 8px; }
  /* Nome+Email e Telefone+Assunto lado a lado: poupa duas linhas inteiras.
     São campos curtos, cabem em ~150px sem prejudicar o preenchimento. */
  .home-contact-form .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .home-contact-form label { font-size: 12px; margin-bottom: 2px; }
  .home-contact-form textarea { height: 64px; }
  .home-contact-form .btn { width: 100%; margin-top: 4px; }
  .home-contact-form .form-note { margin-top: 8px; }
}

/* Mapa a fechar a home: largura total, sem margens, altura fluida */
.home-map {
  display: block;
  line-height: 0; /* elimina a folga que o iframe deixaria por baixo */
  background: var(--gray-100);
}
.home-map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s ease;
}
/* A cor só entra na interação: em repouso, o mapa não compete com a página */
.home-map:hover iframe,
.home-map iframe:focus { filter: grayscale(0); }

/* ---------- Faixa "Podemos Ajudar!" ----------
   Mosaico de balanças da justiça em traço muito ténue, esbatido para o centro
   por uma máscara, de modo a não passar por trás do texto. */
.help-band {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 3.4vw, 48px) 0;
  background: linear-gradient(180deg, #FCFCFD 0%, var(--white) 45%, #FCFCFD 100%);
  border-block: 1px solid var(--gray-100);
}
.help-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%230A065B' stroke-width='0.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.4v17M9.2 20.4h5.6M12 6l-7 1.7M12 6l7 1.7'/%3E%3Cpath d='M5 7.7 2.4 13.6a2.6 2.6 0 0 0 5.2 0L5 7.7Z'/%3E%3Cpath d='M19 7.7l-2.6 5.9a2.6 2.6 0 0 0 5.2 0L19 7.7Z'/%3E%3Ccircle cx='12' cy='4.6' r='1'/%3E%3C/svg%3E");
  background-size: 64px 64px;
  background-repeat: repeat;
  /* Preenche a faixa toda. Sem máscara, a opacidade tem de ser baixa o
     suficiente para o padrão passar por trás do texto sem prejudicar a leitura. */
  opacity: 0.06;
  pointer-events: none;
}
/* Título e texto lado a lado, mas o par centrado como bloco na faixa */
.help-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 8vw, 130px);
}
.help-heading .eyebrow { margin-bottom: 14px; }
.help-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.help-body p {
  color: var(--text-muted);
  font-size: clamp(14.5px, 0.55vw + 12.9px, 15.5px);
  line-height: 1.8;
  max-width: 46ch;
  text-wrap: pretty;
}
.help-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-top: var(--s5);
}
.help-contact {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.help-contact:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 860px) {
  .help-band::before { background-size: 56px 56px; opacity: 0.05; }
}
@media (max-width: 860px) {
  /* Empilhados, o intervalo horizontal (até 130px) vira um vazio vertical
     desnecessário entre o título e o texto: passa a ser um respiro curto. */
  .help-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--s3);
  }
  .help-inner .eyebrow { justify-content: center; }
  .help-body p { max-width: 56ch; }
}
@media (max-width: 560px) {
  .help-body p { line-height: 1.7; max-width: none; }
  .help-actions { margin-top: var(--s4); gap: var(--s3); }
}

/* ---------- Cards (artigos, eventos, social) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s5);
}
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative; /* contém o link esticado (card todo clicável) */
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
/* O link do título estende-se sobre todo o card — clicar em qualquer sítio abre o artigo */
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }

.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-soft); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, transparent 46%, rgba(201, 162, 75, 0.25) 46%, rgba(201, 162, 75, 0.25) 54%, transparent 54%),
    linear-gradient(140deg, var(--navy-deep), var(--navy-soft));
  background-size: 40px 40px, cover;
}

.card-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
@media (max-width: 640px) {
  /* Mobile: menos padding interno — o texto ganha largura útil dentro do card */
  .card-body { padding: var(--s3); }
}
.badge {
  align-self: flex-start;
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid rgba(201, 162, 75, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.badge-link:hover { background: rgba(201, 162, 75, 0.22); }
.card-title { font-size: 19px; font-weight: 600; }
.card-title a { text-decoration: none; color: var(--navy); transition: color var(--transition); }
.card-title a:hover { color: var(--gold); }
.card-excerpt {
  font-size: 14.5px;
  color: var(--text-muted);
  flex: 1;
  min-width: 0; /* permite que o texto quebre dentro do flex, em vez de transbordar */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { font-size: 13px; color: var(--gray-400); display: flex; gap: 6px; flex-wrap: wrap; }
/* Localização com ícone alinhado ao texto */
.meta-loc { display: inline-flex; align-items: center; gap: 5px; }
.meta-loc .ic-pin { flex: 0 0 auto; color: var(--gold); }
@media (max-width: 640px) {
  /* Mobile: texto dos cartões mais compacto, uniforme com o hero */
  .card-title { font-size: 16.5px; }
  .card-excerpt { font-size: 13.5px; }
  .badge { font-size: 10.5px; }
  .card-meta { font-size: 12px; }
}

/* ---------- Lista de eventos (home) ---------- */
.event-list { display: flex; flex-direction: column; gap: var(--s3); max-width: 860px; }
.event-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.event-row:hover { border-color: transparent; box-shadow: var(--shadow-hover); transform: translateX(6px); }
.event-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: var(--s2);
  background: var(--navy);
  border-radius: 6px;
  color: var(--white);
}
.event-day { font-size: 24px; font-weight: 700; line-height: 1.1; }
.event-month { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-soft); }
.event-info { flex: 1; }
.event-info h3 { font-size: 17px; }
.event-location { font-size: 13.5px; color: var(--text-muted); }
.event-arrow { color: var(--gold); font-size: 20px; transition: transform var(--transition); }
.event-row:hover .event-arrow { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(100deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  padding: var(--s8) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  left: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  background-image: linear-gradient(45deg, transparent 46%, rgba(201, 162, 75, 0.14) 46%, rgba(201, 162, 75, 0.14) 54%, transparent 54%);
  background-size: 40px 40px;
}
.cta-inner { text-align: center; max-width: 620px; position: relative; z-index: 1; }
.cta-inner h2 { color: var(--white); font-size: clamp(24px, 3.2vw, 34px); margin-bottom: var(--s3); }
.cta-inner p { color: rgba(255, 255, 255, 0.8); font-weight: 300; margin-bottom: var(--s5); }

/* ---------- Blog: layout com sidebar ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s6);
  align-items: start;
}
.blog-sidebar { position: sticky; top: 110px; }

/* ---------- Página de área de prática: conteúdo + Principais Contactos ---------- */
/* Menos espaço entre o cabeçalho e o conteúdo nesta página */
.article-header:has(+ .practice-single-layout) { margin-bottom: 0; }
.practice-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: var(--s6);
  align-items: start;
  padding: var(--s4) 0 var(--s5);
}
/* Botão de voltar logo a seguir, sem espaço extra */
.practice-single-layout + .section-more { margin-top: 0; padding-top: var(--s4); }
.practice-single-main { min-width: 0; }
.practice-contacts { position: sticky; top: 110px; }
.practice-contacts-box {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.practice-contacts-title {
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 14px 16px;
  margin: 0;
}
.partner-cards { padding: var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.partner-photo {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy-soft);
  margin-bottom: var(--s3);
}
.partner-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.partner-card:hover .partner-photo img { transform: scale(1.04); }
.partner-name { display: block; font-size: 17px; font-weight: 600; color: var(--navy); text-decoration: none; transition: color var(--transition); }
.partner-name:hover { color: var(--gold); }
.partner-role, .partner-firm { font-size: 13.5px; color: var(--text-muted); margin: 2px 0 0; }
.partner-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; transition: color var(--transition); }
.partner-link:hover { color: var(--gold); }
.partner-card { min-width: 0; }
@media (max-width: 900px) {
  .practice-single-layout { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s4) 0 var(--s4); }
  .practice-contacts { position: static; }
  /* Corpo empilhado acima dos contactos: sem padding inferior extra */
  .practice-single-main .article-body { padding-bottom: 0; }
}
@media (max-width: 640px) {
  /* Cartões de sócios mais compactos no telemóvel */
  .partner-name { font-size: 14.5px; }
  .partner-role, .partner-firm { font-size: 12px; }
  .partner-link { font-size: 12.5px; margin-top: 8px; }
  .partner-photo { margin-bottom: var(--s2); }
}
@media (max-width: 360px) {
  /* Só em ecrãs muito estreitos os sócios empilham */
  .partner-cards { grid-template-columns: 1fr; }
}
.sidebar-box {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: var(--s4);
  margin-bottom: var(--s4);
}
.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.search-form { display: flex; flex-direction: column; gap: var(--s2); }
.search-form input {
  padding: 11px 14px;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}
.search-form input:focus { outline: none; border-color: var(--navy); }
/* Artigos recentes na barra lateral do blog */
.sidebar-recent { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-recent a {
  display: flex;
  gap: var(--s3);
  align-items: center;
  padding: 10px 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: padding-left var(--transition);
}
.sidebar-recent li:last-child a { border-bottom: 0; }
.sidebar-recent a:hover { padding-left: 6px; }
.recent-thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--navy-soft);
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.recent-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
  transition: color var(--transition);
}
.sidebar-recent a:hover .recent-title { color: var(--gold); }
.recent-date { font-size: 12px; color: var(--gray-400); }

.sidebar-cats { list-style: none; }
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 4px;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition), padding-left var(--transition);
}
.sidebar-cats a:hover, .sidebar-cats a.active { color: var(--gold); padding-left: 8px; }
.cat-count { font-size: 12px; color: var(--gray-400); }
.search-note { margin-bottom: var(--s4); color: var(--text-muted); font-size: 14.5px; }

/* ---------- Artigo single ---------- */
/* Página de artigo: coluna de leitura mais larga (cabeçalho e corpo) */
.article-page .container-narrow { width: min(900px, 92%); }
.article-header {
  position: relative;
  padding: calc(165px + var(--topbar-h)) 0 var(--s8);
  text-align: center;
  background: linear-gradient(100deg, var(--navy-deep) 0%, var(--navy) 70%, var(--navy-soft) 100%);
  margin-bottom: var(--s6);
  overflow: hidden;
}
/* Com imagem de capa: fotografia de fundo + véu navy (mesma linguagem dos heros) */
.article-header--cover {
  background-image: var(--cover);
  background-size: cover;
  /* Enquadra o terço superior: nas fotos, o assunto costuma estar em cima
     (o filete/título ficam por baixo, sobre o véu mais denso). */
  background-position: center 24%;
  min-height: clamp(460px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--s7);
}
.article-header-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 6, 91, 0.35) 0%, rgba(10, 6, 91, 0.55) 45%, rgba(10, 6, 91, 0.9) 100%),
    linear-gradient(100deg, rgba(6, 5, 40, 0.4) 0%, rgba(6, 5, 40, 0.1) 60%, transparent 100%);
}
.article-header-inner { position: relative; z-index: 1; }
.article-title {
  max-width: 24ch;
  margin-inline: auto;
  font-size: clamp(29px, 3.8vw, 40px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin-top: var(--s3);
  margin-bottom: var(--s3);
  color: var(--white);
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.article-header .article-title { text-shadow: 0 2px 24px rgba(6, 5, 40, 0.45); }
/* No telemóvel, o hero da área de prática iguala o das páginas de listagem (eventos, etc.) */
@media (max-width: 860px) {
  .article-header--cover:has(+ .practice-single-layout) {
    min-height: clamp(340px, 50svh, 440px);
    padding: calc(104px + var(--topbar-h)) 0 var(--s4);
  }
}
@media (max-width: 640px) {
  /* Mobile: título do cabeçalho e resumo mais pequenos */
  .article-title { font-size: 23px; margin: var(--s2) 0; }
  .article-page .page-lead { font-size: 15px; line-height: 1.6; }
}

/* Capa em figura separada (eventos, áreas de prática, resp. social):
   sobrepõe-se ligeiramente ao cabeçalho escuro. */
.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(6, 5, 40, 0.25);
  margin: -72px 0 var(--s6);
  position: relative;
  z-index: 2;
}
.article-cover img { width: 100%; }
@media (max-width: 640px) {
  .article-cover { margin-top: -40px; }
}

/* Escala tipográfica do artigo — desktop (nível base) */
.article-body { font-size: 15.5px; line-height: 1.75; padding-bottom: var(--s5); overflow-wrap: break-word; word-break: break-word; }
.article-body p { margin-bottom: var(--s4); }
.article-body h2, .article-body h3, .article-body h4 { margin: var(--s5) 0 var(--s3); }
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }
.article-body h4 { font-size: 17px; }
.article-body ul, .article-body ol { margin: 0 0 var(--s4) var(--s4); }
.article-body li { margin-bottom: var(--s1); }
/* Imagens respeitam a largura escolhida no editor (atributo width, ex.: 50%),
   mas nunca ultrapassam a coluna — zero rolagem horizontal. */
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: var(--s4) auto; }
/* Posicionamento: texto envolve a imagem (esquerda/direita) ou imagem centrada. */
.article-body img.img-left { float: left; margin: 0.3em 1.6em 1em 0; }
.article-body img.img-right { float: right; margin: 0.3em 0 1em 1.6em; }
.article-body img.img-center { display: block; float: none; margin-left: auto; margin-right: auto; }
/* Contém os floats para não invadirem a partilha/autor abaixo. */
.article-body::after { content: ''; display: block; clear: both; }
@media (max-width: 640px) {
  /* Mobile: fonte e espaçamento mais compactos para o texto respirar melhor. */
  .article-body { font-size: 14.5px; line-height: 1.65; }
  .article-body p { margin-bottom: var(--s3); }
  .article-body h2 { font-size: 20px; }
  .article-body h3 { font-size: 17.5px; }
  .article-body h4 { font-size: 15.5px; }
  .article-body h2, .article-body h3, .article-body h4 { margin: var(--s4) 0 var(--s2); }
}
@media (max-width: 640px) {
  /* Mobile: as imagens do corpo enchem a coluna e ficam em bloco, seja qual for
     o tamanho/posição escolhidos no desktop — leitura limpa e organizada. */
  .article-body img {
    float: none;
    display: block;
    width: 100%;
    margin: var(--s4) auto;
  }
}
.article-body iframe, .article-body video { max-width: 100%; }
.article-body iframe { width: 100%; border: 0; }
.article-body iframe.video-embed { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); margin: var(--s4) auto; }
.article-body pre { overflow-x: auto; }
/* Tabelas largas rolam dentro da própria caixa, não na página. */
.article-body table { display: block; width: 100%; overflow-x: auto; }
.article-body a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold); }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--s3) var(--s4);
  margin: var(--s4) 0;
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: var(--s4); font-size: 15px; }
.article-body th, .article-body td { border: 1px solid var(--gray-100); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--off-white); }

.article-share {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s4) 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.share-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}
.article-share a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
  padding: 5px 14px;
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  transition: border-color var(--transition), color var(--transition);
}
.article-share a:hover { border-color: var(--gold); color: var(--gold); }

.author-box {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: var(--s5);
  margin: var(--s6) 0;
}
.author-box-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-name { font-size: 20px; }
.author-box-title { font-size: 13.5px; color: var(--gold); font-weight: 500; margin-bottom: var(--s2); }
.author-box-bio { font-size: 14.5px; color: var(--text-muted); }

/* ---------- Galerias de fotos ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s3);
}
.photo-item { border-radius: var(--radius); overflow: hidden; position: relative; }
.photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item:hover img { transform: scale(1.04); }
.photo-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(6, 5, 40, 0.85));
  color: var(--white);
  font-size: 13px;
}

/* ---------- Equipa ---------- */
/* Retrato editorial: em vez do avatar redondo num cartão branco, o retrato
   vertical sangra até às margens e a legenda vive por baixo, sobre o fundo da
   página. Reaproveita a linguagem dos cartões de área — numeração, filete
   dourado, imagem que amplia ao passar o rato — para as duas grelhas do site
   lerem como a mesma família. */
/* Sócios fundadores: dois retratos à cabeça da página. A largura é travada
   para o destaque vir da hierarquia e do ar à volta, não do tamanho — dois
   retratos a ocupar o contentor todo liam-se como cartaz, não como firma. */
.team-founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--s5);
  max-width: 720px;
  margin: 0 auto var(--s6); /* centrado: o bloco é mais estreito que o contentor */
}
.team-grid {
  display: grid;
  /* 240px dá quatro colunas no contentor de 1200px — os sete restantes saem
     em 4+3, equilibrado; com colunas mais estreitas caíam em 5+2. */
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--s5) var(--s4);
}
/* O filete que separa os fundadores do resto vive aqui, não no bloco dos
   fundadores: assim atravessa o contentor todo em vez de parar a meio. */
.team-grid-rest {
  border-top: 1px solid var(--gray-100);
  padding-top: var(--s6);
}
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.team-portrait {
  position: relative;
  /* 7/8 em vez do 4/5 clássico: retrato menos alto, sem chegar ao quadrado —
     mantém o eixo vertical que dá porte à figura. */
  aspect-ratio: 7 / 8;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}
.team-portrait img {
  width: 100%;
  height: 100%;
  /* 'top': o corte tira-se sempre aos pés, nunca à cara */
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s ease, filter 0.5s ease;
  /* Dessaturação leve: uniformiza retratos tirados em luz e fundos diferentes */
  filter: saturate(0.82) contrast(1.02);
}
.team-card:hover .team-portrait img { transform: scale(1.05); filter: saturate(1) contrast(1); }
/* Véu navy que assenta a foto no fundo do retrato e dá contraste ao número */
.team-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 6, 91, 0.55) 100%);
  pointer-events: none;
  transition: opacity var(--transition);
}
.team-card:hover .team-portrait::after { opacity: 0.7; }
.team-index {
  position: absolute;
  left: 14px;
  bottom: 11px;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  text-shadow: 0 1px 12px rgba(6, 5, 40, 0.6);
}
.team-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 42px;
  font-weight: 600;
}
/* Filete dourado que cresce ao passar o rato — o mesmo gesto do .practice-card */
.team-caption {
  padding-top: var(--s3);
  border-top: 1px solid var(--gray-100);
  position: relative;
}
.team-caption::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.team-card:hover .team-caption::before { transform: scaleX(1); }
.team-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 5px;
}
.team-role {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-wrap: balance;
}
.team-bio { font-size: 14px; color: var(--text-muted); margin-top: var(--s2); }
/* "Perfil completo": discreto em repouso, dourado ao passar o rato — o cartão
   inteiro é clicável, isto é só a pista visual. */
.team-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.team-card:hover .team-more { color: var(--gold); }
.team-card:hover .team-more .practice-arrow { transform: translateX(4px); }
.team-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }

/* Telemóvel: um retrato por linha ocupava a largura toda e obrigava a rolar
   muito para ver a equipa. Dois por linha encolhem a foto e deixam ler o
   grupo de uma vez — os fundadores continuam à parte, pelo filete e pela
   ordem, já que ao par ficam do mesmo tamanho dos restantes. */
@media (max-width: 560px) {
  .team-founders,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s4) var(--s3);
  }
  .team-founders { max-width: none; margin-bottom: var(--s5); }
  .team-grid-rest { padding-top: var(--s5); }
  .team-caption { padding-top: 11px; }
  .team-name { font-size: 15px; line-height: 1.3; }
  .team-role { font-size: 10.5px; letter-spacing: 0.09em; }
  .team-more { font-size: 11.5px; margin-top: 7px; }
  .team-index { left: 10px; bottom: 8px; font-size: 10.5px; }
}

/* ---------- Perfil de um membro da equipa ----------
   Coluna fixa à esquerda (retrato, contactos, índice) + leitura contínua à
   direita. Sem separadores: o currículo lê-se todo e é indexável. */
/* Cartão de identificação: faixa clara que separa quem é a pessoa (retrato,
   contactos) do que ela fez (currículo, nos separadores em baixo). */
.profile-card {
  padding: calc(148px + var(--topbar-h)) 0 var(--s5);
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
}
.profile-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}
.profile-body { padding: var(--s5) 0 var(--s8); }
.profile-main { max-width: 940px; }
.profile-portrait {
  position: relative;
  aspect-ratio: 7 / 8;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}
.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.9);
}

/* Contactos directos: só aparece a linha que existe em base de dados */
.profile-contacts { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.profile-contacts li + li { margin-top: 2px; }
.profile-contacts a,
.profile-contact-plain {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-left: -10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-word;
  transition: color var(--transition), background var(--transition);
}
.profile-contacts a:hover { color: var(--navy); background: var(--white); }
/* Traço, cor e espessura vivem aqui — não em atributos dentro de cada SVG.
   Os ícones traziam cada um os seus (o do LinkedIn vinha preenchido) e liam-se
   com pesos diferentes apesar da mesma cor. Uma regra só, e não podem divergir. */
.profile-contacts svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  /* 2.4 num ícone de 18px: a 1.6 o traço desaparecia ao lado do texto. */
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-contacts i { margin: 0 8px; color: var(--gold); font-style: normal; }

/* Separadores: repartem o currículo para não afogar o ecrã em texto.
   O conteúdo dos painéis está sempre no HTML — só se esconde com [hidden] —
   por isso continua indexável e encontrável com Ctrl+F. */
.profile-tabs { margin-top: 0; }
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--s5);
  padding-bottom: 0;
  border-bottom: 1px solid var(--gray-100);
}
.tablist button {
  position: relative;
  appearance: none;
  border: 0;
  background: none;
  padding: 11px 2px 13px;
  margin-right: var(--s5);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.tablist button:last-child { margin-right: 0; }
.tablist button:hover { color: var(--navy); }
/* Filete dourado a correr sob o separador activo — o mesmo gesto do resto do
   site (cartões de área, legenda da equipa). */
.tablist button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.tablist button[aria-selected='true'] { color: var(--navy); }
.tablist button[aria-selected='true']::after { transform: scaleX(1); }
.tablist button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.profile-name {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.profile-role {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Áreas de actuação em pastilhas: eram uma linha corrida de texto no site
   antigo, onde nenhuma se distinguia da seguinte. */
.profile-areas-block { margin-top: var(--s4); }
/* Rótulo discreto: nomeia as pastilhas sem competir com o nome nem com o
   cargo, que são o que se lê primeiro no cartão. */
.profile-areas-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin-bottom: 11px;
}
.profile-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-areas li {
  padding: 6px 13px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy);
}

/* Sem JS, .profile-tabs não recebe 'pronto': os painéis ficam empilhados e
   separados, em leitura contínua. Com JS, mostra-se um de cada vez. */
.profile-tabs:not(.pronto) .profile-section + .profile-section {
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid var(--gray-100);
}
.profile-tabs.pronto .profile-section[hidden] { display: none; }
.profile-bio p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: var(--s4);
  text-wrap: pretty;
}
.profile-bio p:last-child { margin-bottom: 0; }
.profile-empty { font-size: 15px; color: var(--text-muted); font-style: italic; }

/* Percurso: fio vertical dourado com um nó por etapa */
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s5); position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gray-100));
}
.timeline-item { position: relative; }
.timeline-item + .timeline-item { margin-top: var(--s5); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(var(--s5) * -1);
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
}
.timeline-heading {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.timeline-lines {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.timeline-lines i { margin: 0 8px; color: var(--gold); font-style: normal; }
.timeline-tasks { margin: var(--s3) 0 0; padding: 0; list-style: none; }
.timeline-tasks li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 5px;
}
.timeline-tasks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

.profile-creds { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px var(--s4); }
.profile-creds dt {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 3px;
}
.profile-creds dd { margin: 0; font-size: 15px; font-weight: 300; color: var(--text); }

/* Acção principal e regresso à lista, na mesma linha: o botão pesa, a
   ligação de volta é discreta — não competem. */
.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--gray-100);
}
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.profile-back:hover { color: var(--gold); }
.profile-back-arrow { transition: transform var(--transition); }
.profile-back:hover .profile-back-arrow { transform: translateX(-4px); }

@media (max-width: 860px) {
  /* O cartão empilha: retrato por cima, identidade por baixo. O retrato
     encolhe — a toda a largura empurrava o nome para fora do primeiro ecrã. */
  .profile-card { padding: calc(116px + var(--topbar-h)) 0 var(--s5); }
  .profile-card-inner {
    grid-template-columns: 1fr;
    gap: var(--s5);
    align-items: start;
  }
  .profile-portrait { max-width: 220px; }
  .profile-body { padding: var(--s5) 0 var(--s7); }
  .profile-contacts { margin-top: var(--s3); }
  /* Três separadores não cabem lado a lado: encolhe-se o espaçamento antes
     de deixar que passem para uma segunda linha. */
  .tablist button { margin-right: var(--s4); font-size: 11.5px; letter-spacing: 0.1em; }
  .timeline-tasks li { font-size: 13.5px; }
}

/* No telemóvel o perfil deixa de ser "retrato à esquerda, vazio à direita" e
   passa a um cartão centrado e simétrico: retrato compacto emoldurado, nome e
   cargo por baixo, contactos e áreas alinhados ao centro. O currículo mantém-se
   alinhado à esquerda — texto corrido lê-se sempre melhor encostado. */
@media (max-width: 560px) {
  .profile-card-inner {
    justify-items: center;
    text-align: center;
    gap: var(--s4);
  }
  /* Retrato compacto: deixa de engolir o primeiro ecrã. Fio dourado + sombra
     dão-lhe o mesmo acabamento premium do resto do site. */
  .profile-portrait {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--gold-soft);
    box-shadow: var(--shadow);
  }
  .profile-name { font-size: 26px; }
  .profile-role { margin-top: 8px; }

  /* O bloco de identidade centra-se como um todo; cada linha de contacto
     mantém-se alinhada à esquerda por dentro, para os ícones ficarem em coluna. */
  .profile-id { display: flex; flex-direction: column; align-items: center; }
  .profile-contacts {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;
  }
  .profile-areas-block { width: 100%; margin-top: var(--s3); }
  .profile-areas-label { text-align: center; }
  .profile-areas { justify-content: center; }

  /* Separadores: os três cabem sempre na mesma linha, distribuídos a toda a
     largura. O tipo encolhe com o ecrã (clamp) para nunca cortar "Credenciais"
     nem partir para uma segunda linha. O filete dourado do activo mantém-se. */
  .tablist {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
  }
  .tablist button {
    flex: 0 1 auto;
    margin-right: 0;
    padding-inline: 0;
    font-size: clamp(10px, 3vw, 12.5px);
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  /* Todo o texto de leitura do currículo com o mesmo corpo: bio, credenciais
     e o aviso de perfil vazio não podem divergir entre separadores. */
  .profile-bio p,
  .profile-creds dd,
  .profile-empty { font-size: 14.5px; line-height: 1.8; }

  /* Acções empilhadas e em largura total: alvos de toque generosos. */
  .profile-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: var(--s3);
  }
  .profile-actions .btn { width: 100%; justify-content: center; }
  .profile-back { justify-content: center; }
}

/* ---------- Contacto ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.contact-form .field { margin-bottom: var(--s3); }
.contact-form label { display: block; font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
/* Mobile: mesma organização compacta do formulário da home — Nome+Email e
   Telefone+Assunto lado a lado, com ritmo apertado (em vez de tudo empilhado). */
@media (max-width: 560px) {
  .contact-form .field-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact-form .field { margin-bottom: 10px; }
  .contact-form label { font-size: 13px; margin-bottom: 4px; }
  .contact-form .btn { width: 100%; }
}
.form-note { font-size: 12.5px; color: var(--gray-400); margin-top: var(--s3); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-form .btn:disabled { opacity: .68; cursor: wait; }
.form-security-status { min-height: 0; margin-top: 9px; color: var(--navy); font-size: 11.5px; }
.form-security-status:empty { display: none; }
.recaptcha-notice { max-width: 590px; margin-top: 7px; color: var(--gray-400); font-size: 9.5px; line-height: 1.55; }
.recaptcha-notice a { color: var(--gray-500); text-underline-offset: 2px; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Atalho flutuante para WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  left: clamp(18px, 2.4vw, 34px);
  right: auto;
  bottom: clamp(18px, 2.4vw, 32px);
  z-index: 88;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  background: #1f9d61;
  color: #fff;
  box-shadow: 0 13px 32px rgba(6, 5, 40, .2), 0 6px 18px rgba(31, 157, 97, .24);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(.9);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease,
              box-shadow .22s ease, background-color .22s ease;
}
.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.whatsapp-float.is-visible:hover {
  background: #178451;
  box-shadow: 0 17px 40px rgba(6, 5, 40, .24), 0 8px 22px rgba(31, 157, 97, .3);
  transform: translateY(-3px);
}
.whatsapp-float-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.whatsapp-float-icon svg { width: 29px; height: 29px; }
.whatsapp-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 620px) {
  .whatsapp-float { left: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float-icon svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
  .whatsapp-float.is-visible:hover { transform: none; }
}

/* ---------- Voltar ao topo ---------- */
.back-to-top {
  position: fixed;
  right: clamp(18px, 2.4vw, 34px);
  bottom: clamp(18px, 2.4vw, 32px);
  z-index: 88;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(217, 172, 66, .42);
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 13px 32px rgba(6, 5, 40, .22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(.9);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease,
              box-shadow .22s ease, background-color .22s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.back-to-top.is-visible:hover {
  background: var(--navy-soft);
  box-shadow: 0 17px 40px rgba(6, 5, 40, .28);
  transform: translateY(-3px);
}
.back-to-top svg { width: 19px; height: 19px; }
.back-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 620px) {
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  .back-to-top.is-visible:hover { transform: none; }
}

.contact-info { background: var(--navy); border-radius: var(--radius); padding: var(--s5); }
.contact-info .sidebar-title { color: var(--white); }
.contact-list { list-style: none; }
.contact-list li {
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--navy-soft);
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { color: var(--gold-soft); text-decoration: underline; }
.contact-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 2px;
}

.map-wrap { margin-top: var(--s6); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- 404 ---------- */
.notfound-inner { text-align: center; padding: calc(140px + var(--topbar-h)) 0 var(--s7); }

/* Mensagens flash no topo (abaixo do header fixo) */

/* ---------- Código de Conduta ---------- */
.conduct-list {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s4) var(--s5);
}
.conduct-list li {
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
}
.conduct-list li:last-child { border-bottom: 0; }
.conduct-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.16);
  color: var(--navy);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@media (max-width: 560px) {
  /* Descrições mais compactas no telemóvel */
  .conduct-list { padding: var(--s3) var(--s4); }
  .conduct-list li { font-size: 13.5px; padding: 12px 0 12px 38px; }
  .conduct-list li::before { width: 24px; height: 24px; top: 11px; font-size: 13px; }
}

.conduct-dark {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-soft) 100%);
}
.conduct-dark .section-title { color: var(--white); }
.conduct-dark .eyebrow { color: var(--gold-soft); }
.prohibited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s3);
}
.prohibited-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14.5px;
  transition: background var(--transition), transform var(--transition);
}
.prohibited-item:hover { background: rgba(255, 255, 255, 0.14); transform: translateX(5px); }
.prohibited-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notfound-code {
  font-size: clamp(90px, 16vw, 160px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--gold);
  display: block;
  margin-bottom: var(--s4);
}
.notfound .page-title { color: var(--navy); }
.notfound .page-lead { color: var(--text-muted); margin: var(--s3) auto var(--s5); }
.notfound .hero-actions { justify-content: center; }

/* ---------- Paginação ---------- */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: var(--s6);
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.page-link, .page-current, .page-nav {
  display: inline-block;
  min-width: 40px;
  padding: 9px 12px;
  text-align: center;
  border-radius: 6px;
  font-size: 14.5px;
  text-decoration: none;
}
.page-link { background: var(--white); border: 1px solid var(--gray-100); color: var(--text); transition: border-color var(--transition), color var(--transition); }
.page-link:hover { border-color: var(--gold); color: var(--gold); }
.page-current { background: var(--navy); color: var(--white); }
/* Anterior / Seguinte */
.page-nav { border: 1px solid var(--gray-100); background: var(--white); color: var(--navy); font-weight: 500; transition: border-color var(--transition), color var(--transition); }
a.page-nav:hover { border-color: var(--gold); color: var(--gold); }
.page-nav.is-disabled { opacity: 0.4; color: var(--text-muted); pointer-events: none; }
.page-gap { color: var(--gray-400); padding: 0 2px; }
@media (max-width: 560px) {
  /* No telemóvel, Anterior/Seguinte chegam — os números ocupariam demasiado */
  .page-nav { padding: 9px 14px; }
  .pagination { gap: 6px; }
}

.empty-note { color: var(--text-muted); padding: var(--s4) 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: var(--s6);
  padding: var(--s7) 0 var(--s6);
}
.footer-logo {
  width: 200px;
  margin-bottom: var(--s3);
  /* Variante branca do logotipo em fundo escuro */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-text { font-size: 14px; font-weight: 300; max-width: 340px; }
.footer-title {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--s3);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-links a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold-soft); }
/* Página atual: dourado, com um traço à esquerda a marcar a posição */
.footer-links a.is-current {
  position: relative;
  color: var(--gold);
  font-weight: 600;
}
.footer-links a.is-current::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}

/* Contactos com ícone: o texto alinha pela primeira linha, não pelo centro */
.footer-contacts li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.footer-icon {
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--gold);
}
.footer-icon svg { width: 100%; height: 100%; display: block; }

.footer-social { display: flex; gap: var(--s3); margin-top: var(--s4); }
.footer-social a {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 13.5px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.footer-social a:hover { border-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: var(--s3) 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-admin-link { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.footer-admin-link:hover { color: var(--gold-soft); }

/* Links legais e crédito de autoria, na linha inferior do rodapé */
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s4); }
.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gold-soft); }
.footer-credit {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-credit a {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color var(--transition);
}

/* O logótipo do rodapé leva à página inicial */
.footer-logo-link { display: inline-block; transition: opacity var(--transition); }
.footer-logo-link:hover { opacity: 0.82; }
.footer-credit a:hover { color: var(--gold-soft); }

@media (max-width: 700px) {
  /* Abaixo do tablet largo, três colunas apertam. A marca sobe para o topo em
     largura total e Navegação + Contactos ficam lado a lado, alinhados pelo
     topo — sem a coluna vazia que o layout a 2 colunas deixava. */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s5) var(--s6);
    align-items: start;
    padding-top: var(--s4);
  }
  /* Marca no topo, centrada, com o vazio superior reduzido. */
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: var(--s3);
  }
  .footer-brand .footer-text { margin-inline: auto; }

  /* Empilha e centra: em ecrã estreito, três blocos numa linha ficam ilegíveis */
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
  .footer-legal { justify-content: center; }
}

/* ---------- Páginas legais (privacidade, cookies) ---------- */
.legal-body h2 {
  font-size: 19px;
  margin: var(--s6) 0 var(--s3);
}
.legal-body h2:first-of-type { margin-top: var(--s4); }
.legal-updated {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: var(--s4);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s4) 0;
  font-size: 14.5px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--gray-100);
  vertical-align: top;
}
.legal-table th {
  background: var(--off-white);
  color: var(--navy);
  font-weight: 600;
  font-size: 13.5px;
}
.legal-related {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--gray-100);
  font-size: 14.5px;
  color: var(--text-muted);
}
@media (max-width: 560px) {
  /* A tabela não encolhe abaixo de certa largura: rola dentro da sua caixa */
  .legal-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ---------- Animações de entrada (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
/* Sem JS ou com preferência por menos movimento, mostrar tudo */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .practice-card:hover, .event-row:hover, .team-card:hover { transform: none; }
  .hero-slide { transition: none; animation: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1500px) {
  /* Compactar a barra em ecrãs médios (o logotipo mantém presença) */
  .site-nav { gap: 11px; }
  .nav-link { font-size: 12.5px; }
  .pill { padding: 8px 12px; font-size: 12.5px; }
  .brand-logo { width: 164px; }
}

/* Abaixo de 1240px o menu passa para o painel lateral premium */
@keyframes drawerItem {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 1240px) {
  .nav-toggle { display: flex; position: relative; z-index: 100; }

  /* Com o menu aberto, o X fica fixo no canto do painel, em branco */
  .nav-toggle.open {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 110;
  }
  .nav-toggle.open span { background: var(--white); }

  /* Overlay escurecido atrás do painel */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 5, 40, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 80;
  }
  .nav-overlay.visible { opacity: 1; pointer-events: auto; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(380px, 88vw);
    background:
      linear-gradient(200deg, var(--navy-soft) 0%, var(--navy) 30%, var(--navy-deep) 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
    transform: translateX(100%);
    /* Sem sombra e invisível quando fechado — senão a sombra sangra para a página */
    box-shadow: none;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s, box-shadow 0.35s ease;
    z-index: 90;
    overflow-y: auto;
    overflow-x: hidden;
    /* Scroll funcional mas sem barra visível */
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  /* Motivo dos blocos diagonais do logotipo, em marca de água */
  .site-nav::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 200px;
    height: 200px;
    background-image: linear-gradient(45deg, transparent 46%, rgba(201, 162, 75, 0.10) 46%, rgba(201, 162, 75, 0.10) 54%, transparent 54%);
    background-size: 36px 36px;
    pointer-events: none;
  }
  .site-nav.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  }

  /* Cabeçalho do painel: logo em branco + idiomas lado a lado */
  .drawer-head {
    display: block;
    padding: 24px 60px 18px 28px; /* folga à direita para o botão de fechar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }
  .drawer-logo { width: 138px; filter: brightness(0) invert(1); opacity: 0.95; }

  /* Idioma na barra branca: dropdown compacto antes do hambúrguer */
  .header-lang-dd { display: block; margin-left: auto; margin-right: 6px; }
  .header-lang-dd .pill { padding: 7px 13px; font-size: 12.5px; }
  .header-lang-dd .dropdown-menu { min-width: 170px; }

  /* Ligações numeradas, estilo editorial */
  .site-nav .nav-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 13px;
    font-weight: 500;
    padding: 10px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: normal;
  }
  .site-nav .nav-link::after { display: none; }
  .site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--gold-soft); }
  .nav-num {
    display: inline;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold);
    opacity: 0.85;
  }

  /* Entrada escalonada dos itens quando o painel abre */
  .site-nav.open > * { animation: drawerItem 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .site-nav.open > *:nth-child(2)  { animation-delay: 0.05s; }
  .site-nav.open > *:nth-child(3)  { animation-delay: 0.08s; }
  .site-nav.open > *:nth-child(4)  { animation-delay: 0.11s; }
  .site-nav.open > *:nth-child(5)  { animation-delay: 0.14s; }
  .site-nav.open > *:nth-child(6)  { animation-delay: 0.17s; }
  .site-nav.open > *:nth-child(7)  { animation-delay: 0.20s; }
  .site-nav.open > *:nth-child(8)  { animation-delay: 0.23s; }
  .site-nav.open > *:nth-child(9)  { animation-delay: 0.27s; }
  .site-nav.open > *:nth-child(10) { animation-delay: 0.31s; }
  .site-nav.open > *:nth-child(11) { animation-delay: 0.35s; }

  /* As ações da direita passam para o menu lateral */
  .header-actions { display: none; }

  .nav-extras { display: block; padding: 20px 28px 4px; }
  .drawer-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.40);
    margin: 14px 0 10px;
  }
  .drawer-langs { display: flex; gap: 6px; }
  .lang-chip {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid rgba(201, 162, 75, 0.45);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold-soft);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
  }
  .lang-chip:hover { background: rgba(201, 162, 75, 0.15); }
  .lang-chip.active { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
  .drawer-utils { display: flex; flex-direction: column; gap: 8px; }
  .drawer-util {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
  }
  .drawer-util:hover {
    color: var(--gold-soft);
    border-color: rgba(201, 162, 75, 0.45);
    background: rgba(201, 162, 75, 0.08);
  }
  .util-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(201, 162, 75, 0.14);
    color: var(--gold-soft);
    flex-shrink: 0;
  }
  .util-icon svg { width: 15px; height: 15px; }
  .util-arrow {
    margin-left: auto;
    color: var(--gold);
    opacity: 0.7;
    transition: transform var(--transition);
  }
  .drawer-util:hover .util-arrow { transform: translateX(3px); }

  /* CTA logo a seguir aos itens do menu */
  .btn-header-solid.nav-cta {
    display: inline-block;
    align-self: flex-start;
    margin: 20px 28px 6px;
    padding: 9px 26px;
    font-size: 13px;
  }

  .drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 28px 26px;
    margin-top: 14px;
  }
  .drawer-foot a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 13px;
  }
  .drawer-foot a:hover { color: var(--gold-soft); }
}
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* O conteúdo do hero ocupa ~240px: 82vh deixava mais de 260px de vazio.
     svh ignora a barra do browser, evitando o salto de altura ao rolar. */
  .hero { min-height: 70vh; min-height: 70svh; }
  .hero-inner { padding: calc(104px + var(--topbar-h)) 0 78px; }
  .section { padding: var(--s7) 0; }
  /* Grelhas que abrem logo a seguir ao hero: os 64px genéricos deixavam um
     vazio grande entre o hero e a primeira imagem. */
  .section-practice { padding: var(--s6) 0; }
  .section-team { padding: var(--s6) 0; }
  .blog-home { padding: var(--s6) 0 var(--s5); }
  .social-home { padding: var(--s6) 0 var(--s5); }
  .home-contact { padding: var(--s6) 0; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .article-share { justify-content: center; }
}

@media (max-width: 480px) {
  .brand-logo { width: 140px; }
  .field-row { grid-template-columns: 1fr; }
  /* Rodapé numa só coluna: cada secção centrada e separada por um fio subtil,
     para os blocos não se confundirem (a ligação "Contactos" da navegação
     colava ao título "Contactos"). As linhas mantêm-se alinhadas à esquerda
     por dentro de cada bloco centrado. */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: var(--s3);
    text-align: left;
  }
  /* Só a marca fica centrada; as restantes secções alinham à esquerda. */
  .footer-brand { padding-bottom: var(--s4); text-align: center; }
  .footer-brand .footer-text { max-width: 340px; margin-inline: auto; }
  .footer-col + .footer-col {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--s5) 0;
  }
  .footer-col:last-child { padding-bottom: var(--s2); }
  .footer-title { margin-bottom: var(--s4); }

  /* Tudo alinhado à esquerda, igual aos contactos. Ligações empilhadas em
     coluna única com um ritmo vertical uniforme entre cada linha. */
  .footer-links:not(.footer-contacts) li { margin-bottom: 14px; }
  .footer-links:not(.footer-contacts) li:last-child { margin-bottom: 0; }

  .footer-contacts { max-width: 320px; }
  .footer-contacts li { margin-bottom: var(--s3); }
  .footer-contacts li:last-child { margin-bottom: 0; }
  .footer-social { justify-content: flex-start; margin-top: var(--s4); }
  .event-row { flex-wrap: wrap; }
  .hero-actions .btn { width: 100%; }
  /* Botão do hero mais contido no telemóvel: acompanha o conteúdo, não a largura toda */
  .hero-actions .btn-pill { width: auto; }
  .btn-pill-lg { padding: 5px 5px 5px 20px; font-size: 13px; letter-spacing: 0.02em; }
  .btn-pill-lg .btn-circle { width: 30px; height: 30px; font-size: 14px; }
}

/* ---------- Quem Somos: alturas de secção em telemóvel ----------
   .about-intro herda o padding de .section (64px em mobile), o que deixava
   um vazio largo sob o hero. Aqui uniformizam-se as três secções numa escala
   compacta e confortável para ecrãs pequenos. Fica no fim do ficheiro para
   ganhar sobre a regra genérica .section (mesma especificidade, ordem vence). */
@media (max-width: 768px) {
  .about-intro  { padding: 52px 0; }
  /* Bordas que se tocam mais curtas: reduz o vazio entre Visão e Valores */
  .about-vision { padding: 44px 0 30px; }
  .about-values { padding: 32px 0 48px; }
  /* Texto da apresentação: fonte uniforme e mais compacta no telemóvel */
  .about-intro-copy .eyebrow { margin-bottom: 12px; }
  .about-intro-lead,
  .about-intro-copy p {
    font-size: 14px;
    line-height: 1.7;
  }
  .about-intro-copy p + p { margin-top: 14px; }
}
@media (max-width: 480px) {
  .about-intro  { padding: 40px 0; }
  .about-vision { padding: 36px 0 24px; }
  .about-values { padding: 26px 0 40px; }
  .about-intro-lead,
  .about-intro-copy p {
    font-size: 13.5px;
    line-height: 1.68;
  }
  .about-intro-copy p + p { margin-top: 12px; }
  .about-vision-head .section-title,
  .about-values-header .section-title,
  .conduct-section .section-title { font-size: 22px; }
}
