/* =====================================================================================================
   FGSC v1.0.35 / v1.0.36 — Base visual comum (Fase 1 do diagnóstico visual de 22/11/2026)
   Fonte, paleta, botões, títulos, contraste e cabeçalho nos tablets. Carregado em todas as páginas
   (cabecalho.php). O RODAPÉ NÃO MUDA: todas as variáveis --fgb-* são anuladas dentro dele (ver «Rodapé»),
   e nenhuma regra deste ficheiro lhe toca.
   ===================================================================================================== */

/* ---------- Fonte da marca: Century Gothic, alojada no site (licença web da FGSC) ----------
   Os ficheiros entram em /assets/fonts/ depois de comprada a licença. Enquanto não existirem, o navegador
   passa ao nome seguinte da lista ("Century Gothic" instalada no aparelho), ou seja, fica como hoje.
   O nome "FGSC Gothic" é propositado: o rodapé pede "Century Gothic" e continua a mostrar a fonte de hoje. */
@font-face {
  font-family: "FGSC Gothic";
  src: url("/assets/fonts/fgsc-gothic-400.woff2") format("woff2"), url("/assets/fonts/fgsc-gothic-400.woff") format("woff");
  font-weight: 100 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FGSC Gothic";
  src: url("/assets/fonts/fgsc-gothic-700.woff2") format("woff2"), url("/assets/fonts/fgsc-gothic-700.woff") format("woff");
  font-weight: 600 900; font-style: normal; font-display: swap;
}

/* ---------- Paleta (a do site, arrumada: 12 tons, cada um com uma função) ---------- */
:root {
  --fgb-font: "FGSC Gothic", "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  --fgb-navy: #002060;        /* títulos, topos, faixas escuras, botão secundário */
  --fgb-coral: #F36D53;       /* destaque: ícones, linhas, fundos */
  --fgb-coral-btn: #C8472F;   /* botões e texto coral (contraste 4,77:1 com branco) */
  --fgb-coral-btn-h: #A93A25; /* botão principal ao passar o rato */
  --fgb-coral-txt: #BA4029;   /* texto coral pequeno: 4,85:1 ou mais também nos fundos cinza-azulados */
  --fgb-azul: #0098DA;        /* gráficos e ícones */
  --fgb-azul-txt: #006CA5;    /* texto e ligações em azul: 5,7:1 no branco e 5,1:1 nos fundos azulados */
  --fgb-forte: #222222;       /* texto forte */
  --fgb-corrente: #4B4B4D;    /* texto corrente */
  --fgb-nota: #5C6B80;        /* notas e fontes */
  --fgb-portal: #002060;      /* botão do Portal (era quase preto, fora da paleta) */
  --fgb-wa: #25D366;
}

/* ---------- Rodapé: fica exactamente como está ----------
   «initial» anula as variáveis; cada regra substituída tem o valor de antes como alternativa
   (var(--fgb-…, VALOR_DE_ANTES)), que é o que o navegador usa aqui dentro. */
#sessao-subRodape, footer.site-footer {
  --fgb-font: initial; --fgb-forte: initial; --fgb-corrente: initial; --fgb-nota: initial;
  --fgb-azul-txt: initial; --fgb-coral-txt: initial; --fgb-coral: initial; --fgb-portal: initial;
}

/* ---------- Fundos escuros (topos azul-marinho, faixas e cartões escuros) ----------
   Aqui os tons claros de coral e azul são os legíveis (o coral escuro e o azul de texto são para fundos claros):
   as variáveis voltam ao valor de antes, como no rodapé. */
:root body :is(.fx-sv-hero, .fx-sb-hero, .fx-car-hero, .fx-ct-hero, .fx-rs-a-band, .fx-in-hero, .fgsc-num, .fx-canal,
  .fx-news, .sessao4-1, .sessao12, .tj-big, .fx-sv-card-cta, .fgsc-faixa-cta, .fx-car-vid-frame, .fx-car-canal,
  .fx-rs-nl, .fx-tx-lu, .fx-in-disc, .fx-ct-of-lub, .fgsc-pt-numeros, .fgsc-pt-topo-col, .fgsc-pt-video, .fgsc-chat-topo,
  .fgsc-x-hd, .fgsc-nota-medicao) {
  --fgb-forte: initial; --fgb-corrente: initial; --fgb-nota: initial; --fgb-azul-txt: initial; --fgb-coral-txt: initial;
}
/* cartões brancos dentro dessas zonas escuras: voltam à paleta dos fundos claros */
:root body :is(.n-form, .fx-sb-dif, .fx-sv-nav, .fx-car-canal-qr, .fx-rs-busca, .fx-ct-form) {
  --fgb-forte: #222222; --fgb-corrente: #4B4B4D; --fgb-nota: #5C6B80; --fgb-azul-txt: #006CA5; --fgb-coral-txt: #BA4029;
}

