/* =====================================================================
   Doar com ConfianÃ§a
   ReproduÃ§Ã£o do desenho original (medido a 1440 px de largura).
   Todas as posiÃ§Ãµes sÃ£o proporcionais Ã  largura da janela, por isso a
   pÃ¡gina mantÃ©m as mesmas proporÃ§Ãµes em qualquer ecrÃ£.
   Sem ficheiros de imagem: marcas e Ã­cones em SVG, fotografias em
   espaÃ§os reservados feitos com gradientes CSS.
   Para colocar uma fotografia real:
       <span class="ph ph--care" style="--src:url('assets/foto.jpg')">
   ===================================================================== */

@font-face {
  font-family: Urbanist;
  src: url("assets/fonts/urbanist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate: #435f69; /* azul-petrÃ³leo escuro: blocos, texto, rodapÃ© */
  --slate-2: #365059;
  --soft: #8acfbd; /* verde suave: painel do hero, faixas */
  --green: #66cc9a; /* verde forte: banda da histÃ³ria, cartÃµes */
  --white: #fff;
  --body: #5d757e; /* texto corrido */
  --line: #c8dfd8;
  --logo-filter: brightness(0) saturate(100%) invert(29%) sepia(60%)
    saturate(420%) hue-rotate(162deg) brightness(75%) contrast(110%);

  /* 1 px do desenho (1440 de largura) = 0.06944vw */
  --u: 0.0694vw;
}

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

html {
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family:
    Urbanist, Figtree, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-family:
    "Bricolage Grotesque", Urbanist, Figtree, "Avenir Next", "Segoe UI",
    sans-serif;
}

h1 {
  font-size: 2.25rem !important;
}

h2 {
  font-size: 1.75rem !important;
}

p {
  margin: 0;
  font-size: 1.5rem !important;
}

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

a {
  color: inherit;
}

svg {
  display: block;
}

img {
  max-width: 100%;
  display: block;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  background: var(--slate);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}

.skip:focus-visible {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
}

/* =====================================================================
   MÃSCARAS DE FOTOGRAFIA
   Cada `.ph` Ã© um recorte. A fotografia entra pela variÃ¡vel --src e adopta
   automaticamente a forma e o tratamento de cor daquele lugar:

     <div class="hero__photo ph ph--hands" style="--src:url('assets/maos.jpg')">
     <span class="ph ph--care"            style="--src:url('assets/abraco.jpg')">
     <span class="member__photo ph ph--portrait" style="--src:url('assets/ana.jpg')">

   --pos ajusta o enquadramento (o mesmo que background-position):
     style="--src:url('...'); --pos:70% 20%"
   --tint muda a cor do filtro verde, se algum dia mudar de paleta.
   ===================================================================== */
.ph {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate; /* prende a mistura de cor ao recorte */
  background: #e9edec;
}

/* camada da imagem: Ã© aqui que a fotografia Ã© recortada */
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--src, var(--fallback));
  background-size: cover;
  background-position: var(--pos, center);
  background-repeat: no-repeat;
}

.ph > svg {
  position: relative;
  z-index: 1;
  color: rgb(67 95 105 / 14%);
}

.ph[style*="--src"] > svg {
  display: none;
}

