/* ===== Giochi Free - eGratis.org ===== */

main {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  background: #f9f9ff;
  line-height: 1.6;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #6c63ff, #48cae4);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-bottom: 4px solid #4f46e5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* CONTENT */
article.content {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
article.content h2 {
  color: #4f46e5;
  font-size: 1.8rem;
  margin-bottom: 12px;
}
article.content p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 25px;
}

/* GAME LIST */
.game-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.game-list section {
  border: 1px solid #e0e0e0;
  background: #fefefe;
  border-left: 5px solid #6c63ff;
  border-radius: 12px;
  padding: 22px 25px;
  transition: all 0.3s ease;
  position: relative;
}
.game-list section:hover {
  border-color: #48cae4;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.15);
  transform: translateY(-3px);
}

/* HEADINGS PER GIOCO */
.game-list h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #4f46e5;
  font-weight: 600;
}
.game-list h4::before {
  content: "🎮 ";
}
.game-list p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* LINK */
.game-list a {
  display: inline-block;
  text-decoration: none;
  color: #0077b6;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}
.game-list a:hover {
  color: #023e8a;
  border-bottom: 1px solid #023e8a;
}

/* CTA FINALE */
.next-section {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px dashed #ccc;
  text-align: center;
}
.next-section p {
  font-size: 0.95rem;
}
.next-section a {
  color: #6c63ff;
  font-weight: 600;
  text-decoration: none;
}
.next-section a:hover {
  text-decoration: underline;
}

/* TAG opzionale per novità */
.game-list section[data-tag]::after {
  content: attr(data-tag);
  position: absolute;
  top: 12px;
  right: 12px;
  background: #48cae4;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero p {
    font-size: 1rem;
  }
  article.content {
    padding: 25px 20px;
  }
  .game-list section {
    padding: 18px;
  }
}
