/* ================= STILE GENERALE ================= */
@import url('style.css'); /* Mantiene lo stile della home */

/* ================= SEZIONE CALENDARIO ================= */
.gare-section {
    padding: 85px 0px;
    text-align: center;
    background: #13183f;
}

.gare-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #e6b800;
    font-family: 'Nasalization', sans-serif;
}

/* ================= CALENDARIO ================= */
#calendar {
  width: 100%;          /* occupa tutta la larghezza */
  max-width: 100%;      /* niente margini laterali */
  height: 700px;
  background: #0b0f2f;  /* sfondo uniforme come le celle */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
  color: #fff;
}

/* Hover eventi giorno */
.fc-event-title-container {
    transition: all 0.3s ease;
    border-radius: 6px;
    overflow: hidden;
}

/* Hover elegante */
.fc-event-title-container:hover {
    background: linear-gradient(135deg, #1a1f4a, #2a3160); /* gradient elegante */
    color: #e6b800 !important;                            /* testo giallo */
    box-shadow: 0 6px 15px rgba(0,0,0,0.5), 0 0 12px rgba(58,104,173,0.5);
    transform: scale(1.05);
    cursor: pointer;
}


/* ================= PULSANTE PDF ================= */
.btn-pdf {
  margin-top: 49px;
  padding: 12px 20px;
  font-size: 16px;
  background: #e6b800; /* giallo */
  color: #0b0f2f;      /* testo scuro */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-pdf:hover {
  background: #d4a800; /* giallo più scuro */
}

/* ================= FULLCALENDAR CUSTOM ================= */
.fc {
  background-color: #0b0f2f; /* sfondo globale del calendario */
  color: #fff;
  border: none;
}

/* Titolo calendario */
.fc .fc-toolbar-title {
  color: #e6b800;
  font-weight: bold;
  font-family: 'Nasalization', sans-serif;
}

/* Pulsanti navigazione */
.fc .fc-button {
  background-color: #11153a;
  border: none;
  color: #fff;
  font-weight: bold;
}

.fc .fc-button:hover {
  background-color: #13183f;
}

/* Celle giorno */
.fc .fc-daygrid-day {
  background-color: #0b0f2f;
  border: 1px solid #11153a;
}


/* Numeri dei giorni */
.fc .fc-daygrid-day-number {
  color: #e6b800;
  font-weight: bold;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgb(255 255 255 / 7%);
}

/* ================= FULLCALENDAR LIST VIEW SCURA ================= */
.fc-theme-standard .fc-list-day-cushion {
    background-color: #0b0f2f !important;
    color: #e6b800 !important;
    border-bottom: 1px solid #11153a;
    font-weight: bold;
    font-size: 20px;
    padding: 6px 10px;
}

/* Eventi lista mensile */
.fc-direction-ltr .fc-daygrid-event.fc-event-end, .fc-direction-rtl .fc-daygrid-event.fc-event-start {
    margin-right: 2px;
    font-size: 15px;
    font-weight: bold;
}

.fc .fc-list-event td {
    background-color: #0b0f2f !important;
    color: #e6e6e6 !important;
    border-radius: 6px;
    margin-bottom: 4px;
    padding: 6px 10px;
    transition: all 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
}

.fc .fc-list-event:hover td {
    background: linear-gradient(135deg, #1a1f4a, #2a3160) !important;
    color: #e6b800 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 12px rgba(58, 104, 173, 0.5) !important;
    transform: scale(1.03) !important;
}

/* 📱 Responsive Gare */
@media (max-width: 768px) {
  /* Sezione calendario compatta */
  .gare-section {
    padding: 40px 10px;
  }

  .gare-section h2 {
    font-size: 2rem;
  }

  /* Calendario FullCalendar più piccolo */
  #calendar {
    height: 500px; /* più proporzionato su tablet e smartphone grandi */
  }

  /* Pulsante PDF compatto */
  .btn-pdf {
    margin-top: 20px;
    padding: 8px 16px;
    font-size: 14px;
  }

}

@media (max-width: 480px) {
  /* Titoli e testo più piccoli */
  .gare-section h2 {
    font-size: 1.5rem;
  }

  /* Calendario altezza ridotta per smartphone piccoli */
  #calendar {
    height: 350px;
  }

  /* Pulsante PDF ancora più compatto */
  .btn-pdf {
    padding: 6px 12px;
    font-size: 12px;
  }
}


/* ================= ANIMAZIONI SCROLL ================= */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}