/* ============================================================
   THE EVENTS CALENDAR — Skin Parrocchie Sanvitese
   Sovrascrive colori e font del plugin per coerenza col tema.
   Caricato solo sulle pagine /eventi/ via functions.php
   ============================================================ */

/* --- Override variabili CSS del plugin --- */
:root {
  --tec-color-accent-primary:        #5e7689;
  --tec-color-accent-primary-hover:  #4d6275;
  --tec-color-accent-primary-active: #4d6275;
  --tec-color-background-primary:    #fbfcfd;
  --tec-color-background-secondary:  #eef1f4;
  --tec-color-text-primary:          #363b42;
  --tec-color-text-secondary:        #646b73;
  --tec-font-family-body:            'Spectral', Georgia, serif;
  --tec-font-family-sans-serif:      'Spectral', Georgia, serif;
  --tec-font-family-title:           'Fraunces', Georgia, serif;
}

/* --- Wrapper radice --- */
.tribe-common {
  font-family: 'Spectral', Georgia, serif;
  color: #363b42;
  background: #fbfcfd;
}

/* --- Header pagina eventi --- */
.tribe-events-header {
  background: #fbfcfd;
  padding-top: 2rem;
}

/* --- Barra superiore (filtri / mese corrente) --- */
.tribe-events-c-top-bar {
  background: #fbfcfd;
  border-bottom: 1px solid rgba(54, 59, 66, 0.08);
}

/* --- Titoli data separator (es. "Lunedì 16 giugno") --- */
.tribe-events-calendar-list__month-separator-text,
.tribe-events-calendar-list__day-separator-title {
  font-family: 'Fraunces', Georgia, serif;
  color: #5e7689;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tribe-events-calendar-list__month-separator {
  border-bottom: 1px solid rgba(94, 118, 137, 0.25);
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

/* --- Card evento (list view) --- */
.tribe-events-calendar-list__event-row--featured,
.tribe-events-calendar-list__event-row {
  background: #fff;
  border: 1px solid rgba(54, 59, 66, 0.08);
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: box-shadow 0.18s ease;
}
.tribe-events-calendar-list__event-row:hover {
  box-shadow: 0 6px 22px -10px rgba(54, 59, 66, 0.18);
}

/* --- Titolo evento --- */
.tribe-events-calendar-list__event-title-link,
.tribe-events-calendar-list__event-title {
  font-family: 'Fraunces', Georgia, serif;
  color: #363b42;
  text-decoration: none;
}
.tribe-events-calendar-list__event-title-link:hover {
  color: #5e7689;
  text-decoration: underline;
}

/* --- Data e ora evento --- */
.tribe-events-calendar-list__event-datetime-wrapper,
.tribe-event-date-start,
.tribe-event-time,
.tribe-events-schedule {
  color: #5e7689;
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.9rem;
}

/* --- Luogo (venue) --- */
.tribe-events-calendar-list__event-venue,
.tribe-venue,
.tribe-venue-location {
  color: #646b73;
  font-size: 0.88rem;
  font-family: 'Spectral', Georgia, serif;
}
.tribe-events-calendar-list__event-venue a,
.tribe-venue a {
  color: #646b73;
  text-decoration: none;
}
.tribe-events-calendar-list__event-venue a:hover,
.tribe-venue a:hover {
  color: #5e7689;
  text-decoration: underline;
}

/* --- Excerpt / descrizione --- */
.tribe-events-calendar-list__event-description,
.tribe-events-calendar-list__event-description p {
  color: #646b73;
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Navigazione prev/next --- */
.tribe-events-c-nav__list-item-link {
  font-family: 'Spectral', Georgia, serif;
  border-radius: 6px;
  border: 1px solid rgba(94, 118, 137, 0.35);
  color: #5e7689;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.tribe-events-c-nav__list-item-link:hover,
.tribe-events-c-nav__list-item-link:focus {
  background: #eef1f4;
  color: #363b42;
  border-color: rgba(54, 59, 66, 0.15);
}
.tribe-events-c-nav__list-item-link--today {
  background: #5e7689;
  border-color: #5e7689;
  color: #fff;
}
.tribe-events-c-nav__list-item-link--today:hover {
  background: #4d6275;
  border-color: #4d6275;
  color: #fff;
}

/* --- Pulsanti generici TEC --- */
.tribe-common-c-btn,
.tribe-common-c-btn-main,
.tribe-common-c-btn-secondary {
  font-family: 'Spectral', Georgia, serif;
  border-radius: 6px;
}
.tribe-common-c-btn-main {
  background: #5e7689;
  border-color: #5e7689;
  color: #fff;
}
.tribe-common-c-btn-main:hover {
  background: #4d6275;
  border-color: #4d6275;
}

/* --- Selector vista (list/month/grid) --- */
.tribe-events-header__view-selector .tribe-common-c-btn {
  color: #646b73;
  background: transparent;
  border: 1px solid rgba(54, 59, 66, 0.12);
}
.tribe-events-header__view-selector .tribe-common-c-btn:hover,
.tribe-events-header__view-selector .tribe-common-c-btn-main {
  background: #5e7689;
  color: #fff;
  border-color: #5e7689;
}

/* --- Calendario mensile (month view) --- */
.tribe-events-calendar-month__body {
  background: #fbfcfd;
}
.tribe-events-calendar-month__calendar-event-title {
  font-family: 'Spectral', Georgia, serif;
  color: #363b42;
}
.tribe-events-calendar-month__calendar-event-title a {
  color: #363b42;
  text-decoration: none;
}
.tribe-events-calendar-month__calendar-event-title a:hover {
  color: #5e7689;
}
.tribe-events-calendar-month__header-column {
  color: #5e7689;
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tribe-events-calendar-month__grid-cell--current .tribe-events-calendar-month__grid-cell-date {
  background: #5e7689;
  color: #fff;
  border-radius: 50%;
}

/* --- Riga "oggi" evidenziata --- */
.tribe-events-calendar-month__grid-cell--today {
  background: #eef1f4;
}

/* --- Link "aggiungi al calendario" / ical --- */
.tribe-events-c-ical__link {
  color: #5e7689;
  font-family: 'Spectral', Georgia, serif;
  font-size: 0.85rem;
}
.tribe-events-c-ical__link:hover {
  color: #363b42;
}

/* --- Pagina singolo evento --- */
.tribe-events-single .tribe-events-single-section {
  font-family: 'Spectral', Georgia, serif;
}
.tribe-events-single-event-title {
  font-family: 'Fraunces', Georgia, serif;
  color: #363b42;
}
.tribe-events-schedule abbr {
  color: #5e7689;
  font-family: 'Spectral', Georgia, serif;
  border-bottom: none;
  text-decoration: none;
}
