/* ===== BeneventoCalcio.it — stile giallorosso ===== */

/* Ordine colonne come il vecchio sito: contenuto | colonna1 | colonna2 */
#sp-main-body .row > #sp-component { order: 1; }
#sp-main-body .row > #sp-left      { order: 2; }
#sp-main-body .row > #sp-right     { order: 3; }

/* Nasconde il Sign In nel header (il login sta nel footer) */
.sp-sign-in, .header-sign-in, #sp-header a[href*="view=login"] { display: none !important; }

/* --- Barra Notizie (rossa) --- */
.barra-notizie { background: #9e0000; margin: 0 0 18px; }
.barra-notizie ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 10px; }
.barra-notizie ul li a {
  display: block; padding: 10px 14px; color: #fff !important;
  font-weight: 700; text-transform: uppercase; font-size: 13px; text-decoration: none;
}
.barra-notizie ul li a:hover, .barra-notizie ul li.active > a { color: #ffd700 !important; }

/* --- Breaking News (striscia scura con scorrimento) --- */
.breaking-news { background: #7a0000; color: #fff; overflow: hidden; margin: 0; }
.breaking-news .sp-module-title, .breaking-news h3 {
  float: left; background: #111; color: #fff; margin: 0; padding: 10px 14px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
}
.breaking-news ul { list-style: none; margin: 0; padding: 0; white-space: nowrap;
  display: inline-block; animation: bc-scorri 30s linear infinite; }
.breaking-news ul li { display: inline-block; padding: 10px 40px 10px 0; }
.breaking-news ul li a { color: #fff !important; font-weight: 600; text-decoration: none; }
.breaking-news ul li a:hover { color: #ffd700 !important; }
@keyframes bc-scorri { from { transform: translateX(100%);} to { transform: translateX(-100%);} }

/* --- Lista "Altre Notizie" --- */
.lista-notizie .mod-articles-category-group { list-style: none; padding: 0; }
.lista-notizie li { border-bottom: 1px solid #eee; padding: 14px 0; overflow: hidden; }
.lista-notizie li img { float: left; width: 170px; height: auto; margin: 0 15px 6px 0; }
.lista-notizie .mod-articles-category-title {
  color: #9e0000; font-weight: 800; font-size: 20px; line-height: 1.2; text-decoration: none; display: block;
}
.lista-notizie .mod-articles-category-title:hover { color: #d91e18; }
.lista-notizie .mod-articles-category-date,
.lista-notizie .mod-articles-category-category,
.lista-notizie .mod-articles-category-hits { font-size: 12px; color: #888; margin-right: 10px; }
.lista-notizie .mod-articles-category-introtext { color: #333; font-size: 14px; margin-top: 4px; }
.lista-notizie .mod-articles-category-readmore a { color: #9e0000; font-size: 13px; font-weight: 700; }

/* Titoli dei moduli (barrette grigie come sul vecchio sito) */
#sp-left .sp-module-title, #sp-right .sp-module-title, #sp-component .sp-module-title,
#sp-left .sp-module h3, #sp-right .sp-module h3, #sp-component .sp-module h3 {
  background: #ececec; color: #9e0000; font-size: 15px; font-weight: 800;
  text-transform: uppercase; padding: 10px 12px; margin: 0 0 12px;
}
#sp-left .sp-module, #sp-right .sp-module { margin-bottom: 22px; }
#sp-left img, #sp-right img { max-width: 100%; height: auto; }

/* --- Fascia scura sopra il footer (login, vignette, amici) --- */
#sp-bottom { background: #9e0000; color: #fff; padding: 35px 0; }
#sp-bottom .sp-module-title, #sp-bottom h3 { color: #fff; background: none; padding: 0 0 10px; margin: 0 0 12px;
  font-weight: 800; text-transform: none; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.25); }
#sp-bottom a { color: #ffd700; }
#sp-bottom input { border-radius: 3px; border: 0; padding: 7px; }
#sp-bottom .btn, #sp-bottom button { background: #b8860b; color: #fff; border: 0; }

/* --- Footer (copyright + contatti) --- */
#sp-footer { background: #111; color: #ccc; padding: 18px 0; font-size: 13px; }
#sp-footer a { color: #ffd700; }

/* Griglia vignette */
.vignette-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; background: #fff; padding: 10px; }
.vignette-grid img { width: 100%; height: auto; display: block; }

/* Mobile */
@media (max-width: 767px) {
  .lista-notizie li img { width: 100%; float: none; margin: 0 0 8px; }
  .breaking-news ul { animation-duration: 18s; }
}

/* --- Menu principale: stile vecchio sito --- */
.sp-megamenu-parent > li > a {
  color: #fff !important; font-weight: 800; text-transform: uppercase;
  font-size: 14px; letter-spacing: .3px; padding: 0 20px;
}
.sp-megamenu-parent > li { border-left: 1px solid #2b2b2b; }
.sp-megamenu-parent > li:last-child { border-right: 1px solid #2b2b2b; }
.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li.active > a { color: #ffd700 !important; }

/* Barra notizie: rifiniture */
.barra-notizie ul li a { padding: 9px 12px; font-size: 12.5px; }

/* ===== Menu principale centrato ===== */

#sp-header .row{
    display:flex;
    align-items:center;
}

#sp-logo{
    flex:0 0 auto;
}

#sp-menu{
    flex:1;
    display:flex;
    justify-content:center;
}

#sp-menu .sp-megamenu-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
}

.sp-megamenu-parent{
    display:flex;
    justify-content:center;
    width:auto;
    float:none !important;
}
/* --- Striscia rossa (e breaking news) a tutto schermo --- */
.barra-notizie, .breaking-news {
  width: 100vw; position: relative; left: 50%; margin-left: -50vw;
}
/* ...ma con le voci centrate come il contenuto */
.barra-notizie ul { justify-content: center; }

/* --- Barra di ricerca allineata --- */
#sp-header [class*="search"]{
    margin-top: -10px;
}

#sp-header .search,
#sp-header .search-wrapper,
#sp-header .search-module{
    display:flex;
    align-items:center;
    height:100%;
}
/* --- Hamburger solo su mobile --- */
@media (min-width: 992px) {
  #offcanvas-toggler, .offcanvas-toggler { display: none !important; }
}
.sp-megamenu-parent > li:last-child > a {
    padding-right: 18px;
}
/* === Lista notizie: markup del nuovo modulo Articoli === */
.lista-notizie .mod-articles-items { list-style: none; padding: 0; margin: 0; }
.lista-notizie .mod-articles-item { border-bottom: 1px solid #eee; padding: 14px 0; overflow: hidden; }
.lista-notizie figure { float: left; width: 170px; margin: 0 15px 6px 0; }
.lista-notizie figure img { width: 100%; height: auto; }
.lista-notizie .mod-articles-title { margin: 0 0 4px; }
.lista-notizie .mod-articles-link { color: #9e0000; font-weight: 800; font-size: 20px; line-height: 1.2; text-decoration: none; }
.lista-notizie .mod-articles-link:hover { color: #d91e18; }
.lista-notizie .mod-articles-date, .lista-notizie .mod-articles-category,
.lista-notizie .mod-articles-hits, .lista-notizie .mod-articles-writtenby
 { font-size: 12px; color: #888; margin-right: 10px; }
.lista-notizie p { color: #333; font-size: 14px; margin: 6px 0 4px; }
.lista-notizie .readmore a, .lista-notizie a.btn {
  background: none; border: 0; padding: 0; color: #9e0000; font-weight: 700; font-size: 13px;
}
@media (max-width: 767px) { .lista-notizie figure { float: none; width: 100%; margin: 0 0 8px; } }
/* === Colonne forzate: contenuto 50% | colonna sinistra 25% | destra 25% === */
@media (min-width: 992px) {
  #sp-main-body .row { display: flex !important; flex-wrap: wrap; }
  #sp-main-body .row > #sp-component { flex: 0 0 50% !important; max-width: 50% !important; order: 1; }
  #sp-main-body .row > #sp-left      { flex: 0 0 25% !important; max-width: 25% !important; order: 2; }
  #sp-main-body .row > #sp-right     { flex: 0 0 25% !important; max-width: 25% !important; order: 3; }
}
/* === Mobile/tablet: logo a sinistra, hamburger a destra, stessa altezza === */
@media (max-width: 991px) {
  #sp-header .row, #sp-header .container-inner .row {
    display: flex !important; align-items: center !important;
    justify-content: space-between !important; flex-wrap: nowrap !important;
  }
  #offcanvas-toggler, .offcanvas-toggler {
    margin-left: auto !important; align-self: center !important;
    float: none !important; padding: 0 !important; line-height: 1 !important;
  }
  #sp-logo { display: flex; align-items: center; }
}
/* === Hamburger mobile: bordo destro, centrato in altezza === */
@media (max-width: 991px) {
  #sp-header { position: relative; }
  #offcanvas-toggler {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 50;
  }
  .burger-icon span { background: #fff; } /* bianco sul header nero */
}

/* Countdown */
.bc-countdown { background:#9e0000; color:#fff; text-align:center; padding:16px 8px; }
.bc-cd-numeri { display:flex; justify-content:center; gap:10px; }
.bc-cd-numeri span { display:flex; flex-direction:column; min-width:48px; }
.bc-cd-numeri b { font-size:26px; line-height:1; }
.bc-cd-numeri small { font-size:10px; text-transform:uppercase; opacity:.85; }
.bc-cd-label { margin-top:8px; font-size:12px; text-transform:uppercase; letter-spacing:.5px; }
/* In Evidenza: badge + 3 card */
.in-evidenza { margin-bottom: 18px; }
.in-evidenza::before {
  content:"BENEVENTO CALCIO"; display:inline-block; background:#d91e18; color:#fff;
  font-weight:800; font-size:13px; letter-spacing:.5px; padding:6px 12px; margin-bottom:10px;
}
.in-evidenza .mod-articles-items { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; list-style:none; padding:0; }
.in-evidenza .mod-articles-item figure { margin:0 0 6px; }
.in-evidenza .mod-articles-item img { width:100%; height:auto; display:block; }
.in-evidenza .mod-articles-link { color:#9e0000; font-weight:800; font-size:15px; line-height:1.25; text-decoration:none; }
.in-evidenza .mod-articles-link:hover { color:#d91e18; }
@media (max-width:767px){ .in-evidenza .mod-articles-items { grid-template-columns:1fr; } }
/* Slider */
.bc-slider { position:relative; margin:15px 0 0; }
.bc-slide { display:none; }
.bc-slide.attiva { display:block; }
.bc-slide img { width:100%; height:auto; display:block; }
/* === Home: In Evidenza e Altre Notizie nella colonna centrale === */

body.itemid-101 #sp-component .in-evidenza,
body.itemid-101 #sp-component .lista-notizie {
    width:100%;
    max-width:100%;
}

.in-evidenza .mod-articles-items {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:10px;
}

@media (max-width:991px){
    .in-evidenza .mod-articles-items {
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:767px){
    .in-evidenza .mod-articles-items {
        grid-template-columns:1fr;
    }
}

.in-evidenza .mod-articles-item {
    border:1px solid #eee;
    background:#fff;
    padding:8px;
}

.in-evidenza .mod-articles-link {
    font-size:14px;
}

/* immagini In Evidenza più basse */
.in-evidenza img {
    aspect-ratio:16/9;
    object-fit:cover;
}

/* Altre Notizie prende tutta la colonna centrale */
.lista-notizie {
    width:100%;
    transform:none;
}

/* distacco tra i due blocchi */
.in-evidenza {
    margin-bottom:20px;
}
.in-evidenza {
    margin-bottom:20px;
}

.in-evidenza .mod-articles-items {
    gap:10px;
}


@media(max-width:767px){

    .in-evidenza .mod-articles-item img {
        height:180px !important;
    }

}

.in-evidenza .mod-articles-link {
    font-size:14px;
}
/* Slider Benevento */
.bc-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bc-slider .bc-slide {
    display: none !important;
}

.bc-slider .bc-slide.attiva {
    display: block !important;
}

.bc-slider img {
    width: 100%;
    height: auto;
    display: block;
}
/* Slider full width */
#sp-slide {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

#sp-slide .container,
#sp-slide .container-inner {
    max-width: 100% !important;
    padding: 0 !important;
}

.bc-slider {
    margin: 0 !important;
}

.bc-slider img {
    width: 100vw;
    height: auto;
    display: block;
}
#sp-slide {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}
.bc-slider img {
    width:100%;
    height:420px;
    object-fit:cover;
}
/* Slider fuori dal container Helix */
#sp-slide {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
}

#sp-slide .container,
#sp-slide .container-fluid,
#sp-slide .container-inner,
#sp-slide .row {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.bc-slider {
    margin: 0 !important;
}

.bc-slider img {
    width: 100% !important;
    display: block;
}
.bc-slider {
    width:100%;
    overflow:hidden;
    margin:0;
}

.bc-slide {
    display:none !important;
}

.bc-slide.attiva {
    display:block !important;
}

.bc-slide img {
    width:100%;
    height:420px;
    object-fit:cover;
    display:block;
}
#sp-section-2 {
    margin-bottom:0 !important;
    padding-bottom:0 !important;
}

#sp-slide {
    margin-top:0 !important;
    padding-top:0 !important;
}

#sp-slide .sp-module,
#sp-slide .sp-module-content {
    margin:0 !important;
    padding:0 !important;
}
/* Layout 3-6-3 solo Home */
body.itemid-101 #sp-main-body .row {
    display:flex !important;
    flex-wrap:wrap;
}

/* === Layout sempre 3 colonne ma adattivo === */

body.itemid-101 #sp-main-body .row {
    display:flex !important;
    flex-wrap:nowrap !important;
}

body.itemid-101 #sp-main-body .row > #sp-component {
    flex:0 1 50% !important;
    max-width:50% !important;
}