/* topo â€” sem filtro: a fotografia mantÃ©m as cores prÃ³prias */
.ph--hands {
  --fallback:
    radial-gradient(46% 62% at 82% 18%, #ffe7b0 0%, rgb(255 231 176 / 0%) 62%),
    radial-gradient(60% 80% at 22% 78%, #6d4526 0%, rgb(109 69 38 / 0%) 60%),
    radial-gradient(52% 70% at 96% 82%, #35271b 0%, rgb(53 39 27 / 0%) 58%),
    linear-gradient(108deg, #f3c17f 0%, #e59a55 38%, #9a6534 70%, #41301f 100%);
}

/* histÃ³ria â€” duotone verde: sombras a verde, luzes a branco */
.ph--care {
  --fallback: linear-gradient(
    155deg,
    #ebebeb 0%,
    #adadad 36%,
    #6b6b6b 68%,
    #383838 100%
  );
}

.ph--care > svg {
  color: rgb(20 20 20 / 16%);
}

/* equipa â€” retratos com filtro suave, prÃ³ximos do mockup */
.ph--portrait {
  --fallback: linear-gradient(168deg, #f0f2f1 0%, #d2d8d6 48%, #a3aeab 100%);
}

.ph--portrait::before {
  filter: grayscale(1) contrast(1.08) brightness(1.02) saturate(0.2);
}

/* ========================================================== topo === */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(30 * var(--u)) calc(50 * var(--u)) calc(30 * var(--u))
    calc(48 * var(--u));
  background: #ffffffb2;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: calc(14 * var(--u));
  text-decoration: none;
  color: var(--slate);
}

.logo__mark {
  width: 214px; /* largura nativa do new_logo.png: sem reamostragem */
  min-width: 34px;
  height: auto;
  display: block;
  color: var(--slate);
}

.logo__type {
  line-height: 1.08;
}

.logo__type small {
  display: block;
  font-size: clamp(0.5625rem, 0.9vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: calc(2 * var(--u));
}

.logo__type strong {
  display: block;
  font-size: clamp(0.875rem, 1.6vw, 1.5625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo--light,
.logo--light .logo__mark {
  color: #fff;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: calc(44 * var(--u));
}

.nav a {
  text-decoration: none;
  font-size: clamp(0.75rem, 1.18vw, 1.1875rem);
  font-weight: 500;
  color: var(--slate);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  width: 44px;
  height: 38px;
  border: 0;
  background: none;
  padding: 8px 6px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--slate);
  margin: 5px 0;
  transition:
    transform 0.3s,
    opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================== hero === */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap; /* com align-content, encosta os painéis ao fundo sem os esticar */
  align-content: flex-end;
  align-items: stretch;
  min-height: 63.96vw; /* proporção do topBanner2027.png (921/1440): foto inteira */
  padding-top: calc(360 * var(--u));
  background: var(--white);
}

.hero__photo {
  position: absolute;
  inset: 0;
}

.hero__values {
  position: relative;
  flex: none;
  width: 24.96%;
  background: var(--slate);
  color: #fff;
  padding: calc(20 * var(--u)) 1rem calc(20 * var(--u)) calc(50 * var(--u));
  margin-bottom: calc(150 * var(--u));
  box-sizing: border-box;
}

.hero__values-mark {
  width: calc(36 * var(--u));
  min-width: 20px;
  height: auto;
  margin-bottom: calc(16 * var(--u));
  display: block;
  color: #fff;
  fill: currentcolor;
}

.hero__values li {
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  line-height: 1.55;
  font-weight: 400;
}

.hero__panel {
  position: relative;
  flex: none;
  width: 40.31%;
  background: #8acfbdbd;
  border-radius: 0 calc(213 * var(--u)) calc(213 * var(--u)) 0;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: calc(150 * var(--u));
  box-sizing: border-box;
}

.hero__panel-in {
  max-width: calc(830 * var(--u));
}

.hero h1 {
  font-size: 2.25rem !important;
  line-height: 1.28;
  color: var(--slate);
  margin-bottom: calc(18 * var(--u));
}

.hero__panel p {
  font-size: 1.25rem !important;
  line-height: 1.5;
  color: var(--slate-2);
  max-width: calc(500 * var(--u));
  margin-bottom: calc(14 * var(--u));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(16 * var(--u));
  margin-top: calc(20 * var(--u));
}

.hero__actions .btn--outline {
  font-size: 1.125rem;
}

.guia-home {
  background: #8dacd8 url("../assets/images/linhas.svg");
}

/* ======================================================== botÃµes === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(15 * var(--u)) calc(30 * var(--u));
  min-height: 34px;
  border: 1.5px solid var(--slate);
  border-radius: 999px;
  background: var(--slate);
  color: #fff;
  font: inherit;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(0.6875rem, 1.1vw, 1.125rem);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}

.btn span {
  font-size: 1.125rem;
  text-decoration: none;
  text-underline-offset: 3px;
  font-family: "Bricolage Grotesque", sans-serif;
}

.btn--outline {
  background: transparent;
  color: var(--slate);
}

/* só em dispositivos com rato: em ecrãs táteis o hover ficava "preso" após o toque */
@media (hover: hover) {
  .btn:hover {
    background: var(--slate-2);
    border-color: var(--slate-2);
    transform: translateY(-2px);
  }

  .btn--outline:hover {
    background: var(--slate);
    color: #fff;
  }
}

.btn--sm {
  font-family: "Bricolage Grotesque", sans-serif;
  padding: calc(12 * var(--u)) calc(26 * var(--u));
  font-size: 1.3rem;
}

/* ========================================================== selo === */
.seal {
  position: relative;
  background: var(--soft);
  display: flex;
  align-items: center;
  gap: calc(48 * var(--u));
  padding-left: 23.26%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.seal__badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(295 * var(--u));
  height: calc(150 * var(--u));
  border-radius: calc(20 * var(--u));
  padding: calc(12 * var(--u));
  background: transparent;
}

.seal__badge-image {
  display: block;
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.seal__br--1024 {
  display: none;
}

.seal__text {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.25rem !important;
  font-weight: 600;
  line-height: 1.1;
  color: var(--slate);
  letter-spacing: -0.02em;
  padding-right: 19rem;
}

/* ===================================================== histÃ³ria === */
.story {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: calc(75 * var(--u));
  padding-left: 3.68%;
  background: var(--white);
}

.story__band {
  position: absolute;
  top: 0;
  right: -1.36rem;
  width: 15.49%;
  height: 98%;
  background: var(--green);
}

.story__text {
  position: relative;
  flex: none;
  width: 33.5%;
  margin-top: calc(169 * var(--u));
}

.story__text h2 {
  font-size: 2.25rem !important;
  line-height: 1.26;
  color: var(--slate);
  margin-bottom: calc(33 * var(--u));
  letter-spacing: -0.02em;
  font-weight: 500;
}

.story__text p {
  font-size: 1.25rem !important;
  line-height: 1.19;
  color: var(--body);
  margin-bottom: calc(26 * var(--u));
}

.story__text strong {
  color: var(--slate);
  font-weight: 700;
}

.story__photo {
  position: relative;
  flex: none;
  margin: 0 0 0 17%;
  width: 52.92%;
  height: calc(850 * var(--u));
}

.story__photo .ph {
  width: 90%;
  height: 90%;
  border-radius: 50% 0 0 50%;
  display: grid;
  place-items: center;
}

.story__photo .ph > svg {
  width: 26%;
  height: auto;
}

/* ======================================================== perfis === */
.split {
  position: relative;
  display: grid;
  grid-auto-rows: 1fr; /* as duas linhas (e blocos) com a mesma altura */
  background: var(--white);
  padding-bottom: calc(1 * var(--u));

  /* escala dos blocos (altura base 394u) */
  --split-k: 0.66;
}

/* traÃ§o verde: prolonga a faixa da histÃ³ria e fecha em curva na direita */

/* troço reto: atravessa as duas faixas */
.split::before {
  content: "";
  position: absolute;
  left: calc(11px + 1216 * var(--u));
  width: calc(22 * var(--u));
  top: calc(-22 * var(--u));
  bottom: 0;
  z-index: 3;
  background: #66cc9a;
  pointer-events: none;
}

/* faixa verde da história: desce sem folga branca e entra no topo
   da primeira faixa, à direita da linha */
.split::after {
  content: "";
  position: absolute;
  left: calc(11px + 1216 * var(--u));
  right: 0;
  top: calc(-40 * var(--u));
  height: calc(102 * var(--u));
  z-index: 3;
  background: var(--green);
  pointer-events: none;
}

/* curva: começa no fundo da secção e acaba na margem direita */
.split__curve {
  position: absolute;
  left: calc(11px + 1216 * var(--u));
  top: 91%;
  width: calc(224 * var(--u) - 11px);
  height: calc(342 * var(--u));
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.split__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 47.86% 1fr;
  align-items: stretch; /* blocos colados, sem branco entre eles */
}

.split__row + .split__row {
  margin-top: 0;
}

.split__row--dark {
  background: var(--slate);
  color: #fff;
}

.split__row--green {
  background: var(--soft);
  color: var(--slate);
}

.split__block {
  position: relative;
  min-height: calc(394 * var(--split-k) * var(--u));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: calc(30 * var(--u));
  padding: calc(40 * var(--u)) 0 calc(40 * var(--u)) calc(156 * var(--u));
}

/* botão claro sobre a faixa escura */
.btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--slate);
}

.split__block h2 {
  font-size: 2.5rem !important;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.split__side {
  padding: calc(40 * var(--u)) calc(226 * var(--u)) calc(40 * var(--u))
    calc(20 * var(--u));
}

.split__lead {
  font-size: 1.5rem;
  margin-bottom: calc(14 * var(--u));
}

.ticks {
  display: grid;
  gap: calc(12 * var(--u));
  margin-bottom: calc(28 * var(--u));
}

.ticks li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 1.25rem !important;
  line-height: 1;
  color: var(--body);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #435f69;
}

/* listas do split herdam a cor da faixa (branco no escuro, slate no verde) */
.split .ticks {
  margin-bottom: 0;
}

.split .ticks li {
  color: inherit;
}

.split .ticks li::before {
  background: currentcolor;
}

/* ==================================================== princÃ­pios === */
.pillars {
  position: relative;
  padding: 8rem 4rem;
}

.h-center {
  text-align: center;
  font-size: 2.25rem !important;
  color: var(--slate);
  letter-spacing: -0.02em;
}

.h-center--sm {
  font-size: 2.5rem;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(19 * var(--u));
  margin-top: 10rem;
  align-items: stretch;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
}

.pillar__num {
  position: absolute;
  left: calc(6 * var(--u));
  bottom: 100%;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.5rem, 7.9vw, 7.875rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.03em;

  /* fonte variável: contornos sobrepostos (o traço do 4) aparecem com
     text-stroke. Preencher a branco por cima do traço esconde-os; o traço
     fica só a metade de fora, por isso vai a dobrar (3px = 1.5px visível) */
  color: var(--white);
  -webkit-text-stroke: 3px #a9dcca;
  paint-order: stroke fill;
  pointer-events: none;
}

.pillar__card {
  background: var(--green);
  border-radius: calc(14 * var(--u));
  min-height: calc(132 * var(--u));
  height: 100%;
  padding: calc(18 * var(--u)) calc(20 * var(--u));
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pillar__card h3 {
  font-family:
    Urbanist, Figtree, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: calc(6 * var(--u));
}

.pillar__card p {
  font-size: 1.25rem !important;
  line-height: 1.42;
  color: var(--slate);
  padding: 0 1rem;
}

.pillars__controls {
  display: none;
}

.pillars__cta {
  text-align: center;
  margin-top: calc(40 * var(--u));
}

.pillars__arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.pillars__arrow:hover {
  background: var(--slate);
  border-color: var(--slate);
  color: #fff;
}

.pillars__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillars__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition:
    background 0.2s,
    width 0.2s;
}

.pillars__dot.is-active {
  width: 20px;
  background: var(--green);
}

/* ================================================= dois caminhos === */

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: calc(50 * var(--u));
  background: var(--soft);
  padding: calc(20 * var(--u)) calc(76 * var(--u)) calc(20 * var(--u))
    calc(20 * var(--u));
}

.paths__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(20 * var(--u));
}

.paths .h-center {
  text-align: center;
}

.paths__grid {
  display: grid;
  gap: calc(32 * var(--u));
  margin-top: calc(40 * var(--u));
}

.paths__card {
  background: var(--white);
  border-radius: calc(20 * var(--u));
  min-height: calc(235 * var(--u));
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(14 * var(--u));
  text-align: center;
}

.paths__card h3 {
  font-family:
    Urbanist, Figtree, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate);
}

.paths__card p {
  font-family:
    Urbanist, Figtree, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.25rem !important;
  line-height: 1.5;
  color: var(--body);
  max-width: calc(430 * var(--u));
}

.paths__card .btn {
  margin-top: calc(10 * var(--u));
}

/* ====================================================== parceiros === */
.partners {
  background: var(--white);
  padding: 4rem 4.17%;
}

.partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: calc(70 * var(--u));
  margin: 2rem 6rem 6rem;
}

.partners__row:last-child {
  margin-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  min-height: 36px;
  width: auto;
}

.brand__logo--morais {
  height: 76px;
}

/* ========================================================= equipa === */
.team {
  background: var(--soft);
  padding: 4rem 3.33% 2rem;
}

.team__label {
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 1rem;
}

.team__row {
  display: flex;
  align-items: flex-start;
  gap: 4.3%;
}

.team__card {
  flex: 0 0 63.89%;
  background: var(--white);
  border-radius: calc(24 * var(--u));
  padding: calc(20 * var(--u));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: calc(18 * var(--u));
}

.team__loose {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, calc(162 * var(--u)));
  gap: calc(24 * var(--u));
  justify-content: start;
  padding: calc(20 * var(--u)) 0;
}

