/* Header FA v2 · estilo luz-petroleo, versão de largura total e cantos rectos
   Redesenha o header "Header Default Single Light" (layout do tema) só por CSS, sem tocar no layout.
   Computador: barra de telefones (recolhe ao rolar) + barra de largura total. Sobre o herói (home) a barra é transparente,
   com logótipo e menu brancos; ao rolar passa a branca com desfoque. Nas outras páginas é sempre branca.
   Menus "As Clínicas" e "Tratamentos" abrem em painel de largura total (lista numerada, resumo e cartão de contacto).
   Telemóvel e tablet (até 1024 px): barra curta com "Marcar" e botão de menu; menu de ecrã inteiro com contactos no fim.
   Par do header-fa.js (estados ao rolar, estrutura dos painéis e contactos do menu). */

:root {
  --fa-ink: #17323B;
  --fa-deep: #0E242B;
  --fa-or: #F58320;
  --fa-or-d: #D96E14;
  --fa-peach: #FEF2E7;
  --fa-mist: #F1F6F7;
  --fa-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --fa-top: 0px;
  --fa-ph: 125px;           /* espaço do header no fluxo das páginas sem herói: barra de telefones + barra */
  --fa-gx: max(24px, calc((100vw - 1240px) / 2));   /* margem lateral que alinha tudo à coluna de 1240 px */
}
@media (max-width: 1024px) { :root { --fa-ph: 68px; --fa-gx: 16px; } }
body.admin-bar { --fa-top: 32px; }
@media (max-width: 782px) { body.admin-bar { --fa-top: 46px; } }

/* ── Cores do header por estado (variáveis lidas por tudo o resto) ──────────────────────────────── */
html body header.top_panel_custom:has(.elementor-element-ccee31e) {
  --fa-bar-bg: rgba(255, 255, 255, 0.97); --fa-bar-line: rgba(23, 50, 59, 0.09); --fa-bar-shadow: none;
  --fa-fg: #17323B; --fa-logo-filter: none; --fa-burger: #17323B;
}
/* Sobre o herói (home e rascunho da home), antes de rolar: transparente com letras brancas */
html:not(.fh-h-scrolled) body.home header.top_panel_custom:has(.elementor-element-ccee31e),
html:not(.fh-h-scrolled) body.page-id-24793 header.top_panel_custom:has(.elementor-element-ccee31e) {
  --fa-bar-bg: rgba(14, 36, 43, 0.88); --fa-bar-line: rgba(255, 255, 255, 0.14);   /* mais escuro para o logótipo a cores (06/11/2026) */ --fa-bar-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --fa-fg: #FFFFFF; --fa-logo-filter: none; --fa-burger: #FFFFFF;   /* logótipo sempre nas cores originais (06/11/2026) */
}
/* Ao rolar: barra branca com desfoque */
html.fh-h-scrolled body header.top_panel_custom:has(.elementor-element-ccee31e) {
  --fa-bar-bg: rgba(255, 255, 255, 0.92); --fa-bar-shadow: 0 14px 40px rgba(14, 36, 43, 0.10);
}
/* Com um painel aberto, a barra fica branca para ligar ao painel */
html body header.top_panel_custom:has(.elementor-element-ccee31e):has(.sc_layouts_menu_nav > li.menu-item-has-children:hover),
html body header.top_panel_custom:has(.elementor-element-ccee31e):has(.sc_layouts_menu_nav > li.sfHover) {
  --fa-bar-bg: #FFFFFF; --fa-bar-line: rgba(23, 50, 59, 0.09); --fa-bar-shadow: none; --fa-fg: #17323B; --fa-logo-filter: none; --fa-burger: #17323B;
}

