/* Premium — Header, Footer, Nav (dark, bordi, glass) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 11, 13, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(var(--glass-blur));
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--letter-tight);
  color: var(--text-primary);
}
.logo svg,
.logo img.logo-img,
.logo object.logo-img {
  width: auto;
  height: 2rem;
  max-width: 180px;
  object-fit: contain;
  color: var(--accent-gold);
}
.logo object.logo-img { pointer-events: none; overflow: hidden; }
.logo:hover { color: var(--text-primary); }

.nav-main {
  display: none;
}
@media (min-width: 768px) {
  .nav-main {
    display: flex;
    align-items: center;
    gap: 0;
  }
  .nav-main a {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: color 0.2s var(--ease-out);
  }
  .nav-main a:hover {
    color: var(--text-primary);
  }
  .nav-main a.active {
    color: var(--accent-gold);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.header-actions .btn { white-space: nowrap; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-deep);
  padding: var(--space-8);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  z-index: 99;
  border-right: 1px solid var(--border-subtle);
}
.nav-mobile.is-open { transform: translateX(0); }
@media (min-width: 768px) { .nav-mobile { display: none; } }

.nav-mobile a {
  display: block;
  padding: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}
.nav-mobile a:hover { background: var(--glass-bg); }

.nav-mobile .header-actions {
  margin-top: var(--space-8);
  flex-direction: column;
  align-items: stretch;
}
.nav-mobile .header-actions .btn { justify-content: center; }

/* Footer — dark, strutturato */
.site-footer {
  background: var(--bg-night);
  color: var(--text-primary);
  padding: var(--space-24) 0 var(--space-12);
  border-top: 1px solid var(--border-subtle);
}

.site-footer a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
}
.site-footer a:hover {
  color: var(--accent-gold);
}

.footer-grid {
  display: grid;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--space-10); }
}

.footer-brand .logo { color: var(--text-primary); }
.footer-brand .logo svg { color: var(--accent-gold); }
.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 24rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { font-size: var(--text-sm); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-subtle);
}