.member {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--u));
}

.member__photo {
  aspect-ratio: 155/160;
  border-radius: calc(10 * var(--u));
  display: grid;
  place-items: end center;
}

.member__photo > svg {
  width: 62%;
  height: auto;
  margin-bottom: -2%;
}

.member__name {
  text-align: center;
  font-size: clamp(0.5rem, 0.97vw, 0.9375rem);
  color: var(--slate);
  line-height: 1.3;
}

/* ====================================================== contactos === */
.contact {
  background: var(--white);
  padding: 6rem 12.22%;
}

.contact__card {
  scroll-margin-top: 24px; /* folga extra acima da caixa, além do cabeçalho fixo */
  border: 1px solid #8acfbd;
  border-radius: calc(30 * var(--u));
  padding: calc(60 * var(--u)) calc(46 * var(--u));
}

.contact__card h2 {
  font-size: 2.5rem;
  color: var(--slate);
}

.contact__hint {
  font-size: 1.25rem !important;
  color: var(--body);
  margin: calc(12 * var(--u)) 0 calc(34 * var(--u));
}

.chips {
  grid-column: 1/-1;
  border: 0;
  padding: 0;
  margin: 0 0 calc(24 * var(--u));
  display: flex;
  flex-wrap: wrap;
  gap: calc(12 * var(--u));
}