/* ── Base: o header sai do fluxo e flutua; nas páginas com herói sobrepõe-se a ele ──────────────────── */
html body header.top_panel_custom:has(.elementor-element-ccee31e) {
  position: relative !important; height: var(--fa-ph); background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html body.home header.top_panel_custom:has(.elementor-element-ccee31e),
html body.page-id-24793 header.top_panel_custom:has(.elementor-element-ccee31e) { height: 0; }          /* 24793 = rascunho da home nova */
html body header.top_panel_custom:has(.elementor-element-ccee31e) > .elementor {
  position: fixed; top: var(--fa-top); left: 0; right: 0; z-index: 1000; background: transparent !important;
  transition: transform 0.6s var(--fa-ease);
}
html.fh-h-hidden body header.top_panel_custom:has(.elementor-element-ccee31e) > .elementor { transform: translateY(-115%); }
html.fh-mm-open body header.top_panel_custom:has(.elementor-element-ccee31e) > .elementor { transform: none; }
html body header.top_panel_custom:has(.elementor-element-ccee31e) a { text-decoration: none !important; }

/* ── Barra de telefones (recolhe ao rolar) ───────────────────────────────────────────────────────── */
html body header.top_panel_custom .elementor-element-ccee31e {
  background: rgba(14, 36, 43, 0.78) !important; -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); min-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden; max-height: 40px;
  transition: max-height 0.55s var(--fa-ease), opacity 0.4s ease;
}
html body header.top_panel_custom .elementor-element-ccee31e > .e-con-inner {
  max-width: none; width: 100%; margin: 0; padding: 0 var(--fa-gx) !important; min-height: 40px;
  display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 4px;
}
html body header.top_panel_custom .elementor-element-ccee31e .elementor-widget { margin: 0 !important; width: auto !important; }
html body header.top_panel_custom .elementor-element-ccee31e a.elementor-button {
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 6px 14px !important; font: 500 13px/1.2 Roboto, system-ui, sans-serif !important; letter-spacing: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important; transition: color 0.3s ease;
}
html body header.top_panel_custom .elementor-element-ccee31e a.elementor-button .elementor-button-icon { color: var(--fa-or) !important; margin-right: 8px; }
html body header.top_panel_custom .elementor-element-ccee31e a.elementor-button:hover { color: var(--fa-or) !important; }
html.fh-h-scrolled body header.top_panel_custom .elementor-element-ccee31e { max-height: 0; opacity: 0; }

/* ── Barra principal: largura total ───────────────────────────────────────────────────────────────── */
html body header.top_panel_custom .elementor-element-c20e42d {
  background: var(--fa-bar-bg) !important; border-bottom: 1px solid var(--fa-bar-line) !important; box-shadow: var(--fa-bar-shadow);
  padding: 0 !important; margin: 0 !important; min-height: 0 !important; position: static !important;
  transition: background-color 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}
/* vidro: escuro sobre o herói, branco depois de rolar */
html body header.top_panel_custom .elementor-element-c20e42d { -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
html body header.top_panel_custom .elementor-element-c20e42d > .e-con-inner { max-width: none; width: 100%; margin: 0; padding: 0 !important; position: static !important; }
html body header.top_panel_custom .elementor-element-2ffc905 {
  position: static !important; width: 100%; flex: 1 1 auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 28px;
  padding: 0 var(--fa-gx) !important; min-height: 84px; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  transition: min-height 0.5s var(--fa-ease);
}
html.fh-h-scrolled body header.top_panel_custom .elementor-element-2ffc905 { min-height: 68px; }

/* logótipo */
html body header.top_panel_custom .elementor-element-a09c79b { flex: 0 0 auto; width: auto !important; position: static !important; }
html body header.top_panel_custom .elementor-element-88e3712 { margin: 0 !important; }
html body header.top_panel_custom .elementor-element-88e3712 img {
  height: 46px !important; width: auto !important; max-width: none; display: block; filter: var(--fa-logo-filter);
  transition: height 0.5s var(--fa-ease), filter 0.4s ease;
}
html.fh-h-scrolled body header.top_panel_custom .elementor-element-88e3712 img { height: 38px !important; }

/* menu ao centro */
html body header.top_panel_custom .elementor-element-ffdb80c { flex: 1 1 auto; width: auto !important; display: flex; justify-content: center; align-items: center; position: static !important; }
html body header.top_panel_custom .elementor-element-e0fcd8c { margin: 0 !important; position: static !important; }
html body header.top_panel_custom .elementor-element-e0fcd8c .elementor-widget-container { position: static !important; }
html body header.top_panel_custom nav.sc_layouts_menu { background: transparent !important; position: static !important; overflow: visible !important; }
html body header.top_panel_custom .sc_layouts_menu_nav { display: flex !important; align-items: stretch; gap: 4px; margin: 0; padding: 0; position: static !important; }
html body header.top_panel_custom .sc_layouts_menu_nav > li { margin: 0 !important; padding: 0 !important; position: static !important; display: flex; }
html body header.top_panel_custom .sc_layouts_menu_nav > li > a {
  position: relative; display: inline-flex; align-items: center; white-space: nowrap; padding: 30px 16px !important; border-radius: 0;
  font: 500 15.5px/1.2 Roboto, system-ui, sans-serif !important; letter-spacing: 0 !important; color: var(--fa-fg) !important; background: transparent !important;
  transition: color 0.35s ease, padding 0.5s var(--fa-ease);
}
html.fh-h-scrolled body header.top_panel_custom .sc_layouts_menu_nav > li > a { padding-top: 22px !important; padding-bottom: 22px !important; }
/* linha laranja que cresce por baixo */
html body header.top_panel_custom .sc_layouts_menu_nav > li > a::before {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--fa-or); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--fa-ease);
}
html body header.top_panel_custom .sc_layouts_menu_nav > li:hover > a,
html body header.top_panel_custom .sc_layouts_menu_nav > li.sfHover > a { color: var(--fa-or-d) !important; }
html body header.top_panel_custom .sc_layouts_menu_nav > li:hover > a::before,
html body header.top_panel_custom .sc_layouts_menu_nav > li.sfHover > a::before,
html body header.top_panel_custom .sc_layouts_menu_nav > li.current-menu-item > a::before,
html body header.top_panel_custom .sc_layouts_menu_nav > li.current-menu-ancestor > a::before { transform: scaleX(1); }
html body header.top_panel_custom .sc_layouts_menu_nav > li.current-menu-item > a,
html body header.top_panel_custom .sc_layouts_menu_nav > li.current-menu-ancestor > a { color: var(--fa-or) !important; }
/* seta nos itens com painel */
html body header.top_panel_custom .sc_layouts_menu_nav > li.menu-item-has-children > a::after {
  content: ""; display: inline-block !important; position: static !important; flex: 0 0 auto; width: 6px; height: 6px; margin: -3px 0 0 10px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); transition: transform 0.35s var(--fa-ease); opacity: 0.8;
}
html body header.top_panel_custom .sc_layouts_menu_nav > li.menu-item-has-children:hover > a::after,
html body header.top_panel_custom .sc_layouts_menu_nav > li.sfHover > a::after { transform: rotate(225deg) translate(-2px, -2px); }

