/* Cabecalho de todas as paginas interiores do dioscope.com (2026-09-28): o mesmo da
   homepage do computador (desenho do Ricardo, hd.css), em tema claro, para quem
   navega da homepage para Eventos, Parceiros, Sobre nos, etc. nao mudar de site.
   Prefixo tp- para nao tocar no hd.css da homepage nem no .site-header antigo.
   --tp-u faz o papel do --hd-u (mesma escala: identico a' homepage em qualquer largura).
   Marcacao: nas paginas com cabecalho no HTML e no site-chrome.js (landings). Logica: topo.js. */

:root {
  --tp-u: clamp(12px, .8333vw, 17px);
  --tp-navy: #0c2c3d;
  --tp-blue: #357ded;
  --tp-bg: #f4f7fb;
  --tp-bg-rgb: 244,247,251;
  --tp-ink: #0c2c3d;
  --tp-ink-2: #3b4d5e;
  --tp-ink-3: #5d6f81;
  --tp-line: rgba(12,44,61,.12);
  --tp-line-2: rgba(12,44,61,.2);
  --tp-glass: rgba(255,255,255,.6);
  --tp-glass-2: rgba(255,255,255,.8);
  --tp-shadow: rgba(12,44,61,.12);
  --tp-ease: cubic-bezier(.215,.61,.355,1);
  --tp-ease-soft: cubic-bezier(.5,1,.89,1);
  --tp-pad-x: calc(2.5 * var(--tp-u));
}
@media (min-width: 768px)  { :root { --tp-pad-x: calc(3 * var(--tp-u)); } }
@media (min-width: 1024px) { :root { --tp-pad-x: calc(4 * var(--tp-u)); } }
@media (min-width: 1366px) { :root { --tp-pad-x: calc(10 * var(--tp-u)); } }

.tp-header, .tp-header *, .tp-header *::before, .tp-header *::after { box-sizing: border-box; }
.tp-header {
  position: sticky; top: 0; z-index: 1000;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--tp-u); font-weight: 300; line-height: 1.5; color: var(--tp-ink);
  -webkit-font-smoothing: antialiased;
}
/* Fundo num pseudo-elemento: um backdrop-filter no proprio header prenderia o menu
   de ecra inteiro (position: fixed) dentro da altura do header. */