.chip {
  position: relative;
  display: inline-flex;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.chip span {
  display: inline-block;
  padding: calc(10 * var(--u)) calc(22 * var(--u));
  border: 1px solid #435f69;
  border-radius: 999px;
  font-size: 1.2rem;
  color: var(--body);
  background: #fff;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.chip:hover span {
  border-color: var(--green);
}

.chip input:checked + span {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--slate);
  font-weight: 600;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
}

#form-contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(24 * var(--u));
}

.field {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--u));
}

.field--full {
  grid-column: 1/-1;
}

.field label {
  font-size: clamp(0.5625rem, 1.05vw, 1.0625rem);
  color: var(--slate);
}

.field input,
.field textarea {
  font: inherit;
  font-size: clamp(0.5625rem, 1.05vw, 1.0625rem);
  color: var(--slate);
  padding: calc(14 * var(--u)) calc(18 * var(--u));
  border: 1px solid #000;
  border-radius: calc(14 * var(--u));
  background: #fff;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa8ad;
  font-style: italic;
}

.field textarea {
  resize: vertical;
  min-height: calc(250 * var(--u));
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(102 204 154 / 22%);
}

.field input[aria-invalid="true"] {
  border-color: #b4553f;
}

.contact__submit {
  flex-flow: row wrap;
  align-items: center;
  gap: calc(20 * var(--u));
  margin-top: calc(14 * var(--u));
}

