/* Cabeçalho comum do Horizon Gestão (Desktop e Nuvem) — marcação em ../topo-produto.php */
.hgt { position: sticky; top: 0; z-index: 80; background: #0b1220; transition: transform .3s ease; will-change: transform; backface-visibility: hidden; font-family: 'Inter', -apple-system, "Segoe UI", Arial, sans-serif; color: #e2e8f0; }
.hgt *, .hgt *::before, .hgt *::after { box-sizing: border-box; }
.hgt a { text-decoration: none; }
.hgt .material-symbols-rounded { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; line-height: 1; }
.hgt-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }

/* barra fina: versão + contato */
.hgt-util { background: #060b16; box-shadow: 0 1px 0 #060b16; position: relative; z-index: 1; }
.hgt-util .hgt-wrap { height: 44px; gap: 12px; }
.hgt-util-rotulo { font-size: 12.5px; color: #7f8ea6; white-space: nowrap; }
.hgt-util-dir { margin-left: auto; display: flex; gap: 18px; }
.hgt-util-dir a { color: #a9b8cc; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .2s; }
.hgt-util-dir a:hover { color: #86efac; }
.hgt-util-dir .material-symbols-rounded { font-size: 16px; color: #4ade80; }
/* ao rolar, o topo inteiro sobe a altura da barra fina: transform não muda o layout, então nada pula */
.hgt.rolou { transform: translateY(-44px); }

/* chave Desktop | Nuvem */
.hgt-chave { display: inline-flex; gap: 2px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 3px; flex: none; }
.hgt-chave a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 99px; color: #a9b8cc; font-size: 12.5px; white-space: nowrap; transition: background .2s, color .2s; }
.hgt-chave a b { font-weight: 700; }
.hgt-chave a small { font-size: 11.5px; opacity: .7; }
.hgt-chave a .material-symbols-rounded { font-size: 16px; }
.hgt-chave a:hover { color: #fff; background: rgba(255,255,255,.06); }
.hgt-chave a.ativo { background: #fff; color: #0b1220; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hgt-chave a.ativo .material-symbols-rounded { color: #16a34a; }

/* barra principal */
.hgt-barra { background: #0b1220; position: relative; }
.hgt-barra::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.4) 30%, rgba(74,222,128,.4) 70%, transparent); }
.hgt-barra .hgt-wrap { height: 70px; }
.hgt.rolou .hgt-barra { box-shadow: 0 10px 30px -12px rgba(2,6,23,.6); }
.hgt-marca { display: flex; align-items: center; gap: 16px; flex: none; }
.hgt-logo img { height: 44px; width: auto; display: block; max-width: none; }
.hgt-sep { width: 1px; height: 30px; background: rgba(255,255,255,.14); }
.hgt-produto { display: flex; align-items: center; gap: 10px; color: #fff; }
.hgt-produto img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.hgt-produto > span { display: flex; flex-direction: column; line-height: 1.15; }
.hgt-produto b { font: 700 15.5px 'Poppins', 'Inter', sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.hgt-produto small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: #86efac; letter-spacing: .02em; }
.hgt-produto small .material-symbols-rounded { font-size: 14px; }

.hgt-menu { flex: 1; display: flex; justify-content: center; gap: 2px; min-width: 0; }
.hgt-menu a { position: relative; color: rgba(226,232,240,.75); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; white-space: nowrap; transition: color .2s, background .2s; }
.hgt-menu a:hover { color: #fff; background: rgba(255,255,255,.07); }
.hgt-menu a.atual { color: #fff; }
.hgt-menu a.atual::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: #4ade80; }

.hgt-acoes { display: flex; gap: 8px; flex: none; }
.hgt-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 9px 15px; border-radius: 10px; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.hgt-btn .material-symbols-rounded { font-size: 18px; }
.hgt-btn-linha { color: #e2e8f0; border: 1px solid rgba(255,255,255,.18); }
.hgt-btn-linha .material-symbols-rounded { color: #4ade80; }
.hgt-btn-linha:hover { border-color: rgba(74,222,128,.55); background: rgba(74,222,128,.08); }
.hgt-btn-cheio { color: #fff; background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 6px 18px -6px rgba(34,197,94,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.hgt-btn-cheio:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(34,197,94,.75), inset 0 1px 0 rgba(255,255,255,.2); }

.hgt-abrir { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 11px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; place-items: center; }
.hgt-abrir .material-symbols-rounded { font-size: 24px; }

/* painel do celular */
.hgt-painel { background: #0b1220; border-bottom: 1px solid rgba(255,255,255,.08); max-height: calc(100vh - 104px); overflow-y: auto; box-shadow: 0 30px 50px rgba(2,6,23,.6); }
.hgt-painel .hgt-wrap { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 18px; padding-bottom: 22px; }
.hgt-chave-grande { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; padding: 4px; }
.hgt-chave-grande a { flex-direction: column; gap: 2px; padding: 10px; border-radius: 11px; font-size: 14px; }
.hgt-chave-grande a .material-symbols-rounded { font-size: 22px; }
.hgt-painel-menu { display: grid; }
.hgt-painel-menu a { display: flex; justify-content: space-between; align-items: center; color: #e2e8f0; font-size: 16px; font-weight: 600; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
.hgt-painel-menu a .material-symbols-rounded { color: #64748b; font-size: 20px; }
.hgt-painel-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hgt-painel-acoes .hgt-btn { justify-content: center; padding: 13px; font-size: 15px; }
.hgt-painel-rodape { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hgt-painel-rodape a { color: #a9b8cc; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.hgt-painel-rodape .material-symbols-rounded { color: #4ade80; font-size: 18px; }
html.hgt-trava, html.hgt-trava body { overflow: hidden; }

/* ----- telas menores ----- */
@media (max-width: 1240px) { .hgt-menu a { padding: 8px 9px; font-size: 14px; } .hgt-sep { display: none; } .hgt-marca { gap: 12px; } }
@media (max-width: 1200px) {
  .hgt-menu, .hgt-acoes { display: none; }
  .hgt-abrir { display: grid; }
  .hgt-util-dir a:last-child { display: none; }
}
@media (max-width: 640px) {
  .hgt-util-rotulo, .hgt-util-dir { display: none; }
  .hgt-util .hgt-wrap { justify-content: center; }
  .hgt-chave a small { display: none; }
  .hgt-barra .hgt-wrap { height: 60px; }
  .hgt-logo img { height: 36px; }
  .hgt-produto img { width: 30px; height: 30px; }
  .hgt-produto b { font-size: 14.5px; }
  .hgt-painel-acoes { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .hgt-produto > span { display: none; } }
@media (prefers-reduced-motion: reduce) { .hgt { transition: none; } }
.hgt.aberto { transform: none; }
