/* =========================
   Stili base esistenti
   ========================= */
.auto-style1 { width: 100%; }
.auto-style2 { text-align: center; }
.auto-style3 { width: 417px; }
.auto-style10 { background-color: #FFFF00; }

* { text-shadow: none !important; box-shadow: none !important; }
*, *::before, *::after { box-sizing: border-box; }

.auto-style13 { text-align: left; }
.auto-style18 { font-size: small; }
.auto-style19 { background-color: #FFFFCC; }
.auto-style20 { background-color: #CCFFCC; }
.auto-style21 { font-size: small; text-align: center; }
.auto-style24 { background-color: #CCCCFF; text-align: left; }
.auto-style25 { background-color: #FFCCCC; text-align: left; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.blinking { animation: blink 1s infinite; }

/* =========================
   STRUTTURA PAGINA
   ========================= */
body {
  font-family: Arial, sans-serif;
  background: #FFFFFF;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* wrapper principale */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  flex: 1; /* spinge il footer in basso */
}

/* logo */
.logo {
  width: 200px;
  margin: 0 auto 30px auto;
  display: block;
}

/* =========================
   GRIGLIA EVENTI
   ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  justify-content: center;
  margin: 0 auto 20px auto;
  max-width: 900px;
}

.event-button {
  aspect-ratio: 1/1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #FFF;
  border-radius: 14px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: transform .18s ease, box-shadow .18s ease;
  padding: 10px;
  text-align: center;
}

.event-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.city {
  font-size: 16px;
  font-weight: 700;
}

.date {
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  opacity: 0.95;
}

/* =========================
   COLORI EVENTI FUTURI
   ========================= */
.capri  { background: #5865F2; }  /* blu */
.isola  { background: #10B981; }  /* verde */
.roma   { background: #D97706; }  /* arancione */
.milano { background: #0EA5E9; }  /* azzurro */
.sora   { background: #00C2A8; }  /* verde acqua */
.colore { background: #A5006E; }  /* extra viola */
.grigiopassato { background: #888888; }  /* grigio */

/* =========================
   EVENTI PASSATI - GRIGIO PIENO
   ========================= */
.gray,
.event-placeholder {
  background-color: #888888 !important; /* grigio pieno */
  border-radius: 14px;
  width: 130px;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff; /* testo bianco */
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  pointer-events: none; /* non cliccabile */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.2s ease;
}

.gray:hover {
  background-color: #707070 !important;
}

.gray .city {
  font-weight: 600;
  font-size: 15px;
}

.gray .date {
  font-size: 13px;
  margin-top: 0.3rem;
  opacity: 0.95;
}

/* =========================
   DIVIDER - EVENTI PASSATI
   ========================= */
section.divider-section {
  text-align: center;
  margin: 30px auto;
}

.divider {
  border-top: 1px solid #CCC;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
}

.divider span {
  position: relative;
  top: -12px;
  background: #FFF;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #F5F5F5;
  border-top: 1px solid #DDD;
  padding: 20px 30px;
  position: relative;
  font-size: 14px;
  color: #333;
  text-align: center;
}

footer h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #222;
}

footer p {
  margin: 6px 0;
  line-height: 1.4;
}

footer a {
  color: #333;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.lock {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 22px;
}

.lock a {
  color: #555;
  text-decoration: none;
}

.lock a:hover {
  color: #000;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 768px) {
  .grid { max-width: 500px; gap: 14px; }
  .event-button, .gray, .event-placeholder {
    min-width: 110px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
    max-width: 250px;
  }
}
