body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: url("sfondo.jpeg") no-repeat center center fixed;
  background-size: cover;
}

/* Header */
header {
  background-color: rgba(0,64,128,0.9); /* blu scuro con trasparenza */
  color: #fff;
  padding: 10px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 60px;
}
h1 {
  margin: 0;
  font-size: 1.4em;
  flex: 1;
  text-align: center;
}
.btn-back {
  background: #ffb451;
  color: #000000;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.btn-back:hover {
  background: #e6b800;
}

/* Tabella responsive */
main {
  padding: 15px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
thead {
  display: none; /* nascosto su mobile */
}
tbody tr {
  display: block;
  margin-bottom: 15px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  padding: 10px;
}
tbody tr td {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.95em;
}
tbody tr td::before {
  content: attr(data-label);
  font-weight: bold;
  color: #004080;
}

/* Desktop */
@media (min-width: 700px) {
  thead {
    display: table-header-group;
    background: rgba(0,64,128,0.9);
    color: #fff;
  }
  tbody tr {
    display: table-row;
    background: rgba(255,255,255,0.95);
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
  }
  tbody tr td {
    display: table-cell;
    padding: 8px;
  }
  tbody tr td::before {
    content: none;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background: rgba(0,64,128,0.9);
  color: #fff;
  font-size: 0.85em;
  position: fixed;
  bottom: 0;
  width: 100%;
}
footer a {
  color: #ffcc00;
  text-decoration: none;
}