body.itemid-101 #sp-main-body .row > #sp-left {
    flex:0 1 25% !important;
    max-width:25% !important;
}

body.itemid-101 #sp-main-body .row > #sp-right {
    flex:0 1 25% !important;
    max-width:25% !important;
}


/* Pagine interne: contenuto piena larghezza */
body:not(.itemid-101) #sp-main-body .row > #sp-component {
    flex:0 0 100% !important;
    max-width:100% !important;
}

body:not(.itemid-101) #sp-main-body .row > #sp-left,
body:not(.itemid-101) #sp-main-body .row > #sp-right {
    flex:0 0 auto !important;
}
/* accorcia solo le linee divisorie del menu */
.sp-megamenu-parent > li {
    border-left: none !important;
    position: relative;
}

.sp-megamenu-parent > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: #2b2b2b;
}

.sp-megamenu-parent > li:last-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: #2b2b2b;
}
.sp-megamenu-parent > li:last-child {
    border-right: none !important;
}
/* === Pagine interne: box grigio su sfondo bianco === */

body:not(.itemid-101) #sp-main-body {
    background:#fff !important;
    padding:20px 0 !important;
}

body:not(.itemid-101) #sp-main-body .container,
body:not(.itemid-101) #sp-main-body .container-inner {
    background:#f3f3f3 !important;
    max-width:1200px !important;
    margin:0 auto !important;
    padding:30px !important;
}

