.main-header-bar, .main-header-data-bg {padding:2px 0 !important;min-height:auto !important;}

.site-title {font-size:25px !important;line-height:1.1 !important;margin:0 !important;}

.site-description {font-size:12px !important;line-height:1.1 !important;margin:2px 0 0 !important;}

.top-header,

.top-bar, 

.topbar-date, 

.header-date {

    display: none !important;

}

@media (max-width: 768px) {
  .aft-banner-box-wrapper.af-container-row {
    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 (max-width: 768px) {
  .entry-content a,
  .entry-content p {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}

/* Riduzione padding logo header - sopra e sotto il nome del sito */
body .header-style1 .main-header .af-container-row.af-flex-container,
body.home .header-style1 .main-header .af-flex-container,
.header-style1 .main-header .af-flex-container {
  padding-top: 34px !important;
  padding-bottom: 34px !important;
}

@media (min-width: 769px) {
  body #content .section-block-upper {
    margin-top: 50px !important;
  }
  body #content .section-block-upper::before {
    content: "NOTIZIE IN EVIDENZA" !important;
    display: block !important;
    width: 100% !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: uppercase !important;
    color: #e05c00 !important;
    border-bottom: 3px solid #e05c00 !important;
    padding-bottom: 8px !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 768px) {
  .section-block-upper {
    margin-top: 28px !important;
  }
  .section-block-upper::before {
    content: "NOTIZIE IN EVIDENZA";
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: uppercase;
    color: #e05c00;
    border-bottom: 3px solid #e05c00;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }
}

/* Nasconde sezione OCCHIELLO */
.af-main-banner-latest-posts { display: none !important; }

/* Fix sidebar position - sposta a destra */
.af-container-block-wrapper.clearfix {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}
.af-container-block-wrapper.clearfix #primary {
  float: none !important;
  flex: 1 1 70% !important;
  min-width: 0 !important;
}
.af-container-block-wrapper.clearfix #secondary {
  float: none !important;
  flex: 0 0 26% !important;
  max-width: 26% !important;
}
.af-container-block-wrapper.clearfix .aft-comment-related-wrap {
  flex: 0 0 100% !important;
  order: 3 !important;
}

@media (max-width: 768px) {
  .af-container-block-wrapper.clearfix {
    flex-direction: column !important;
  }
  .af-container-block-wrapper.clearfix #primary {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .af-container-block-wrapper.clearfix #secondary {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 2 !important;
  }
}

.entry-content .wp-block-group:has(.wp-block-jetpack-subscriptions){display:none!important;}

/* --- Claude: nasconde tag e navigazione tra Mi piace e commenti (articolo singolo) --- */
body.single .entry-content .post-item-metadata.entry-meta,
body.single .entry-content .post-navigation {
    display: none !important;
}


/* --- Claude: box 'Lascia un commento' sopra, commenti utenti sotto --- */
body.single .comments-area {
    display: flex;
    flex-direction: column;
}
body.single .comments-area > #respond {
    order: -1;
    margin-bottom: 30px;
}


/* Homepage: mostra solo i primi 20 articoli nella lista principale */
.aft-archive-wrapper > article:nth-child(n+21) {
	display: none !important;
}


/* Sidebar articoli: mostra i primi 6 slider prioritari (MODA, CINEMA, WEB MARKETING, SCIENZA E TECNOLOGIA, TURISMO, ECONOMIA E FINANZA), nasconde gli altri nella pagina di un singolo articolo. In homepage restano tutti visibili. */
body.single aside.widget-area.color-pad > .widget:nth-child(n+8) {
  display: none !important;
}

/* Spaziatura tra fine articolo (box autore), modulo commenti e sezione "Altre storie" nella pagina articolo */
body.single #comments {
  margin-top: 2cm;
}
body.single .promotionspace.enable-promotionspace {
  margin-top: 2cm;
}

/* Piu' spazio tra fine del pezzo (foto/galleria) e il box firma autore (Alessandro Sicuro): +2cm rispetto al margine gia' presente nel template dell'articolo */
body.single .entry-content [style*="margin-top:48px"] {
  margin-top: calc(48px + 2cm) !important;
}

