/* Barra in comune a tutte le pagine di Candela Finanziaria */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bg); border-bottom: 2.5px solid var(--line);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 21; background: var(--bg);
}
.topbar-in {
  max-width: 560px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text);
  font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1;
}
.brand img { width: 30px; height: auto; display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; border-radius: 6px; padding: 2px; } }
:root[data-theme="dark"] .brand img { background: #fff; border-radius: 6px; padding: 2px; }
.home-link {
  font-weight: 800; font-size: .9rem; color: var(--text); text-decoration: none;
  border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--surface); white-space: nowrap;
}
.home-link:hover { background: var(--yellow); color: #000; }
.home-link:focus-visible, .brand:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
