/* ═══════════════════════════════════════════════════════
   site.css — Studio Bellisario
   Stili comuni a tutte le pagine del sito
   Versione: 2026-03-06
   ═══════════════════════════════════════════════════════ */

/* ── SKIP LINK (WCAG 2.4.1) ── */
.skip-link,
.skip {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: #0a1628;
  color: #fff;
  padding: .6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom-right-radius: 4px;
  transition: top .15s ease;
}
.skip-link:focus,
.skip:focus {
  top: 0;
}

/* ── FOCUS VISIBLE (WCAG 2.4.7) ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── HEADER ── */
header {
  position: sticky !important;
  top: 0 !important;
  background: #0a1628 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.2) !important;
}

/* ── NAV ── */
.nav {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 64px !important;
  background: transparent !important;
}

/* ── LOGO ── */
.logo {
  flex-shrink: 0 !important;
  min-width: 119px !important;
}
.nav .logo img,
.logo img {
  height: 44px !important;
  width: 119px !important;
  filter: brightness(0) invert(1) !important;
  display: block !important;
}

/* ── NAV LINKS ── */
.nav-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nav-links li {
  margin: 0 !important;
  padding: 0 !important;
}
.nav-links a {
  color: rgba(255,255,255,.85) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: background .2s !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: .3px !important;
  display: block !important;
}
.nav-links a:hover,
.nav-links a[aria-current],
.nav-links a.active {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

/* ── HAMBURGER ── */
.hamburger,
.nav-toggle,
.hamburger-main {
  background: none !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 1.6rem !important;
  cursor: pointer !important;
  padding: 8px !important;
}

/* ── RESPONSIVE NAV ── */
@media (min-width: 1025px) {
  .hamburger,
  .nav-toggle,
  .hamburger-main {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 2px !important;
    flex-wrap: nowrap !important;
  }
  .nav-links a {
    font-size: .7rem !important;
    padding: 5px 7px !important;
  }
}

@media (max-width: 1024px) {
  header {
    position: relative !important;
  }
  .hamburger,
  .nav-toggle,
  .hamburger-main {
    display: block !important;
  }
  .nav-links {
    display: none !important;
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    background: #0a1628 !important;
    flex-direction: column !important;
    padding: 8px 16px 16px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.3) !important;
    z-index: 99 !important;
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-links a {
    font-size: .88rem !important;
    padding: 10px 14px !important;
  }
}

/* ── NOSCRIPT: mostra nav anche senza JS ── */
@media (max-width: 1024px) {
  .no-js .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    background: #0a1628;
  }
}

/* ── FOOTER COMUNE ── */
footer {
  background: #0a1628;
  color: rgba(255,255,255,.85);
}
.foot-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 16px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.foot-grid h4 {
  color: #fff;
  font-size: .92rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.foot-grid p,
.foot-grid a {
  color: rgba(255,255,255,.75);
  display: block;
  padding: 2px 0;
  font-size: .84rem;
  line-height: 1.7;
  text-decoration: none;
}
.foot-grid a:hover {
  color: #fff;
}
.foot-bottom {
  background: rgba(0,0,0,.2);
  text-align: center;
  padding: 14px 16px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.foot-bottom a {
  color: rgba(255,255,255,.7);
  margin: 0 6px;
  text-decoration: none;
}
.foot-bottom a:hover {
  color: #fff;
}

/* ── FOOTER SLIM (variante compatta) ── */
.footer-slim {
  background: #0a1628;
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .84rem;
}
.foot-slim-inner {
  max-width: 700px;
  margin: 0 auto;
}
.foot-slim-brand {
  font-size: .95rem;
  margin-bottom: .5rem;
}
.foot-slim-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.foot-slim-links a:hover {
  color: #c8a96e;
}
.foot-slim-copy {
  margin-top: .75rem;
  opacity: .6;
  font-size: .78rem;
}
