/* Site header on every page except the root ones, which carry the homepage nav (Leo, 23/11/2026: «la testata deve
   essere in tutte le pagine», «tutto statico»). Stamped into the pages by deploy/site-header.py; the metrics are the
   homepage nav's (shared.css: --page 1320px, --gutter 32px, --nav-h 68px; 20px and 60px on phones). */
.rf-sitebar { background: var(--bg, light-dark(#f4f3f0, #1c1b19)); border-bottom: 1px solid var(--line, light-dark(#e3e1dc, #3a3935)); }
.rf-sitebar-inner { max-width: 1320px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rf-sitebar .rf-brand { display: flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink, light-dark(#181611, #f3f2ef)); white-space: nowrap; text-decoration: none; }
.rf-sitebar .rf-brand:hover { text-decoration: none; }
.rf-sitebar .rf-logo { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 30px; height: 30px; padding: 4px; border-radius: 8px; background: oklch(0.22 0.01 90); box-sizing: border-box; }
.rf-sitebar .rf-logo i { border-radius: 2px; display: block; }
.rf-sitebar .rf-links { display: flex; align-items: center; gap: 26px; font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 600; white-space: nowrap; }
.rf-sitebar .rf-links a { color: var(--body, light-dark(#4a4844, #c9c7c1)); text-decoration: none; }
.rf-sitebar .rf-links a:hover { color: var(--ink, light-dark(#181611, #f3f2ef)); text-decoration: none; }
.rf-sitebar .rf-links a.rf-dl, .rf-footer a.rf-dl { display: inline; }   /* Leo, 23/11/2026: «Download scrivilo come Contact», a plain link, no pill */
/* One Download per visitor: the Mac one unless the platform class says otherwise (the same rule as the homepage nav) */
.rf-sitebar .rf-links a.rf-dl:not([data-dl="mac"]), .rf-footer a.rf-dl:not([data-dl="mac"]) { display: none; }
html.is-windows a.rf-dl[data-dl="mac"], html.is-ios a.rf-dl[data-dl="mac"], html.is-android a.rf-dl[data-dl="mac"], html.is-googlebook a.rf-dl[data-dl="mac"] { display: none; }
html.is-windows .rf-sitebar .rf-links a.rf-dl[data-dl="windows"], html.is-ios .rf-sitebar .rf-links a.rf-dl[data-dl="ios"], html.is-android .rf-sitebar .rf-links a.rf-dl[data-dl="android"], html.is-googlebook .rf-sitebar .rf-links a.rf-dl[data-dl="android"], html.is-windows .rf-footer a.rf-dl[data-dl="windows"], html.is-ios .rf-footer a.rf-dl[data-dl="ios"], html.is-android .rf-footer a.rf-dl[data-dl="android"], html.is-googlebook .rf-footer a.rf-dl[data-dl="android"] { display: inline; }
@media (max-width: 767px) {
  .rf-sitebar-inner { padding: 0 20px; height: 60px; gap: 12px; }
  .rf-sitebar .rf-links { gap: 14px; font-size: 14px; }
  .rf-sitebar .rf-brand { font-size: 17px; gap: 9px; }
  .rf-sitebar .rf-links a[href$="#apps"] { display: none; }   /* as on the homepage nav: the apps are one tap away on the home */
}
/* On the narrowest phones (390 px) the header overflowed (Browser Box review, 25/11/2026): the brand goes on two lines and
   Account steps aside, like the homepage nav, so Blog, Contact and Download stay on one row. */
@media (max-width: 480px) {
  .rf-sitebar-inner { padding: 0 16px; }
  .rf-sitebar .rf-brand { white-space: normal; line-height: 1.05; }
  .rf-sitebar .rf-links { gap: 14px; }
  .rf-sitebar .rf-links a[href$="/account"] { display: none; }
}

/* Site footer on every page below the root, the homepage's footer as a template (Leo, 24/11/2026: «usa template su tutte le
   pagine»). Stamped by deploy/site-footer.py; own class names so the pages' inline footer rules do not interfere. */
.rf-footer { border-top: 1px solid var(--line, light-dark(#e3e1dc, #3a3935)); margin-top: 96px; background: var(--bg, light-dark(#f4f3f0, #1c1b19)); }
.rf-footer-inner { max-width: 1320px; margin: 0 auto; padding: 40px 32px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.rf-footer .rf-brand { display: flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink, light-dark(#181611, #f3f2ef)); text-decoration: none; }
.rf-footer .rf-logo { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 30px; height: 30px; padding: 4px; border-radius: 8px; background: oklch(0.22 0.01 90); box-sizing: border-box; }
.rf-footer .rf-logo i { border-radius: 2px; display: block; }
.rf-footer-links { display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 15px; }
.rf-footer-links a { color: var(--body, light-dark(#4a4844, #c9c7c1)); text-decoration: none; }
.rf-footer-links a:hover { color: var(--ink, light-dark(#181611, #f3f2ef)); }
.rf-footer .rf-copyright { font-size: 14px; color: var(--muted, light-dark(#7a776f, #9c9a93)); }
@media (max-width: 767px) { .rf-footer { margin-top: 64px; } .rf-footer-inner { padding: 32px 20px 40px; } }