body:not(.itemid-101) #sp-component {
    background:#f3f3f3 !important;
}

body:not(.itemid-101) .item-page {
    color:#222;
    font-size:16px;
    line-height:1.5;
}

body:not(.itemid-101) .item-page p {
    margin-bottom:15px;
}
/* === Contenitore grigio per tutta la Home e pagine interne === */

#sp-main-body {
    background:#fff !important;
    padding:20px 0 !important;
}

#sp-main-body .container,
#sp-main-body .container-inner {
    background:#f3f3f3 !important;
    padding:30px !important;
}

/* contenuto dentro il box */
#sp-component {
    background:#f3f3f3 !important;
}
/* FIX DEFINITIVO BREAKING NEWS */
.breaking-news {
    height:32px !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
}

.breaking-news .sp-module-content {
    height:32px !important;
    display:flex !important;
    align-items:center !important;
}

.breaking-news ul {
    height:auto !important;
    display:flex !important;
    align-items:center !important;
    margin:0 !important;
    padding:0 !important;
}

.breaking-news ul li {
    height:auto !important;
    line-height:normal !important;
    padding:0 25px 0 0 !important;
}

.breaking-news ul li a {
    display:block !important;
    font-size:11px !important;
    line-height:16px !important;
    transform:none !important;
}

