/* Importa Font Awesome 5 Free dal CDN ufficiale */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.tcf-modal[hidden] {
  display: none;
}

.tcf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999999;
}

.tcf-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.tcf-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.28);
}

.tcf-modal button {
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.tcf-modal .tcf-modal__close {
  position: absolute;
  top: 40px;
  right: 40px;
  z-index: 3;
  
  /* Reset dimensioni e bordi Elementor */
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 2px 4px 4px 4px !important; /* Blocca il padding: 10px 90px di Elementor */
  
  background: #f7d742 !important;
  color: #111827 !important;
  font-size: 23px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  
  /* Centratura perfetta della X */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

.tcf-modal .tcf-modal__close:hover,
.tcf-modal .tcf-modal__close:focus {
  background-color: #f3f4f6 !important; /* Sovrascrive il background-color hover di Elementor */
  color: #111827 !important;
  border: 0 !important;
  text-decoration: none !important;
}

.tcf-modal__content {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.tcf-modal-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.tcf-modal-event__body {
	 padding: 10px;
border: 24px solid #fff;
}

.tcf-modal-event__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tcf-modal-event__calendar-badge {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.tcf-modal-event__calendar-name {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
}

.tcf-modal-event__title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #071d49; /* Blu scuro */
}

/* =========================================
   META HTML (ICONE)
   ========================================= */
.tcf-modal-event__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background-color: #f8fafc; /* Sfondo Grigio/Azzurro chiarissimo come nell'immagine */
  border-radius: 12px;
}

.tcf-modal-event__meta-row {
  display: flex;
  align-items: flex-start; 
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.tcf-meta-icon {
  color: #EFCD35; /* Giallo Icone */
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tcf-meta-text {
  color: #071d49; /* Blu scuro per il testo */
  font-weight: 500;
}
.telinfo a {
  color: #334aff; /* Blu scuro per il testo */
	font-weight: 600;
}


.tcf-meta-text strong {
  font-weight: 600; /* Grassetto più marcato */
  color: #071d49;
}

.tcf-modal-event__loading,
.tcf-modal-event__error {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.tcf-modal-event__loading {
  background: #eff6ff;
  color: #1d4ed8;
}

.tcf-modal-event__error {
  background: #fef2f2;
  color: #b91c1c;
}

.tcf-modal-event__description {
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}

.tcf-modal-event__actions {
  margin-top: 22px;
}

.tcf-modal-event__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #0f62fe;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

body.tcf-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .tcf-modal__dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 10px;
  }

  .tcf-modal__content {
    max-height: calc(100vh - 16px);
  }

  .tcf-modal-event__body {
    padding: 40px 16px;
  }

  .tcf-modal-event__title {
    font-size: 22px;
  }

  .tcf-modal-event__meta {
    padding: 16px;
    gap: 12px;
  }

  .tcf-modal-event__meta-row {
    font-size: 14px;
  }
}