.site-branding {
    text-align: center;
}
.site-branding .custom-logo {
    margin-left: 0;
    margin-right: 0;
}
.site-title {
    display: block;
}
.site-description {
    float: none;
}

.site-branding {
    position: absolute;
    left: +0px;
    top: -35px;
}

#masthead .header-main {
	display: none;
}

/* =========================================================
   BANNER PUBBLICITARI MOBILE SEMPRE VISIBILI
   Industria & Formazione
   Da usare con il blocco HTML inserito nei Widget
   ========================================================= */


/* Nasconde la barra banner da desktop */
.if-mobile-sticky-ads {
  display: none;
}


/* Attiva la barra solo su mobile */
@media (max-width: 768px) {

  .if-mobile-sticky-ads {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #eeeeee;
    padding: 8px 6px;
    border-bottom: 2px solid #389cda;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  }

  .if-mobile-ad-slider {
    width: 100%;
    overflow: hidden;
    background: #eeeeee;
  }

  .if-mobile-ad-track {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    animation: ifMobileAdScroll 36s linear infinite;
  }

  .if-mobile-ad {
    flex: 0 0 calc(50vw - 14px);
    width: calc(50vw - 14px);
    max-width: calc(50vw - 14px);
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
  }

  .if-mobile-ad img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #eeeeee;
    border: 0;
  }

  /* Spazio sopra la pagina per evitare che il banner copra i contenuti */
  body {
    padding-top: 96px !important;
  }

}


/* Animazione continua */
@keyframes ifMobileAdScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* Accessibilità: disattiva l’animazione per chi preferisce meno movimento */
@media (prefers-reduced-motion: reduce) {
  .if-mobile-ad-track {
    animation: none !important;
  }
}