/* iPhone / responsive: header -20% e fascia nera piena senza swoosh arancio */
@media (max-width: 768px) {
  body .header-style1 .main-header,
  .header-style1 .main-header {
    background-image: none !important;
    background-color: #000 !important;
  }
  .header-style1 .main-header .af-flex-container,
  body .header-style1 .main-header .af-container-row.af-flex-container,
  body.home .header-style1 .main-header .af-flex-container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  /* iPhone: elimina striscia bianca sotto il menu (sfondo header allineato alla sezione scura) */
  #masthead.header-style1,
  .header-style1 {
    background-color: #202020 !important;
  }
}

/* ASC titoli mobile: Ultime notizie -10% (27.5px -> 24.75px) */
@media (max-width: 768px) {
  .af-banner-carousel-1 .read-title h4 a {
    font-size: 24.75px !important;
    line-height: 32.94px !important;
  }
}

/* ASC gutter mobile: homepage, margini laterali 15px -> 6px (testo interno invariato) */
@media (max-width: 768px) {
  body.home .aft-main-banner-section,
  body.home #content.container-wrapper {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  body.home {
    overflow-x: hidden !important;
  }
}

/* ASC gutter articoli mobile: scheda 15px -> 6px, testo con 16px interni */
@media (max-width: 768px) {
  body.single #content.container-wrapper,
  body.archive #content.container-wrapper {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  body.archive #content .af-container-block-wrapper {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* ASC articolo mobile v2: colonna bianca a 6px dal bordo, testo con 16px interni, testata allineata */
  body.single #content .af-container-block-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.single #content #primary {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
  body.single .entry-header .container-wrapper {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  /* ASC breadcrumb mobile: barra del percorso allineata a 6px */
  body.single #page > .container-wrapper,
  body.archive #page > .container-wrapper {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* ASC fix overflow banner: evita 1px di scroll orizzontale dopo la riduzione dei margini */
@media (max-width: 768px) {
  body.home .aft-main-banner-section {
    overflow-x: clip !important;
  }
}

/* ASC notizie in evidenza mobile: schede a 6px dal bordo come lo slider, titolo sezione rientrato di 8px */
@media (max-width: 768px) {
  body.home #content .section-block-upper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: clip !important;
  }
  body.home #content .section-block-upper::before {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }
}

/* ASC breadcrumb nascosto mobile: su telefono la barra del percorso (che ripete il titolo) non si mostra negli articoli. Desktop invariato */
@media (max-width: 768px) {
  body.single .af-breadcrumbs,
  body.single #page > .container-wrapper:has(> .af-breadcrumbs) {
    display: none !important;
  }
}

/* ASC J breadcrumb: nasconde la voce "J" (giorno errato, link a /2026/) su tutti i dispositivi */
body.single .breadcrumb-trail .trail-items > li:nth-of-type(4):not(.trail-end) {
  display: none !important;
}

/* ASC pagine mobile: pagine statiche allineate agli articoli, breadcrumb nascosto ovunque, testo non giustificato */
@media (max-width: 768px) {
  body:not(.home) .af-breadcrumbs,
  body:not(.home) #page > .container-wrapper:has(> .af-breadcrumbs) {
    display: none !important;
  }
  body.page #content.container-wrapper {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  body.page #content .af-container-block-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.page #content #primary {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
  body.page .entry-content p,
  body.single .entry-content p {
    text-align: left !important;
  }
  /* titolo duplicato nella pagina Cookie Policy (H1 centrato dentro il testo) */
  body.page-id-17617 .entry-content h1 {
    display: none !important;
  }
}

/* ASC titoli pagine mobile: titolo delle pagine statiche come i titoli di sezione della home (Barlow 600 maiuscolo, arancio, sottolineatura) */
@media (max-width: 768px) {
  body.page .entry-title {
    font-family: 'Barlow', sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
    color: #e05c00 !important;
    display: table !important;
    max-width: 100% !important;
    border-bottom: 3px solid #e05c00 !important;
    padding-bottom: 8px !important;
    margin: 0 0 16px !important;
  }
  body.page .entry-content h2,
  body.page .entry-content h3 {
    font-family: 'Barlow', sans-serif !important;
    text-transform: uppercase !important;
  }
}
