/* Base */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #004080;
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Menu hamburger */
.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: block;
}

/* Menu mobile */
.nav-menu {
  display: none;
  flex-direction: column;
  background: #003366;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.nav-menu.active {
  display: flex;
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-menu li {
  width: 100%;
  text-align: center;
  border-top: 1px solid #0055aa;
}

.nav-menu a {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}

.nav-menu a.active {
  background: #0055aa;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #e0f0ff, #f0f8ff);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  background: #004080;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h2 {
  margin-top: 0;
}

.card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #004080;
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
  font-size: 0.9rem;
}

/* Desktop layout */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    box-shadow: none;
  }

  .nav-menu ul {
    flex-direction: row;
    justify-content: flex-end;
  }

  .nav-menu li {
    border: none;
  }

  .nav-menu a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.countdown-section {
  text-align: center;
  padding: 2rem 1rem;
  background: #e6f2ff;
  border-top: 2px solid #004080;
}

.countdown-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #004080;
}

.change-info {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.countdown-box {
  font-size: 2rem;
  font-weight: bold;
  color: #004080;
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #e0f0ff, #f0f8ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #004080;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: #333;
}

.hero-button {
  margin-top: 2rem;
}

.btn-accent {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background-color: #004080;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.btn-accent:hover {
  background-color: #0077cc;
}
.faq-cta {
  text-align: center;
  margin: 2rem 0;
}
/* Evidenzia durata ora legale */
table td.highlight {
  background-color: #fffbe6;
  font-weight: 600;
  color: #d48806;
  text-align: center;
  border-radius: 4px;
  cursor: help;
}

/* Centra le celle con date e orari */
table td.center {
  text-align: center;
}

/* Evidenzia l'intera riga dell'anno corrente */
table tr.current-row td {
  background-color: #ffe5e5;
  color: #b71c1c;
  font-weight: bold;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.card {
  background-color: #f9f9f9;
  border-left: 6px solid #ffcc00;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  margin-top: 0;
  font-size: 1.2em;
  color: #2c3e50;
}

.card p {
  margin-bottom: 0;
  color: #555;
  line-height: 1.6;
}
section.tips h2 {
  margin-top: 2em;
  font-size: 1.2em;
  color: #2c3e50;
}

section.tips p {
  margin-bottom: 1em;
  line-height: 1.6;
  color: #444;
}
.quiz {
  padding: 2rem;
  background-color: #f0f8ff;
  border-top: 2px solid #ccc;
}

.quiz h2 {
  font-size: 1.5em;
  margin-bottom: 1rem;
}

.question {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #fff;
  border-left: 4px solid #ffcc00;
  border-radius: 6px;
}

.quiz-buttons {
  margin-top: 1rem;
}

.quiz-buttons button {
  background-color: #ffcc00;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  margin-right: 1rem;
  transition: background-color 0.3s ease;
}

.quiz-buttons button:hover {
  background-color: #ffd633;
}

.risultato {
  margin-top: 2rem;
  font-size: 1.2em;
  color: #2c3e50;
}

.maestro {
  color: #d32f2f;
  font-weight: bold;
}

