/* Stile base generale */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  top: 0;
  width: 100%;  
  background-color: #333;
  color: white;
  padding: 10px 0;
  position: relative; /*provare anche con fixed + left:0 */
}

nav {
  text-align: center;
}

table {
  text-align: left;
  position: relative;
  border-collapse: collapse; 
  background-color: #f6f6f6;
}
/* centra la table */
.center {
  margin-left: auto;
  margin-right: auto;
}

/* Spacing */
td, th {
  border: 1px solid #999;
  padding: 20px;
}
th {
  background: brown;
  color: white;
  border-radius: 0;
  position: sticky;
  top: 0;
  padding: 10px;
}
.primary{
  background-color: #000000
}

tfoot > tr  {
  background: black;
  color: white;
}
tbody > tr:hover {
  background-color: #ffc107;
}


/* Link del menu */
nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

footer {
  text-align: center;
  padding: 10px;
  background: #333;
  color: white;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* ✅ MENU RESPONSIVE */
.menu-toggle {
  display: none;
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Per schermi piccoli */
@media (max-width: 700px) {
  nav {
    display: none;
    flex-direction: column;
    background: #333;
    width: 100%;
  }

  nav a {
    display: block;
    padding: 10px;
    border-top: 1px solid #444;
    margin: 0;
  }

  .menu-toggle {
    display: block;
  }

  /* Quando il menu è attivo */
  input[type="checkbox"]:checked ~ nav {
    display: flex;
  }


}

