/* Menu hambúrguer em ecrãs pequenos — a sidebar (<aside>) passa a gaveta lateral.
   A barra de topo e o fundo escuro são criados por mobile-nav.js. */

.mbar, .mbar-overlay { display: none; }

@media (max-width: 760px) {
  body { display: block; padding-top: 56px; }

  .mbar {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    padding: 0 8px 0 4px;
    gap: 4px;
    align-items: center;
    background: var(--navy);
    color: #fff;
    z-index: 300;
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
  }
  .mbar .mbar-btn {
    width: 48px; height: 48px;
    border: 0; background: transparent; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; cursor: pointer;
  }
  .mbar .mbar-btn:active { background: rgba(255,255,255,.08); }
  .mbar .mbar-logo { font-size: 13px; font-weight: 700; letter-spacing: 2px; }
  .mbar .mbar-pagina { margin-left: auto; padding-right: 8px; font-size: 13px; color: var(--gold); }

  aside {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    width: 270px; max-width: 82vw;
    padding: 24px 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 400;
  }
  nav { display: block; }
  nav a { padding-top: 14px; padding-bottom: 14px; }
  body.menu-aberto aside { transform: none; box-shadow: 8px 0 30px rgba(0,0,0,.35); }

  .mbar-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(15,22,35,.55);
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease;
    z-index: 350;
  }
  body.menu-aberto .mbar-overlay { opacity: 1; pointer-events: auto; }
  body.menu-aberto { overflow: hidden; }

  main { padding: 20px 16px; }
}
