:root {
  --navbar-bg: #063e6b;
  --navbar-height: 70px;
}

/* ==================== NAVBAR FISSA ==================== */
.navbar {
  background: var(--navbar-bg);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: var(--z-navbar);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ==================== SPAZIO SOTTO NAVBAR ==================== */
/* ❗ questa regola va SOLO QUI */
body {
  padding-top: var(--navbar-height);
}

/* ==================== CONTENITORE ==================== */
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
}

/* ==================== LOGHI ==================== */
.navbar-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.navbar-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}

.navbar-logos a img {
  height: 36px;
  width: auto;
  border-radius: 4px;
  background: white;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease;
}

.navbar-logos a:hover img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==================== LOGO RADIO ==================== */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.logo-text {
  color: #ffd14d;
  font-weight: 800;
  font-size: 1.05rem;
}

/* ==================== MENU DESKTOP ==================== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  transition: background 0.3s ease;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==================== HAMBURGER ==================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: calc(var(--z-navbar) + 1);
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animazione X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== MOBILE MENU ==================== */
@media (max-width: 720px) {
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .navbar-logos {
    flex: 1 1 auto;
  }

  .navbar-logos a img {
    height: 28px;
    padding: 2px;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: calc(var(--z-navbar) + 2);
    pointer-events: none;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu a {
    margin: 0.4rem 1.5rem;
    padding: 0.8rem 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-weight: 600;
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* ==================== TABLET ==================== */
@media (max-width: 900px) {
  .nav-menu a {
    padding: 0.4rem 0.7rem;
    font-size: 0.95rem;
  }

  .navbar-logos a img {
    height: 28px;
    padding: 2px;
  }
}

@media (max-width: 480px) {
  .navbar-logos a img { height: 24px; padding: 2px; }
  .logo-img { width: 32px; height: 32px; }
  .logo-text { font-size: 0.85rem; }
}