/* botão Marcar Consulta */
html body header.top_panel_custom .elementor-element-b80943e { flex: 0 0 auto; width: auto !important; position: static !important; }
html body header.top_panel_custom .elementor-element-ffc639c { margin: 0 !important; }
html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px !important; border-radius: 12px !important;
  background: var(--fa-or) !important; color: var(--fa-ink) !important; border: 0 !important;
  font: 600 15px/1 Roboto, system-ui, sans-serif !important; letter-spacing: 0 !important; box-shadow: none !important;
  transition: background-color 0.35s ease, color 0.35s ease;
}
html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button::after { content: "\2192"; font-size: 17px; line-height: 1; transition: transform 0.45s var(--fa-ease); }
html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button:hover { background: var(--fa-ink) !important; color: #fff !important; }
html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button:hover::after { transform: translateX(5px); }

/* ── Painéis dos menus (As Clínicas, Tratamentos) ─────────────────────────────────────────────────── */
html body header.top_panel_custom .sc_layouts_menu_nav > li.menu-item-has-children > ul.sub-menu {
  position: absolute !important; left: 0 !important; right: 0 !important; top: 100% !important; width: auto !important; min-width: 0 !important; max-width: none !important;
  margin: 0 !important; padding: 44px var(--fa-gx) 52px !important; border: 0 !important; border-top: 1px solid rgba(23, 50, 59, 0.09) !important; border-radius: 0 0 24px 24px !important;
  background: #FFFFFF !important; box-shadow: 0 50px 90px rgba(14, 36, 43, 0.22) !important; counter-reset: fa;
  display: none;   /* só abre com o rato ou com o sfHover do tema; o display inline do JS do tema continua a poder abrir */
}
html body header.top_panel_custom .sc_layouts_menu_nav > li.menu-item-has-children:hover > ul.sub-menu,
html body header.top_panel_custom .sc_layouts_menu_nav > li.sfHover > ul.sub-menu {
  display: grid !important; opacity: 1 !important; visibility: visible !important;
  grid-template-columns: 0.9fr 1.1fr 1.1fr 1.1fr; column-gap: 48px; row-gap: 0; align-content: start;
  animation: fa-drop 0.45s var(--fa-ease) both;
}
@keyframes fa-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
/* ponte invisível, para o rato não perder o painel */
html body header.top_panel_custom .sc_layouts_menu_nav > li.menu-item-has-children > ul.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
/* escurece a página por baixo do painel */
html:has(.sc_layouts_menu_nav > li.menu-item-has-children:hover)::after,
html:has(.sc_layouts_menu_nav > li.sfHover)::after {
  content: ""; position: fixed; inset: 0; z-index: 900; background: rgba(14, 36, 43, 0.42); pointer-events: none; animation: fa-fade 0.4s ease both;
}
@keyframes fa-fade { from { opacity: 0; } to { opacity: 1; } }

/* itens: lista numerada em duas colunas */
html body header.top_panel_custom ul.sub-menu > li { margin: 0 !important; padding: 0 !important; list-style: none; counter-increment: fa; grid-column: span 1; }
html body header.top_panel_custom ul.sub-menu > li:not(.fh-mega-head):not(.fh-mega-aside) > a {
  display: flex !important; align-items: baseline; gap: 16px; padding: 18px 4px 18px 0 !important; border-radius: 0; border-bottom: 1px solid rgba(23, 50, 59, 0.10);
  font: 500 17px/1.3 Roboto, system-ui, sans-serif !important; letter-spacing: 0 !important; color: var(--fa-ink) !important; background: transparent !important; white-space: normal;
  transition: color 0.3s ease, padding 0.45s var(--fa-ease);
}
html body header.top_panel_custom ul.sub-menu > li:not(.fh-mega-head):not(.fh-mega-aside) > a::before { content: counter(fa, decimal-leading-zero); flex: 0 0 24px; font: 500 12px/1 Roboto, system-ui, sans-serif; letter-spacing: 0.04em; color: var(--fa-or-d); }
html body header.top_panel_custom ul.sub-menu > li:not(.fh-mega-head):not(.fh-mega-aside) > a::after { content: "\2192"; margin-left: auto; color: var(--fa-or); opacity: 0; transform: translateX(-10px); transition: opacity 0.35s ease, transform 0.45s var(--fa-ease); }
html body header.top_panel_custom ul.sub-menu > li:not(.fh-mega-head):not(.fh-mega-aside):hover > a { color: var(--fa-or-d) !important; padding-left: 10px !important; }
html body header.top_panel_custom ul.sub-menu > li:not(.fh-mega-head):not(.fh-mega-aside):hover > a::after { opacity: 1; transform: none; }
html body header.top_panel_custom ul.sub-menu > li:nth-child(1) { animation: fa-in 0.5s var(--fa-ease) 0.04s both; }
html body header.top_panel_custom ul.sub-menu > li:nth-child(2) { animation: fa-in 0.5s var(--fa-ease) 0.08s both; }
html body header.top_panel_custom ul.sub-menu > li:nth-child(3) { animation: fa-in 0.5s var(--fa-ease) 0.12s both; }
html body header.top_panel_custom ul.sub-menu > li:nth-child(4) { animation: fa-in 0.5s var(--fa-ease) 0.16s both; }
html body header.top_panel_custom ul.sub-menu > li:nth-child(5) { animation: fa-in 0.5s var(--fa-ease) 0.20s both; }
html body header.top_panel_custom ul.sub-menu > li:nth-child(6) { animation: fa-in 0.5s var(--fa-ease) 0.24s both; }
@keyframes fa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* resumo à esquerda (criado pelo JS) */
html body header.top_panel_custom ul.sub-menu > li.fh-mega-head { grid-column: 1; grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; align-self: start; padding-right: 8px !important; counter-increment: none; }
.fh-mega-head .fh-eyebrow { font: 600 14px/1 Roboto, system-ui, sans-serif; color: var(--fa-or-d); }
.fh-mega-head .fh-titulo { font: 300 clamp(34px, 3.4vw, 46px)/1.05 Roboto, system-ui, sans-serif; letter-spacing: -1.4px; color: var(--fa-ink); }
.fh-mega-head .fh-titulo b { font-weight: 900; }
.fh-mega-head .fh-todos { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 Roboto, system-ui, sans-serif; color: var(--fa-or-d) !important; padding-bottom: 4px; border-bottom: 2px solid var(--fa-or); transition: gap 0.4s var(--fa-ease); }
.fh-mega-head .fh-todos:hover { gap: 16px; }
/* cartão de contacto à direita (criado pelo JS) */
html body header.top_panel_custom ul.sub-menu > li.fh-mega-aside {
  grid-column: 4; grid-row: 1 / span 4; display: flex; flex-direction: column; gap: 14px; align-self: stretch; padding: 30px 30px 32px !important; counter-increment: none; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 70% at 100% 0%, rgba(245, 131, 32, 0.28), rgba(245, 131, 32, 0) 65%), linear-gradient(165deg, #17323B 0%, #0E242B 100%); color: #fff;
}
.fh-mega-aside .fh-eyebrow { font: 600 14px/1 Roboto, system-ui, sans-serif; color: var(--fa-or); }
.fh-mega-aside .fh-chamada { font: 300 26px/1.15 Roboto, system-ui, sans-serif; letter-spacing: -0.6px; color: #fff; }
.fh-mega-aside .fh-tels { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 8px; }
.fh-mega-aside .fh-tels a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); color: #fff !important; transition: color 0.3s ease; }
.fh-mega-aside .fh-tels a:hover { color: var(--fa-or) !important; }
.fh-mega-aside .fh-tels small { font: 400 13px/1 Roboto, system-ui, sans-serif; color: rgba(255, 255, 255, 0.7); }
.fh-mega-aside .fh-tels strong { font: 600 18px/1 Roboto, system-ui, sans-serif; white-space: nowrap; }
.fh-mega-aside .fh-marcar { margin-top: auto; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--fa-or); color: var(--fa-ink) !important; font: 600 15px/1 Roboto, system-ui, sans-serif; transition: background-color 0.3s ease, color 0.3s ease; }
.fh-mega-aside .fh-marcar::after { content: "\2192"; font-size: 17px; transition: transform 0.4s var(--fa-ease); }
.fh-mega-aside .fh-marcar:hover { background: #fff; }
.fh-mega-aside .fh-marcar:hover::after { transform: translateX(5px); }

/* Tratamentos: 8 itens em 2 colunas × 4 linhas */
html body header.top_panel_custom li.fh-mega-tratamentos > ul.sub-menu { grid-template-rows: repeat(4, auto); }
/* As Clínicas: duas ligações simples à esquerda e dois cartões de clínica */
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu { grid-template-rows: repeat(2, auto); }
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu > li.fh-mega-head,
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu > li.fh-mega-aside { grid-row: 1 / span 2; }
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu > li.fh-simples { grid-column: 2; align-self: center; }
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu > li.fh-simples.fh-n1 { grid-row: 1; }
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu > li.fh-simples.fh-n2 { grid-row: 2; }
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu > li.fh-clinica { grid-column: 3; align-self: stretch; margin: 0 0 12px !important; }
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu > li.fh-clinica.fh-n1 { grid-row: 1; }
html body header.top_panel_custom li.fh-mega-as-clinicas > ul.sub-menu > li.fh-clinica.fh-n2 { grid-row: 2; }
html body header.top_panel_custom ul.sub-menu > li.fh-clinica:not(.fh-mega-head):not(.fh-mega-aside) > a {
  height: 100%; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 22px 26px !important;
  background: var(--fa-mist) !important; border: 0; border-left: 3px solid var(--fa-or); border-radius: 16px; position: relative;
}
html body header.top_panel_custom ul.sub-menu > li.fh-clinica:not(.fh-mega-head):not(.fh-mega-aside) > a::before { content: none; }
html body header.top_panel_custom ul.sub-menu > li.fh-clinica:not(.fh-mega-head):not(.fh-mega-aside) > a::after { position: absolute; right: 22px; top: 50%; margin: -9px 0 0; }
html body header.top_panel_custom ul.sub-menu > li.fh-clinica:not(.fh-mega-head):not(.fh-mega-aside):hover > a { padding-left: 26px !important; background: var(--fa-peach) !important; }
.fh-clinica .fh-city { font: 600 13px/1 Roboto, system-ui, sans-serif; color: var(--fa-or-d); }
.fh-clinica .fh-nome { font: 500 18px/1.25 Roboto, system-ui, sans-serif; color: var(--fa-ink); padding-right: 30px; }

/* ── Telemóvel e tablet ──────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  html body header.top_panel_custom .elementor-element-ccee31e { display: none !important; }                 /* os telefones passam para o menu */
  html body header.top_panel_custom .elementor-element-2ffc905 { gap: 10px; min-height: 68px; padding: 0 16px !important; }
  html.fh-h-scrolled body header.top_panel_custom .elementor-element-2ffc905 { min-height: 60px; }
  html body header.top_panel_custom .elementor-element-88e3712 img { height: 34px !important; }
  html.fh-h-scrolled body header.top_panel_custom .elementor-element-88e3712 img { height: 30px !important; }
  html:has(.sc_layouts_menu_nav > li:hover)::after { content: none; }

  /* ordem: logótipo · Marcar · botão de menu */
  html body header.top_panel_custom .elementor-element-a09c79b { order: 1; margin-right: auto; min-width: 0; flex: 0 1 auto; }
  html body header.top_panel_custom .elementor-element-b80943e { order: 2; display: flex !important; }
  html body header.top_panel_custom .elementor-element-ffdb80c { order: 3; flex: 0 0 auto; width: auto !important; min-width: 0; padding: 0 !important; margin: 0 !important; }
  html body header.top_panel_custom nav.sc_layouts_menu { display: none !important; }

  /* "Marcar Consulta" passa a "Marcar" */
  html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button { padding: 13px 18px !important; font-size: 14.5px !important; }
  html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button .elementor-button-text { font-size: 0; }
  html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button .elementor-button-text::before { content: "Marcar"; font-size: 14.5px; }
  html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button::after { display: none; }

  /* botão de menu: duas linhas, sem caixa */
  html body header.top_panel_custom .sc_layouts_menu_mobile_button { display: block !important; margin: 0 !important; }
  html body header.top_panel_custom .sc_layouts_menu_mobile_button > a { position: relative; display: block; width: 44px; height: 44px; background: transparent; }
  html body header.top_panel_custom .sc_layouts_menu_mobile_button .sc_layouts_item_icon { display: none !important; }
  html body header.top_panel_custom .sc_layouts_menu_mobile_button > a::before,
  html body header.top_panel_custom .sc_layouts_menu_mobile_button > a::after {
    content: ""; position: absolute; right: 8px; height: 2px; background: var(--fa-burger); transition: width 0.4s var(--fa-ease), background-color 0.3s ease;
  }
  html body header.top_panel_custom .sc_layouts_menu_mobile_button > a::before { top: 16px; width: 26px; }
  html body header.top_panel_custom .sc_layouts_menu_mobile_button > a::after { top: 26px; width: 16px; background: var(--fa-or); }
  html body header.top_panel_custom .sc_layouts_menu_mobile_button > a:hover::after { width: 26px; }
}
@media (max-width: 420px) {
  html body header.top_panel_custom .elementor-element-2ffc905 { gap: 6px; padding: 0 12px !important; }
  html body header.top_panel_custom .elementor-element-88e3712 img { height: 28px !important; }
  html body header.top_panel_custom .elementor-element-ffc639c a.elementor-button { padding: 12px 15px !important; }
}