.tp-header::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(var(--tp-bg-rgb),.86);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--tp-ease);
}
.tp-header.tp-is-scrolled::before { border-bottom-color: var(--tp-line); }
.tp-header ul { list-style: none; margin: 0; padding: 0; }
.tp-header img { display: block; max-width: 100%; }
.tp-header a { color: inherit; }
.tp-skip { position: absolute; left: -999px; top: 0; }
.tp-skip:focus-visible { left: 1rem; top: 1rem; z-index: 20000; background: #245fcf; color: #fff; padding: .5rem 1rem; border-radius: 2rem; }

.tp-header__inner {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: calc(1 * var(--tp-u));
  padding: calc(1.25 * var(--tp-u)) var(--tp-pad-x);
}
@media (min-width: 1024px) { .tp-header__inner { padding: calc(1.75 * var(--tp-u)) var(--tp-pad-x); } }
/* Altura do cabecalho (medida: 74px abaixo de 1024; 6,5 unidades acima, 78px a 1440 e
   104px a 1920; 64px no telemovel). As ancoras (#secao) param por baixo dele. */
:root { --tp-altura: 74px; }
@media (min-width: 1024px) { :root { --tp-altura: calc(6.5 * var(--tp-u)); } }
html:has(.tp-header) { scroll-padding-top: calc(var(--tp-altura) + 12px); } /* so' com este cabecalho: o simulador tem o seu */
/* margens proprias das paginas, pensadas para o cabecalho antigo: somavam-se a esta */
.inner-medicina section[id], .lp-sec { scroll-margin-top: 0 !important; }
/* Landings: o cabecalho chega pelo site-chrome.js; reservar a altura evita o salto. */
#dio-header { display: block; min-height: var(--tp-altura); background: var(--tp-bg); }
.tp-header__logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.tp-logo-img { display: block; height: calc(2.7 * var(--tp-u)); width: auto; } /* logotipo completo, o mesmo tamanho da homepage */
.tp-header__right { display: flex; align-items: center; gap: calc(.75 * var(--tp-u)); }

/* Botao Entrar (igual ao .hd-btn) */
.tp-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  background: #245fcf; color: #fff; /* #357ded com branco dava 3,95:1; este 5,6:1 (AA) */
  font: inherit; font-size: calc(.9 * var(--tp-u)); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1;
  padding: calc(1.05 * var(--tp-u)) calc(1.4 * var(--tp-u)); border-radius: calc(2 * var(--tp-u)); overflow: hidden;
  transition: color .5s var(--tp-ease-soft);
}
.tp-header a.tp-btn { color: #fff; }
.tp-btn__text { position: relative; z-index: 2; white-space: nowrap; }
.tp-btn__hover {
  position: absolute; inset: 0; background: var(--tp-navy);
  clip-path: ellipse(120% 180% at 50% 310%);
  transition: clip-path 1.1s var(--tp-ease);
}
.tp-btn:hover .tp-btn__hover, .tp-btn:focus-visible .tp-btn__hover { clip-path: ellipse(120% 180% at 50% 60%); }
.tp-btn:focus-visible { outline: 2px solid var(--tp-navy); outline-offset: 2px; }

/* Seletor de idioma (igual ao .hd-lang) */
.tp-lang { position: relative; }
.tp-lang:empty { display: none; }
.tp-lang__btn {
  display: inline-flex; align-items: center; gap: calc(.5 * var(--tp-u)); height: calc(2.75 * var(--tp-u)); padding: 0 calc(.9 * var(--tp-u)); border-radius: calc(2 * var(--tp-u));
  border: 1px solid var(--tp-line-2); background: var(--tp-glass); color: var(--tp-ink); cursor: pointer;
  font: inherit; font-size: calc(.8 * var(--tp-u)); font-weight: 600; letter-spacing: .05em;
  transition: background .4s, border-color .4s;
}
.tp-lang__btn:hover, .tp-lang.tp-is-open .tp-lang__btn { background: var(--tp-glass-2); }
.tp-lang__chevron { width: calc(.65 * var(--tp-u)); height: calc(.65 * var(--tp-u)); color: var(--tp-ink-3); transition: transform .4s var(--tp-ease); }
.tp-lang.tp-is-open .tp-lang__chevron { transform: rotate(180deg); }
.tp-lang__list {
  position: absolute; top: 100%; right: 0; margin-top: calc(.75 * var(--tp-u)); min-width: calc(13 * var(--tp-u)); display: grid; padding: calc(.5 * var(--tp-u)); border-radius: calc(.9 * var(--tp-u));
  border: 1px solid var(--tp-line-2); background: rgba(var(--tp-bg-rgb),.97);
  box-shadow: 0 16px 40px var(--tp-shadow); z-index: 5;
  opacity: 0; visibility: hidden; transform: translateY(calc(-.35 * var(--tp-u))); transition: opacity .3s var(--tp-ease), transform .3s var(--tp-ease), visibility 0s .3s;
}
.tp-lang.tp-is-open .tp-lang__list { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--tp-ease), transform .3s var(--tp-ease); }
.tp-lang__opt {
  display: flex; align-items: center; gap: calc(.7 * var(--tp-u)); width: 100%; padding: calc(.6 * var(--tp-u)) calc(.8 * var(--tp-u)); border: 0; border-radius: calc(.6 * var(--tp-u)); background: none;
  font: inherit; font-size: calc(.85 * var(--tp-u)); font-weight: 500; color: var(--tp-ink-2); text-align: left; text-decoration: none; transition: color .3s, background .3s;
}
.tp-lang__opt:hover { color: var(--tp-ink); background: var(--tp-glass); }
.tp-lang__opt.tp-is-selected { color: var(--tp-ink); font-weight: 600; }
.tp-lang__opt.tp-is-selected::after { content: ""; margin-left: auto; width: calc(.45 * var(--tp-u)); height: calc(.45 * var(--tp-u)); border-radius: 50%; background: var(--tp-blue); }
.tp-lang .lang-flag { display: block; width: calc(1.25 * var(--tp-u)); height: calc(.95 * var(--tp-u)); border-radius: calc(.2 * var(--tp-u)); flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }

/* Navegacao */
.tp-nav { display: none; }
.tp-nav__list { display: flex; align-items: center; gap: calc(2.5 * var(--tp-u)); }
.tp-nav__link {
  font-size: calc(.9 * var(--tp-u)); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  color: var(--tp-ink-3); transition: color .5s var(--tp-ease-soft);
}
.tp-header .tp-nav__link { color: var(--tp-ink-3); }
.tp-header .tp-nav__link:hover, .tp-header .tp-nav__item.tp-is-active .tp-nav__link, .tp-header .tp-nav__link[aria-current="page"] { color: var(--tp-ink); }
.tp-nav__sub-toggle { appearance: none; background: none; border: 0; padding: 0; margin: 0; font-family: inherit; /* sem font: inherit: anulava o tamanho e o peso do .tp-nav__link (Formacao saia mais fino) */ cursor: pointer; display: inline-flex; align-items: center; gap: calc(.35 * var(--tp-u)); }
.tp-nav__chevron { width: .7em; height: .7em; transition: transform .4s var(--tp-ease); }
.tp-nav__item--sub.tp-is-open .tp-nav__chevron { transform: rotate(180deg); }
.tp-nav__item--sub { position: relative; }
.tp-nav__sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: calc(1 * var(--tp-u)); min-width: calc(11 * var(--tp-u));
  opacity: 0; visibility: hidden; transition: opacity .35s var(--tp-ease), visibility 0s .35s; }