.form-status {
  font-size: clamp(0.5625rem, 1vw, 1rem);
  font-weight: 600;
  color: var(--slate);
}

.form-status[data-state="erro"] {
  color: #a8452f;
}

.contact__top {
  position: fixed;
  right: calc(28 * var(--u));
  bottom: calc(18 * var(--u));
  z-index: 40;
  text-align: right;
  margin: 0;
  width: max-content;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0.2s;
}

.contact__top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0s linear 0s;
}

.contact__top a {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--u));
  color: var(--body);
  text-decoration: none;
  font-size: clamp(0.5625rem, 1vw, 1rem);
  margin-right: 0;
  background: rgb(255 255 255 / 80%);
  border-radius: 999px;
  padding: 8px 12px;
}

.contact__top svg {
  width: calc(18 * var(--u));
  min-width: 12px;
  height: auto;
}

/* ========================================================= rodapÃ© === */
.foot {
  background: var(--slate);
  color: #fff;
  padding: calc(56 * var(--u)) 4.17% 0;
}

/* logo à esquerda, menu à direita */
.foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(20 * var(--u));
}

.foot__brand {
  display: inline-flex;
  text-decoration: none;
  color: #fff;
}

.foot__brand .logo__mark {
  width: calc(300 * var(--u));
  min-width: 140px;
  height: auto;
  display: block;
}

.foot__nav {
  display: flex;
  gap: calc(26 * var(--u));
  font-size: clamp(0.75rem, 1.08vw, 1rem);
}

.foot__nav a,
.foot__legal a {
  text-decoration: none;
}

.foot__nav a:hover,
.foot__legal a:hover {
  color: var(--soft);
}

/* sede entre duas linhas */
.foot__address {
  font-style: normal;
  text-align: center;
  font-size: clamp(0.75rem, 1.02vw, 1rem);
  line-height: 1.4;
  margin-top: calc(48 * var(--u));
  padding: calc(26 * var(--u)) 0 calc(30 * var(--u));
  border-block: 1px solid rgb(255 255 255 / 18%);
}

.foot__address strong {
  display: block;
  margin-bottom: calc(14 * var(--u));
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 700;
}