.breaking-news .sp-module-title,
.breaking-news h3 {
    height:auto !important;
    line-height:16px !important;
    padding:0 10px !important;
    margin:0 !important;
}
/* === Breaking News: il testo scorre dietro e non sopra il titolo === */

.breaking-news {
    display:flex !important;
    align-items:center !important;
}

.breaking-news .sp-module-title,
.breaking-news h3 {
    position:relative;
    z-index:10;
    flex:0 0 auto;
}

.breaking-news ul {
    position:relative;
    z-index:1;
    overflow:hidden;
    flex:1;
}

.breaking-news ul li {
    display:inline-block;
}
/* === Ridimensionamento automatico tablet e telefono === */

@media(max-width:991px){

    #sp-main-body .container,
    #sp-main-body .container-inner {
        padding:15px !important;
    }

    .sp-module-title,
    .sp-module h3 {
        font-size:13px !important;
    }

    .lista-notizie .mod-articles-link {
        font-size:16px !important;
    }

    .in-evidenza .mod-articles-items {
        gap:6px;
    }

    .in-evidenza .mod-articles-link {
        font-size:12px !important;
    }

    .bc-slider img {
        height:220px !important;
    }

}
img {
    max-width:100% !important;
    height:auto;
}
/* === Countdown responsive ma non piccolo === */

.bc-countdown {
    padding:12px 5px !important;
}

.bc-cd-numeri {
    gap:8px !important;
}

.bc-cd-numeri span {
    min-width:55px !important;
}

.bc-cd-numeri b {
    font-size:28px !important;
}

.bc-cd-numeri small {
    font-size:11px !important;
}

@media(max-width:480px){

    .bc-cd-numeri span {
        min-width:50px !important;
    }

    .bc-cd-numeri b {
        font-size:24px !important;
    }

}
/* === Immagini moduli laterali === */

.sp-module img {
    width:100%;
    height:auto;
    object-fit:cover;
}

.vignette-grid img {
    width:100%;
    height:auto;
}/* ==================================================
   FIX RESPONSIVE MOBILE / TABLET
   immagini, banner, foto servizi, countdown
   ================================================== */