.tp-nav__item--sub.tp-is-open .tp-nav__sub { opacity: 1; visibility: visible; transition: opacity .35s var(--tp-ease); }
@media (hover: hover) and (min-width: 768px) {
  .tp-nav__item--sub:hover .tp-nav__sub { opacity: 1; visibility: visible; transition: opacity .35s var(--tp-ease); }
  .tp-nav__item--sub:hover .tp-nav__chevron { transform: rotate(180deg); }
}
.tp-nav__sub-list { display: grid; padding: calc(.5 * var(--tp-u)); border-radius: calc(.9 * var(--tp-u)); border: 1px solid var(--tp-line-2);
  background: rgba(var(--tp-bg-rgb),.97); box-shadow: 0 16px 40px var(--tp-shadow); }
.tp-nav__sub-link { display: block; padding: calc(.6 * var(--tp-u)) calc(.9 * var(--tp-u)); border-radius: calc(.6 * var(--tp-u)); white-space: nowrap; text-decoration: none;
  font-size: calc(.8 * var(--tp-u)); font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  transition: color .3s, background .3s; }
.tp-header .tp-nav__sub-link { color: var(--tp-ink-2); }
.tp-header .tp-nav__sub-link:hover, .tp-header .tp-nav__sub-link[aria-current="page"] { color: var(--tp-ink); background: var(--tp-glass); }
.tp-nav-toggle { display: none; }

/* Menu completo so' a partir de 1024px (como na homepage). */
@media (min-width: 1024px) {
  .tp-nav { display: block; }
}
/* Abaixo de 1024px: menu em ecra inteiro (como na homepage). O Entrar fica sempre
   visivel na barra (decisao anterior do site: nao esconder o Entrar no telemovel). */
@media (max-width: 1023px) {
  .tp-header { --tp-u: 14px; }
  .tp-header__right { gap: calc(.5 * var(--tp-u)); }
  .tp-lang__btn { padding: 0 calc(.7 * var(--tp-u)); }
  .tp-lang__code { display: none; }
  .tp-btn { padding: calc(.85 * var(--tp-u)) calc(1.15 * var(--tp-u)); }
  .tp-nav-toggle {
    display: block; position: relative; flex: none;
    width: calc(2.75 * var(--tp-u)); height: calc(2.75 * var(--tp-u)); border-radius: 50%; border: 1px solid var(--tp-line-2);
    background: var(--tp-glass); cursor: pointer; padding: 0; z-index: 1100;
  }
  .tp-nav-toggle span { position: absolute; left: 50%; top: 50%; width: calc(1.1 * var(--tp-u)); height: 1.5px; background: var(--tp-ink); transform: translate(-50%, -4px); transition: transform .5s var(--tp-ease); }
  .tp-nav-toggle span + span { transform: translate(-50%, 3px); }
  body.tp-nav-open .tp-nav-toggle span { transform: translate(-50%, -50%) rotate(45deg); }
  body.tp-nav-open .tp-nav-toggle span + span { transform: translate(-50%, -50%) rotate(-45deg); }
  body.tp-nav-open { overflow: hidden; }
  .tp-nav {
    display: flex; position: fixed; inset: 0; z-index: 1050; align-items: center; justify-content: center;
    background: rgba(var(--tp-bg-rgb),.97);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--tp-ease), visibility 0s .5s;
  }
  body.tp-nav-open .tp-nav { opacity: 1; visibility: visible; transition: opacity .5s var(--tp-ease); }
  .tp-header__right, .tp-header__logo { position: relative; z-index: 1100; }
  .tp-nav__list { flex-direction: column; gap: calc(1.5 * var(--tp-u)); }
  .tp-header .tp-nav__link { font-size: calc(1.4 * var(--tp-u)); color: var(--tp-ink); }
  .tp-nav__item--sub { display: flex; flex-direction: column; align-items: center; }
  .tp-nav__sub { position: static; transform: none; padding-top: 0; min-width: 0; display: none; opacity: 1; visibility: visible; transition: none; }
  .tp-nav__item--sub.tp-is-open .tp-nav__sub { display: block; margin-top: calc(.9 * var(--tp-u)); }
  .tp-nav__sub-list { padding: calc(.35 * var(--tp-u)) calc(1.25 * var(--tp-u)); gap: calc(.25 * var(--tp-u)); text-align: center; background: var(--tp-glass); box-shadow: none; }
  .tp-nav__sub-link { font-size: calc(1 * var(--tp-u)); }
}
@media (max-width: 380px) {
  .tp-header { --tp-u: 13px; }
  .tp-logo-img { height: calc(2.3 * var(--tp-u)); }
}
@media (prefers-reduced-motion: reduce) {
  .tp-header *, .tp-header *::before, .tp-header *::after { transition: none !important; }
}