.foot__mail {
  display: block;
  margin-top: calc(12 * var(--u));
}

.foot__address a {
  color: inherit;
  text-decoration: none;
}

.foot__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(20 * var(--u));
  padding: calc(36 * var(--u)) 0 calc(56 * var(--u));
  font-size: clamp(0.6875rem, 0.9vw, 0.875rem);
}

.foot__jelly {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25em;
  font-weight: 700;
  margin-right: 0.4em;
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: calc(58 * var(--u));
}

/* =====================================================================
   TELEMÃ“VEL E TABLET â€” a partir daqui a pÃ¡gina deixa de ser proporcional
   e passa a empilhar-se.
   ===================================================================== */
@media (width <= 880px) {
  :root {
    --u: 1px;
  }

  html {
    scroll-padding-top: 76px;
  }

  .topbar {
    padding: 12px 20px;
    align-items: center;
  }

  .logo__mark {
    width: 8rem;
  }

  .logo__type small {
    font-size: 0.5625rem;
  }

  .logo__type strong {
    font-size: 0.9375rem;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    z-index: -1;
    background: rgb(255 255 255 / 98%);
    padding: 76px 20px 24px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 20px 40px -28px rgb(67 95 105 / 50%);
  }

  .nav.is-open {
    clip-path: inset(0 0 0 0);
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 0;
  }

  .nav a {
    font-size: 1.125rem;
    display: block;
    padding: 9px 0;
  }

  .btn,
  .btn--sm,
  .hero__actions .btn--outline {
    font-size: clamp(0.8125rem, 3.8vw, 1rem);
  }

  .btn {
    padding: 12px 22px;
    white-space: normal;
    text-align: center;
  }

  .btn--sm {
    padding: 0.625rem 1.25rem;
  }

  /* o span tinha 1.125rem fixo e ignorava o tamanho do botão em mobile */
  .btn span {
    font-size: inherit;
  }

  /* selo */
  .seal {
    height: auto;
    flex-direction: column;
    text-align: center;
    padding: 32px 22px 36px;
    gap: 22px;
  }

  .seal__badge {
    width: min(300px, 100%);
    height: auto;
    border-width: 2px;
    border-radius: 16px;
    padding: 12px;
    gap: 12px;
  }

  .seal__badge-image {
    width: 55%;
    height: 55%;
  }

  .seal__square {
    width: 96px;
    height: 112px;
    border-radius: 12px;
  }

  .seal__square b {
    font-size: 1.375rem;
  }

  .seal__square i {
    font-size: 0.4375rem;
  }

  .seal__type {
    text-align: left;
  }

  .seal__type small {
    font-size: 0.75rem;
  }

  .seal__type strong {
    font-size: 1.125rem;
  }

  .seal__text {
    font-size: clamp(0.8125rem, 3.8vw, 1.125rem) !important;
    line-height: 1.36;
    padding-right: 0; /* desktop tem 19rem: espremia o texto */
  }

  .seal__text br {
    display: none;
  }

  /* histÃ³ria */
  .story {
    display: block;
    padding: 0 0 36px;
  }

  .story__band {
    display: none;
  }

  .story__photo {
    position: static;
    width: calc(100% - 44px);
    height: auto;
    aspect-ratio: 1/1;
    margin: 0 0 0 44px;
  }

  .story__photo .ph {
    border-radius: 50% 0 0 50%;
  }

  .story__text {
    position: static;
    width: auto;
    margin-top: 0;
    padding: 30px 22px 0;
  }

  .story__text h2 {
    font-size: 1.375rem !important;
  }

  .story__text h2 br {
    display: none;
  }

  /* perfis */
  .split::before,
  .split::after,
  .split__curve {
    display: none;
  }

  .split {
    grid-auto-rows: auto;
  }

  .split__block h2 {
    font-size: clamp(1.25rem, 5.6vw, 1.75rem) !important;
  }

  .split__row {
    grid-template-columns: 1fr;
  }

  .split__row + .split__row {
    margin-top: 0;
  }

  .split__block {
    min-height: 0;
    padding: clamp(1rem, 5vw, 1.375rem) 1.375rem;
  }

  .split__side {
    padding: 26px 22px 34px;
  }

  .split__lead {
    font-size: 0.875rem;
    margin-bottom: 14px;
  }

  .ticks {
    gap: 9px;
    margin-bottom: 22px;
  }

  .ticks li {
    font-size: 0.8438rem;
    padding-left: 18px;
  }

  .ticks li::before {
    width: 7px;
    height: 7px;
  }

  /* princÃ­pios */
  .pillars {
    padding: 44px 22px 52px;
  }

  .h-center {
    font-size: clamp(1.1875rem, 5vw, 26px);
  }

  .h-center--sm {
    font-size: 1rem;
  }

  .pillars__viewport {
    overflow: hidden;
  }

  .pillars__grid {
    --per: 1; /* princípios visíveis de cada vez */

    display: flex;
    gap: 0.875rem;
    margin-top: 56px;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .pillar {
    flex: 0 0 calc((100% - (var(--per) - 1) * 0.875rem) / var(--per));
  }

  .pillar__num {
    font-size: 4rem;
    left: 2px;
    bottom: 100%;
    -webkit-text-stroke-width: 3px;
  }

  .pillar__card {
    min-height: 0;
    padding: 16px 18px;
    border-radius: 12px;
  }

  .pillar__card h3 {
    font-size: 0.9375rem;
  }

  .pillars__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
  }

  /* dois caminhos */

  .paths {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 2.5rem 1.375rem 3rem;
  }

  .paths__photo {
    border-radius: 16px;
  }

  .paths .h-center {
    text-align: center;
  }

  .paths__grid {
    gap: 18px;
    margin-top: 30px;
  }

  .paths__card {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 16px;
    gap: 12px;
  }

  .paths__card h3 {
    font-size: 1rem;
  }

  /* parceiros */
  .partners {
    padding: 44px 22px 48px;
  }

  .partners__row {
    gap: 34px;
    margin: 24px 0 44px;
  }

  .brand__logo {
    height: 44px;
  }

  .brand__logo--morais {
    height: 56px;
  }

  /* equipa */
  .team {
    padding: 2.5rem 1.375rem 2.875rem;
  }

  .team__label {
    font-size: 0.8125rem;
    margin: 20px 0 14px;
  }

  .team__row {
    flex-direction: column;
    gap: 18px;
  }

  .team__card {
    flex: none;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
  }

  .team__loose {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0;
  }

  .member {
    gap: 9px;
  }

  .member__name {
    font-size: 0.75rem;
  }

  /* contactos */
  .contact {
    padding: 2.75rem 1.25rem 1.875rem;
  }

  .contact__card {
    padding: 1.625rem 1.25rem;
    border-radius: 20px;
  }

  .contact__card h2 {
    font-size: 1.3125rem;
  }

  .chips {
    gap: 8px;
    margin-bottom: 18px;
  }

  .chip span {
    padding: 8px 15px;
    font-size: 0.75rem;
  }

  #form-contacto {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .field label {
    font-size: 0.7813rem;
  }

  .field input,
  .field textarea {
    font-size: 0.875rem;
    padding: 11px 14px;
    border-radius: 11px;
  }

  .field textarea {
    min-height: 150px;
  }

  .contact__top {
    margin-top: 34px;
  }

  /* rodapÃ© */
  .foot {
    padding: 36px 20px 0;
  }

  .foot__top {
    flex-direction: column;
    gap: 18px;
  }

  .foot__nav {
    gap: 18px;
    font-size: 0.8125rem;
  }

  .foot__address {
    font-size: 0.7813rem;
    margin-top: 26px;
    padding: 22px 0 26px;
  }

  .foot__bar {
    flex-direction: column;
    text-align: center;
    font-size: 0.6875rem;
    padding: 16px 0;
  }

  .foot__legal {
    justify-content: center;
    gap: 14px;
  }
}

