.tcf-calendar__mobile {
  display: none;
  background-color: #ffffff;
}

.tcf-mobile-list {
  padding: 16px 0;
}

.tcf-mobile-day {
  padding: 0 16px 24px;
}

.tcf-mobile-day__header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0 16px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.tcf-mobile-day__weekday {
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
}

.tcf-mobile-day__date {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.tcf-mobile-day__empty {
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
  padding: 8px 0;
}

.tcf-mobile-day__events {
  display: flex;
  flex-direction: column;
}

/* --- Layout Timeline e Card --- */
.tcf-mobile-event-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

/* Indicatore orario con linea */
.tcf-mobile-timeline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tcf-mobile-time-badge {
  background-color: #fef9c3; 
  color: #854d0e; 
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}

.tcf-mobile-time-line {
  flex-grow: 1;
  height: 1px;
  background-color: #e5e7eb;
}

/* Stile della Card Identico al Desktop */
.tcf-mobile-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  
  /* Bordo colorato su tutti i lati come da immagine */
  border: 2px solid var(--tcf-event-color, #fcd34d); 
  border-radius: 8px;
  
  /* Sfondo blu sfumato */
  background: linear-gradient(180deg, #112d5e 0%, #071736 100%);
  
  overflow: hidden; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 10px !important;
}

.tcf-mobile-card:active {
  transform: scale(0.98);
}

/* Immagine di preview in cima alla card */
.tcf-mobile-card__img-wrap {
  width: 100%;
  height: 180px; 
  overflow: hidden;
  background-color: #071736;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px 32px 0px 0px;
}

.tcf-mobile-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Corpo testuale della card */
.tcf-mobile-card__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tcf-mobile-card__meta {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff; /* Testo bianco */
  opacity: 0.9;
}

.tcf-mobile-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff; /* Testo bianco */
  margin: 0;
  line-height: 1.35;
  white-space: normal; 
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tcf-mobile-card__subtitle {
  font-size: 14px;
  font-style: italic;
  color: #cbd5e1; /* Grigio chiaro per i testi secondari */
  line-height: 1.4;
  margin-bottom: 2px;
}

@media (max-width: 767px) {
  .tcf-calendar__desktop {
    display: none;
  }

  .tcf-calendar__mobile {
    display: block;
  }
}