/* RESET BASE */
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 20px;
  color: #333;
}

/* ===== MENU ===== */
#menu {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#menu li {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#menu li a {
  display: block;
  padding: 10px 16px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

#menu li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#menu li.active {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

/* ===== TITOLI ===== */
strong {
  font-size: 18px;
}

/* ===== TABELLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

th, td {
  padding: 8px 10px;
  text-align: center;
  font-size: 14px;
}

th {
  background: #2c3e50;
  color: white;
  text-transform: uppercase;
  font-size: 12px;
}

tr:nth-child(even) {
  background: #f2f2f2;
}

tr:hover {
  background: #eafaf1;
}

td:first-child {
  text-align: left;
  font-weight: 600;
}

/* ===== TREND ===== */
.trend-v {
  background: #b9dca9;
  font-weight: bold;
}

.trend-p {
  background: #fef7b5;
  font-weight: bold;
}

.trend-s {
  background: #f8c4c4;
  font-weight: bold;
}

.trend-na {
  background: #dcdcdc;
  color: #666;
}

/* ===== STATISTICHE FINALI ===== */
.stats {
  margin-top: 20px;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