@media (max-width: 991px) {

    /* contenitore principale centrato */
    #sp-main-body {
        padding: 10px 0 !important;
    }

    #sp-main-body .container,
    #sp-main-body .container-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 10px !important;
        background:#f3f3f3 !important;
    }

    /* elimina colonne strette */
    #sp-main-body .row {
        display:block !important;
        margin:0 !important;
    }

    #sp-main-body .row > #sp-component,
    #sp-main-body .row > #sp-left,
    #sp-main-body .row > #sp-right {
        width:100% !important;
        max-width:100% !important;
        flex:0 0 100% !important;
        padding:0 !important;
    }


    /* tutte le immagini grandi a schermo */
    img,
    .sp-module img,
    .sp-module-content img,
    .custom img {
        max-width:100% !important;
        width:100% !important;
        height:auto !important;
    }


    /* FOTO SERVIZI */
    .vignette-grid {
        grid-template-columns:repeat(2,1fr) !important;
        width:100% !important;
        padding:5px !important;
    }

    .vignette-grid img {
        width:100% !important;
        height:auto !important;
    }


    /* Banner */
    .banner,
    .banners,
    .sp-banner,
    .sp-module.banners {
        width:100% !important;
        max-width:100% !important;
    }


    /* Countdown */
    .bc-countdown {
        width:100% !important;
        padding:15px 5px !important;
    }

    .bc-cd-numeri {
        display:flex !important;
        justify-content:center !important;
        flex-wrap:nowrap !important;
        gap:5px !important;
    }

    .bc-cd-numeri span {
        min-width:55px !important;
    }

    .bc-cd-numeri b {
        font-size:22px !important;
    }


    /* In evidenza telefono */
    .in-evidenza .mod-articles-items {
        grid-template-columns:1fr !important;
    }

    .in-evidenza .mod-articles-item img {
        width:100% !important;
        height:auto !important;
        aspect-ratio:16/9;
        object-fit:cover;
    }

}


/* tablet: due colonne per le card */
@media (min-width:768px) and (max-width:991px){

    .in-evidenza .mod-articles-items {
        grid-template-columns:repeat(2,1fr) !important;
    }

}


/* telefono piccolo */
@media (max-width:480px){

    .bc-cd-numeri span {
        min-width:45px !important;
    }

    .bc-cd-numeri b {
        font-size:18px !important;
    }

    .bc-cd-numeri small {
        font-size:9px !important;
    }

}
/* In Evidenza: mini-card, foto a sinistra di titolo+testo */
.in-evidenza .mod-articles-items { grid-template-columns: 1fr; gap: 8px; }
.in-evidenza .mod-articles-item { border: 1px solid #eee; padding: 8px; }
.in-evidenza .mod-articles-item:has(> figure),
.in-evidenza .mod-articles-item-content:has(> figure) {
  display: grid; grid-template-columns: 80px 1fr; column-gap: 10px; align-items: start;
}
.in-evidenza .mod-articles-item figure {
  grid-column: 1; grid-row: 1 / span 2; width: 80px; margin: 0; float: none;
}
.in-evidenza .mod-articles-item img { width: 100%; height: auto; display: block; }
.in-evidenza .mod-articles-title, .in-evidenza .mod-articles-link {
  grid-column: 2; font-size: 14px; margin: 0; padding: 0; display: block; line-height: 1.25;
}
.in-evidenza .mod-articles-item p {
  grid-column: 2; color: #333; font-size: 12px; line-height: 1.3; margin: 2px 0 0;
}
/* In Evidenza: titolo sopra a tutta riga, sotto foto sx + testo dx, card bassa */
.in-evidenza .mod-articles-items { grid-template-columns: 1fr; gap: 8px; }
.in-evidenza .mod-articles-item { border: 1px solid #eee; padding: 8px; min-height: 0; }
.in-evidenza .mod-articles-item-content {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start;
  font-size: 13px; color: #333; line-height: 1.3;
}
.in-evidenza .mod-articles-title, .in-evidenza .mod-articles-link {
  flex: 0 0 100%; font-size: 16px; line-height: 1.2; margin: 0; padding: 0;
}
.in-evidenza .mod-articles-item-content figure {
  position: static; flex: 0 0 110px; width: 110px; height: 70px;
  margin: 0; overflow: hidden;
}
.in-evidenza .mod-articles-item-content img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.in-evidenza .mod-articles-item-content > :not(figure):not(.mod-articles-title):not(.mod-articles-link) {
  flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-cd-numeri b {
    font-size:24px !important;
}
.bc-cd-numeri small {
    font-size:9px !important;
}
/* ==========================================================
   SOLO MODULO "IN EVIDENZA" — foto piccole e tutte uguali
   ========================================================== */
.in-evidenza .mod-articles-items { grid-template-columns: 1fr; gap: 8px; }

.in-evidenza .mod-articles-item {
  border: 1px solid #eee;
  padding: 8px;
  overflow: hidden;
}

/* contenitore foto: misura fissa */
.in-evidenza figure {
  float: left !important;
  flex: 0 0 110px !important;
  width: 110px !important;
  height: 70px !important;
  margin: 0 12px 6px 0 !important;
  overflow: hidden !important;
  display: block !important;
}

/* immagine: sempre 110x70, ritagliata al centro */
.in-evidenza img {
  width: 110px !important;
  height: 70px !important;
  max-width: 110px !important;
  min-width: 0 !important;
  object-fit: cover !important;
  aspect-ratio: auto !important;
  display: block !important;
}

.in-evidenza .mod-articles-link { font-size: 15px; line-height: 1.2; }
.in-evidenza .mod-articles-item p { font-size: 13px; line-height: 1.35; margin: 4px 0 0; }

/* anche su tablet/telefono la foto resta piccola */
@media (max-width: 991px) {
  .in-evidenza img {
    width: 110px !important;
    height: 70px !important;
    max-width: 110px !important;
  }
}
/* === FIX titoli moduli: sfondo grigio sempre sotto tutto il titolo === */
#sp-left .sp-module-title,  #sp-left .sp-module > h3,
#sp-right .sp-module-title, #sp-right .sp-module > h3,
#sp-component .sp-module-title, #sp-component .sp-module > h3 {
  display: block !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 1 1 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  margin: 0 0 12px !important;
  background: #ececec !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* il contenitore del modulo non deve tagliare o stringere il titolo */
#sp-left .sp-module, #sp-right .sp-module { display: block !important; overflow: visible !important; }
/* ===== TITOLI MODULI: sempre su una riga, font che si adatta ===== */
#sp-left .sp-module-title,  #sp-left .sp-module > h3,
#sp-right .sp-module-title, #sp-right .sp-module > h3,
#sp-component .sp-module-title, #sp-component .sp-module > h3 {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #ececec !important;
  padding: 8px 7px !important;
  margin: 0 0 12px !important;

  /* niente più spezzature */
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis;

  /* font fluido: si rimpicciolisce se la colonna è stretta */
  font-size: clamp(10px, 1.05vw, 15px) !important;
  letter-spacing: -0.2px !important;
  line-height: 1.3 !important;
}

/* ===== IMMAGINI COLONNE LATERALI: un po' più grandi ===== */
#sp-left .sp-module img,  #sp-left .custom img,  #sp-left .bannergroup img,
#sp-right .sp-module img, #sp-right .custom img, #sp-right .bannergroup img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}
/* ===== TITOLI: una riga intera, niente puntini ===== */
#sp-left .sp-module-title,  #sp-left .sp-module > h3,
#sp-right .sp-module-title, #sp-right .sp-module > h3,
#sp-component .sp-module-title, #sp-component .sp-module > h3 {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;

  padding: 7px 5px !important;
  font-size: clamp(8px, 0.85vw, 15px) !important;
  letter-spacing: -0.3px !important;
  line-height: 1.3 !important;
}

/* ===== Ridistribuzione colonne: più spazio a sinistra ===== */
@media (min-width: 992px) {
  body.itemid-101 #sp-main-body .row > #sp-component {
    flex: 0 1 50% !important; max-width: 50% !important;
  }
  body.itemid-101 #sp-main-body .row > #sp-left {
    flex: 0 1 30% !important; max-width: 30% !important;
  }
  body.itemid-101 #sp-main-body .row > #sp-right {
    flex: 0 1 20% !important; max-width: 20% !important;
  }
}

