/* Par à Obra — folha de estilos do site
   Ideia visual: um livro calmo, de papel claro e letra legível, em que cada serviço tem a sua cor e o seu símbolo
   (PREPARE/ENRICH azul-céu, PREP 8.0 turquesa, acompanhamento coral, instituições azul-noite, investigação vinho).
   Os anéis da marca aparecem na abertura e no topo da página inicial; no resto do site, só nos símbolos. */

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

:root {
  /* Cores da marca */
  --navy: #202A4D;
  --navy-2: #2A3560;
  --teal: #1A8190;
  --teal-ink: #156F7C;
  --sky: #8EB9FE;
  --sky-ink: #2F5EB8;
  --coral: #C95062;
  --coral-deep: #B4405A;
  --wine: #902225;
  --sand: #E9DFD0;
  --sand-soft: #EFE8DD;
  --paper: #F5F2EC;
  --white: #FFFFFF;
  /* Tons claros de cada cor (fundos de cartões) */
  --teal-tint: #E6F1F3;
  --sky-tint: #EAF1FE;
  --coral-tint: #F8EAEC;
  --wine-tint: #F4E8E8;
  --navy-tint: #E8EAF0;
  /* Texto */
  --ink: #202A4D;
  --ink-soft: #3E4668;
  --muted: #5E6481;
  --line: rgba(32, 42, 77, .12);
  --line-strong: rgba(32, 42, 77, .22);
  /* Tipografia e ritmo */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 62ch;
  --sec: clamp(72px, 9vw, 128px);
  --sec-tight: clamp(56px, 7vw, 96px);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  /* Movimento */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  /* Cor do serviço (por omissão, a da marca). Cada página ou cartão de serviço muda estes valores. */
  --c: var(--navy);
  --c-ink: var(--navy);
  --c-on: var(--paper);
  --c-on-soft: rgba(245, 242, 236, .84);
  --c-tint: var(--navy-tint);
  --c-field: var(--navy);
  color-scheme: light;
}
/* PREPARE/ENRICH: azul-céu, com texto azul-noite por cima */
.svc-prepare { --c: var(--sky); --c-ink: var(--sky-ink); --c-on: var(--navy); --c-on-soft: var(--ink-soft); --c-tint: var(--sky-tint); --c-field: var(--sky); }
/* PREP 8.0: turquesa, com texto branco por cima */
.svc-prep { --c: var(--teal); --c-ink: var(--teal-ink); --c-on: var(--white); --c-on-soft: var(--white); --c-tint: var(--teal-tint); --c-field: var(--teal); }
/* Acompanhamento de casal: coral */
.svc-acomp { --c: var(--coral); --c-ink: var(--coral-deep); --c-on: var(--white); --c-on-soft: rgba(255, 255, 255, .9); --c-tint: var(--coral-tint); --c-field: var(--coral-deep); }
/* Para instituições: azul-noite */
.svc-inst { --c: var(--navy); --c-ink: var(--navy); --c-on: var(--paper); --c-on-soft: rgba(245, 242, 236, .84); --c-tint: var(--navy-tint); --c-field: var(--navy); }
/* Investigação: vinho */
.svc-inv { --c: var(--wine); --c-ink: var(--wine); --c-on: var(--paper); --c-on-soft: rgba(245, 242, 236, .86); --c-tint: var(--wine-tint); --c-field: var(--wine); }
/* Outros eventos */
.svc-outro { --c: var(--paper); --c-ink: var(--navy); --c-on: var(--navy); --c-on-soft: var(--ink-soft); --c-tint: var(--sand-soft); --c-field: var(--navy); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
strong, b { font-weight: 650; }
em { font-style: italic; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 6px; }
.field :focus-visible, .hero :focus-visible, .foot :focus-visible { outline-color: var(--sky); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.read { max-width: var(--measure); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out); }
.skip:focus { top: 16px; }

/* Marcador de informação em falta (a preencher no back office) */
.falta { display: inline-block; padding: .05em .55em; border: 1.5px dashed currentColor; border-radius: 8px; font-size: .86em; font-weight: 600; opacity: .8; }

/* ---------- Tipos de letra ---------- */
.h1 { font-size: clamp(2.375rem, 4.6vw, 3.75rem); line-height: 1.06; letter-spacing: -0.028em; }
.h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -0.022em; }
.h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.28; letter-spacing: -0.014em; font-weight: 650; }
.h4 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; font-weight: 650; }
.lead { font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.6; letter-spacing: -0.004em; color: var(--ink-soft); }
.small { font-size: .9375rem; line-height: 1.6; }
.muted { color: var(--muted); }
.label { display: block; font-size: .875rem; font-weight: 650; letter-spacing: .01em; color: var(--c-ink); }

/* ---------- Símbolos dos serviços ---------- */
.seal { --size: 48px; display: inline-grid; place-items: center; width: var(--size); height: var(--size); border-radius: 50%; background: var(--c); color: var(--c-on); flex: none; }
.seal svg { width: 70%; height: 70%; }
.seal-sm { --size: 36px; }
.seal-lg { --size: 60px; }
.seal-xl { --size: 76px; }

/* ---------- Abertura (só na página inicial) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: var(--navy); color: var(--paper);
  animation: loader-failsafe 0s linear 6s forwards;
}
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }
html.js .loader { animation: none; }
html.ld-off .loader { display: none; }
.loader-mark { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3vh, 28px); width: min(64vw, 300px); }
.loader-rings { width: 58%; overflow: visible; }
.loader-rings path { fill: none; stroke-width: 84.5; stroke-linecap: butt; }
.loader-rings .ring-a path { stroke: var(--coral); }
.loader-rings .ring-b path { stroke: var(--sky); }
.loader-word { width: 66%; fill: currentColor; opacity: 0; transform: translateY(10px); }
.loader-bar { position: absolute; left: 50%; bottom: max(12vh, calc(48px + env(safe-area-inset-bottom, 0px))); width: min(240px, 56vw); height: 3px; transform: translateX(-50%); border-radius: 3px; background: rgba(245, 242, 236, .16); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--paper); transform: scaleX(0); transform-origin: left center; }

/* Sequência: os anéis aproximam-se e desenham-se; depois aparece o nome */
html.ld-full .loader .ring-a { animation: ring-join-a 1.05s var(--ease-in-out) both; }
html.ld-full .loader .ring-b { animation: ring-join-b 1.05s var(--ease-in-out) both; }
/* O traço é desenhado num caminho aberto (sem «Z»): o segmento de fecho com comprimento zero
   era desenhado pelo browser como um ponto no início do anel. No fim, troca para o anel fechado. */
