#t4-footnav {
  padding: 20px 0;
}
.t4-megamenu .navbar-nav > li > .nav-link, .t4-megamenu .navbar-nav > li > a {
  font-size: 13px;
}
.site-header {
  position: relative; /* perché .header-contact usi absolute */
  padding: 20px;
  background: #fff;
}

.header-contact {
  position: relative;
  display: inline-block;
  gap: 20px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
  padding: 2px 0;
}

.contact-item .icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  fill: #555;
  transition: fill 0.2s;
}

.contact-item:hover {
  color: #000;
}

.contact-item:hover .icon {
  fill: #000;
}

body {
  margin-top: -15px;
}

.eb-event-box .eb-event-location-price {
  display: inline-flex;
}

#eb-events .eb-event-box .eb-event-date-time, #eb-events .eb-event-box .eb-event-location {
  font-size: 15px;
}
.eb-event-box .eb-event-location a, .eb-event-box .eb-individual-price {
  font-size: 16px;
  color: #112369;
  font-weight: 600;
}
.services-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

@media (max-width: 768px) {
.services-section {
  padding: 30px 10px;
   }
  .service-card {
  padding: 24px 6px;
  }
  .services-grid {
  gap: 12px;
  }
}

.services-grid {
  display: grid;
  /* Tre colonne fisse */
  grid-template-columns: repeat(3, 1fr);
  /* Due righe automatiche */
  grid-template-rows: repeat(2, auto);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1a2433;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  fill: #e63946;
  transition: fill 0.3s ease;
}

.service-card:hover .service-icon {
  fill: #d62828;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.service-desc {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0;
}

/* ==============================================
   1. Stili base delle card
   ============================================== */
.eb-event-box {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

/* Immagini sempre 16:9 */
.eb-event-box .eb-event-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

/* Titolo (max 2 righe con ellissi) */
.eb-event-box .eb-event-title {
  margin: 16px;
  color: #D62828;
  font-size: 1.2rem !important;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Data e ora */
.eb-event-box .eb-event-date-time {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 12px;
  font-size: 0.95rem;
  color: #4A5568;
}
.eb-event-box .eb-event-date-time i {
  margin-right: 4px;
  font-size: 1.1em;
}

/* Luogo & prezzo */
.eb-event-box .eb-event-location-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
}
.eb-event-box .eb-event-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #4A5568;
}
.eb-event-box .eb-event-price {
  background: none !important;
  padding: 0;
  font-weight: 600;
  color: #1A2433 !important;
}

/* Disponibilità */
.eb-event-box .eb-event-short-description {
  padding: 0 16px 12px;
  font-size: 0.85rem;
  font-style: italic;
  color: #718096;
}

/* Pulsante CTA */
.eb-event-box .eb-taskbar .btn {
  background: #D62828 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  padding: 0.6em 1.2em;
  transition: background 0.2s ease;
}
.eb-event-box .eb-taskbar .btn:hover {
  background: #B02628 !important;
}

.eb-taskbar {
  padding-left: 15px;
}

/* ==============================================
   2. Effetti box-shadow & hover solo su desktop
   ============================================== */
@media (min-width: 992px) {
  .eb-event-box {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .eb-event-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }
}

/* ==============================================
   3. Override mobile: 1 card per riga (<992px)
   ============================================== */
@media (max-width: 991px) {
  /* Forza il container in grid ad 1 colonna */
  .row-fluid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Rimuove float e width fissi delle span4 */
  .row-fluid > .span4 {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    grid-column: span 1 !important;
  }
}

/* Non Cancellare la parte sopra */


/* Card: bordo arrotondato, ombreggiatura e spaziatura */
.nspArt {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 24px; /* spazio sotto ogni card */
}

/* Pulsante “Leggi Tutto” */
.nspArt .readon.inline {
  display: inline-block;
  background: #D62828;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.nspArt .readon.inline:hover {
  background: #B02628;
}

/* Altezza fissa e flex interno su desktop per uniformare le card */
@media (min-width: 992px) {
  .nspArt {
    height: 460px;           /* scegli l’altezza che preferisci */
    max-width: 400px;
    display: flex;
    flex-direction: column;
    margin-right: 10px;
  }
  /* spinge il bottone in fondo se c’è spazio libero */
  .nspArt .readon.inline {
    margin-top: auto;
  }
}

/* Pagina interna con icone */
/* Sezione e Grid */
.decree-section {
  padding: 40px 20px;
  background: #f5f7fa;
}
.decree-section__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
  color: #1a2433;
}
.decree-grid {
  display: grid;
  gap: 24px;
  /* 3 colonne su desktop, 1 su mobile */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card Base */
.decree-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.decree-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Icona */
.decree-card__icon {
  flex: 0 0 48px;
  font-size: 1.8rem;
  color: #D62828;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Corpo contenuti */
.decree-card__body {
  flex: 1;
}
.decree-card__heading {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #1a2433;
}
.decree-card__text {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0 0 12px;
  line-height: 1.4;
}

/* Bottone Visualizza */
.decree-card__btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  background: #D62828;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.decree-card__btn i {
  margin-left: 6px;
  font-size: 0.8rem;
}
.decree-card__btn:hover {
  background: #b02628;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .decree-section {
    padding: 20px 10px;
  }
  .decree-section__title {
    font-size: 1.6rem;
  }
}
.decree-card__btn:hover {
  color: #ffffff;
}