/* ===== Banner/foto colonne laterali più grandi ===== */
#sp-left .sp-module img,  #sp-left .custom img,  #sp-left .bannergroup img,
#sp-right .sp-module img, #sp-right .custom img, #sp-right .bannergroup img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}
/* ===== I moduli laterali occupano tutta la colonna ===== */
#sp-left .sp-module,  #sp-left .sp-module-content,
#sp-right .sp-module, #sp-right .sp-module-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ===== TITOLI: il grigio si allarga fino a coprire tutto il testo ===== */
#sp-left .sp-module-title,  #sp-left .sp-module > h3,
#sp-right .sp-module-title, #sp-right .sp-module > h3,
#sp-component .sp-module-title, #sp-component .sp-module > h3 {
  display: block !important;
  width: max-content !important;      /* si adatta al testo */
  min-width: 100% !important;         /* ma almeno tutta la colonna */
  max-width: none !important;
  box-sizing: border-box !important;
  background: #ececec !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  padding: 7px 8px !important;
  margin: 0 0 12px !important;
  font-size: clamp(9px, 0.9vw, 15px) !important;
  letter-spacing: -0.2px !important;
  line-height: 1.3 !important;
}

/* ===== Banner/foto laterali più grandi ===== */
#sp-left .sp-module img,  #sp-left .custom img,  #sp-left .bannergroup img,
#sp-right .sp-module img, #sp-right .custom img, #sp-right .bannergroup img {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
}
.bc-countdown {
  display: block !important;
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  background: #9e0000 !important;
  padding: 10px 12px !important;
}
.bc-countdown { padding: 7px 9px !important; }
.bc-cd-numeri { gap: 6px !important; }
.bc-cd-numeri span { min-width: 0 !important; }
.bc-cd-numeri b { font-size: 20px !important; }
.bc-cd-numeri small { font-size: 8px !important; }
.bc-cd-label { font-size: 10px !important; margin-top: 5px !important; }
/* desktop + mobile */
#sp-component .item *,
#sp-component .item-page *,
#sp-component .blog *,
#sp-component article * {
  font-size: 20px !important;
  line-height: 1.7 !important;
  letter-spacing: normal !important;
  word-break: break-word !important;
}

#sp-component h1, #sp-component h1 *,
#sp-component h2, #sp-component h2 *,
#sp-component .page-header * { font-size: 22px !important; }