.loader-rings .draw { opacity: 0; }
html.ld-full .loader .draw { opacity: 1; stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: ring-draw 1.3s cubic-bezier(.33,.9,.4,1) both; }
html.ld-full .loader .full { animation: ring-full 1.3s step-end both; }
html.ld-full .loader .ring-b .draw, html.ld-full .loader .ring-b .full { animation-delay: .08s; }
html.ld-full .loader .loader-word { animation: word-in .55s var(--ease-out) .82s both; }
/* Movimento reduzido: o logótipo aparece já desenhado */
html.ld-reduce .loader .loader-word { opacity: 1; transform: none; }
@keyframes ring-join-a { from { transform: translateX(-340px); } to { transform: none; } }
@keyframes ring-join-b { from { transform: translateX(340px); } to { transform: none; } }
@keyframes ring-draw { from { stroke-dashoffset: 1; visibility: hidden; } 1% { visibility: visible; } 80% { stroke-dashoffset: 0; opacity: 1; } 81%, to { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ring-full { from, 80% { opacity: 0; } 81%, to { opacity: 1; } }
@keyframes word-in { to { opacity: 1; transform: none; } }

/* Saída: a página abre-se a partir do centro dos anéis */
@property --hole { syntax: '<length-percentage>'; inherits: false; initial-value: 0%; }
.loader.is-leaving {
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  animation: loader-open .7s var(--ease-in-out) forwards;
}
.loader.is-leaving.is-short { -webkit-mask: none; mask: none; animation: loader-fade .3s var(--ease-out) forwards; }
@keyframes loader-open { to { --hole: 150%; } }
@keyframes loader-fade { to { opacity: 0; } }
.loader.is-gone { display: none; }

/* ---------- Cabeçalho ---------- */
.nav {
  position: fixed; z-index: 200;
  top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 1240px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  --nav-pad: 20px;
  padding: 8px 8px 8px var(--nav-pad);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(32, 42, 77, .56);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out), -webkit-backdrop-filter .35s var(--ease-out), backdrop-filter .35s var(--ease-out);
}
.nav.on-light { color: var(--navy); background: rgba(245, 242, 236, .78); border-color: rgba(32, 42, 77, .1); box-shadow: 0 10px 30px -18px rgba(32, 42, 77, .35); }
.nav-logo { display: flex; align-items: center; height: 40px; color: inherit; flex: none; }
.nav-logo svg { height: 32px; width: auto; transform-origin: left center; transition: transform .45s var(--ease-out); }
/* Página inicial, no topo: sem caixa e com o logótipo maior, como primeiro elemento do topo */
.page-home .nav:not(.is-scrolled) { background-color: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: blur(0) saturate(100%); backdrop-filter: blur(0) saturate(100%); }
.page-home .nav:not(.is-scrolled) .nav-logo svg { transform: translate(var(--logo-x, 0px), 26px) scale(1.9); }
/* Alinha o logótipo grande com a margem do conteúdo */
.page-home .nav { --logo-x: calc(max((100vw - var(--wrap)) / 2, 0px) + max(var(--gutter), env(safe-area-inset-left, 0px)) - max((100vw - 1240px) / 2, 12px) - var(--nav-pad)); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .9375rem; font-weight: 550; letter-spacing: -0.005em; color: inherit;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  padding: 10px 14px; border-radius: 999px;
  transition: background-color .2s var(--ease-out);
}
.nav-links > li > a[aria-current="page"], .nav-links a.is-current { background: rgba(255, 255, 255, .14); }
.nav.on-light .nav-links > li > a[aria-current="page"], .nav.on-light .nav-links a.is-current { background: rgba(32, 42, 77, .08); }
@media (hover: hover) and (pointer: fine) {
  .nav-links > li > a:hover, .nav-links > li > button:hover { background: rgba(255, 255, 255, .12); }
  .nav.on-light .nav-links > li > a:hover, .nav.on-light .nav-links > li > button:hover { background: rgba(32, 42, 77, .07); }
}
.nav-links .chev { width: 10px; height: 10px; transition: transform .2s var(--ease-out); }
.nav-sub {
  position: absolute; top: calc(100% + 10px); left: -10px; width: 360px;
  list-style: none; margin: 0; padding: 8px;
  border-radius: 22px; color: var(--navy);
  background: rgba(245, 242, 236, .94); border: 1px solid rgba(32, 42, 77, .1);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 50px -22px rgba(32, 42, 77, .45);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top left;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s linear .18s;
}
.nav-sub a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: inherit; transition: background-color .2s var(--ease-out); }
.nav-sub a b { display: block; font-size: .9375rem; font-weight: 650; line-height: 1.3; }
.nav-sub a small { display: block; font-size: .8125rem; line-height: 1.4; color: var(--muted); }
.nav-sub a[aria-current="page"] { background: rgba(32, 42, 77, .06); }
.nav-sub .nav-all { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }
.nav-sub .nav-all a { font-size: .875rem; font-weight: 600; justify-content: space-between; }
.nav-sub .nav-all .arr { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .nav-sub a:hover { background: rgba(32, 42, 77, .06); } }
.has-sub.is-open .nav-sub, .has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub.is-open .chev { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .has-sub:hover .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } .has-sub:hover .chev { transform: rotate(180deg); } }
.nav-cta { flex: none; }
.nav .nav-cta { --bg: var(--paper); --fg: var(--navy); --bg-hover: var(--white); }
.nav.on-light .nav-cta { --bg: var(--navy); --fg: var(--paper); --bg-hover: var(--navy-2); }
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: inherit; cursor: pointer; place-items: center; transition: transform 160ms var(--ease-out); }
.nav-burger:active { transform: scale(.95); }
.nav.on-light .nav-burger { background: rgba(32, 42, 77, .07); }
.nav-burger svg { width: 22px; height: 22px; }

