.t4-masthead-description {
    text-align: center;
}

/* --- Modulo centrato --- */
.moduletable.noborder,
.moduletable.noborder .mod-banners,
.moduletable.noborder .mod-banners__item,
.mod-banners.bannergroup,
.banneritem {
  display: flex;
  justify-content: center;  /* centro orizzontale */
  align-items: center;      /* centro verticale se necessario */
  flex-direction: column;   /* uno sopra l'altro */
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 0 10px 0 !important; 
  margin: 0 auto !important; /* centro il modulo nella colonna */
  text-align: center;        /* centraggio testo e immagini */
}

/* Centrare l'immagine nel banner */
.mod-banners__item img,
.banneritem img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}



.fd-item-title {
    font-size: 1rem; /* come h5 precedente */
    font-weight: 500;
}
.t4-megamenu .dropdown-menu {
  background-color: #ffffff; /* o il colore che vuoi */
}



.hero-section {
    content-visibility: auto; /* ✅ Salta rendering di contenuti non visibili */
    contain-intrinsic-size: 100vw 700px; /* Riserva spazio per evitare shift */
}


/* =========================
   1. FONT FACE (Inter)
   ========================= */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter/Inter_28pt-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* =========================
   2. FONT FACE (Font Awesome)
   ========================= */
@font-face {
  font-family: 'Font Awesome 5 Free';
  src: url('/webfonts/fa-solid-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}




/* =========================
   3. FALLBACK IMMEDIATO
   ========================= */
html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 
               "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   4. FONT ATTIVO DOPO LOAD
   ========================= */
.fonts-loaded body {
  font-family: 'Inter', system-ui, -apple-system, 
               "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   5. MIGLIORAMENTO RENDERING
   ========================= */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}





/* Dopo (ottimizzato) ✅ */
@font-face {
  font-family: 'Inter';
  src: url('Inter_28pt-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap; /* ← AGGIUNGI QUESTO */
}