.site-branding, .site-branding-text, .site-title, .site-description { text-align: center !important; justify-content: center !important; }
.archive-layout-list article:nth-of-type(n+14) { display: none !important; }
.site-title, .site-title a { font-size: 28px !important; }
.main-header .af-container-row.af-flex-container { padding-top: 15px !important; padding-bottom: 15px !important; }
.aft-main-banner-wrapper, .aft-add-gaps-between { padding-top: 0 !important; margin-top: 0 !important; }
.aft-banner-box-wrapper { padding-top: 0 !important; }

.top-header { display: flex !important; align-items: center !important; padding-top: 2px !important; padding-bottom: 2px !important; }
.top-header .container-wrapper { width: 100% !important; display: flex !important; align-items: center !important; position: relative !important; height: 42px !important; }

/* Header: aumento di circa 8 mm dello spazio visibile */
.main-header .af-container-row.af-flex-container { padding-bottom: calc(15px + 22mm) !important; }
.top-header .date-bar-left { top: 0 !important; position: relative !important; }
.top-header .top-bar-left, .top-header .date-bar-left { white-space: nowrap !important; }
.top-header .container-wrapper > span { top: 50% !important; transform: translateY(-50%) !important; line-height: 1 !important; z-index: 5 !important; color: #fff !important; }
@media (max-width: 500px) { .top-header .date-bar-left { top: 36px !important; } }

@media (max-width: 767px) {
  .aft-banner-box-wrapper { display: flex !important; flex-direction: column !important; }
  .aft-carousel-part { order: 1 !important; }
  .af-editors-pick { order: 2 !important; }
  .af-trending-news-part { order: 3 !important; }
}

@media (min-width: 768px) { .aft-banner-box-wrapper { margin-top: 26px !important; } }

/* Mantiene la stessa inquadratura su entrambe le immagini casuali */
.main-header.data-bg { background-position: center 25% !important; }

/* Titolo e motto centrati sulla testata */
.main-header .af-container-row.af-flex-container { min-height: 171px !important; }
.main-header .logo-brand { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; width: 100% !important; z-index: 5 !important; }
@media (max-width: 767px) {
  .main-header .af-container-row.af-flex-container { min-height: 145px !important; }
  .site-title, .site-title a { font-size: 20px !important; }
  .site-description { font-size: 14px !important; }
}/* Testata intera: immagini 1900 × 600 */
.main-header {
  height: 31.58vw !important;
  min-height: 120px !important;
}

.main-header .container-wrapper {
  height: 100% !important;
  min-height: 0 !important;
}

.main-header .af-container-row.af-flex-container {
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

.main-header .col-1.float-l.pad,
.main-header .logo-brand {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.main-header .site-branding {
  width: 100% !important;
  margin: auto !important;
}

.main-header.data-bg {
  background-size: cover !important;
  background-position: center center !important;
}

/* Su iPhone, COMUNICATION va a capo */
@media (max-width: 767px) {
  .main-header .site-title {
    width: 80vw !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    line-height: 1.08 !important;
  }

  .main-header .site-title a {
    display: inline-block !important;
    max-width: 100% !important;
    white-space: normal !important;
    font-size: clamp(22px, 6.5vw, 28px) !important;
    line-height: 1.08 !important;
  }
}.main-header { height: auto !important; min-height: 0 !important; }
.main-header .af-container-row.af-flex-container { min-height: 0 !important; padding-top: 130px !important; padding-bottom: 15px !important; }

/* Palette ASC ripristinata */
body.aft-light-mode { background-color: #efefef !important; color: #444 !important; }
body.aft-light-mode #masthead { background-color: #1b1b1b !important; }
body.aft-light-mode #masthead .main-header { background-color: #333333 !important; }
body.aft-light-mode #masthead .site-title,
body.aft-light-mode #masthead .site-title a { color: #ffffff !important; }
body.aft-light-mode #masthead .site-description,
body.aft-default-mode #masthead .site-description { color: #ff5a00 !important; }
body.aft-light-mode .site-footer {
  background-color: #111111 !important;
  color: #ffffff !important;
}
body.aft-light-mode .site-footer .primary-footer,
body.aft-light-mode .site-footer .site-info { background-color: #111111 !important; }
body.aft-light-mode .site-footer .primary-footer,
body.aft-light-mode .site-footer .site-info,
body.aft-light-mode .site-footer .widget-title,
body.aft-light-mode .site-footer p,
body.aft-light-mode .site-footer li,
body.aft-light-mode .site-footer a { color: #ffffff !important; }
body.aft-light-mode .aft-main-banner-section {
  background-color: #efefef !important;
}

body.aft-light-mode #secondary.sidebar-area {
  background-color: #f3f3f3 !important;
}

/* ASC: articoli mobile, percorso nascosto e spazio compatto sopra la foto. */
@media (max-width: 767px) {
  body.single-post .af-breadcrumbs { display: none !important; }
  body.single-post #page > .entry-header .read-details { margin-top: 14px !important; }
}

/* ASC – articoli mobile: autore sopra titolo, condivisioni in fondo, titolo-sottotitolo ravvicinati */
@media (max-width:767px){
  body.single-post .entry-header-details{display:flex!important;flex-direction:column!important}
  body.single-post .entry-header-details>.read-categories{order:1}
  body.single-post .entry-header-details>.post-meta-share-wrapper{display:contents!important}
  body.single-post .entry-header-details .post-meta-detail{order:2;display:block!important;margin:6px 0 8px!important;padding:0!important}
  body.single-post .entry-header-details>.entry-title{order:3;margin-bottom:0!important}
  body.single-post .entry-header-details .aft-social-share{order:4}
  body.single-post .entry-content>.aft-social-share{display:block!important;width:100%!important;margin:22px 0!important;padding:0!important}
  body.single-post .entry-content>.aft-social-share .sd-content ul{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;margin:0!important;padding:0!important}
  body.single-post .entry-content>.aft-social-share .sd-content ul li{float:none!important;margin:0!important;padding:0!important;flex:0 0 auto!important}
  body.single-post .entry-content>.aft-social-share .sd-content ul li.share-linkedin,body.single-post .entry-content>.aft-social-share .sd-content ul li.share-end{display:none!important}
  body.single-post .entry-content>.aft-social-share .sharedaddy,body.single-post .entry-content>.aft-social-share .sd-block{margin:0!important;padding:0!important;border:0!important}
  body.single-post .entry-content>.aft-social-share h3.sd-title,body.single-post .entry-content>.aft-social-share .share-customize-link{display:none!important}
  body.single-post .entry-header-details{padding-bottom:10px!important}
  body.single-post .entry-header + .container-wrapper > .af-container-block-wrapper{margin-top:0!important}
  body.single-post article .post-excerpt{padding-top:8px!important}
}

/* ASC – nessuna navigazione Precedente/Successivo negli articoli (mobile e desktop) */
body.single-post .post-navigation{display:none!important}

/* ASC – indici di borsa nella barra in alto: stessa misura visiva di data e meteo */
#asc-market-ticker, #asc-market-ticker *{font-size:14px!important}

/* ASC – articoli mobile: autore, data e minuti di lettura su una riga */
@media (max-width:767px){
  body.single-post .entry-header-details .post-meta-detail,body.single-post .entry-header-details .post-meta-detail *{font-size:11px!important;letter-spacing:-.2px}
  body.single-post .entry-header-details .post-meta-detail>span:not(.min-read-post-format)::after{padding:0 2px!important}
  body.single-post .entry-header-details .post-meta-detail i{margin-right:2px!important}
  body.single-post .entry-header-details .post-meta-detail .min-read{font-weight:700!important}
}

/* didascalie galleria */
.gallery-item .gallery-caption {
  position: static !important;
  background: none !important;
  color: #666 !important;
  font-size: 13px;
  padding: 6px 0 12px;
}