/* Menu de telemóvel */
.menu-sheet {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column;
  padding: calc(88px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--navy); color: var(--paper);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility 0s linear .28s;
}
.menu-sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-sheet ul { list-style: none; margin: 0; padding: 0; }
.menu-sheet > nav > ul > li { border-bottom: 1px solid rgba(245, 242, 236, .14); }
.menu-sheet a:not(.btn) { display: block; text-decoration: none; color: inherit; }
.menu-sheet .m-main { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; padding: 14px 0; }
.menu-sheet .m-sub { display: grid; gap: 4px; padding: 0 0 16px; }
.menu-sheet .m-sub a { display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; font-weight: 550; padding: 6px 0; color: rgba(245, 242, 236, .9); }
.menu-sheet .m-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.menu-close { position: fixed; z-index: 401; top: calc(20px + env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: var(--paper); cursor: pointer; display: grid; place-items: center; }

/* ---------- Botões e ligações ---------- */
.btn {
  --bg: var(--navy); --fg: var(--paper); --bg-hover: var(--navy-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 13px 24px;
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2; text-align: center;
  color: var(--fg); background: var(--bg);
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn .arr { width: 1.05em; height: 1.05em; flex: none; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--bg-hover); }
  .btn:hover .arr { transform: translateX(3px); }
  .btn:hover .arr-down { transform: translateY(3px); }
}
.btn-navy { --bg: var(--navy); --fg: var(--paper); --bg-hover: var(--navy-2); }
.btn-light { --bg: var(--paper); --fg: var(--navy); --bg-hover: var(--white); }
.btn-svc { --bg: var(--c-field); --fg: var(--c-on); --bg-hover: var(--c-ink); }
.svc-prepare .btn-svc { --bg-hover: #A5C7FE; }
.svc-inst .btn-svc, .svc-outro .btn-svc { --bg-hover: var(--navy-2); }
.svc-inv .btn-svc { --bg-hover: #7A1C1F; }
.btn-ghost { --bg: transparent; --fg: currentColor; --bg-hover: rgba(32, 42, 77, .06); box-shadow: inset 0 0 0 1.5px currentColor; }
.field .btn-ghost, .hero .btn-ghost { --bg-hover: rgba(255, 255, 255, .1); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 1.0625rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 650; text-decoration: none; color: var(--c-ink); }
.field .link-arrow, .hero .link-arrow { color: inherit; }
.link-arrow .arr { width: 1em; height: 1em; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .arr { transform: translateX(4px); } .link-arrow:hover { text-decoration: underline; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* ---------- Secções ---------- */
.section { position: relative; padding-block: var(--sec); }
.section-tight { position: relative; padding-block: var(--sec-tight); }
.paper { background: var(--paper); color: var(--ink); }
.sand { background: var(--sand-soft); color: var(--ink); }
.white { background: var(--white); color: var(--ink); }
.field { color: var(--paper); }
.field-navy { background: var(--navy); --c-on: var(--paper); --c-on-soft: rgba(245, 242, 236, .84); }
.field-svc { background: var(--c-field); color: var(--c-on); }
.field .lead { color: var(--c-on-soft); }
.field-navy .lead, .hero .lead { color: rgba(245, 242, 236, .84); }
.field .muted { color: var(--c-on-soft); }
.field a:not(.btn):not(.link-arrow) { color: inherit; }

/* Título de secção: traço na cor do serviço, título e uma linha de apresentação */
.sec-head { max-width: 46rem; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec-head::before { content: ''; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--c); margin-bottom: 20px; }
.svc-prepare .sec-head::before, .svc-prepare.sec-head::before { background: var(--sky-ink); }
.field .sec-head::before { background: currentColor; opacity: .6; }
.sec-head .h2 + .lead, .sec-head .h2 + p { margin-top: 16px; }
.sec-head .lead, .sec-head p:last-child { margin-bottom: 0; }
.sec-head.flush { margin-bottom: 0; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.sec-head-row::before { flex-basis: 100%; width: auto; margin-bottom: 4px; border-radius: 0; background: linear-gradient(var(--c), var(--c)) left center / 36px 3px no-repeat; }

/* Imagens */
.frame { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* Anéis decorativos (só no topo da página inicial) */
.rings-art { position: absolute; z-index: -1; pointer-events: none; overflow: visible; will-change: transform; }
.rings-art path { fill: none; stroke-linecap: butt; }
.rings-art .r1 { stroke: var(--r1, var(--coral)); }
.rings-art .r2 { stroke: var(--r2, var(--sky)); }

/* ---------- Topo da página inicial ---------- */
.hero { position: relative; overflow: clip; isolation: isolate; background: var(--navy); color: var(--paper); min-height: min(100svh, 960px); display: flex; flex-direction: column; justify-content: center; padding-block: calc(150px + env(safe-area-inset-top, 0px)) clamp(44px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "text ." "cta ."; row-gap: 36px; column-gap: 48px; }
.hero-grid > .hero-text { grid-area: text; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(3.125rem, 7.4vw, 6rem); line-height: .98; letter-spacing: -0.025em; max-width: 10ch; margin-bottom: 28px; font-optical-sizing: auto; }
.hero .lead { max-width: 36ch; margin: 0; }
.hero-grid > .hero-cta { grid-area: cta; }
/* Fotografia embutida: ocupa a metade direita, dissolve-se no azul-noite e move-se mais devagar ao descer */
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: min(66vw, 1120px); z-index: -1; overflow: hidden; margin: 0; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.028) 6.2%, rgba(0,0,0,0.104) 12.4%, rgba(0,0,0,0.216) 18.6%, rgba(0,0,0,0.352) 24.8%, rgba(0,0,0,0.500) 31.0%, rgba(0,0,0,0.648) 37.2%, rgba(0,0,0,0.784) 43.4%, rgba(0,0,0,0.896) 49.6%, rgba(0,0,0,0.972) 55.8%, rgba(0,0,0,1.000) 62.0%); mask-image: linear-gradient(90deg, rgba(0,0,0,0.000) 0.0%, rgba(0,0,0,0.028) 6.2%, rgba(0,0,0,0.104) 12.4%, rgba(0,0,0,0.216) 18.6%, rgba(0,0,0,0.352) 24.8%, rgba(0,0,0,0.500) 31.0%, rgba(0,0,0,0.648) 37.2%, rgba(0,0,0,0.784) 43.4%, rgba(0,0,0,0.896) 49.6%, rgba(0,0,0,0.972) 55.8%, rgba(0,0,0,1.000) 62.0%); }
.hero-media img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(32,42,77,1.000) 0.0%, rgba(32,42,77,0.813) 6.0%, rgba(32,42,77,0.717) 12.0%, rgba(32,42,77,0.581) 18.0%, rgba(32,42,77,0.425) 24.0%, rgba(32,42,77,0.269) 30.0%, rgba(32,42,77,0.133) 36.0%, rgba(32,42,77,0.037) 42.0%, rgba(32,42,77,0.000) 48.0%), linear-gradient(180deg, rgba(32,42,77,0.500) 0.0%, rgba(32,42,77,0.479) 3.8%, rgba(32,42,77,0.422) 7.5%, rgba(32,42,77,0.342) 11.2%, rgba(32,42,77,0.250) 15.0%, rgba(32,42,77,0.158) 18.8%, rgba(32,42,77,0.078) 22.5%, rgba(32,42,77,0.021) 26.2%, rgba(32,42,77,0.000) 30.0%), rgba(32, 42, 77, .1); }
/* Fotografias das páginas interiores */
.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.hero-photo .frame { aspect-ratio: 4 / 5; background: rgba(0, 0, 0, .12); box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .55); }

/* Próximos eventos (desaparecem quando não há nenhum) */
.events { margin-top: clamp(56px, 7vw, 88px); }
.events-title { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -0.015em; color: var(--paper); }
.events-title::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(142, 185, 254, .6); animation: ev-pulse 2.4s var(--ease-out) infinite; }
@keyframes ev-pulse { 70% { box-shadow: 0 0 0 10px rgba(142, 185, 254, 0); } 100% { box-shadow: 0 0 0 0 rgba(142, 185, 254, 0); } }
.events-title::after { content: ''; flex: 1; height: 1px; background: rgba(245, 242, 236, .28); }
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; transition: opacity .35s var(--ease-out); }
html.js .events:not(.is-ready) .ev-list { opacity: 0; }
.ev {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-content: start;
  padding: 20px 22px 22px; border-radius: var(--r-lg);
  color: var(--paper); text-decoration: none;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: background-color .25s var(--ease-out), transform 160ms var(--ease-out);
}
a.ev:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { a.ev:hover { background: rgba(255, 255, 255, .12); } a.ev:hover .ev-go .arr { transform: translateX(4px); } }
.ev .seal { grid-row: span 3; margin-top: 2px; }
.ev.svc-inst .seal { background: var(--paper); color: var(--navy); }
.ev-kicker { font-size: .875rem; font-weight: 600; color: rgba(245, 242, 236, .72); }
.ev-title { font-size: 1.125rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; }
.ev-meta { display: flex; align-items: baseline; gap: 8px; font-size: .9375rem; line-height: 1.5; color: rgba(245, 242, 236, .88); }
.ev-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none; transform: translateY(-1px); }
.ev[data-state="abertas"] .ev-meta .dot { background: #4CC38A; }
.ev[data-state="espera"] .ev-meta .dot, .ev[data-state="esgotadas"] .ev-meta .dot { background: #E5B04A; }
.ev-go { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .9375rem; font-weight: 650; }
.ev-go .arr { width: 1em; height: 1em; transition: transform .2s var(--ease-out); }

/* ---------- Topo das páginas interiores ---------- */
.page-hero { position: relative; padding-block: calc(136px + env(safe-area-inset-top, 0px)) clamp(56px, 7vw, 96px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; font-weight: 550; margin-bottom: 28px; color: var(--muted); }
.field .crumbs { color: var(--c-on); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero .seal { margin-bottom: 24px; }
.page-hero.field-svc .seal { background: rgba(255, 255, 255, .16); color: var(--c-on); }
.svc-prepare .page-hero.field-svc .seal { background: rgba(255, 255, 255, .45); }
.page-hero h1 { margin-bottom: 20px; max-width: 16ch; }
.page-hero .lead { max-width: 44ch; margin-bottom: 0; }
.page-hero .actions { margin-top: 32px; }
.page-hero .hero-photo .frame { aspect-ratio: 4 / 5; }
.page-hero.paper, .page-hero.sand { padding-bottom: clamp(36px, 5vw, 64px); }

/* ---------- Cartões dos serviços ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.svc-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(26px, 2.8vw, 38px); border-radius: var(--r-xl);
  background: var(--c-tint); color: var(--ink); text-decoration: none;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.svc-card .seal { margin-bottom: 28px; }
.svc-card .label { margin-bottom: 8px; }
.svc-card h3, .svc-card .h3 { margin-bottom: 12px; }
.svc-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; margin-bottom: 24px; }
.svc-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--c-ink); }
.svc-go .arr { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease-out); }
a.svc-card:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  a.svc-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(32, 42, 77, .45); }
  a.svc-card:hover .svc-go .arr { transform: translateX(4px); }
}

/* Ajuda por baixo dos cartões */
.svc-help { margin: 28px 0 0; color: var(--muted); }
.svc-help a { color: var(--ink); font-weight: 600; }

/* ---------- Frase ---------- */
.statement { text-align: center; }
.statement-pre { margin: 0 auto 18px; max-width: 46ch; font-size: clamp(1rem, 1.2vw, 1.125rem); font-weight: 600; color: var(--c-on-soft); }
.statement-quote { margin: 0 auto; max-width: 20ch; font-family: var(--serif); font-size: clamp(2.375rem, 5vw, 4rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.statement-post { margin: 26px auto 0; max-width: 42ch; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--c-on-soft); }

/* ---------- Quem está por detrás ---------- */
.about { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.about-photo { margin: 0; }
.about-photo .frame { aspect-ratio: 4 / 5; max-width: 440px; }
.about-quote { margin: 20px 0 28px; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; font-weight: 500; letter-spacing: -0.008em; color: var(--ink); max-width: 44ch; }
.creds { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); max-width: 52ch; }
.creds li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.creds li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transform: translateY(-1px); }

/* ---------- Instituições e investigação ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.duo-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3.6vw, 52px); border-radius: var(--r-xl); background: var(--c-field); color: var(--c-on); }
.duo-card .seal { background: rgba(255, 255, 255, .14); color: var(--c-on); margin-bottom: 28px; }
.duo-card h2 { margin-bottom: 12px; }
.duo-card p { color: var(--c-on-soft); margin-bottom: 28px; max-width: 46ch; }
.duo-card .actions { margin-top: auto; }

/* ---------- Instagram ---------- */
.ig { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 21vw, 270px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), env(safe-area-inset-left, 0px)) 18px; scrollbar-width: thin; scroll-padding-inline: var(--gutter); }
.ig a { display: block; scroll-snap-align: start; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 9 / 16; transition: transform .35s var(--ease-out); }
.ig img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .ig a:hover { transform: translateY(-4px); } }
@media (min-width: 1240px) { .ig { padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }

/* ---------- Faixa de contacto ---------- */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band > div:first-child { max-width: 40rem; }
.band .lead { margin: 12px 0 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact .lead { max-width: 34ch; }
.alt-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.alt-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.alt-list .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-tint); color: var(--navy); }
.alt-list .ico svg { width: 18px; height: 18px; }
.alt-list small { display: block; font-size: .875rem; color: var(--muted); }
.alt-list .sel { user-select: all; overflow-wrap: anywhere; }
.map-link { margin: 28px 0 0; }

/* ---------- Painéis ---------- */
.panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); }
.panel h2 { font-size: clamp(1.375rem, 2vw, 1.625rem); margin-bottom: 14px; }
.panel h2.h4 { font-size: 1.125rem; margin-bottom: 10px; }
.panel > :last-child { margin-bottom: 0; }
/* Pormenores da edição (página do PREP) */
.panel.details { margin-top: clamp(24px, 3vw, 40px); }
.details > h3 { margin-bottom: 14px; }
.details-sessions { margin-top: 20px; }
.details-sessions h4 { margin-bottom: 8px; font-size: 1rem; }
.details .actions { margin-top: 24px; }
/* Preço com botão (PREPARE/ENRICH) */
.panel.price { margin-top: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.price .h3 { margin: 0 0 6px; }
.price .muted { margin: 0; max-width: 54ch; }
.after-steps { margin-top: clamp(28px, 3.4vw, 44px); }
.facts-note { margin: 18px 0 0; }
.actions.mt { margin-top: 20px; }

/* ---------- Formulários ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.form .full { grid-column: 1 / -1; }
.field-row { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-row label, .legend { font-size: .9375rem; font-weight: 600; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.legend { padding: 0; margin-bottom: 8px; }
.opt { font-weight: 450; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--navy);
  padding: 13px 15px;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 14px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.textarea { min-height: 132px; resize: vertical; }
.textarea-sm { min-height: 96px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23202A4D' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26, 129, 144, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--coral-deep); }
.err { font-size: .875rem; font-weight: 600; color: var(--coral-deep); }
.err:empty { display: none; }
.hint { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border-radius: 999px; font-size: .9375rem; font-weight: 600; cursor: pointer; background: var(--white); border: 1.5px solid var(--line-strong); transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out); }
.chips input:checked + label { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.chips input:focus-visible + label { outline: 3px solid var(--sky-ink); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9375rem; line-height: 1.5; font-weight: 450; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.note-box { padding: 14px 16px; border-radius: 14px; font-size: .9375rem; line-height: 1.55; background: var(--navy-tint); color: var(--ink-soft); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.form-msg { font-size: .9375rem; font-weight: 600; margin: 0; }
.form-msg:empty { display: none; }
.form-done { grid-column: 1 / -1; padding: 8px 0; }
.form-done h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-done p { color: var(--ink-soft); }
.form-done .actions { margin-top: 18px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Texto corrido ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; letter-spacing: -0.014em; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose .lead { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--c-ink); font-weight: 600; }
.cols-2 { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.cols-2 > .sticky { position: sticky; top: 112px; }
.cols-2 .sec-head { margin-bottom: 0; }
.source { max-width: 72ch; font-size: .875rem; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 24px; }
.source a { color: inherit; }

/* Factos curtos (para quem, formato, valor) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 28px; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .8125rem; font-weight: 650; letter-spacing: .02em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.45; }

/* Grelhas de cartões simples */
.cards-2, .cards-3, .cards-4 { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.card h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; margin-bottom: 8px; }
.card p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); }
.card .ico { width: 40px; height: 40px; margin-bottom: 16px; color: var(--c-ink); }
.card .mark { width: 56px; height: 52px; margin-bottom: 18px; }
.card .mark path { fill: none; stroke-width: 80; }
.card-tint { background: var(--c-tint); border-color: transparent; }
.tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .8125rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--c-tint); color: var(--c-ink); }