/* hero empilhado (mobile e tablet até 880px) */
@media (width <= 880px) {
  .hero__panel p {
    font-size: 0.9375rem !important;
    max-width: none;
  }

  .hero {
    display: block;
    padding-top: calc(52vh - 100px);
    padding-bottom: 24px;
  }

  .hero__photo {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .hero__panel {
    position: relative;
    width: auto;
    height: auto;
    margin: 0 16px;
    border-radius: 32px;
    padding: 26px 20px 24px;
  }

  .hero__panel-in {
    max-width: none;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
  }

  .hero__values {
    display: none;
  }

  .hero__values-mark {
    width: 26px;
    margin-bottom: 14px;
  }

  .hero__values li {
    font-size: 0.875rem;
  }

  .hero__values ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }
}

/* hero em mobile: mesma foto (topBanner2027.png), centrada nas mãos,
   que estão do lado direito da imagem */
@media (width <= 800px) {
  .hero__photo.ph::before {
    background-position: 72% 0;
  }

  .seal__text {
    font-size: clamp(1rem, 4.4vw, 1.25rem) !important;
  }

  /* split: título, lista e botão no fim. display: contents solta o h2 e o
     botão do .split__block para os ordenar à volta do .split__side */
  .split__row {
    padding: 26px 22px 30px;
  }

  .split__block {
    display: contents;
  }

  .split__block h2 {
    margin-bottom: 14px;
  }

  .split__side {
    order: 1;
    padding: 0;
  }

  .split__lead {
    font-size: 1.125rem;
  }

  .split .ticks li {
    font-size: 0.9375rem !important;
    line-height: 1.3;
  }

  .split__block .btn {
    order: 2;
    justify-self: start;
    margin-top: 32px;
  }
}