/* ---------- Botões: três tipos (principal, secundário, ligação com seta) ----------
   Altura 48 px, totalmente redondos, 15 px em negrito, a fonte da marca. */
:root body :is(.fgsc-hero-diag, .fx-btn-ol, .fgsc-pt-btn:not(.fgsc-pt-btn-sec), .n-btn, .fx-sb-btn-lr, .fx-sv-btn-lr,
  .fx-sv-enviar, .btn-enviar, .fgsc-btn-prim, .fx-car-btn-lr, .fx-rs-btn, .fx-in-btn, .botao-contactar1,
  .fx-btn-nv, .fgsc-pt-btn-sec, .fx-sv-card-btn, .botao-acao, .fx-sb-btn-gh, .fx-sv-btn-gh, .fgsc-btn-sec,
  .fx-car-vid-btn, .fx-canal-btn, .fx-car-btn-wa) {
  min-height: 48px; padding: 12px 24px; line-height: 20px; box-sizing: border-box;
  border-radius: 999px; border-width: 2px; border-style: solid;
  font-family: var(--fgb-font); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
/* principal: coral cheio */
:root body :is(.fgsc-hero-diag, .fx-btn-ol, .fgsc-pt-btn:not(.fgsc-pt-btn-sec), .n-btn, .fx-sb-btn-lr, .fx-sv-btn-lr,
  .fx-sv-enviar, .btn-enviar, .fgsc-btn-prim, .fx-car-btn-lr, .fx-rs-btn, .fx-in-btn, .botao-contactar1) {
  background: var(--fgb-coral-btn); border-color: var(--fgb-coral-btn); color: #fff;
}
:root body :is(.fgsc-hero-diag, .fx-btn-ol, .fgsc-pt-btn:not(.fgsc-pt-btn-sec), .n-btn, .fx-sb-btn-lr, .fx-sv-btn-lr,
  .fx-sv-enviar, .btn-enviar, .fgsc-btn-prim, .fx-car-btn-lr, .fx-rs-btn, .fx-in-btn, .botao-contactar1):hover {
  background: var(--fgb-coral-btn-h); border-color: var(--fgb-coral-btn-h); color: #fff;
}
/* secundário em fundo claro: contorno azul-marinho */
:root body :is(.fx-btn-nv, .fgsc-pt-btn-sec, .fx-sv-card-btn) {
  background: #fff; border-color: var(--fgb-navy); color: var(--fgb-navy);
}
:root body :is(.fx-btn-nv, .fgsc-pt-btn-sec, .fx-sv-card-btn):hover { background: var(--fgb-navy); color: #fff; }
/* secundário em fundo escuro: contorno branco */
:root body :is(.botao-acao, .fx-sb-btn-gh, .fx-sv-btn-gh, .fgsc-btn-sec) {
  background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff;
}
:root body :is(.botao-acao, .fx-sb-btn-gh, .fx-sv-btn-gh, .fgsc-btn-sec):hover { background: #fff; border-color: #fff; color: var(--fgb-navy); }
/* branco cheio em fundo escuro (vídeo da Carreira): mantém-se, só muda a forma */
:root body .fx-car-vid-btn { border-color: #fff; }
:root body .botao-contactar1 { height: auto; }
/* WhatsApp: verde da marca com texto azul-marinho (7,7:1; o branco dava 1,98:1) */
:root body :is(.fx-canal-btn, .fx-car-btn-wa) { background: var(--fgb-wa); border-color: var(--fgb-wa); color: var(--fgb-navy); }
:root body :is(.fx-canal-btn, .fx-car-btn-wa):hover { background: #1FB859; border-color: #1FB859; color: var(--fgb-navy); }
:root body :is(.fx-canal-btn, .fx-car-btn-wa) svg { color: var(--fgb-navy); fill: currentColor; }
/* ícones dentro dos botões acompanham a cor do texto */
:root body :is(.fgsc-hero-diag, .fx-btn-ol, .fgsc-pt-btn, .fx-sb-btn-lr, .fx-sv-btn-lr, .fx-sv-enviar, .fgsc-btn-prim,
  .fx-car-btn-lr, .fx-rs-btn, .fx-in-btn, .fx-btn-nv, .fx-sv-card-btn, .fx-sb-btn-gh, .fx-sv-btn-gh, .fgsc-btn-sec) svg { color: inherit; }

/* separador «Vídeo · 90 s» (é um separador, não um botão: mantém o tamanho; só a cor, para ser legível) */
:root body .fgsc-pt-tab-video { background: var(--fgb-coral-btn); border-color: var(--fgb-coral-btn); color: #fff; }

/* cabeçalho: a acção principal é a mesma do resto do site (coral), em tamanho de cabeçalho */
:root body .cabecalho .fgsc-btn-diag, :root body .fgsc-diag-tab {
  background: var(--fgb-coral-btn); color: #fff !important; border: 2px solid var(--fgb-coral-btn);
  border-radius: 999px; min-height: 40px; padding: 8px 18px; line-height: 20px; box-sizing: border-box;
  font-family: var(--fgb-font); font-size: 14px; font-weight: 700; box-shadow: none;
}
:root body .cabecalho .fgsc-btn-diag:hover, :root body .fgsc-diag-tab:hover { background: var(--fgb-coral-btn-h); border-color: var(--fgb-coral-btn-h); }
:root body .cabecalho .fgsc-btn-portal { border-radius: 999px; font-family: var(--fgb-font); }
/* cabeçalho: botões cheios a coral (WhatsApp, idioma, menu ☰) no mesmo coral dos botões, para não haver
   dois corais lado a lado e para o «PT» branco ser legível */
:root body :is(.cabecalho .fgsc-btn-wa-topo, .cabecalho .idioma-selecionado, .cabecalho-mobile > .botao-contactar, .cabecalho-mobile .menu-toggle) {
  background-color: var(--fgb-coral-btn);
}
:root body #idiomaSelecionado, :root body #seletorIdiomas .lista-idiomas li { background-color: var(--fgb-coral-btn); }
/* barra móvel e menu móvel: o mesmo coral dos botões */
:root body .fgsc-bm-diag, :root body .menu-mobile a.fgsc-menu-diag { background: var(--fgb-coral-btn) !important; color: #fff; }
:root body .menu-mobile a.fgsc-menu-diag { border-radius: 999px; font-weight: 700; }

/* ---------- Títulos: uma escala para todo o site ----------
   H1 44 / 36 / 30 px · H2 de secção 34 / 30 / 26 px · computador / tablet / telemóvel. Azul-marinho nos fundos
   claros; branco nos topos escuros (mantém a cor que já tinham). */
:root body :is(.sessao12 .titulo-principal, .fx-sb-hero h1, .fx-sv-hero h1, .fx-car-hero h1, .fx-rs-a-band h1,
  .fx-in-hero h1, .fx-ct-hero h1, .pv h1) {
  font-family: var(--fgb-font); font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em;
}
:root body :is(.sessao-2 .fx-qs-txt h2, #sessao-2 .fx-sec-head h2, .fgsc-pt-intro h2, .fgsc-pesquisa-cab h2,
  .ultimas-noticias .tit, .fx-sv-head h2, .fx-sv-proc h2, .fx-sv-pedir h2, .fx-car-vid-head h2, .fx-car-vals h2,
  .fx-rs-sh h2, .fx-ct-esc-head h2, .tj-in > h2) {
  font-family: var(--fgb-font); font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--fgb-navy);
  letter-spacing: -.005em; text-transform: none;
}
:root body .ultimas-noticias .tit { margin-left: 47px; margin-bottom: 18px; }
/* Política de Privacidade: secções numeradas ao nível H3 */
:root body .pv h2 { font-family: var(--fgb-font); font-size: 22px; line-height: 1.3; color: var(--fgb-navy); }

@media (max-width: 1199px) {
  :root body :is(.sessao12 .titulo-principal, .fx-sb-hero h1, .fx-sv-hero h1, .fx-car-hero h1, .fx-rs-a-band h1,
    .fx-in-hero h1, .fx-ct-hero h1, .pv h1) { font-size: 36px; }
  :root body :is(.sessao-2 .fx-qs-txt h2, #sessao-2 .fx-sec-head h2, .fgsc-pt-intro h2, .fgsc-pesquisa-cab h2,
    .ultimas-noticias .tit, .fx-sv-head h2, .fx-sv-proc h2, .fx-sv-pedir h2, .fx-car-vid-head h2, .fx-car-vals h2,
    .fx-rs-sh h2, .fx-ct-esc-head h2, .tj-in > h2) { font-size: 30px; }
  :root body .pv h2 { font-size: 20px; }
}
@media (max-width: 767px) {
  :root body :is(.sessao12 .titulo-principal, .fx-sb-hero h1, .fx-sv-hero h1, .fx-car-hero h1, .fx-rs-a-band h1,
    .fx-in-hero h1, .fx-ct-hero h1, .pv h1) { font-size: 30px; }
  :root body :is(.sessao-2 .fx-qs-txt h2, #sessao-2 .fx-sec-head h2, .fgsc-pt-intro h2, .fgsc-pesquisa-cab h2,
    .ultimas-noticias .tit, .fx-sv-head h2, .fx-sv-proc h2, .fx-sv-pedir h2, .fx-car-vid-head h2, .fx-car-vals h2,
    .fx-rs-sh h2, .fx-ct-esc-head h2, .tj-in > h2) { font-size: 26px; }
  :root body .ultimas-noticias .tit { margin-left: 0; }
  :root body .pv h2 { font-size: 18px; }
}

/* ---------- Tablets (768–1199 px) ---------- */
/* 1024–1199 px: cabeçalho de computador com «Fale com um consultor» visível */
@media (min-width: 1024px) and (max-width: 1199px) {
  :root body .cabecalho .fgsc-btn-diag { display: inline-flex !important; align-items: center; flex-shrink: 0; font-size: 13px; padding: 7px 14px; min-height: 36px; }
  :root body .cabecalho .nav-principal ul { gap: 10px; margin-right: 2px; }
  :root body .cabecalho .nav-links a { font-size: 13.5px; padding: 6px 1px; }
  :root body .cabecalho .fgsc-btn-portal .fgsc-seta, :root body .cabecalho .fgsc-btn-portal svg { display: none; }
  :root body .cabecalho .logo img { width: 132px; height: 53px; }
  :root body .cabecalho { gap: 10px; padding: 6px 24px !important; }
  :root body .cabecalho .nav-principal { gap: 8px; margin-right: 0; padding-right: 0; }
  :root body .cabecalho .fgsc-btn-portal { padding: 8px 12px; }
  :root body .cabecalho .seletor-idioma { padding: 5px 8px; }
  :root body .cabecalho .seletor-idioma #textoIdioma { font-size: 0; }
  :root body .cabecalho .seletor-idioma #textoIdioma img { vertical-align: middle; }
}
/* 768–1023 px: cabeçalho móvel (menu ☰) com «Fale com um consultor» visível; o menu de computador
   não cabia e ficava em letra de 12 px */
.fgsc-mob-dir { display: flex; align-items: center; gap: 10px; }
:root body .fgsc-diag-tab { display: none; }
@media (min-width: 768px) and (max-width: 1023px) {
  :root body .cabecalho { display: none !important; }
  :root body .cabecalho-mobile {
    position: fixed; top: 0; left: 0; width: 100%; height: 72px; background: #fff; display: flex;
    align-items: center; justify-content: space-between; padding: 0 24px; z-index: 999; box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  }
  :root body .cabecalho-mobile > .botao-contactar {
    border-radius: 50px; background-color: var(--fgb-coral-btn); height: 45px; width: 45px; border: none; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
  }
  :root body .cabecalho-mobile .logo img { height: 58px; width: auto; }
  :root body .cabecalho-mobile .menu-toggle {
    font-size: 28px; border: none; color: #fff; background-color: var(--fgb-coral-btn); height: 45px; width: 45px;
    border-radius: 50px; flex-shrink: 0; cursor: pointer;
  }
  :root body .fgsc-diag-tab { display: inline-flex; align-items: center; }
  :root body .menu-mobile {
    display: none; position: fixed; top: 0; right: 0; width: 380px; max-width: 75%; height: 100%; background: #fff;
    flex-direction: column; padding: 20px; gap: 16px; z-index: 9999; box-sizing: border-box;
  }
  :root body .menu-mobile.ativo { display: flex !important; }
  :root body #overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(53, 113, 134, .3); display: none; z-index: 998; }
  :root body #overlay.ativo { display: block; }
  :root body .menu-mobile .fechar {
    position: absolute; top: 18px; left: -12px; border: none; background: var(--fgb-coral); color: #fff;
    font-size: 1.5rem; font-weight: 300; width: 36px; height: 40px; border-radius: 10%; cursor: pointer;
  }
  :root body .menu-mobile .log { display: flex; align-items: center; gap: 10px; background-color: rgb(239, 245, 248); margin-top: 60px; }
  :root body .menu-mobile .log img { width: 53px; height: auto; }
  :root body .menu-mobile .log .log-t1 { display: block; font-size: 1.1rem; margin: 0; color: var(--fgb-forte); font-weight: 400; }
  :root body .menu-mobile .log .log-t2 { display: block; font-size: 1rem; margin: 0; font-weight: 200; color: var(--fgb-forte); font-style: italic; border-bottom: solid 1px #111; }
  :root body .menu-mobile > a { display: block; text-decoration: none; color: var(--fgb-coral-txt); font-size: 1.2rem; font-weight: 400; margin: 6px 0; }
  :root body .menu-mobile > a.fgsc-menu-diag { color: #fff; border-radius: 999px; padding: 12px 20px; text-align: center; font-weight: 700; font-size: 15px; }
  :root body .menu-mobile .fgsc-btn-portal-mobile {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
    background: var(--fgb-navy); color: #fff; padding: 12px 20px; font: 700 15px var(--fgb-font); cursor: pointer;
  }
  :root body .menu-mobile .menu-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 20px 10px 30px; width: 100%; box-sizing: border-box; }
  :root body .menu-mobile .botao-contactar-menu { height: 42px; width: 42px; border-radius: 50%; background-color: var(--fgb-coral); color: #fff; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  :root body .menu-mobile .seletor-idioma-mobile { position: relative; }
  :root body .menu-mobile .idioma-selecionado-mobile { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #ddd; border-radius: 30px; padding: 8px 14px; height: 42px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); font-size: 1rem; }
  :root body .menu-mobile .lista-idiomas-mobile { position: absolute; bottom: 100%; right: 0; background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 8px 0; margin: 0 0 8px; width: 190px; box-shadow: 0 10px 25px rgba(0, 0, 0, .15); display: none; z-index: 10000; list-style: none; }
  :root body .menu-mobile .lista-idiomas-mobile.ativo { display: block; }
  :root body .menu-mobile .lista-idiomas-mobile li { padding: 10px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
  :root body .menu-mobile .lista-idiomas-mobile li img { width: 22px; height: auto; }
  :root body .menu-mobile .idioma-selecionado-mobile img { width: 22px; height: auto; }
  body.travado { overflow: hidden; }
}

/* ---------- Contraste: correcções pontuais (auditoria WCAG AA de todo o texto, 3 tamanhos de ecrã) ---------- */
/* subidas e descidas nos indicadores e na bolsa: verde e vermelho mais escuros (texto pequeno) */
:root body :is(.fx-in, .fx-rs, .fx-in-wrap) :is(.up, td.num.up, .fx-in-chg.up, .fx-in-pill.up, b.up):not(.fx-rs-a-band *, .fx-in-hero *) { color: #157A4A; }
:root body :is(.fx-in, .fx-rs, .fx-in-wrap) :is(.dn, td.num.dn, .fx-in-chg.dn, .fx-in-pill.dn, b.dn, .fx-in-rat em, .num sup):not(.fx-rs-a-band *, .fx-in-hero *) { color: #C23B3B; }
/* WhatsApp: verde com texto azul-marinho (o branco dava 1,98:1) — também no chat */
:root body :is(.fx-canal-btn, .fx-car-btn-wa, .fgsc-btn-wa) { color: var(--fgb-navy) !important; }
:root body .fx-c1-canal { color: #0F7A40; }
/* separadores e etiquetas com fundo coral e texto branco: coral escuro */
:root body .fgsc-pt-separadores .fgsc-pt-tab-video[aria-selected="true"] { background: var(--fgb-coral-btn); border-color: var(--fgb-coral-btn); color: #fff; }
:root body .fgsc-pt-separadores .fgsc-pt-tab-video { border-color: var(--fgb-coral-btn); }
:root body .fx-rs-a-nav a.on, :root body .fx-in-tabs a.on { background: var(--fgb-coral-btn); }
:root body .fx-sv-pass li:last-child .fx-sv-pass-n { background: var(--fgb-coral-btn); }
:root body .fx-rs-nl-l li i { background: var(--fgb-coral-btn); }
:root body .fx-c2-l { background-color: #E35A40; }
/* sobretítulos azuis em fundo azul-marinho: o azul claro (4,7:1), não o azul de texto */
:root body :is(.fx-rs-a-top .fx-rs-kick, .fx-rs-nl .fx-rs-kick, .fx-in-hero .fx-in-kick) { color: var(--fgb-azul); }
/* notas e textos auxiliares: o cinzento das notas */
:root body :is(.fgsc-opc, .fgsc-pt-nota, .rel .art p) { color: var(--fgb-nota); }
:root body td .fgsc-pt-nao { color: var(--fgb-nota); }
/* números decorativos dos cartões de Serviços (01–05): visíveis com 3:1 */
:root body .fx-sv-card-n { color: #8794A9; }

/* barra móvel (telemóvel): «Fale com um consultor» numa só linha, também nos ecrãs de 320–375 px */
@media (max-width: 767px) {
  :root body .fgsc-barra-movel a { border-radius: 999px; white-space: nowrap; font-family: var(--fgb-font); }
}
@media (max-width: 400px) {
  :root body .fgsc-barra-movel a { font-size: 14px; gap: 6px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 360px) {
  :root body .fgsc-barra-movel a { font-size: 13px; }
  :root body .fgsc-barra-movel .fgsc-bm-diag svg { display: none; }
}

/* página inicial no telemóvel: o topo é branco, por isso «Nossos serviços» leva o contorno azul-marinho */
@media (max-width: 767px) {
  :root body .sessao12 .botao-acao { background: #fff; border-color: var(--fgb-navy); color: var(--fgb-navy); }
}

/* =====================================================================================================
   LARGURA QUE SE ADAPTA AO ECRÃ (v1.0.36, pedido de 22/11/2026: «autofit»)
   O conteúdo e o cabeçalho ocupam a largura do ecrã menos uma margem de cada lado — 24 px nos tablets e
   computadores pequenos, a crescer até 68 px a partir de ~1 400 px — e só param de crescer nos 1 784 px
   (ecrãs muito largos). Referência: ey.com/pt_ao (margem de 68 px e conteúdo até ~1 784 px).
   O cabeçalho usa exactamente as mesmas margens: o logótipo alinha com o início do texto e o último botão com o fim.
   Telemóvel: como hoje. O rodapé não muda.
   ===================================================================================================== */
:root { --fgb-margem: clamp(24px, calc(22vw - 240px), 68px); --fgb-max: 1784px; }
@media (min-width: 768px) {
  /* envoltórios de texto (antes 1 150, 1 180, 1 200 ou 1 240 px fixos) */
  :root body :is(.fx-sv-wrap, .fx-sb-wrap, .fx-car-wrap, .fx-rs-in, .fx-in-wrap, .fx-in-hero-in, .fx-qs, .fx-sec-head, .fgsc-pt,
    .fgsc-num-in, .tj-in, #sessao-5 .fx-mvv, .fx-ajuda) {
    width: 100%; max-width: calc(var(--fgb-max) + 2 * var(--fgb-margem)); padding-left: var(--fgb-margem); padding-right: var(--fgb-margem);
    margin-left: auto; margin-right: auto; box-sizing: border-box;
  }
  /* os blocos à volta deixam de somar margens próprias */
  :root body :is(.container-clientes, .sessao-3.fgsc-num, .tj, .fx-in-hero) { padding-left: 0; padding-right: 0; }
  :root body .container-clientes { max-width: 100%; width: 100%; min-width: 0; box-sizing: border-box; }
  /* cartões e faixas: as arestas alinham com o texto */
  :root body :is(.fx-canal, .fgsc-faixa-cta, .fgsc-pesquisa) {
    width: calc(100% - 2 * var(--fgb-margem)); max-width: var(--fgb-max); margin-left: auto; margin-right: auto; box-sizing: border-box;
  }
  :root body .fx-news { padding-left: var(--fgb-margem); padding-right: var(--fgb-margem); }
  :root body .fx-news-in { max-width: var(--fgb-max); box-sizing: border-box; }
  /* página inicial: o texto do topo começa onde começa o resto da página */
  :root body .sessao12 .conteudo-hero { margin-left: max(var(--fgb-margem), calc((100% - var(--fgb-max)) / 2)); }
  :root body .hero-cards { width: min(var(--fgb-max), calc(100% - 2 * var(--fgb-margem))); }
  /* «Em Destaque»: mesma largura, três artigos lado a lado, título alinhado à esquerda, fundo branco de lado a lado */
  :root body .ultimas-noticias { max-width: calc(var(--fgb-max) + 2 * var(--fgb-margem)); margin-left: auto; margin-right: auto;
    padding-left: var(--fgb-margem); padding-right: var(--fgb-margem); box-sizing: border-box;
    box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
  :root body .ultimas-noticias .tit { margin-left: 0; }
  :root body .noticias-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  :root body .noticias-grid .noticia-item { max-width: none; min-width: 0; }
  :root body .noticias-grid .noticia-img { height: auto; aspect-ratio: 16 / 10; }
}
/* cabeçalho de computador: mesmas margens do conteúdo */
@media (min-width: 1200px) {
  :root body .cabecalho {
    padding-left: max(var(--fgb-margem), calc((100% - var(--fgb-max)) / 2)) !important;
    padding-right: max(var(--fgb-margem), calc((100% - var(--fgb-max)) / 2)) !important;
    gap: 14px; justify-content: space-between;
  }
  :root body .cabecalho .logo { flex-shrink: 0; }
  :root body .cabecalho .logo img { width: 156px; height: auto; }
  :root body .cabecalho .nav-principal { gap: 8px; margin-right: 0; padding-right: 0; }
  :root body .cabecalho .nav-principal ul { gap: 2px; margin-right: 0; }
  :root body .cabecalho .nav-links a { font-size: 14.5px; padding: 6px 4px; white-space: nowrap; }
  :root body .cabecalho .fgsc-btn-diag { font-size: 14px; padding: 8px 15px; min-height: 40px; white-space: nowrap; margin-left: 4px; }
  :root body .cabecalho .fgsc-btn-portal { padding: 9px 13px; font-size: 13px; white-space: nowrap; margin-left: 0; }
  :root body .cabecalho .seletor-idioma .idioma-selecionado { padding-left: 10px; padding-right: 10px; }
  :root body .cabecalho .fgsc-btn-portal .fgsc-seta, :root body .cabecalho .fgsc-btn-portal svg:last-child { display: none; }
  :root body .cabecalho .seletor-idioma { flex-shrink: 0; margin-right: 0; }
  :root body .cabecalho .seletor-idioma #textoIdioma { font-size: 0; }
  :root body .cabecalho .seletor-idioma #textoIdioma img { vertical-align: middle; }
}
/* ecrãs largos: há espaço, o cabeçalho volta ao tamanho completo (logótipo maior, menu mais espaçado, «PT») */
@media (min-width: 1500px) {
  :root body .cabecalho .logo img { width: 196px; }
  :root body .cabecalho .nav-principal { gap: 14px; }
  :root body .cabecalho .nav-principal ul { gap: 10px; }
  :root body .cabecalho .nav-links a { font-size: 15.5px; }
  :root body .cabecalho .fgsc-btn-diag { font-size: 15px; padding: 9px 20px; min-height: 42px; }
  :root body .cabecalho .fgsc-btn-portal { font-size: 14px; padding: 10px 16px; }
  :root body .cabecalho .fgsc-btn-portal .fgsc-seta, :root body .cabecalho .fgsc-btn-portal svg:last-child { display: inline-block; }
  :root body .cabecalho .seletor-idioma #textoIdioma { font-size: 15px; }
}

/* ecrãs largos: o gráfico da curva LUIBOR deixa de crescer em altura (ficava com quase 500 px) */
@media (min-width: 768px) { :root body .fx-tx-svg { max-height: 380px; } }

/* =====================================================================================================
   v1.0.37 — Carreira: «4 meses. Outras pessoas.» com mais presença (secção do vídeo do estágio)
   Fundo azul-claro em degradé com luz coral, selo coral, título maior com destaque, botão «Ver o vídeo»
   e etiquetas com a duração, as legendas e os capítulos.
   ===================================================================================================== */
:root body .fx-car-vid {
  background: linear-gradient(180deg, #E4F3FB 0%, #F2F9FD 38%, #FFFFFF 78%);
  padding-top: 96px;
}
:root body .fx-car-vid::before {
  top: 10px; width: 1300px; height: 640px; margin-left: -650px;
  background: radial-gradient(closest-side, rgba(0, 152, 218, .22), rgba(0, 152, 218, 0) 72%);
}
:root body .fx-car-vid::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(243, 109, 83, .20), rgba(243, 109, 83, 0) 70%);
}
:root body .fx-car-vid .fx-car-vid-head { max-width: 920px; margin-bottom: 48px; }
/* selo */
:root body .fx-car-vid .fx-car-vid-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--fgb-coral-btn); color: #fff; font-family: var(--fgb-font); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(200, 71, 47, .25);
}
/* título: maior, com «Outras pessoas.» em degradé azul e sublinhado coral */
:root body .fx-car-vid .fx-car-vid-head h2#fxCarVid {
  margin: 22px 0 18px; font-size: clamp(36px, 4.3vw, 62px); line-height: 1.05; letter-spacing: -.02em; color: var(--fgb-navy);
}
:root body .fx-car-vid .fx-car-vid-head h2#fxCarVid span {
  position: relative; display: inline-block; z-index: 0; white-space: nowrap;
  background: linear-gradient(90deg, #006CA5 0%, #0098DA 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .04em;
}
:root body .fx-car-vid .fx-car-vid-head h2#fxCarVid span::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.04em; height: .12em; border-radius: 999px; z-index: -1;
  background: linear-gradient(90deg, var(--fgb-coral) 0%, #F9A48F 100%);
}
/* texto */
:root body .fx-car-vid .fx-car-vid-head p { max-width: 760px; font-size: 19px; line-height: 1.6; color: var(--fgb-corrente); }
/* botão e etiquetas (v1.0.38: a classe do botão passa a .fx-car-vid-ver; .fx-car-vid-cta já era o cartão coral «O próximo estagiário pode ser você» e ficava deformado) */
:root body .fx-car-vid-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; }
:root body .fx-car-vid-ver {
  display: inline-flex; flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 12px 26px; border: 2px solid var(--fgb-coral-btn);
  white-space: nowrap; width: auto; height: auto; margin: 0;
  border-radius: 999px; background: var(--fgb-coral-btn); color: #fff; font: 700 15px/20px var(--fgb-font); cursor: pointer;
  box-shadow: 0 12px 26px rgba(200, 71, 47, .30); transition: background-color .2s ease, transform .2s ease;
}
:root body .fx-car-vid-ver svg { display: inline-block; flex: 0 0 auto; margin: 0; }
:root body .fx-car-vid-ver:hover { background: var(--fgb-coral-btn-h); border-color: var(--fgb-coral-btn-h); transform: translateY(-1px); }
:root body .fx-car-vid-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: #fff;
  border: 1px solid #D3E6F2; color: var(--fgb-navy); font: 700 14px/20px var(--fgb-font); box-shadow: 0 4px 12px rgba(0, 32, 96, .06);
}
@media (max-width: 767px) {
  :root body .fx-car-vid { padding-top: 64px; }
  :root body .fx-car-vid::after { width: 320px; height: 320px; right: -140px; top: -60px; }
  :root body .fx-car-vid .fx-car-vid-head h2#fxCarVid span { white-space: normal; }
  :root body .fx-car-vid .fx-car-vid-head p { font-size: 17px; }
  :root body .fx-car-vid-chip { min-height: 36px; padding: 6px 14px; font-size: 13px; }
}
/* ecrãs largos: o vídeo cresce com a página (antes ficava sempre com 1 000 px) */
@media (min-width: 1500px) {
  :root body .fx-car-vid .fx-car-vid-stage, :root body .fx-car-vid .fx-car-vid-caps { max-width: 1240px; }
}
/* partilhar o vídeo */
:root body .fx-car-vid-share { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
:root body .fx-car-vid-share-t { font: 700 14px/20px var(--fgb-font); color: var(--fgb-navy); margin-right: 4px; }
:root body .fx-car-vid-share .fx-sh {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 50%;
  border: 0; color: #fff; cursor: pointer; text-decoration: none; box-shadow: 0 6px 14px rgba(0, 32, 96, .14); transition: transform .15s ease, filter .15s ease;
}
:root body .fx-car-vid-share .fx-sh:hover { transform: translateY(-2px); filter: brightness(1.08); }
:root body .fx-car-vid-share .fx-sh-wa { background: #25D366; color: var(--fgb-navy); }
:root body .fx-car-vid-share .fx-sh-li { background: #0A66C2; }
:root body .fx-car-vid-share .fx-sh-fb { background: #1877F2; }
:root body .fx-car-vid-share .fx-sh-cp { background: var(--fgb-navy); }
:root body .fx-car-vid-share .fx-sh-nat { background: var(--fgb-coral-btn); }
:root body .fx-car-vid-share .fx-sh[hidden] { display: none; }
:root body .fx-car-vid-share .fx-sh-ok {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); padding: 6px 12px; border-radius: 999px;
  background: var(--fgb-navy); color: #fff; font: 700 13px/18px var(--fgb-font); opacity: 0; pointer-events: none; transition: opacity .2s ease; white-space: nowrap;
}
:root body .fx-car-vid-share .fx-sh-ok.fx-on { opacity: 1; }
@media (max-width: 767px) { :root body .fx-car-vid-share-t { width: 100%; text-align: center; margin: 0 0 2px; } }

/* página inicial, faixa «COMPROMISSO COM OS SEUS INTERESSES» (defeito que já existia): nos tablets o título não
   partia linha e saía do ecrã dos dois lados */
@media (max-width: 1199px) {
  :root body .sessao4-1 .conteudo { max-width: calc(100% - 2 * var(--fgb-margem)); min-width: 0; box-sizing: border-box; }
  :root body .sessao4-1 .conteudo h2 { white-space: normal; }
}

/* ---------- v1.0.45.2 — mudar de página sem «flash» (auditoria de 23/11/2026, ponto 3.3) ----------
   Fundo branco também no <html>, para não aparecer um intervalo transparente entre páginas, e transição suave
   entre páginas nos browsers que a suportam (Chrome, Edge, Safari 18.2 ou mais recente; os outros ignoram). */
html { background-color: #fff; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* as âncoras da Research não ficam escondidas por baixo do cabeçalho fixo */
#artigos, #newsletter { scroll-margin-top: 96px; }