/* Passos numerados */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); counter-reset: step; }
.steps li { counter-increment: step; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: .9375rem; font-weight: 700; background: var(--c-field); color: var(--c-on); margin-bottom: 18px; }
.steps h3 { font-size: 1.1875rem; line-height: 1.3; margin-bottom: 8px; letter-spacing: -0.012em; font-weight: 650; }
.steps p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); }

/* Perguntas e respostas (estudo) */
.qa { margin: 0; }
.qa dt { font-weight: 650; font-size: 1.0625rem; margin-top: 22px; }
.qa dt:first-child { margin-top: 0; }
.qa dd { margin: 6px 0 0; color: var(--ink-soft); }

/* Lista com linhas (formação, sessões) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows li > :first-child { font-weight: 600; }
.rows li > :last-child { color: var(--muted); text-align: right; font-size: .9375rem; }

/* Perguntas frequentes */
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); font-weight: 650; letter-spacing: -0.01em; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 20px; height: 20px; flex: none; color: var(--c-ink); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: currentColor; translate: -50% -50%; transition: transform .25s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 0 22px; max-width: var(--measure); color: var(--ink-soft); }
.faq-a a { color: var(--c-ink); font-weight: 600; }

/* Sessões da edição */
.sessions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.sessions li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.sessions li b { white-space: nowrap; }
.sessions li span { font-weight: 450; color: var(--muted); text-align: right; }

/* Tabela comparativa */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 1rem; line-height: 1.55; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 22px 16px 0; border-bottom: 1px solid var(--line); }
.compare thead th { padding-bottom: 18px; border-bottom: 2px solid var(--c); }
.compare thead .th { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.012em; line-height: 1.25; color: var(--c-ink); }
.compare thead .svc-prepare .th { color: var(--navy); }
.compare tbody th { width: 15%; font-size: .8125rem; font-weight: 650; letter-spacing: .02em; color: var(--muted); }
.compare td { color: var(--ink-soft); }