/* sul telefono un filo più piccolo */
@media (max-width: 767px) {
  #sp-component .item *,
  #sp-component .item-page *,
  #sp-component .blog *,
  #sp-component article * { font-size: 18px !important; }

  #sp-component h1, #sp-component h1 *,
  #sp-component h2, #sp-component h2 *,
  #sp-component .page-header * { font-size: 19px !important; }
}
@media (max-width: 991px) {
  /* nascondi quello desktop, tieni quello mobile */
  #sp-logo .logo-image { display: none !important; }

  #sp-logo, #sp-logo .logo, #sp-logo a.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    padding: 4px 0 !important;
  }

  #sp-logo .logo-image-phone, #sp-logo img.logo-image-phone {
    display: block !important;
    max-height: 38px !important;
    height: 38px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    margin: 0 !important;
  }
}
/* === ALBO D'ORO / tabelle articoli su mobile === */
@media (max-width: 767px) {
  #sp-component table,
  #sp-component tbody, #sp-component thead,
  #sp-component tr, #sp-component td, #sp-component th {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #sp-component table { table-layout: fixed !important; border-collapse: collapse !important; }

  /* ogni riga diventa un blocco: anno sopra, testo sotto */
  #sp-component table tr { display: block !important; border-bottom: 1px solid #ddd; padding: 6px 0; }
  #sp-component table td { display: block !important; padding: 2px 6px !important; }

  /* font piccolo, batte gli stili incollati da Word */
  #sp-component table td, #sp-component table td * {
    font-size: 13px !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  /* l'anno in evidenza */
  #sp-component table td:first-child,
  #sp-component table td:first-child * {
    font-weight: 800 !important;
    font-size: 14px !important;
    color: #9e0000 !important;
  }
}
/* Tabelle a blocchi (Albo d'oro ecc.) su desktop e mobile — ESCLUSA la categoria Fotocronaca */
#sp-component .article-details:not(:has(.category-name a[href*="fotocronaca"])) table tr {
  display: block !important;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  height: auto !important;
}
#sp-component .article-details:not(:has(.category-name a[href*="fotocronaca"])) table td {
  display: block !important;
  width: 100% !important;
  padding: 2px 8px !important;
  height: auto !important;
  white-space: normal !important;
}
#sp-component .article-details:not(:has(.category-name a[href*="fotocronaca"])) table td:first-child,
#sp-component .article-details:not(:has(.category-name a[href*="fotocronaca"])) table td:first-child * {
  font-weight: 800 !important;
  font-size: 18px !important;
  color: #9e0000 !important;
}
/* Testo articolo aperto */
#sp-component .article-details, #sp-component .article-details *,
#sp-component .com-content-article, #sp-component .com-content-article *,
#sp-component .article-body, #sp-component .article-body * {
  font-size: 20px !important;
  line-height: 1.7 !important;
}
#sp-component .article-title, #sp-component .article-title * { font-size: 24px !important; }
#sp-component .article-info, #sp-component .article-info * { font-size: 12px !important; }

@media (max-width: 767px) {
  #sp-component .article-details *, #sp-component .article-body * { font-size: 18px !important; }
  #sp-component .article-title, #sp-component .article-title * { font-size: 20px !important; }
}
/* Moduli JoomSport nella colonna stretta */
#sp-right .sp-module, #sp-left .sp-module { overflow-x: auto; }
#sp-right table, #sp-left table { width: 100% !important; font-size: 11px; }
#sp-right table th, #sp-right table td { padding: 3px 4px !important; white-space: nowrap; }
#sp-right h1, #sp-right h2, #sp-right h3, #sp-right .jsseason-title { font-size: 14px !important; margin: 0 0 6px; }
#sp-right img, #sp-left img { max-width: 22px; height: auto; }
@media (min-width: 992px) {
  body.itemid-101 #sp-main-body .row > #sp-component { flex:0 0 45% !important; max-width:45% !important; }
  body.itemid-101 #sp-main-body .row > #sp-left      { flex:0 0 22% !important; max-width:22% !important; }
  body.itemid-101 #sp-main-body .row > #sp-right     { flex:0 0 33% !important; max-width:33% !important; }
}
/* === Fascia sportiva: Marcatori | Ultimo | Prossimo incontro === */
#sp-user1 .sp-module-title, #sp-user1 h3,
#sp-user2 .sp-module-title, #sp-user2 h3,
#sp-user3 .sp-module-title, #sp-user3 h3 {
  background:#ececec !important; color:#9e0000 !important;
  font-weight:800 !important; text-transform:uppercase !important;
  font-size:15px !important; padding:10px 12px !important; margin:0 0 12px !important;
  display:block !important; width:100% !important; box-sizing:border-box !important;
}

/* Marcatori */
#sp-user1 table { width:100% !important; border-collapse:collapse; }
#sp-user1 table tr { border-bottom:1px solid #eee; }
#sp-user1 table td { padding:7px 6px !important; vertical-align:middle !important; font-size:14px; }
#sp-user1 table td a { color:#9e0000 !important; font-weight:600; text-decoration:none; }
#sp-user1 table td a:hover { color:#d91e18 !important; }
#sp-user1 table img { width:22px !important; height:auto !important; }
#sp-user1 table td:last-child { font-weight:800; color:#111; text-align:right; width:40px; }

