/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0b0b0b;
  color: #f1f1f1;
}



/* ----------------------- */
/*       NAVBAR            */
/* ----------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(20,20,20,0.7);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
}

.logo {
  font-family: 'Spectral SC', serif;
  font-size: 1.8rem;
  color: #fff;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: .3s;
}

nav a:hover {
  color: #007aff;
}

/* Hamburger per mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 6px;
}



/* ----------------------- */
/* CONTENUTO GENERALE      */
/* ----------------------- */

.game-selection {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 120px; /* spazio sotto navbar */
}



/* ----------------------- */
/*   CARD DEI GIOCHI       */
/* ----------------------- */

.games-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.game-card {
  text-align: center;
  padding: 20px;
  border-radius: 20px;

  /* sfondo blurrato */
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform .25s ease, box-shadow .25s ease;
}

/* effetto zoom al passaggio del mouse */
.game-card:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.game-card img {
  width: 260px;       /* stessa dimensione */
  height: 350px;      /* stessa altezza */
  object-fit: cover;  /* ritaglia l'immagine senza distorcerla */
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.game-card h2 {
  margin-top: 12px;
  font-size: 1.3rem;
  color: #fff;
}

.btn-primary {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  background: #007aff;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  transition: .3s;
}

.btn-primary:hover {
  background: #005ecb;
}

/* ----------------------- */
/* RESPONSIVE NAVBAR       */
/* ----------------------- */

@media (max-width: 768px) {

  .navbar {
    padding: 0.7rem 1.5rem;
    height: 60px;
  }

  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    flex-direction: column;
    gap: 1rem;
    background: rgba(20,20,20,0.95);
    padding: 1rem;
    border-radius: 12px;
  }

  nav.open {
    display: flex;
  }

  .game-card img {
    width: 220px;
  }
}

footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
  color: #ccc;
  font-size: 0.9rem;
}