/* Caixa da edição (PREP) */
.edition { position: relative; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-xl); background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -38px rgba(16, 24, 48, .5); }
.paper .edition, .sand .edition { border: 1px solid var(--line); box-shadow: none; }
.edition-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.edition-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.012em; }
.edition-period { font-size: .9375rem; color: var(--muted); }
.edition-state { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.45; margin: 0 0 16px; }
.edition-state .dot { width: 10px; height: 10px; margin-top: .42em; border-radius: 50%; background: var(--sky-ink); flex: none; }
.edition[data-state="abertas"] .edition-state .dot { background: #2E9E6B; box-shadow: 0 0 0 4px rgba(46, 158, 107, .18); }
.edition[data-state="espera"] .edition-state .dot { background: #D99A2B; }
.edition[data-state="esgotadas"] .edition-state .dot, .edition[data-state="fechadas"] .edition-state .dot { background: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 16px; }
.countdown div { padding: 12px 6px 10px; border-radius: 14px; background: var(--c-tint); text-align: center; }
.countdown b { display: block; font-size: clamp(1.5rem, 2.4vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.edition .note { font-size: .9375rem; line-height: 1.55; margin: 0 0 14px; color: var(--ink-soft); }
.notify { display: grid; gap: 10px; }
.notify-row { display: flex; gap: 8px; }
.notify-row input { flex: 1; min-width: 0; }
.notify .check { font-size: .875rem; }
.edition [data-ed="go"] { width: 100%; }

/* Grupos de perguntas (página de perguntas frequentes) */
.faq-group { display: flex; align-items: center; gap: 14px; }

/* ---------- Páginas de inscrição, estado e pagamento ---------- */
.flow-section { padding-top: 0; }
.aside-note { margin: 14px 0 0; }
.flow { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.flow-aside { position: sticky; top: 108px; display: grid; gap: 14px; }
.flow.is-error { grid-template-columns: minmax(0, 760px); }
.flow-main { display: grid; gap: 16px; min-width: 0; }
.form-section { grid-column: 1 / -1; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--line); }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h3 { font-size: 1.125rem; letter-spacing: -0.012em; margin-bottom: 4px; }
.form-section p { margin: 0; font-size: .9375rem; color: var(--muted); }
.locked { position: relative; }
.locked .form { opacity: .5; pointer-events: none; filter: grayscale(.4); }
.lock-msg { margin-bottom: 16px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 650; background: var(--sand-soft); }
.status-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status-badge[data-s="pendente"] .dot, .status-badge[data-s="espera"] .dot { background: #D99A2B; }
.status-badge[data-s="aprovada"] .dot { background: var(--coral); }
.status-badge[data-s="confirmada"] .dot { background: #2E9E6B; }
.status-badge[data-s="recusada"] .dot, .status-badge[data-s="cancelada"] .dot, .status-badge[data-s="expirada"] .dot { background: var(--muted); }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 20px 30px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.timeline li::after { content: ''; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; font-weight: 600; }
.timeline span { font-size: .875rem; color: var(--muted); }
.pay-methods { display: grid; gap: 14px; }
.pay-method { padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); }
.pay-method h2 { font-size: 1.125rem; margin-bottom: 8px; }
.pay-method dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 0; }
.pay-method dt { color: var(--muted); font-size: .9375rem; }
.pay-method dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-method > p { color: var(--ink-soft); font-size: 1rem; }
.pay-online { border: 1.5px solid var(--navy); }
.copy { font: inherit; font-size: .8125rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; cursor: pointer; color: var(--navy); }
.copy:active { transform: scale(.96); }
.logos-pay { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.logos-pay span { font-size: .8125rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--paper); }
.summary-list { display: grid; margin: 14px 0 0; }
.summary-list.flush { margin-top: 0; }
.summary-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-list dt { font-size: .8125rem; font-weight: 650; letter-spacing: .02em; color: var(--muted); }
.summary-list dd { margin: 2px 0 0; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.summary-list dd.big { font-size: clamp(1.875rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.place { margin: 0 0 16px; color: var(--ink-soft); }
.place strong { color: var(--ink); }
.cancel-confirm { display: grid; gap: 14px; margin-top: 4px; }
.page-inscricao .edition [data-ed="go"] { display: none !important; }
.steps-mini { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.steps-mini li { margin-bottom: 4px; }

/* Esqueleto enquanto a informação carrega */
.skel { display: block; max-width: 100%; height: .9em; margin: .4em 0; border-radius: 6px; background: linear-gradient(90deg, rgba(32, 42, 77, .07) 25%, rgba(32, 42, 77, .14) 40%, rgba(32, 42, 77, .07) 60%); background-size: 400% 100%; animation: skel 1.4s ease infinite; }
.lead .skel, dd .skel { display: inline-block; vertical-align: middle; margin: 0; }
.skel-title { height: 1.5em; width: 62%; margin-bottom: .8em; }
@keyframes skel { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* Regresso do pagamento online */
.done-panel { max-width: 760px; }
.done-wait { display: flex; align-items: center; gap: 16px; }
.done-wait p { margin: 0; }
.spinner { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal); animation: spin .8s linear infinite; }

/* Página não encontrada */
.nf { min-height: min(100svh, 820px); display: flex; align-items: center; }
.nf-code { margin: 0 0 12px; font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -0.05em; color: var(--sky); }
.nf-links { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* ---------- Rodapé ---------- */
.foot { background: var(--navy); color: var(--paper); padding-block: clamp(64px, 8vw, 104px) 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.foot-logo { color: var(--paper); display: inline-block; }
.foot-logo svg { height: 46px; width: auto; }
.foot-tag { margin: 18px 0 0; max-width: 34ch; color: rgba(245, 242, 236, .76); font-size: .9375rem; line-height: 1.6; }
.foot h2 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; margin-bottom: 14px; color: rgba(245, 242, 236, .6); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot li { font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.foot a { text-decoration: none; color: var(--paper); }
.foot a:hover { text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid rgba(245, 242, 236, .14); font-size: .8125rem; color: rgba(245, 242, 236, .7); }
.foot-legal p { margin: 0; }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-legal a { color: rgba(245, 242, 236, .8); }
.dev { display: inline-flex; align-items: center; gap: 10px; color: rgba(245, 242, 236, .7); text-decoration: none; }
.dev img { height: 22px; width: auto; }

/* ---------- Imagens que se revelam ao descer (sempre visíveis, apenas recortadas) ---------- */
.reveal-img { clip-path: inset(6% 6% 6% 6% round var(--r-xl)); transition: clip-path 1.1s var(--ease-out); }
.reveal-img img { transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.reveal-img.is-in img { transform: none; }

/* ---------- Ecrãs médios e pequenos ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav .nav-cta { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(132px + env(safe-area-inset-top, 0px)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "cta" "photo"; row-gap: 28px; }
  .hero-grid > .hero-media { grid-area: photo; position: relative; z-index: 0; width: auto; height: min(86vw, 440px); margin: 8px 0 0; border-radius: var(--r-xl); -webkit-mask-image: none; mask-image: none; box-shadow: 0 18px 40px -18px rgba(8, 12, 30, .55); }
  .hero-media::after { background: none; }
  .hero-photo { justify-self: start; max-width: min(78%, 400px); }
  .page-hero-grid, .about, .contact, .cols-2, .flow, .svc-grid, .cards-2, .cards-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .page-hero .hero-photo { max-width: min(78%, 380px); }
  .page-hero .hero-photo .frame { aspect-ratio: 4 / 4.4; }
  .cols-2 > .sticky, .flow-aside { position: static; }
  .cols-2 .sec-head { margin-bottom: 8px; }
  .about-photo .frame { max-width: 360px; }
  /* Inscrição no telemóvel: estado da edição, depois o formulário, e só no fim a explicação */
  .page-inscricao .flow-aside { display: contents; }
  .page-inscricao .flow-aside .edition { order: 0; }
  .page-inscricao #form-wrap { order: 1; }
  .page-inscricao .flow-aside .panel { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { --nav-pad: 16px; }
  .nav-logo svg { height: 28px; }
  .page-home .nav:not(.is-scrolled) .nav-logo svg { transform: translate(var(--logo-x, 0px), 20px) scale(1.7); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .cards-4 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .countdown b { font-size: 1.375rem; }
  .sessions li, .rows li { flex-direction: column; gap: 0; }
  .sessions li span, .rows li > :last-child { text-align: left; }
  .notify-row { flex-direction: column; }
  .ig { grid-auto-columns: 66vw; }
  .band .btn { width: 100%; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .loader .loader-word { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
  .reveal-img img { transform: none; }
  .rings-art { transform: none !important; }
}

/* =====================================================================
   Textura, luz e recortes da marca (o que tira o site do «liso»)
   ===================================================================== */
:root {
  --grain-on-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-on-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .3 0 0 0 .9 -.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Grão: por cima da cor de fundo, por baixo do conteúdo */
.hero, .field, .foot, .paper, .sand, .white, .tint, .duo-card, .svc-card { position: relative; isolation: isolate; }
.loader { isolation: isolate; }
.section, .section-tight, .page-hero, .hero, .foot { overflow: clip; }
.hero::after, .field::after, .foot::after, .duo-card::after, .loader::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain-on-dark); background-size: 240px; opacity: .16; }
.paper::after, .sand::after, .white::after, .tint::after, .svc-card::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain-on-light); background-size: 240px; opacity: .2; }
.svc-card::after { border-radius: inherit; }
.duo-card { overflow: hidden; }
.tint { background: var(--c-tint); color: var(--ink); }

/* Luz: manchas de cor desfocadas que se mexem devagar */
.glow::before { content: ''; position: absolute; inset: -25% -15%; z-index: -2; pointer-events: none; background:
  radial-gradient(34% 38% at var(--g1x, 18%) var(--g1y, 28%), var(--g1, rgba(142, 185, 254, .55)), transparent 70%),
  radial-gradient(30% 34% at var(--g2x, 82%) var(--g2y, 72%), var(--g2, rgba(201, 80, 98, .35)), transparent 70%),
  radial-gradient(26% 30% at var(--g3x, 60%) var(--g3y, 18%), var(--g3, rgba(26, 129, 144, .32)), transparent 70%);
  filter: blur(36px); animation: drift 13s var(--ease-in-out) infinite alternate; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(-8%, 6%, 0) rotate(-12deg) scale(1.14); }
  100% { transform: translate3d(10%, -8%, 0) rotate(16deg) scale(1.2); }
}
/* Manchas criadas pelo site.js: grandes, desfocadas, cada uma com o seu percurso */
.blob-field { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; aspect-ratio: 1; min-width: 360px; max-width: 1440px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--c), transparent); filter: blur(28px); will-change: transform; }
/* Com o filtro "goo": manchas de núcleo mais cheio, que se fundem; o desfoque final devolve a suavidade */
/* No topo, as manchas ficam em segundo plano: a fotografia e o título é que mandam */
.hero > .blob-field { opacity: .5; }
.blob-field.is-goo { inset: auto; left: -10%; top: -10%; width: 60%; height: 60%; transform: scale(2); transform-origin: 0 0; filter: url(#pao-goo) blur(17px); }
.blob-field.is-goo .blob { min-width: 180px; max-width: 720px; }
.blob-field.is-goo .blob { filter: none; background: radial-gradient(closest-side, var(--c) 0%, var(--c) 45%, transparent 100%); }
.has-blobs::before { content: none !important; }

.field.glow, .hero.glow { --g1: rgba(26, 129, 144, .55); --g2: rgba(201, 80, 98, .45); --g3: rgba(142, 185, 254, .35); }

/* Recortes: pedaços grossos dos anéis a entrar pelas margens */
.arc { position: absolute; z-index: -1; width: var(--arc-w, clamp(300px, 38vw, 600px)); pointer-events: none; overflow: visible; }
.arc path { fill: none; stroke-width: var(--arc-s, 130); stroke-linecap: butt; }
.arc-tr { top: -24%; right: -16%; }
.arc-br { bottom: -30%; right: -14%; }
.arc-bl { bottom: -32%; left: -18%; }
.arc-tl { top: -26%; left: -16%; }
.arc-sm { --arc-w: clamp(220px, 26vw, 380px); }

/* Vidro: cartões translúcidos sobre a luz */
.glow .svc-card { background: color-mix(in srgb, var(--c-tint) 74%, transparent); border: 1px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.glass-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-radius: var(--r-lg); }

/* Números grandes */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; border-radius: var(--r-xl); overflow: hidden; background: rgba(255, 255, 255, .18); }
.stats > div { padding: clamp(22px, 2.6vw, 32px); background: var(--c-field); color: var(--c-on); }
.stats b { display: block; font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 750; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 10px; font-size: .9375rem; line-height: 1.45; color: var(--c-on-soft); }
.stats-wrap { position: relative; z-index: 2; }
/* Em ecrã estreito, duas colunas; um número ímpar de blocos fecha com o último a toda a largura */
@media (max-width: 599px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Gráfico de barras (anima ao entrar no ecrã) */
.chart { margin: 28px 0 0; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.chart figcaption { font-weight: 650; margin-bottom: 18px; }
.bar-row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 4.2rem; align-items: center; gap: 14px; margin-bottom: 12px; font-size: .9375rem; }
.bar { height: 30px; border-radius: 8px; background: var(--paper); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) / 7 * 100%); border-radius: 8px; background: var(--c-field); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.bar-row.is-muted .bar i { background: var(--muted); }
.bar-row b { font-size: 1.25rem; font-variant-numeric: tabular-nums; text-align: right; }
[data-reveal].is-in .bar i { transform: none; }
.bar-row:nth-child(3) .bar i { transition-delay: .15s; }
.chart .source { margin-top: 14px; }

/* Carrossel controlado por quem lê */
.carousel { position: relative; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }
.car-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.car-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background-color .2s var(--ease-out), transform 160ms var(--ease-out); }
.car-nav button:active { transform: scale(.95); }
.car-nav button:disabled { opacity: .3; cursor: default; }
.car-nav svg { width: 20px; height: 20px; }
.topic-card { display: flex; flex-direction: column; min-height: 100%; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); }
.topic-card .num { font-size: 3rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--c-ink); opacity: .9; margin-bottom: 20px; }
.topic-card h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.topic-card p { color: var(--ink-soft); font-size: 1rem; }
.topic-card .tags { margin-top: auto; padding-top: 12px; }

/* Separadores (sinais de perigo) */
.tabs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.tab-list { display: grid; gap: 10px; align-content: start; }
.tab-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-weight: 650; font-size: 1.0625rem; text-align: left; cursor: pointer; transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform 160ms var(--ease-out); }
.tab-list button:active { transform: scale(.985); }
.tab-list button[aria-selected="true"] { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.tab-list button .ico { width: 28px; height: 28px; flex: none; }
.tab-list button .k { margin-left: auto; font-size: .8125rem; font-weight: 600; opacity: .6; }
.tab-panel { padding: clamp(24px, 3vw, 40px); }
.tab-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.tab-panel p { font-size: 1.0625rem; color: var(--c-on-soft); }
.tab-panel .tip { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) { .tab-list button:not([aria-selected="true"]):hover { background: rgba(255, 255, 255, .12); } }

/* Linha do tempo dos passos */
.steps { position: relative; }
.steps li { position: relative; }
@media (min-width: 901px) {
  .steps::before { content: ''; position: absolute; left: 30px; right: 30px; top: calc(clamp(22px, 2.4vw, 30px) + 18px); height: 2px; background: repeating-linear-gradient(90deg, var(--c) 0 8px, transparent 8px 14px); opacity: .5; }
  .steps li { background: transparent; border: 0; padding-inline: 0; }
  .steps li::before { position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--section-bg, var(--paper)); }
}
.sand .steps li::before { --section-bg: var(--sand-soft); }
.tint .steps li::before { --section-bg: var(--c-tint); }

/* Áreas do relatório (PREPARE/ENRICH) */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.area { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); font-weight: 600; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.area i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-ink); flex: none; }
@media (hover: hover) and (pointer: fine) { .area:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -24px rgba(32, 42, 77, .5); } }

/* Locais das consultas */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-bottom: 18px; }
.place-card { padding: 22px 24px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.place-card small { display: block; font-size: .8125rem; font-weight: 650; letter-spacing: .02em; color: var(--c-ink); margin-bottom: 6px; }
.place-card b { display: block; font-size: 1.125rem; margin-bottom: 4px; }
.place-card p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }

/* Situações (acompanhamento) */
.moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: m; }
.moment { counter-increment: m; position: relative; padding: 22px 24px 22px 70px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); font-weight: 600; line-height: 1.45; }
.moment::before { content: counter(m, decimal-leading-zero); position: absolute; left: 22px; top: 20px; font-size: 1.125rem; font-weight: 750; color: var(--c-ink); }