/* ---------- Telemovel: apresentacao de app, como a homepage ----------
   O mesmo criterio do app.js da homepage (ecra tatil ate 599px). So' CSS, para nao
   haver salto no primeiro desenho. Em cima: voltar + logotipo + pais (o Entrar e o
   menu passam para a barra de baixo, Voxi | Cursos | Biblioteca | Entrar, igual a'
   da homepage; Cursos fica ativo porque e' dai que se chega a estas paginas).
   Fora dentro de iframes e no espelho /learning/ (html.tp-sem-app, topo.js). */
.tp-voltar, .tp-tabbar { display: none; }
@media (pointer: coarse) and (max-width: 599px) {
  html:not(.tp-sem-app) { --tp-tab-h: 62px; --tp-altura: 64px; }
  html:not(.tp-sem-app) body { padding-bottom: calc(var(--tp-tab-h) + env(safe-area-inset-bottom, 0px)); }
  html:not(.tp-sem-app) .tp-header::before { background: rgba(255,255,255,.96); }
  html:not(.tp-sem-app) .tp-header.tp-is-scrolled::before { border-bottom-color: var(--tp-line); }
  html:not(.tp-sem-app) .tp-header__inner { display: grid; grid-template-columns: 44px 1fr 44px; min-height: 64px; padding: 8px 12px; gap: 8px; }
  html:not(.tp-sem-app) .tp-header__logo { grid-column: 2; justify-self: center; }
  html:not(.tp-sem-app) .tp-logo-img { height: 30px; }
  html:not(.tp-sem-app) .tp-nav, html:not(.tp-sem-app) .tp-nav-toggle, html:not(.tp-sem-app) .tp-header__right > .tp-btn { display: none !important; }
  html:not(.tp-sem-app) .tp-header__right { grid-column: 3; justify-self: end; }
  html:not(.tp-sem-app) .tp-lang__btn { height: 36px; padding: 0 8px; border-color: transparent; background: transparent; }
  /* como na homepage no telemovel: o codigo do pais em texto, sem bandeira */
  html:not(.tp-sem-app) .tp-lang__btn .lang-flag { display: none; }
  html:not(.tp-sem-app) .tp-lang__code { display: inline; font-size: 14px; }
  html:not(.tp-sem-app) .tp-voltar {
    display: flex; grid-column: 1; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 50%; color: var(--tp-ink); -webkit-tap-highlight-color: transparent;
  }
  html:not(.tp-sem-app) .tp-voltar svg { width: 26px; height: 26px; fill: currentColor; }
  /* Barra de separadores (igual a' .site-tabbar da homepage) */
  html:not(.tp-sem-app) .tp-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
    height: calc(var(--tp-tab-h) + env(safe-area-inset-bottom, 0px));
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
  }
  .tp-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 0; min-height: var(--tp-tab-h); padding: 8px 2px 6px;
    color: #405866; font: 500 10.5px/1.1 Poppins, system-ui, sans-serif; letter-spacing: 0; text-transform: none; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tp-header .tp-tab, .tp-tabbar .tp-tab { color: #405866; }
  .tp-tab__icone { display: flex; padding: 3px 12px; border-radius: 12px; }
  .tp-tab__icone svg { width: 22px; height: 22px; fill: currentColor; }
  .tp-tab__rotulo { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tp-header .tp-tab--ativo, .tp-tabbar .tp-tab--ativo { color: #244f9d; font-weight: 600; }
  .tp-tab--ativo .tp-tab__icone { background: #e8eefd; }
  /* Botoes fixos das landings sobem para cima da barra */
  html:not(.tp-sem-app) #lp-cta-bar { bottom: calc(var(--tp-tab-h) + env(safe-area-inset-bottom, 0px) + 14px); }
  html:not(.tp-sem-app) .lp-sticky { bottom: calc(var(--tp-tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  /* Aviso de cookies ao centro do ecra: em baixo, a barra (dentro do .tp-header, z-index 1000)
     tapava os botoes Aceitar/Rejeitar */
  html:not(.tp-sem-app) .dio-cookie-notice { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); z-index: 1001; }
  html:not(.tp-sem-app) #dio-header { background: #fff; }
}

/* Rodape navy das landings (site-chrome.js): «Definicoes de cookies» com o cinzento do
   cookie-consent.css dava 2,3:1. Nas institucionais o interior.css (rodape claro) sobrepoe. */
.site-footer .dio-cookie-settings { color: #e2ebf1; border-color: #aac5d3; }
