/* NAVBAR BASE */
.navbar {
  background-color: rgba(0, 0, 0, 0.75);
  padding: 0;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(6px);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {position:relative;}
.logo img {height:80px;}

.hamburger {
  display: block;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* NAV LINKS (mobile default) */
.nav-links {
  display: none;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.9);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 999;
  text-align: center;
}

.nav-links.show {
  display: flex;
}

/* LINK STILE */
.nav-links li {
  list-style: none;
  margin: 0;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.6rem 1.2rem;
  transition: color 0.2s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #ff0000, #ff5f5f, #ff0000);
  box-shadow: 0 0 6px #ff1a1a, 0 0 12px #ff1a1a;
  transition: width 0.4s ease-in-out;
  border-radius: 10px;
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* DESKTOP VERSIONE */
@media (min-width: 769px) {
	
.hamburger {display: none;}

.navbar {min-width:900px;}

.nav-links {
    display: flex !important;
    flex-direction: row;
    background: transparent;
    position: static;
    width: auto;
    padding: 0;
    gap: 2rem;
}

.nav-links li {margin: 0;}
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
	box-sizing: border-box;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    font-size: 1.6rem;
    color: #fff;
  }
  
  .logo img {height:50px;}

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 67px;
    left: 0;
    width: 100%;
	background-color: rgba(0, 0, 0, 0.75);
    padding: 20px 0;
	margin:0;
    z-index: 998;
	box-sizing: border-box;
  }
  
  .nav-links li {
	margin: 8px 0;
	padding: 0;
	width:100%;
	box-sizing: border-box;
}

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #e63946;
  }
  
}