/* Mini-questionário (por onde começar) */
.quiz { margin-top: clamp(28px, 4vw, 48px); padding: clamp(24px, 3.2vw, 44px); border-radius: var(--r-xl); background: var(--navy); color: var(--paper); position: relative; isolation: isolate; overflow: hidden; }
.quiz::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain-on-dark); background-size: 240px; opacity: .16; pointer-events: none; }
.quiz-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 22px; }
.quiz-head h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.quiz-head span { font-size: .875rem; font-weight: 600; color: rgba(245, 242, 236, .7); font-variant-numeric: tabular-nums; }
.quiz-q { border: 0; padding: 0; margin: 0; }
.quiz-q legend { font-size: 1.125rem; font-weight: 650; margin-bottom: 14px; padding: 0; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.quiz-opts button { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-weight: 550; text-align: left; line-height: 1.4; cursor: pointer; transition: background-color .2s var(--ease-out), transform 160ms var(--ease-out); }
.quiz-opts button:active { transform: scale(.98); }
.quiz-opts button small { display: block; margin-top: 6px; font-size: .8125rem; font-weight: 450; color: rgba(245, 242, 236, .72); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .quiz-opts button:hover { background: rgba(255, 255, 255, .14); } }
.quiz-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); margin-bottom: 26px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--sky); border-radius: inherit; transition: width .4s var(--ease-out); }
.quiz-result { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.quiz-result .seal { --size: 64px; }
.quiz-result div { flex: 1 1 280px; }
.quiz-result h4 { font-size: 1.375rem; margin-bottom: 6px; }
.quiz-result p { margin: 0; color: rgba(245, 242, 236, .84); }
.quiz-again { background: none; border: 0; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px 0; }

/* Vídeos do Instagram */
.ig a { position: relative; }
.ig .play { position: absolute; left: 14px; bottom: 14px; transition: transform .25s var(--ease-out), background-color .25s ease; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.ig .play svg { width: 18px; height: 18px; margin-left: 2px; }

@media (max-width: 900px) {
  .tabs, .moments { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 7rem minmax(0, 1fr) 3.6rem; }
  .stats-wrap { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .glow::before { animation: none; }
  .bar i { transform: none; }
  .hero-media img { transform: none !important; }
}

.duo-card .arc { --arc-w: clamp(260px, 30vw, 420px); top: auto; bottom: -55%; right: -28%; left: auto; }
.duo-card .arc path { stroke-width: 110; }
.statement .arc { --arc-w: clamp(320px, 36vw, 560px); }
.statement .arc-tr { top: -45%; right: -12%; }
.statement .arc-bl { bottom: -50%; left: -12%; }

.tab-panel .label { color: var(--c-on-soft); margin-bottom: 10px; }
.svc-prepare .tab-panel .label { color: var(--ink-soft); }
.side-photo { margin: 28px 0 0; max-width: 400px; }
.side-photo .frame { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .side-photo { max-width: 360px; } }

.stats .falta { font-size: .9rem; letter-spacing: 0; vertical-align: middle; font-weight: 600; }
@media (max-width: 640px) {
  .statement .arc { --arc-w: 230px; }
  .statement .arc-tr { top: -22%; right: -34%; }
  .statement .arc-bl { bottom: -22%; left: -34%; }
}

@media (hover: hover) and (pointer: fine) { .ig a:hover .play { transform: scale(1.08); background: rgba(255,255,255,.34); } }

/* Modo de teste das inscrições */
.test-banner { position: fixed; z-index: 90; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; background: #2b2410; color: #fbefc8; font-size: .875rem; line-height: 1.4; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.test-banner .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #f2c14e; box-shadow: 0 0 0 4px rgba(242,193,78,.22); }
.test-banner a { flex: none; margin-left: auto; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn.is-test { box-shadow: 0 0 0 2px #f2c14e; }

/* Rodapé com mais ar */
.foot { padding-block: clamp(80px, 10vw, 136px) 40px; }
.foot-grid { gap: 56px clamp(32px, 4vw, 64px); }
.foot-tag { margin-top: 24px; max-width: 32ch; }
.foot h2 { margin-bottom: 18px; }
.foot ul { gap: 12px; }
.foot li { line-height: 1.45; }
.foot .foot-h-next { margin-top: 32px; }
.foot-places li { color: rgba(245, 242, 236, .86); }
.foot-legal { margin-top: clamp(64px, 8vw, 104px); padding-top: 28px; gap: 20px 40px; align-items: flex-start; }
.foot-legal-a { display: grid; gap: 6px; }
.foot-legal nav { gap: 8px 24px; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } .foot-legal { flex-direction: column; } }
/* Fonte legível em fundos de cor */
.field .source, .field-svc .source { color: var(--c-on-soft, rgba(245, 242, 236, .82)); border-top-color: rgba(255, 255, 255, .22); }
.field .source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Fotografias com paralaxe dentro de molduras: margem para o movimento */
.frame { overflow: hidden; }
.frame img[data-parallax] { position: relative; top: -18%; height: 136%; }

/* Mosaico de fotografias (página inicial) */
.mosaic-sec { padding-block: clamp(40px, 6vw, 88px); }
.mosaic { display: grid; grid-template-columns: 1fr 1.45fr 0.95fr; gap: clamp(14px, 2vw, 28px); align-items: start; }
.mosaic figure { margin: 0; }
.mosaic .frame { box-shadow: 0 30px 60px -40px rgba(32, 42, 77, .45); }
.mosaic .m1 { margin-top: clamp(40px, 8vw, 120px); }
.mosaic .m1 .frame { aspect-ratio: 4 / 5; }
.mosaic .m2 .frame { aspect-ratio: 3 / 2.2; }
.mosaic .m3 { margin-top: clamp(80px, 12vw, 180px); }
.mosaic .m3 .frame { aspect-ratio: 4 / 5.2; }
.mosaic figcaption, .wide-photo figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .m2 { grid-column: 1 / -1; order: -1; }
  .mosaic .m1 { margin-top: 0; }
  .mosaic .m3 { margin-top: 40px; }
}
/* Galeria do PREP */
.gallery .car-track { grid-auto-columns: min(82vw, 460px); }
.photo-card { margin: 0; }
.photo-card .frame { aspect-ratio: 3 / 2; }
.photo-card img { transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .photo-card:hover img { transform: scale(1.04); } }
/* Fotografia larga (instituições) */
.wide-photo { margin: clamp(40px, 5vw, 64px) 0 0; }
.wide-photo .frame { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .wide-photo .frame { aspect-ratio: 4 / 3; } }
/* Cartões de programa com fotografia */
.svc-card-photo { padding-top: 0; overflow: hidden; }
.svc-card-photo .svc-photo { align-self: stretch; margin: 0 calc(clamp(26px, 2.8vw, 38px) * -1); aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card-photo .svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .svc-card-photo:hover .svc-photo img { transform: scale(1.04); } }
.svc-card-photo .seal { margin-top: -30px; position: relative; box-shadow: 0 0 0 5px var(--c-tint); }
/* Instituições: a Matilde fica no enquadramento */
.page-instituicoes .hero-photo img { object-position: 22% 50%; }

@media (min-width: 1101px) { .foot-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.25fr); } }
.foot li { overflow-wrap: normal; word-break: normal; }
.foot li span[data-k="global.contacto.email"] { white-space: nowrap; }

/* Notas em destaque (doutoramento, violência) */
.callout { margin-top: clamp(28px, 4vw, 44px); padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--white); max-width: 820px; }
.callout h2, .callout h3 { margin: 0 0 8px; }
.callout p { margin: 0; max-width: 68ch; color: var(--ink-soft, inherit); }
.callout-inv { border-color: color-mix(in srgb, var(--wine) 28%, transparent); background: color-mix(in srgb, var(--wine) 4%, var(--white)); }
.callout-inv h2, .callout-inv h3 { color: var(--wine); }
.callout-warn { border-color: color-mix(in srgb, var(--coral) 45%, transparent); background: color-mix(in srgb, var(--coral) 6%, var(--paper)); }
.callout-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.callout-list { grid-template-columns: max-content minmax(0, 1fr); column-gap: 20px; }
.callout-list li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; row-gap: 4px; align-items: baseline; }
.callout-list .tel { font-size: 1.125rem; font-weight: 700; color: inherit; text-decoration: none; }
.callout-list .tel:hover { text-decoration: underline; text-underline-offset: 3px; }
.callout-list b { font-size: 1.125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 480px) { .callout-list { grid-template-columns: 1fr; } .callout-list li { grid-template-columns: 1fr; } }