/* ── Menu de ecrã inteiro ────────────────────────────────────────────────────────────────────────── */
.menu_mobile_overlay { background: rgba(14, 36, 43, 0.55) !important; opacity: 1 !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .menu_mobile.menu_mobile_fullscreen .menu_mobile_inner {
  display: flex; flex-direction: column; text-align: left; color: #fff !important;
  background:
    radial-gradient(90% 45% at 100% 0%, rgba(245, 131, 32, 0.30), rgba(245, 131, 32, 0) 70%),
    radial-gradient(70% 40% at 0% 100%, rgba(245, 131, 32, 0.12), rgba(245, 131, 32, 0) 70%),
    linear-gradient(165deg, #17323B 0%, #0E242B 100%) !important;
}
/* fechado fica escondido como o tema o deixa; aberto pode rolar se o ecrã for baixo */
html body .menu_mobile:not(.opened) .menu_mobile_inner { overflow: hidden; visibility: hidden; }
html body .menu_mobile.opened .menu_mobile_inner { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html body .menu_mobile a { text-decoration: none !important; }
html body .menu_mobile .menu_mobile_header_wrap { position: relative !important; flex: 0 0 auto; padding: 16px 20px 6px !important; display: flex; align-items: center; justify-content: space-between; }
html body .menu_mobile .menu_mobile_header_wrap .sc_layouts_logo { display: inline-flex; padding: 9px 16px; background: #fff; border-radius: 12px; }
html body .menu_mobile .menu_mobile_header_wrap .sc_layouts_logo img { height: 30px !important; width: auto !important; display: block; }
html body .menu_mobile .menu_mobile_close { position: relative; width: 46px; height: 46px; display: block; margin: 0; padding: 0; background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; transition: background-color 0.3s ease; }
html body .menu_mobile .menu_mobile_close:active { background: rgba(255, 255, 255, 0.12); }
html body .menu_mobile .menu_mobile_close .menu_button_close_icon,
html body .menu_mobile .menu_mobile_close .menu_button_close_text { display: none !important; }
html body .menu_mobile .menu_mobile_close::before,
html body .menu_mobile .menu_mobile_close::after { content: ""; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px; background: #fff; }
html body .menu_mobile .menu_mobile_close::before { transform: rotate(45deg); }
html body .menu_mobile .menu_mobile_close::after { transform: rotate(-45deg); }

html body .menu_mobile .menu_mobile_content_wrap { position: static !important; flex: 1 0 auto; padding: 10px 22px 0 !important; margin: 0 !important; width: auto !important; max-width: none !important; }
html body .menu_mobile .menu_mobile_content_wrap_inner { margin: 0 !important; }
html body .menu_mobile .menu_mobile_nav_area > ul { display: block !important; margin: 0; padding: 0; list-style: none; }
html body .menu_mobile .menu_mobile_nav_area li { position: relative; margin: 0; padding: 0; list-style: none; }
html body .menu_mobile .menu_mobile_inner .menu_mobile_nav_area > ul > li > a {
  display: block; padding: 17px 52px 17px 0 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font: 300 clamp(26px, 8vw, 34px)/1.15 Roboto, system-ui, sans-serif !important; letter-spacing: -0.6px; color: #fff !important; transition: color 0.3s ease, padding-left 0.4s var(--fa-ease);
}
html body .menu_mobile .menu_mobile_inner .menu_mobile_nav_area > ul > li > a:active { padding-left: 8px !important; }
html body .menu_mobile .menu_mobile_inner .menu_mobile_nav_area > ul > li.current-menu-item > a,
html body .menu_mobile .menu_mobile_inner .menu_mobile_nav_area > ul > li.opened > a { color: var(--fa-or) !important; font-weight: 500 !important; }
html body .menu_mobile .menu_mobile_inner .menu_mobile_nav_area .sub-menu { padding: 4px 0 14px 4px !important; margin: 0; background: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
html body .menu_mobile .menu_mobile_inner .menu_mobile_nav_area .sub-menu li > a {
  display: block; padding: 12px 0 12px 16px !important; border-left: 2px solid rgba(245, 131, 32, 0.45);
  font: 400 clamp(17px, 4.8vw, 19px)/1.3 Roboto, system-ui, sans-serif !important; color: rgba(255, 255, 255, 0.82) !important; letter-spacing: 0;
}
html body .menu_mobile .menu_mobile_inner .menu_mobile_nav_area .sub-menu li + li > a { margin-top: 4px; }
html body .menu_mobile .menu_mobile_inner .menu_mobile_nav_area .sub-menu li > a:active { color: var(--fa-or) !important; }
/* + / − para abrir e fechar */
html body .menu_mobile .menu_mobile_nav_area > ul > li > a > .open_child_menu {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.28); background: transparent !important; display: block;
}
html body .menu_mobile .menu_mobile_nav_area > ul > li.menu-item-has-children { position: relative; }
html body .menu_mobile .menu_mobile_nav_area > ul > li > a > .open_child_menu::before,
html body .menu_mobile .menu_mobile_nav_area > ul > li > a > .open_child_menu::after {
  content: "" !important; font-family: inherit !important; position: absolute !important; opacity: 1 !important; right: auto !important; top: 50% !important; left: 50% !important;
  width: 14px; height: 2px; margin: -1px 0 0 -7px; background: #fff; transition: transform 0.4s var(--fa-ease), background-color 0.3s ease;
}
html body .menu_mobile .menu_mobile_nav_area > ul > li > a > .open_child_menu::after { transform: rotate(90deg); }
html body .menu_mobile .menu_mobile_nav_area > ul > li.opened > a > .open_child_menu { border-color: var(--fa-or); }
html body .menu_mobile .menu_mobile_nav_area > ul > li.opened > a > .open_child_menu::before,
html body .menu_mobile .menu_mobile_nav_area > ul > li.opened > a > .open_child_menu::after { background: var(--fa-or); }
html body .menu_mobile .menu_mobile_nav_area > ul > li.opened > a > .open_child_menu::after { transform: rotate(0); }
/* entrada em cascata */
html body .menu_mobile.opened .menu_mobile_nav_area > ul > li { animation-duration: 0.7s; }
html body .menu_mobile.opened .menu_mobile_nav_area > ul > li:nth-child(1) { animation-delay: 0.10s; }
html body .menu_mobile.opened .menu_mobile_nav_area > ul > li:nth-child(2) { animation-delay: 0.17s; }
html body .menu_mobile.opened .menu_mobile_nav_area > ul > li:nth-child(3) { animation-delay: 0.24s; }
html body .menu_mobile.opened .menu_mobile_nav_area > ul > li:nth-child(4) { animation-delay: 0.31s; }
html body .menu_mobile.opened .menu_mobile_nav_area > ul > li:nth-child(5) { animation-delay: 0.38s; }
html body .menu_mobile.opened .fh-mm-acoes { animation: fa-mm-up 0.8s var(--fa-ease) 0.42s both; }
@keyframes fa-mm-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* a área de widgets de origem tem texto de exemplo em inglês ("Have Questions?"): fica escondida */
html body .menu_mobile .menu_mobile_widgets_area { display: none !important; }

/* contactos no fim do menu (criados pelo header-fa.js a partir dos links do próprio header) */
.fh-mm-acoes { flex: 0 0 auto; margin: 26px 22px 0; padding: 0 0 max(26px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.fh-mm-acoes a { display: flex; align-items: center; justify-content: space-between; text-decoration: none; transition: background-color 0.3s ease; }
.fh-mm-acoes .fh-mm-cta { border-radius: 12px; padding: 19px 24px; background: var(--fa-or); color: var(--fa-ink) !important; font: 600 17px/1 Roboto, system-ui, sans-serif; }
.fh-mm-acoes .fh-mm-cta::after { content: "\2192"; font-size: 20px; }
.fh-mm-tels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fh-mm-tels a { border-radius: 12px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 14px 18px; background: rgba(255, 255, 255, 0.07); border-left: 3px solid var(--fa-or); color: #fff !important; }
.fh-mm-tels small { font: 400 13px/1 Roboto, system-ui, sans-serif; color: rgba(255, 255, 255, 0.7); }
.fh-mm-tels strong { font: 600 16px/1.1 Roboto, system-ui, sans-serif; color: #fff; white-space: nowrap; }
@media (max-width: 340px) { .fh-mm-tels { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html body header.top_panel_custom *, html body .menu_mobile *, html::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

/* ── Botão "Início" (o "Go to Top" do tema) ──────────────────────────────────────────────────────────
   Fica na mesma zona (vertical, encostado à direita), mas mais acima e mais à direita do botão do WhatsApp
   (que está a 55 px da direita e 15 px do fundo), para nunca ficar por trás dele.
   Pílula petróleo com anel branco e seta laranja: distingue-se em fundo claro, escuro ou laranja. */
html body .trx_addons_scroll_to_top.scroll_to_top_style_modern {
  right: 14px !important; left: auto !important; bottom: -220px !important; top: auto !important;
  width: auto !important; height: auto !important; line-height: 1 !important; padding: 16px 10px !important;
  display: inline-flex !important; align-items: center; gap: 10px;
  writing-mode: vertical-rl; transform: rotate(180deg) !important; transform-origin: 50% 50% !important;
  background: #17323B !important; color: #FFFFFF !important; border: 0 !important; border-radius: 12px !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 12px 30px rgba(14, 36, 43, 0.35) !important;
  z-index: 99990 !important; opacity: 0;
  transition: bottom 0.6s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease, background-color 0.3s ease !important;
}
html body .trx_addons_scroll_to_top.scroll_to_top_style_modern.show { bottom: 96px !important; opacity: 1; }
html body .trx_addons_scroll_to_top.scroll_to_top_style_modern:hover { background: #F58320 !important; color: #17323B !important; }
html body .trx_addons_scroll_to_top.scroll_to_top_style_modern .scroll_to_top_text { font-size: 0 !important; line-height: 1; }
html body .trx_addons_scroll_to_top.scroll_to_top_style_modern .scroll_to_top_text::before { content: "Início"; font: 600 13px/1 Roboto, system-ui, sans-serif; letter-spacing: 0.02em; }
html body .trx_addons_scroll_to_top.scroll_to_top_style_modern .scroll_to_top_icon { margin: 0 !important; color: #F58320; }
html body .trx_addons_scroll_to_top.scroll_to_top_style_modern:hover .scroll_to_top_icon { color: #17323B; }
@media (max-width: 1023px) {
  html body .trx_addons_scroll_to_top.scroll_to_top_style_modern { right: 10px !important; padding: 13px 8px !important; }
  html body .trx_addons_scroll_to_top.scroll_to_top_style_modern.show { bottom: 92px !important; }
}
