#t4-footnav {
  padding: 20px 0;
}
.t4-footnav .container, .t4-footnav .t4-masthead .t4-masthead-detail, .t4-masthead .t4-footnav .t4-masthead-detail {
  padding-top: 1.5em;
  padding-bottom: 1.2rem;
}
.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;
    }
}
/* Fallback robusto per <i class="icon-document">document</i> */
.icon-document{
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1.1em;      /* leggermente più alta per l'ottica */
  line-height: 1;
  vertical-align: -0.15em;
  color: inherit;     /* eredita il colore del testo */
  font-size: 1em;     /* scala con il font-size del contenitore */
  overflow: hidden;
  text-indent: -9999px;   /* nasconde la parola "document" ma resta disponibile ai lettori di schermo */
  white-space: nowrap;
}

/* Disegno dell’icona via mask su currentColor (supporto moderno) */
.icon-document::before{
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M224 136V0H48C21.5 0 0 21.5 0 48V464c0 26.5 21.5 48 48 48H336c26.5 0 48-21.5 48-48V160H248c-13.3 0-24-10.7-24-24zm64-128 96 96h-96V8zM80 280c0-4.4 3.6-8 8-8H296c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V280zm0 72c0-4.4 3.6-8 8-8H296c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V352zm0 72c0-4.4 3.6-8 8-8H232c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V424z"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M224 136V0H48C21.5 0 0 21.5 0 48V464c0 26.5 21.5 48 48 48H336c26.5 0 48-21.5 48-48V160H248c-13.3 0-24-10.7-24-24zm64-128 96 96h-96V8zM80 280c0-4.4 3.6-8 8-8H296c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V280zm0 72c0-4.4 3.6-8 8-8H296c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V352zm0 72c0-4.4 3.6-8 8-8H232c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V424z"/></svg>') no-repeat center / contain;
}

/* Fallback per browser senza mask: usa background-image */
@supports not ((-webkit-mask: none) or (mask: none)) {
  .icon-document{
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 384 512"><path d="M224 136V0H48C21.5 0 0 21.5 0 48V464c0 26.5 21.5 48 48 48H336c26.5 0 48-21.5 48-48V160H248c-13.3 0-24-10.7-24-24zm64-128 96 96h-96V8zM80 280c0-4.4 3.6-8 8-8H296c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V280zm0 72c0-4.4 3.6-8 8-8H296c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V352zm0 72c0-4.4 3.6-8 8-8H232c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V424z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
}


.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;
}

.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;
}

@media (max-width: 768px) {
.services-section {
  padding: 30px 10px;
   }
  .service-card {
  padding: 24px 6px;
  }
  .services-grid {
  gap: 12px;
   /* Tre colonne fisse */
  grid-template-columns: repeat(2, 1fr);
  /* Due righe automatiche */
  grid-template-rows: repeat(2, 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;
}
@media (min-width:768px) {
  .t4-masthead-inner {
    padding:7rem 0;
  }
}
.eb-notice-message {
  padding-left: 15px;
}

:root {
  --pf-red: #d62828;
  --pf-red-2: #a71d1d;
  --pf-light: #f6f8fb;
  --pf-border: #e5e7eb;
  --pf-radius: 10px;
  --pf-shadow: 0 6px 18px rgba(0,0,0,.08);
  --pf-blue: #002b5c;
}

.pf-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.pf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.pf-card {
  background: #fff;
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  padding: 22px;
  box-shadow: var(--pf-shadow);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pf-card:hover {
  transform: translateY(-4px);
}

.pf-card__title {
  font-size: 20px;
  color: var(--pf-blue);
  margin: 0 0 12px;
}

.pf-card__list {
  margin: 0 0 16px;
  padding-left: 18px;
  flex-grow: 1;
}

.pf-btn {
  display: block;
  text-align: center;
  background: #d62828;      /* rosso */
  color: #fff;              /* testo bianco */
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
  max-width: 400px;
  margin: 0 auto;           /* centrato */
}

.pf-btn:hover {
  background: #a71d1d;      /* rosso più scuro */
  color: #fff;              /* testo bianco anche in hover */
}


@media(max-width:900px){
  .pf-cards { grid-template-columns: 1fr; }
}

@media (min-width: 992px) {
  .item-page .page-header .h2, .item-page .page-header h2 {
    font-size: var(--h2-font-size);
  }
}

/* Fallback per <i class="icon-document">document</i> — versione ingrandita */
i.icon-document {
  position: relative;
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
  font-style: normal !important;
  text-indent: -9999px !important;
  overflow: hidden;
  white-space: nowrap;

  /* 👇 ingrandisci qui la dimensione dell'icona */
  font-size: 2.2em;   /* 1em = uguale al testo, 1.5em = +50% più grande */
}

i.icon-document::after {
  content: "📄";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-indent: 0;
  line-height: 1;
  font-size: 1em;     /* resta proporzionato a font-size sopra */
}
.pf-title { font-weight: 700; }

.pf-thumb {
  display: block;
  height: 180px;     /* puoi regolare l’altezza massima */
  width: 100%;
  margin-bottom: 12px;   /* spazio inferiore rispetto al testo */
  border-radius: 6px;    /* facoltativo: angoli leggermente arrotondati */
  object-fit: cover;     /* evita deformazioni se il contenitore è più piccolo */
}

.heygen-avatar-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 360px;        /* regola la dimensione che vuoi */
  height: 640px;
  z-index: 9999;       /* sopra il resto della pagina */
  box-shadow: 0 0 16px rgba(0,0,0,0.3);
  border-radius: 12px;
  overflow: hidden;
  background: #000;    /* per evitare flash bianchi durante il load */
}

.heygen-avatar-wrapper iframe {
  width: 100%;
  height: 100%;
}
.itemid-432 #voiceflow-chat {
  display: none !important;
}
