.topnav
{
    font-family: "bebas", sans-serif;
    font-weight: normal;
    background-color: #121223;
    display: flex;
    align-items: center;   /* centra verticalmente */
    padding: 0 60px;
    height: 60px;
    margin: 0 auto; 
}

.nav-links a span
{
    font-family: bebasbold;
    font-size: 24px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    transition: all 1s ease;
}

.nav-links a:link, a:visited
{
    color: rgb(255, 255, 255);
    text-decoration: none; 
}

.nav-links a span:link span:visited{
  display: inline-block;
  letter-spacing: 0;
}

.nav-links a:hover span{
  letter-spacing: 3px;       /* il tuo effetto */
  cursor: pointer;
  color: #ffd200; /* giallo tema */
text-shadow:
    0 0 4px rgba(255,210,0,0.9),
    0 0 10px rgba(255,210,0,0.55),
    0 0 22px rgba(255,210,0,0.25);
    animation: navFlicker 1.1s steps(3, end) infinite;
}

.nav-links a{
  transition: all 1s ease;
}

@keyframes navFlicker{
  0%,100% {
    filter: brightness(1);
    text-shadow: 0 0 6px rgba(255,210,0,0.6);
    transform: rotate(3deg) translateX(1.5px);
  }

  23% {
    filter: brightness(0.42);
    text-shadow: 0 0 2px rgba(255,210,0,0.3);
    transform: rotate(-3deg) translateX(-1.5px);
  }

  50% {
    filter: brightness(1.32);
    text-shadow: 0 0 16px rgba(255,210,0,0.9);
    transform: rotate(3deg) translateX(1.5px);
  }

  73% {
    filter: brightness(0.78);
    text-shadow: 0 0 4px rgba(255,210,0,0.4);
    transform: rotate(-3deg) translateX(-1.5px);
  }
}

.nav-links a:nth-child(odd):hover{
  transform: rotate(-5deg) scale(1.2);
}

.nav-links a:nth-child(even):hover{
  transform: rotate(5deg) scale(1.2);
}

.News
{
    font-family: "bebas", sans-serif;
    font-weight: normal;
    font-size: 24px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.Team
{
    font-family: "bebas", sans-serif;
    font-weight: normal;
    font-size: 24px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.Contacts
{
    font-family: "bebas", sans-serif;
    font-weight: normal;
    font-size: 24px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}
.logo
{
    background-color: #121223;
    height: 40px;   /* prova 30px–50px finché ti piace */
    width: auto;
}


.nav-links{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 40px;  
}

.nav-links a{
  display: inline-block;
  text-align: center;
  cursor: pointer;

  /* BLOCCA lo spazio occupato dal link */
  width: 80px;              /* regolalo: Home/News/Team possono essere più piccoli */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
     backdrop-filter: blur(8px);
    background: rgba(18, 18, 35, 0.85); /* il tuo #121223 con trasparenza */
}