/* Ultimo e Prossimo incontro */
#sp-user2 .sp-module-content, #sp-user3 .sp-module-content { text-align:center; }
#sp-user2 img, #sp-user3 img { width:52px !important; height:auto !important; display:inline-block; margin:0 10px; }
#sp-user2 a, #sp-user3 a { color:#9e0000 !important; font-weight:600; text-decoration:none; font-size:14px; }
#sp-user2 table, #sp-user3 table { width:100% !important; border-collapse:collapse; }
#sp-user2 table td, #sp-user3 table td { padding:6px 4px !important; vertical-align:middle !important; }

/* la fascia respira come sul vecchio sito */
#sp-user1 .sp-module, #sp-user2 .sp-module, #sp-user3 .sp-module { margin-bottom:22px; }
#sp-user1, #sp-user2, #sp-user3 { float: none !important; display: block !important; }
#sp-user1 { flex: 0 0 40% !important; max-width: 40% !important; }
#sp-user2 { flex: 0 0 30% !important; max-width: 30% !important; }
#sp-user3 { flex: 0 0 30% !important; max-width: 30% !important; }

@media (max-width: 991px) {
  #sp-user1, #sp-user2, #sp-user3 {
    display: inline-block !important;
    vertical-align: top !important;
    float: none !important;
  }
  #sp-user1 { width: 40% !important; }
  #sp-user2 { width: 30% !important; }
  #sp-user3 { width: 30% !important; }
}/* Countdown: numeri più piccoli su telefono */
@media (max-width: 767px) {
  .bc-cd-numeri { gap: 4px !important; }
  .bc-cd-numeri span { min-width: 0 !important; }
  .bc-cd-numeri b { font-size: 15px !important; }
  .bc-cd-numeri small { font-size: 7px !important; }
  .bc-cd-label { font-size: 9px !important; }
  .bc-countdown { padding: 8px 4px !important; }
}
/* In Evidenza: carosello, una notizia alla volta */
.in-evidenza .sp-module-content { overflow: hidden !important; width: 100%; }
.in-evidenza .mod-articles-items {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: max-content !important;
  transition: transform .6s ease;
}
.in-evidenza .mod-articles-item {
  flex: 0 0 auto !important;
  width: var(--bc-slide-w, 100%) !important;
  max-width: none !important;
  box-sizing: border-box;
}
/* ============================================================
   MOBILE + TABLET (sotto i 1200px): tutto uno sotto l'altro
   ============================================================ */
@media (max-width: 1199px) {

  /* sicurezza: niente zoom né larghezza fissa */
  .body-innerwrapper {
    zoom: normal !important;
    width: auto !important;
    max-width: 100% !important;
  }

  /* le 3 colonne diventano una sola colonna,
     ordine: contenuto → colonna sinistra → colonna destra */
  #sp-main-body .row,
  body.itemid-101 #sp-main-body .row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }

  #sp-main-body .row > #sp-component,
  #sp-main-body .row > #sp-left,
  #sp-main-body .row > #sp-right,
  body.itemid-101 #sp-main-body .row > #sp-component,
  body.itemid-101 #sp-main-body .row > #sp-left,
  body.itemid-101 #sp-main-body .row > #sp-right {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* === Centra l'immagine dell'articolo aperto === */
#sp-component .item-image,
#sp-component .article-image,
#sp-component .item-page img.img-fluid,
#sp-component .item-page > img,
#sp-component .item-page p > img:first-child {
  float: none !important;
  display: block !important;
  margin: 0 auto 18px !important;
  text-align: center;
}

/* nel caso l'immagine sia dentro un <p>, centra anche il paragrafo */
#sp-component .item-page p:has(> img:only-child) {
  text-align: center;
}
/* === ULTIMA REGOLA: su mobile, Fotocronaca resta SEMPRE a colonne come su desktop === */
@media (max-width: 767px) {
  #sp-component .article-details:has(.category-name a[href*="fotocronaca"]) table,
  #sp-component .article-details:has(.category-name a[href*="fotocronaca"]) tbody,
  #sp-component .article-details:has(.category-name a[href*="fotocronaca"]) thead {
    display: table !important;
    width: auto !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }
  #sp-component .article-details:has(.category-name a[href*="fotocronaca"]) table tr {
    display: table-row !important;
    border-bottom: none !important;
    padding: 0 !important;
  }
  #sp-component .article-details:has(.category-name a[href*="fotocronaca"]) table td,
  #sp-component .article-details:has(.category-name a[href*="fotocronaca"]) table th {
    display: table-cell !important;
    width: auto !important;
    padding: inherit !important;
  }
  #sp-component .article-details:has(.category-name a[href*="fotocronaca"]) table {
    overflow-x: auto !important;
  }
}