/* Menu «Respostas»: o nome é um link para a página, a seta abre o submenu */
.nav-links > li.has-sub { display: flex; align-items: center; }
.nav-links > li > a.sub-main { padding-right: 6px; }
.nav-links > li > button.sub-toggle { padding-left: 6px; padding-right: 10px; }

/* Comunidade */
.soon { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: inherit; font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.on-light .soon, .paper .soon { background: var(--sky-tint, #E8F0FF); color: var(--ink); }
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.offer-item { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.offer-item + .offer-item { padding-left: 28px; border-left: 1px solid var(--line); }
.offer-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.offer-item p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } .offer-item, .offer-item + .offer-item { padding: 24px 0; border-left: 0; } }
.topics { margin-top: clamp(40px, 5vw, 64px); }
.topic-list { list-style: none; margin: 16px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-list li { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-weight: 550; }
/* PREPARE: fotografia em quadrado para caberem os dois */
.page-prepare .hero-photo .frame { aspect-ratio: 1 / 1; }
.page-prepare .hero-photo img { object-position: 54% 60%; }

/* Formulário de inscrição: opções em lista, datas, passos */
.options { display: grid; gap: 8px; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label { position: relative; display: block; padding: 12px 16px 12px 46px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--white); font-size: .9375rem; font-weight: 550; line-height: 1.4; cursor: pointer; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out); }
.options label::before { content: ''; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.options input:checked + label { border-color: var(--navy); background: rgba(32, 42, 77, .04); }
.options input:checked + label::before { border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 9px var(--navy); }
.options input:focus-visible + label { outline: 3px solid var(--sky-ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .options label:hover, .chips label:hover { border-color: var(--navy); } }
.fieldset .hint { margin: -4px 0 12px; font-size: .875rem; color: var(--muted); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days label { display: grid; justify-items: center; gap: 0; padding: 10px 6px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--white); cursor: pointer; line-height: 1.15; transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out); }
.days label b { font-size: 1.375rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.days label small { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: lowercase; }
.days input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.days input:checked + label small { color: rgba(245, 242, 236, .75); }
.days input:focus-visible + label { outline: 3px solid var(--sky-ink); outline-offset: 2px; }
.link-btn { margin-top: 12px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: .875rem; font-weight: 650; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.form-section { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: baseline; }
.form-section > :not(.form-step) { grid-column: 2; }
.form-step { grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; align-self: start; }
.panel-inv { border: 1px solid color-mix(in srgb, var(--wine) 28%, transparent); background: color-mix(in srgb, var(--wine) 4%, var(--white)); }
.panel-inv h2 { color: var(--wine); }
.intro-note { max-width: 62ch; margin-top: 12px; }
.pay-note { grid-column: 1 / -1; }
.pay-note p { margin: 0; }
.pay-note p + p { margin-top: 8px; }

.steps-mini li, .offer-item p, .callout p { text-wrap: pretty; }
.page-inscricao .flow-aside { position: static; } /* três painéis: mais altos do que o ecrã, o sticky escondia o último */

.sec-follow { padding-top: clamp(24px, 3vw, 36px); }
.sessions { max-width: 560px; }
.form-progress { position: sticky; top: 92px; z-index: 5; display: flex; align-items: center; gap: 14px; margin: -4px 0 8px; padding: 10px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 6px 18px -10px rgba(32, 42, 77, .35); font-size: .8125rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.form-progress .fp-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-progress .fp-track { flex: 0 0 clamp(60px, 18%, 140px); height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.form-progress i { display: block; height: 100%; background: var(--c-ink, var(--navy)); transform-origin: left; transform: scaleX(0); transition: transform .3s var(--ease-out); }
.locked .form-progress { display: none; }
@media (max-width: 760px) { .form-progress { top: 76px; } }
.form-progress { grid-column: 1 / -1; }
.form-progress + .form-section { border-top: 0; padding-top: 0; margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .events-title::before { animation: none; } }
.hero-media img.pos-right { object-position: 72% 50%; }

/* Cartão de edição que abre no próprio sítio */
.ev-x { display: block; padding: 0; transition: background-color .25s var(--ease-out); }
.ev-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-content: start; width: 100%; padding: 20px 22px 22px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.ev-head .seal { grid-row: span 3; margin-top: 2px; }
.ev-head:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ev-x:hover { background: rgba(255, 255, 255, .12); } }
.ev-toggle .chev { width: 1em; height: 1em; transition: transform .35s var(--ease-out); }
.ev-x.is-open .ev-toggle .chev { transform: rotate(180deg); }
.ev-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.ev-x.is-open .ev-more { grid-template-rows: 1fr; }
.ev-more-in { min-height: 0; overflow: hidden; padding: 0 22px; opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), padding .5s var(--ease-out); }
.ev-x.is-open .ev-more-in { opacity: 1; transform: none; padding-bottom: 22px; transition-delay: .08s; }
.ev-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin: 4px 0 16px; }
.ev-desc { margin: 0 0 14px; font-size: .9375rem; line-height: 1.6; color: rgba(245, 242, 236, .9); }
.ev-facts { display: grid; gap: 8px; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.ev-facts div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 10px; font-size: .9rem; }
.ev-facts dt { color: rgba(245, 242, 236, .65); font-weight: 600; }
.ev-facts dd { margin: 0; font-weight: 600; }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ev-link { color: var(--paper); font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ev-link .arr { width: 1em; height: 1em; }
.ev-x.is-open { grid-column: span 1; }
@media (prefers-reduced-motion: reduce) { .ev-more, .ev-more-in, .ev-toggle .chev { transition: none; } }

/* Cartões: realce ao passar o rato (inclinação a seguir o cursor) e ao tocar */
.tilt { transition: transform .55s var(--ease-out), box-shadow .45s var(--ease-out); }
.tilt.is-tilting { transition: transform .14s var(--ease-out), box-shadow .3s var(--ease-out); box-shadow: 0 34px 60px -32px rgba(20, 28, 60, .42); z-index: 2; }
@media (hover: none), (pointer: coarse) {
  .tilt:active { transform: scale(.98); box-shadow: 0 18px 40px -26px rgba(20, 28, 60, .5); transition-duration: .12s; }
}
@media (prefers-reduced-motion: reduce) { .tilt, .tilt.is-tilting { transition: box-shadow .2s ease; transform: none !important; } }
a.dev:hover { color: var(--paper); }

/* Vídeos alojados no próprio site (página inicial) */
.vids .vid { margin: 0; scroll-snap-align: start; min-width: 0; }
.vids .vid-play { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 9 / 16; background: var(--navy); transition: transform .35s var(--ease-out); }
.vids .vid-play img { width: 100%; height: 100%; object-fit: cover; }
.vids .vid video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-md); background: #000; object-fit: cover; }
.vids figcaption { margin-top: 10px; font-size: .9375rem; font-weight: 600; line-height: 1.35; color: var(--ink); text-wrap: balance; }
@media (hover: hover) and (pointer: fine) { .vids .vid-play:hover { transform: translateY(-4px); } .vids .vid-play:hover .play { transform: scale(1.08); background: rgba(255,255,255,.34); } }
.vids .vid-play:active { transform: scale(.98); }

/* ---------- Cartões «Por onde começar» (página inicial) ---------- */
.svc-x { position: relative; }
.svc-x .svc-top { display: flex; flex-direction: column; align-items: flex-start; }
.svc-x .svc-more { display: grid; grid-template-rows: 1fr; }
.svc-x .svc-more-in { min-height: 0; overflow: hidden; }
.svc-x .svc-go { text-decoration: none; }
/* No computador o cartão inteiro continua a ser clicável */
.svc-x .svc-go::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.svc-x:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .svc-x:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(32, 42, 77, .45); }
  .svc-x:hover .svc-go .arr { transform: translateX(4px); }
}
.svc-more-btn { display: none; }
@media (max-width: 700px) {
  .svc-x { padding: 20px 20px 22px; }
  .svc-x .svc-top { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 12px; }
  .svc-x .svc-top .seal { --size: 40px; margin: 0; }
  .svc-x .svc-top .label { margin: 0; }
  .svc-x h3 { font-size: 1.1875rem; line-height: 1.3; margin-bottom: 4px; }
  .svc-x .svc-more { grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
  .svc-x.is-open .svc-more { grid-template-rows: 1fr; }
  .svc-x .svc-more-in p { margin: 8px 0 4px; opacity: 0; transition: opacity .3s var(--ease-out); }
  .svc-x.is-open .svc-more-in p { opacity: 1; }
  .svc-more-btn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 14px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
  .svc-more-btn[hidden] { display: none; }
  .svc-more-btn .chev { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
  .svc-x.is-open .svc-more-btn .chev { transform: rotate(180deg); }
  .svc-x .svc-go::before { content: none; }
  .svc-x .svc-go { margin-top: 0; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: var(--paper); font-size: .9375rem; }
  .svc-x:active { transform: none; }
}

/* ---------- Menu no telemóvel: os itens principais têm ar de ligação ---------- */
.menu-sheet a.m-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-sheet a.m-main::after { content: ''; display: block; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F5F2EC' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10h12M11 5l5 5-5 5'/%3E%3C/svg%3E") center / 16px no-repeat; transition: background-color .2s ease, transform .2s var(--ease-out); }
.menu-sheet a.m-main:active::after { transform: translateX(3px); background-color: rgba(255, 255, 255, .2); }
.menu-sheet .m-main .m-hint { display: block; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: rgba(245, 242, 236, .62); margin-top: 2px; }
.menu-sheet .m-sub { padding-left: 4px; }

/* No telemóvel abre numa janela por cima */
.ev-sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 88svh; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--navy); color: var(--paper); overflow-y: auto; overscroll-behavior: contain; transform: translateY(100%); transition: transform .42s var(--ease-out); }
.ev-sheet[open].is-in { transform: none; }
.ev-sheet::backdrop { background: rgba(10, 14, 32, 0); transition: background-color .3s ease; }
.ev-sheet.is-in::backdrop { background: rgba(10, 14, 32, .55); }
.ev-sheet-in { padding: 14px max(22px, env(safe-area-inset-left, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)); }
.ev-sheet-grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); margin: 0 auto 14px; }
.ev-sheet-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 14px; align-items: start; margin-bottom: 16px; }
.ev-sheet-head .seal { grid-row: span 2; }
.ev-sheet-close { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--paper); display: grid; place-items: center; cursor: pointer; }
.ev-sheet .ev-more-in { padding: 0; opacity: 1; transform: none; }
.ev-sheet .ev-photo { margin-top: 0; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ev-sheet, .ev-sheet::backdrop, .ev-x, .svc-x .svc-more { transition: none; } }

