@media (max-width: 600px) {
  header {
    flex-direction: column;
    padding: 0.7rem 0.5rem;
    text-align: center;
  }
  header .logo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  nav ul {
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    align-items: center;
  }
  nav ul li a {
    font-size: 1rem;
    padding: 0.4rem 0.7rem;
  }
  .hero {
    height: 32vh;
    padding: 0.5rem 0;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .btn, .contact-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    min-width: 120px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card {
    padding: 1rem;
  }
  .card h3 {
    font-size: 1.1rem;
  }
  .card i {
    font-size: 28px;
  }
  .intro-paragraph {
    font-size: 1rem;
    margin: 1rem auto 1.2rem auto;
    padding: 0 0.5rem;
  }
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  section {
    padding: 1rem 0.3rem;
    max-width: 100vw;
  }
  footer {
    font-size: 0.85rem;
    padding: 1.2rem 0 1rem 0;
  }
}
/* Bottoni contatto uniformi */
.contact-btn {
  min-width: 160px;
  text-align: center;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
/* Global Styles for MiniWin Club website */

/* CSS Variables for colour scheme */
:root {
  --primary-color: #9c9c9c;        /* Teal green per headers e accenti */
  --secondary-color: #e76f51;      /* Corallo per i bottoni */
  --background-color: #f5f5f5;     /* Grigio chiaro di sfondo */
  --text-color: #333333;           /* Grigio scuro per leggibilità */
  --light-color: #ffffff;          /* Bianco per contrasto */
  --title-light-gray: #e0e0e0;     /* Grigio chiaro per i titoli */
  --intro-gray: #444444;           /* Grigio scuro per il paragrafo intro */
/* Titoli chiari solo per index.html */
body#index h1,
body#index h2,
body#index h3 {
  color: var(--title-light-gray);
}

/* Paragrafo introduttivo in grigio scuro, centrato e ben leggibile */
.intro-paragraph {
  color: var(--intro-gray);
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  margin: 1.5rem auto 2rem auto;
  max-width: 800px;
}
}

/* Reset margini e base tipografica */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navigation bar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222222;
  color: var(--light-color);
  padding: 1rem 2rem;
}

header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hero section */
.hero {
  position: relative;
  height: 60vh;
  background-image: url('assets/img/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--light-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: #c95f3f;
}

/* Generic sections */
section {
  padding: 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Card grid per le liste */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--light-color);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card i {
  font-size: 40px;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 60px;
}

/* Contatti */
#contact a {
  color: var(--secondary-color);
  text-decoration: underline;
}

#contact a:hover {
  color: #c95f3f;
}

/* Footer */
footer {
  background-color: #222222;
  color: #f5f5f5;
  padding: 2.5rem 0 2rem 0;
  text-align: center;
  font-size: 1rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* Game pages */
.game-intro {
  padding: 2rem 2rem;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--light-color);
}

.game-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.game-intro i {
  font-size: 48px;
  color: var(--light-color);
}

.game-intro p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.game-details {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.game-details h2 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.game-details p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.game-details ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.game-details li {
  margin-bottom: 0.5rem;
}

/* Header per la pagina giochi */
.page-header {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 2rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p  { font-size: 1rem; }
  .game-intro h1 { font-size: 2rem; }
}
