/* CSS personalizzato per la pagina del programma */

/* Stile per i bottoni di filtro */
.filter-btn, .collection-btn {
  transition: all 0.3s ease;
  font-weight: 500;
  background-color: white !important;
  color: #1f2937 !important; /* text-gray-800 */
}

/* Nasconde la scrollbar ma mantiene la funzionalità di scorrimento */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Stile per i bottoni delle date */
.filter-btn {
  background-color: white !important;
  color: #1f2937 !important; /* text-gray-800 */
}

/* Stile per i bottoni delle date quando attivi */
.filter-btn.active {
  background-color: #111827 !important; /* bg-gray-900 */
  color: white !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  border-color: #111827;
}

/* Stile per i bottoni delle collezioni */
.collection-btn {
  background-color: white !important;
  color: #1f2937 !important;
  border: 1px solid #e5e7eb !important;
}

.collection-btn.artists-btn.active {
  background-color: #9333ea !important; /* bg-purple-600 */
  color: white !important;
  border-color: #9333ea !important;
}

.collection-btn.eventi-btn.active {
  background-color: #2563eb !important; /* bg-blue-600 */
  color: white !important;
  border-color: #2563eb !important;
}

/* Stile per il bottone "Vedi tutti" */
#vedi-tutti-mobile, 
#day-filters-desktop .filter-btn[data-filter="all"] {
  background-color: #111827 !important; /* bg-gray-900 */
  color: white !important;
  border-color: #111827 !important;
}

/* Stile per il bottone "Vedi tutti" quando non è attivo */
#vedi-tutti-mobile:not(.active), 
#day-filters-desktop .filter-btn[data-filter="all"]:not(.active) {
  background-color: white !important;
  color: #1f2937 !important;
  border-color: #e5e7eb !important;
}

/* Layout timeline per le card degli eventi */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  grid-gap: 1.5rem;
  width: 100%;
}

/* Stile per le card degli eventi */
.program-item {
  width: 100%;
  margin-bottom: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Stile per il contenitore delle immagini */
.image-container {
  width: 100%;
  height: 200px; /* Altezza fissa per tutte le immagini */
  overflow: hidden;
  position: relative;
  margin: 0.75rem 0;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ritaglio dell'immagine per adattarla al contenitore */
  object-position: center; /* Centra l'immagine */
}

/* Animazione per il filtraggio */
.program-item {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stili per la modale */
.modal {
  transition: opacity 0.3s ease;
}

.modal.hidden {
  display: none !important;
  opacity: 0;
}

.modal-content {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal:not(.hidden) .modal-content {
  transform: scale(1);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
}

.modal-body {
  max-height: calc(90vh - 4rem);
  overflow-y: auto;
}

/* Responsive design */
@media (max-width: 992px) {
  .timeline-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #day-filters {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .filter-btn {
    margin: 0.25rem;
    font-size: 0.875rem;
  }
  
  .timeline-container {
    grid-template-columns: 1fr;
  }
}