/* ---------- Página Vídeos: leitor e lista ---------- */
.vids figcaption .vid-ig { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 500; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(32, 42, 77, .3); }
.vids figcaption .vid-ig:hover { color: var(--ink); }
.vp-section { padding-top: 0; }
.vp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.vp-stage { min-width: 0; }
.vp-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 9 / 16; border-radius: var(--r-xl, 24px); overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px -36px rgba(20, 26, 52, .55); }
.vp-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vp-info { max-width: 420px; margin-top: 20px; }
.vp-date { margin: 0 0 6px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.vp-title { margin: 0 0 8px; text-wrap: balance; }
.vp-text { margin: 0 0 12px; color: var(--ink-soft); text-wrap: pretty; }
.vp-list-title { font-size: 1.0625rem; margin: 0 0 12px; }
.vp-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 6px; }
.vp-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease, transform .16s var(--ease-out); }
.vp-item img { width: 64px; height: 114px; object-fit: cover; border-radius: 10px; }
.vp-item-txt { display: grid; gap: 3px; min-width: 0; }
.vp-item-txt b { font-size: 1rem; line-height: 1.3; text-wrap: balance; }
.vp-item-txt small { font-size: .8125rem; color: var(--ink-soft); }
.vp-item .vp-desc { font-size: .875rem; line-height: 1.45; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vp-item:hover { background: rgba(32, 42, 77, .05); }
.vp-item:active { transform: scale(.985); }
.vp-item.is-current { background: rgba(32, 42, 77, .08); box-shadow: inset 3px 0 0 var(--navy); }
.vp-item.is-current b::before { content: 'A ver · '; font-weight: 600; color: var(--ink-soft); }
@media (min-width: 900px) {
  .vp { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; }
  .vp-stage { position: sticky; top: 96px; }
  .vp-frame { max-height: calc(100svh - 260px); width: auto; aspect-ratio: 9 / 16; }
}
@media (max-width: 899px) { .vp-frame { width: min(100%, 420px, calc(66svh * 9 / 16)); margin-inline: auto; } .vp-info { margin-inline: auto; } }

/* No computador, a janela do evento aparece ao centro, com a fotografia ao lado */
@media (min-width: 901px) {
  .ev-sheet { inset: 0; margin: auto; width: min(820px, calc(100vw - 64px)); max-height: min(88svh, 720px); border-radius: 24px; transform: translateY(18px) scale(.97); opacity: 0; transition: transform .38s var(--ease-out), opacity .25s ease; }
  .ev-sheet[open].is-in { transform: none; opacity: 1; }
  .ev-sheet-grab { display: none; }
  .ev-sheet-in { padding: 28px 32px 32px; }
  .ev-sheet .ev-more-in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .ev-sheet .ev-photo { grid-row: span 3; aspect-ratio: 4 / 5; border-radius: 16px; margin: 0; }
}

/* Pré-visualização de rascunhos (só para quem está no back office) */
.pao-draft-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; padding: 10px 18px; border-radius: 999px; background: #E8A33D; color: #1d1d1b; font: 600 .875rem/1.3 var(--sans, system-ui); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); white-space: nowrap; }
.pao-draft-bar a { color: inherit; text-decoration: underline; }
[data-draft-page] { outline: 2px dashed #E8A33D; outline-offset: 2px; border-radius: 6px; }
