/* Griglia: 3 colonne su desktop, 1 su mobile */
.eventi-griglia {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
}

@media (max-width: 768px) {
  .eventi-griglia {
    grid-template-columns: 1fr;
  }
}

/* Link che avvolge la card */
.evento-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Card polaroid */
.evento-card.polaroid {
  position: relative;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 2px 6px 14px 0px #00000040;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 16px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.evento-card.polaroid:hover {
  transform: translateY(-6px);
  box-shadow: 4px 10px 18px rgba(0,0,0,0.3);
}

/* Foto stile polaroid */
.evento-card.polaroid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 16px;
  object-fit: cover;
}

.evento-testo{
  width: 100%;
}


/* Titolo (da Figma) */
.evento-card.polaroid h3 {
  font-family: "Futura", sans-serif;
  font-weight: 700;
  font-style: bold;
  line-height: 32px;
  letter-spacing: 0;
  margin: 0 0 12px;
 font-size: 32px;
  color: #3168B2;
  text-align: left;
  text-transform: uppercase;
}

/* Descrizione */
.evento-card.polaroid p {
  font-size: 20px;
  color: #3168B2;
  margin: 0;
  flex-grow: 1; /* per forzare altezza uniforme */
  text-align: left;
}

/* Etichetta di stato */
.evento-etichetta {
  font-family: "Futura", sans-serif;
  padding: 5px 12px;
  font-size: 20px;
  line-height: 1em;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.evento-card.in_corso .evento-etichetta { color: #E55798; }
.evento-card.futuro .evento-etichetta   { color: #00B6C6; }
.evento-card.passato .evento-etichetta  { color: #B39CCF; }
.eventi-filtri {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.filtro-eventi {
  padding: 12px 24px;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 0;
}

.filtro-eventi[data-filtro="passato"] {
  background: #B39CCF;
}

.filtro-eventi[data-filtro="in_corso"] {
  background: #E55798;
}

.filtro-eventi[data-filtro="futuro"] {
  background: #00B6C6;
}

.filtro-eventi.attivo {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