/* carrossel dos princípios: mais do que um visível quando há espaço */
@media (540px <= width <= 880px) {
  .pillars__grid {
    --per: 2;
  }
}

@media (720px <= width <= 880px) {
  .pillars__grid {
    --per: 3;
  }
}

/* laptops comuns (1366 e 1536): painel do hero um pouco mais largo */
@media (1366px <= width <= 1536px) {
  .hero__panel {
    width: 50%;
  }
}

/* 1680×1050 */
@media (width: 1680px) {
  .hero__panel {
    width: 44.31%;
  }
}

/* 1440 */
@media (width: 1440px) {
  .story__band {
    right: -1.38rem;
  }
}

@media (width <= 520px) {
  .team__card,
  .team__loose {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__actions .btn {
    width: 100%;
  }

  .story__photo {
    width: calc(100% - 26px);
    margin-left: 26px;
  }
}

@media (width <= 414px) {
  .hero h1 {
    font-size: 1.125rem !important;
  }
}

/* laptop/tablet a 1024 (e só aqui): dar mais espaço ao painel do hero
   (o título do split já encolhe sozinho com o clamp) */
@media (width >= 1000px) and (width <= 1024px) {
  .seal__br--1024 {
    display: inline;
  }

  .seal__br--default {
    display: none;
  }

  .ticks li {
    font-size: 1rem !important;
  }

  .pillars__grid {
    gap: 8px;
  }

  .pillar__card {
    padding-left: 6px;
    padding-right: 6px;
  }

  .pillar__card h3 {
    font-size: 1rem !important;
    white-space: nowrap;
  }

  .pillar__card p {
    font-size: 1rem !important;
  }

  /* dois caminhos */
  .paths__card h3 {
    font-size: 1rem !important;
  }

  .paths__card p {
    font-size: 1rem !important;
  }

  .hero__panel {
    width: 65%;
  }

  .hero h1 {
    font-size: 2rem !important;
  }

  .hero__panel p {
    font-size: 1rem !important;
    max-width: none;
  }

  .story__text p {
    font-size: 1rem !important;
  }

  .seal__text {
    font-size: 1.3rem !important;
  }

  .story__text h2 {
    font-size: 1.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================== páginas legais === */

/* privacidade.html e cookies.html (e o aviso de consentimento no formulário) */
.contact__legal {
  grid-column: 1/-1;
  font-size: 0.9375rem !important;
  color: var(--body);
  margin: 0 0 1rem;
}

.contact__legal a {
  color: var(--slate);
}

.page-legal .burger span {
  background: var(--slate);
}

.legal {
  padding: clamp(7rem, 12vw, 10rem) 1.375rem clamp(3rem, 6vw, 6rem);
}

.legal__body {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--body);
}

.legal__body h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--slate);
}

.legal__date {
  margin: 0.5rem 0 2.5rem;
  font-size: 0.9375rem;
}

.legal__body h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  color: var(--slate);
}

.legal__body ul {
  margin: 0.75rem 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  padding-left: 1.25rem;
  list-style: disc;
  line-height: 1.6;
}

.legal__body li + li {
  margin-top: 0.25rem;
}

.legal__body p + p {
  margin-top: 0.75rem;
}

.legal__body a {
  color: var(--slate);
}

/* tabela larga: faz scroll horizontal dentro da caixa, nunca na página */
.legal__table {
  margin: 1.5rem 0 0.75rem;
  overflow-x: auto;
}

.legal__table table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal__table th,
.legal__table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  color: var(--slate);
  font-weight: 600;
}

.legal__body p {
  /* o p global tem 1.5rem !important */
  font-size: clamp(1rem, 1.3vw, 1.125rem) !important;
  line-height: 1.6;
}
