/* Marchigiana Infissi — parità tipografica con prod (Helix3 → Helix Ultimate)
   - body: Roboto 14px 300 (era inline da template Helix3 prod)
   - heading: Roboto 500
   - container max-width 1170 (Helix3 era 1170, HU default 1320)
*/

body {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
    color: #252525;
}

h1, h2, h3, h4, h5, h6,
.sppb-addon-title,
.sp-megamenu-parent {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
}

/* Prod inline-styles L101: font-family Roboto, font-size 18px, font-weight 700.
   Le regole su > li > a fanno override del font-size (12px o 14px home). */
.sp-megamenu-parent {
    font-size: 18px;
    font-weight: 700;
}

/* Container 1170 come Helix3 - !important per vincere su SPPB inline <style> con max-width 1320 */
@media (min-width: 1200px) {
    body .sppb-row-container,
    body .sp-page-builder .sppb-row-container,
    body #sp-main-body .container,
    body .sp-page-builder .container,
    body #sp-page-title .container,
    body #sp-header .container,
    body #sp-top-bar .container,
    body #sp-bottom .container,
    body #sp-footer .container {
        max-width: 1170px !important;
    }
}

/* Top bar - prod literal (template.css L1285) */
#sp-top-bar { padding: 8px 0; }
#sp-top-bar .sp-module { display: inline-block; margin: 0 0 0 20px; }

/* Top bar non-home: sfondo grigio chiaro + testo grigio (parità prod) */
body:not(.itemid-159) #sp-top-bar {
    background-color: #f5f5f5 !important;
    color: #333 !important;
}
body:not(.itemid-159) #sp-top-bar a,
body:not(.itemid-159) #sp-top-bar .sp-contact-info li,
body:not(.itemid-159) #sp-top-bar .sp-contact-info li a,
body:not(.itemid-159) #sp-top-bar .sp-contact-info li i {
    color: #333 !important;
}

/* ==========================================================================
   FOOTER — parita LETTERALE prod (Helix3). Valori da:
   - prod-inline-styles.css L17:  #sp-bottom { bg-image bg-footer.jpg, bg-attachment inherit,
                                                bg-color #f5f5f5, color #e9e9e9, padding 60px 0 }
   - prod-inline-styles.css L18:  #sp-footer { bg-color #000, color #fff }
   - prod-template.css L1469-1508: .sp-module + .sp-module-title (font 14px UPPER) +
                                    .sp-module ul > li > a:before { FA "\f105" + 8px }
   - prod-template.css L1872:  #sp-bottom .sp-module .sp-module-title
                               { text-transform: none; font-weight: 400; font-size: 24px }
   - prod-template.css L1877-1880: #sp-footer { color #fff; text-align center; padding 20px 0 }
   - prod-template.css L1486:  .sp-module ul > li { border-bottom: 1px solid #e8e8e8 }
   - prod-marchigianahome.css L228-241: .bottomhome .sp-module ul > li { border:0; color:#fff },
                                  .bottomhome .sp-module ul > li a { color:#fff; line-height:24px },
                                  .bottomhome .sp-module .sp-module-title
                                  { color:#fff; text-transform: uppercase!important }
   - prod-preset1.css L85: #sp-footer { background:#13913d } (override da inline-styles #000).
   ========================================================================== */
#sp-bottom {
    background-image: url('/images/bg-footer.jpg');
    background-repeat: no-repeat;
    background-attachment: inherit;
    background-position: 50% 0;
    background-color: #f5f5f5;
    color: #e9e9e9;
    padding: 60px 0;
}
#sp-bottom a { color: #e9e9e9; transition: color .2s ease; }
#sp-bottom a:hover,
#sp-bottom a:focus { color: #fff; text-decoration: none; }

/* Footer columns: prod usa 3 col affiancate (col-lg-5 / col-lg-3 / col-lg-4).
   Bug emissione HU 2.x + SPPB v6 dentro mod_custom: la .row Bootstrap viene
   chiusa prematuramente dopo sp-bottom1 (sppb-section interno chiude un div extra).
   sp-bottom2/3 escono come fratelli di .row, non figli → no flexbox → stack vertical.
   Fix: forzare flexbox sul container-inner (genitore comune) e target diretto
   via ID #sp-bottomN (non via :nth-child). */
@media (min-width: 768px) {
    #sp-bottom > .container > .container-inner,
    #sp-bottom > .container {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start;
    }
    /* Neutralizza .row "rotta" (contiene solo sp-bottom1) — la trattiamo come wrapper trasparente */
    #sp-bottom > .container > .container-inner > .row,
    #sp-bottom > .container > .row {
        display: contents;
    }
    /* Target ESPLICITO via ID — funziona anche se sp-bottom2/3 sono fratelli di .row */
    #sp-bottom #sp-bottom1 {
        flex: 0 0 41.6667%;
        max-width: 41.6667%;
        width: 41.6667%;
    }
    #sp-bottom #sp-bottom2 {
        flex: 0 0 25%;
        max-width: 25%;
        width: 25%;
    }
    #sp-bottom #sp-bottom3 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        width: 33.3333%;
    }
    /* Eventuale sp-bottom4 (in HU layout c'è ma non è pubblicato) → nasconde */
    #sp-bottom #sp-bottom4 {
        display: none;
    }
}
/* Mobile <768: stack vertical */
@media (max-width: 767.98px) {
    #sp-bottom #sp-bottom1,
    #sp-bottom #sp-bottom2,
    #sp-bottom #sp-bottom3 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }
    #sp-bottom #sp-bottom3 { margin-bottom: 0; }
}

/* Module title — prod-template L1872 + .bottomhome override */
#sp-bottom .sp-module .sp-module-title,
#sp-bottom h3.sp-module-title {
    color: #fff;
    font-size: 24px;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1;
    margin: 0 0 20px;
}
#sp-bottom .sp-module .sp-module-title::first-letter,
#sp-bottom h3.sp-module-title::first-letter {
    text-transform: uppercase;
}

/* sp-module wrapper spacing — prod-template L1469 */
#sp-bottom .sp-module { margin-top: 0; }

/* Brand col (sp-bottom1) — logo in prima sppb-section, testo in seconda.
   Aggiunge spazio tra le due sezioni SPPB. */
#sp-bottom #sp-bottom1 .sppb-section:first-child {
    margin-bottom: 20px;
}
#sp-bottom #sp-bottom1 .sppb-addon-single-image img {
    height: auto;
    max-width: 100%;
}
/* Fallback per eventuale markup .footer-brand */
#sp-bottom .footer-brand .footer-logo,
#sp-bottom .footer-brand img {
    height: auto;
    max-width: 100%;
    margin-bottom: 30px;
}
#sp-bottom .footer-brand p {
    color: #e9e9e9;
    margin: 0;
}

/* Lista PRODOTTI (Joomla 4 mod-menu mod-list menu / prod nav menu)
   - bullet via .sp-module ul > li > a:before { FA "\f105" } (prod-template L1503)
   - .bottomhome rimuove border-bottom (prod-marchigianahome L228) */
#sp-bottom .sp-module ul,
#sp-bottom .sp-module ul.nav,
#sp-bottom .sp-module ul.menu,
#sp-bottom .sp-module ul.mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}
#sp-bottom .sp-module ul > li {
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
    color: #fff;
    line-height: 24px;
}
#sp-bottom .sp-module ul > li > a {
    display: block;
    padding: 2px 0;
    line-height: 24px !important;
    color: #fff;
    transition: 300ms;
}
#sp-bottom .sp-module ul > li > a::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome";
    font-weight: 700;
    content: "\f105";
    margin-right: 8px;
    display: inline-block;
}
#sp-bottom .sp-module ul > li > a:hover {
    color: #bad14f;
    background: none;
}

/* Contatti col (sp-bottom3) — SPPB feature addons: titolo = h3.sppb-addon-title */
#sp-bottom #sp-bottom3 .sppb-addon-title {
    font-size: 15px !important;
    line-height: 22px !important;
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500 !important;
    margin: 0 0 30px 0 !important;
    text-transform: none !important;
}
#sp-bottom #sp-bottom3 .sppb-addon-title a {
    color: rgba(255,255,255,0.7);
}
#sp-bottom #sp-bottom3 .sppb-addon-title a:hover {
    color: #fff;
}
#sp-bottom #sp-bottom3 .sppb-icon-container {
    width: 26px !important;
    height: 26px !important;
    font-size: 26px !important;
    line-height: 26px !important;
}
/* BS5: pull-left non funziona — ripristina layout media orizzontale icon+testo */
#sp-bottom #sp-bottom3 .sppb-media {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
}
#sp-bottom #sp-bottom3 .sppb-media .pull-left {
    float: none !important;
    flex-shrink: 0;
}
#sp-bottom #sp-bottom3 .sppb-media-body {
    flex: 1;
}

/* Contatti — modulo Custom HTML locale .footer-contacts (icona + testo).
   Replica visiva prod SPPB feature addon: title rgba(255,255,255,0.7),
   font 15px / line 22px; icon 26x26 #fff. */
#sp-bottom .footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}
#sp-bottom .footer-contacts > li {
    display: flex;
    align-items: flex-start;
    margin: 0 0 30px 0;
    padding: 0;
    border: 0;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 22px;
}
#sp-bottom .footer-contacts > li:last-child { margin-bottom: 0; }
#sp-bottom .footer-contacts > li i {
    font-size: 26px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    flex-shrink: 0;
    margin-right: 16px;
    color: #fff;
    text-align: center;
}
#sp-bottom .footer-contacts > li a { color: rgba(255,255,255,0.7); }
#sp-bottom .footer-contacts > li a:hover { color: #fff; }

/* ===== sp-footer (fascia nera copyright) =====
   prod-inline-styles L18 + prod-template L1877 (vincono su prod-preset1 #13913d) */
body #sp-footer {
    background: #000000;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}
body #sp-footer .container-inner {
    padding: 0 !important;
    border-top: none !important;
}
body #sp-footer .sp-copyright,
body #sp-footer span.sp-copyright {
    color: #ffffff;
    display: block;
    line-height: 1.5;
}
body #sp-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
body #sp-footer a:hover { color: #fff; text-decoration: underline; }

/* Mobile stack */
@media (max-width: 991px) {
    #sp-bottom > .container > .row > div + div { margin-top: 30px; }
}
@media (max-width: 767px) {
    #sp-bottom { padding: 40px 0 30px; text-align: left; }
    #sp-bottom .footer-brand { text-align: left; }
    #sp-bottom .footer-brand img { display: block; }
    #sp-bottom .sp-module ul > li > a { display: inline-block; }
    #sp-bottom .footer-contacts > li { justify-content: flex-start; text-align: left; }
}

/* mod_languages — preserva regole base */
div.mod-languages ul { margin: 0; padding: 0; list-style: none; }
div.mod-languages ul.lang-inline li { display: inline; margin-left: 5px; margin-right: 5px; }

/* ==========================================================================
   Header parità LETTERALE prod (Helix3 → HU). Tutti i valori derivati da:
   - tmp/groundtruth/prod-template.css (L1285-1372 + L44-170)
   - tmp/groundtruth/prod-marchigianahome.css (override scope home)
   Valori prod:
   - #sp-header { height: 90px; bg #fff; box-shadow: 0 3px 3px rgba(0,0,0,0.05) }
   - #sp-header .logo { height: 90px; display: table } (logo img naturale 56px)
   - .sp-megamenu-parent > li > a { padding: 0 15px; line-height: 90px; font-size: 12px;
     text-transform: uppercase; letter-spacing: 1px; color: #000 }
   - HOME override: font-size 14px, color #fff, hover/active #bad14f
   - #sp-top-bar { padding: 8px 0 }
   - .sp-contact-info { float: right; margin: 0 -10px }
   - .sp-contact-info li { margin: 0 10px; font-size: 90% }
   - ul.social-icons > li { margin: 5px 7px }; > li a { color: #999999 }
   ========================================================================== */

/* Header & logo - dimensioni nat. logo (img 56px su altezza 90px header) */
body #sp-header {
    height: 90px;
}
body #sp-header .logo {
    display: table;
    height: 90px;
    margin: 0;
}
body #sp-header .logo a {
    display: table-cell;
    vertical-align: middle;
    font-size: 24px;
    line-height: 1;
    margin: 0;
    padding: 0;
}
/* Logo immagine: cap a 50px (= logo_height param HU) su tutte le pagine */
body #sp-header .logo img,
body #sp-header .logo-image,
body #sp-header .logo-image-phone {
    max-height: 50px;
    height: auto;
    width: auto;
}

/* Megamenu - regole prod letterali (template.css L61-71) */
body .sp-megamenu-parent > li > a {
    display: inline-block;
    padding: 0 15px;
    line-height: 90px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin: 0;
    font-weight: 700; /* prod inline body: font-weight:300; .sp-megamenu-parent inline: font-weight:700 */
}

/* Top-bar - sizing letterale prod */
body #sp-top-bar .sp-contact-info {
    float: right;
    list-style: none;
    padding: 0;
    margin: 0 -10px;
}
body #sp-top-bar .sp-contact-info li {
    display: inline-block;
    margin: 0 10px;
    font-size: 90%;
}
body #sp-top-bar .sp-contact-info li i {
    margin: 0 3px;
}
body #sp-top-bar ul.social-icons {
    list-style: none;
    padding: 0;
    margin: -5px;
    display: inline-block;
}
body #sp-top-bar ul.social-icons > li {
    display: inline-block;
    margin: 5px 7px;
}
body #sp-top-bar ul.social-icons > li a {
    color: #fff;
    font-size: 14px !important;
    line-height: 1;
}

/* Mobile - prod media queries letterali (template.css L2627-2678) */
@media (max-width: 991px) {
    /* Topbar mobile: riga singola compatta, social sinistra, telefono destra */
    body #sp-top-bar {
        padding: 6px 0 !important;
    }
    body #sp-top-bar .container-inner .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    body #sp-top-bar #sp-top1 {
        flex: 0 0 auto !important;
        width: auto !important;
        text-align: left !important;
        padding-left: calc(var(--bs-gutter-x) * 1) !important;
        padding-right: calc(var(--bs-gutter-x) * .5) !important;
    }
    body #sp-top-bar #sp-top2 {
        flex: 1 1 auto !important;
        width: auto !important;
        text-align: right !important;
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
        padding-right: calc(var(--bs-gutter-x) * .5) !important;
    }
    /* Telefono + icone: font-size 89% su mobile */
    body #sp-top-bar .sp-contact-info li,
    body #sp-top-bar .sp-contact-info li a,
    body #sp-top-bar .sp-contact-info li i {
        font-size: 89% !important;
    }
    /* Nascondi email e orari su mobile — solo telefono */
    body #sp-top-bar .sp-contact-info li.sp-contact-email,
    body #sp-top-bar .sp-contact-info li.sp-contact-time {
        display: none !important;
    }
    body #sp-top-bar .sp-contact-info {
        float: none;
        margin: 0;
        text-align: right;
        display: inline !important;
    }
    body #sp-top-bar ul.social-icons {
        margin: 0;
        text-align: left;
    }
    body #sp-top-bar ul.social-icons > li {
        margin: 0 8px 0 0;
    }
    /* Hamburger burger-icon: compatto come fa-bars, span bianchi */
    #offcanvas-toggler .burger-icon {
        width: 18px !important;
    }
    #offcanvas-toggler .burger-icon > span {
        background-color: #fff !important;
        margin: 3px 0 !important;
        height: 2px !important;
    }
}

/* Offcanvas toggler - prod (template.css L176-189):
   - Desktop >=992px: HIDDEN (prod non lo mostra, ha solo megamenu)
   - Mobile <992px: visibile, float-right, line-height 87px
   HU emette `d-flex` che ne forza display: prevalere con !important. */
@media (min-width: 992px) {
    body #offcanvas-toggler,
    body #offcanvas-toggler.d-flex {
        display: none !important;
    }
}
@media (max-width: 991px) {
    body #offcanvas-toggler {
        float: right;
        line-height: 87px;
        margin-left: 15px;
        font-size: 20px;
    }
}

/* ==========================================================================
   Header + Top-Bar trasparente sovrapposto al carousel (parità con prod
   shaper_helix3 → marchigianahome.css). Scope: home itemid-159.
   ========================================================================== */

/* Sulla home, pulla l'#sp-main-body sopra (replica prod top:-130px) */
body.itemid-159.com-sppagebuilder #sp-main-body,
body.itemid-159 #sp-main-body {
    position: relative;
    top: -130px;
    margin-bottom: -130px;
}

/* Top-bar trasparente con sfondo scuro semi-trasparente (gradient look) */
body.itemid-159 #sp-top-bar {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}
body.itemid-159 #sp-top-bar a,
body.itemid-159 #sp-top-bar,
body.itemid-159 #sp-top-bar .sp-contact-info li,
body.itemid-159 #sp-top-bar .sp-contact-info li a {
    color: #fff;
}

/* Header trasparente sopra hero (no bg, no shadow). Sticky on scroll → solid */
body.itemid-159 #sp-header {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
body.itemid-159 #sp-header.header-sticky,
body.itemid-159 #sp-header.menu-fixed,
body.itemid-159 #sp-header.sticky {
    background: #000 !important;
    background-color: #000 !important;
}

/* Megamenu HOME (prod marchigianahome.css L26-29 + L298): font 14px, bianco,
   hover/active verde-giallo #bad14f */
body.itemid-159 #sp-megamenu-parent > li > a,
body.itemid-159 .sp-megamenu-parent > li > a {
    color: #fff;
    font-size: 14px;
}
body.itemid-159 .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
body.itemid-159 .sp-megamenu-parent .sp-dropdown li.sp-menu-item span {
    font-size: 14px;
}
body.itemid-159 #sp-megamenu-parent > li.active > a,
body.itemid-159 #sp-megamenu-parent > li:hover > a,
body.itemid-159 .sp-megamenu-parent > li.active > a,
body.itemid-159 .sp-megamenu-parent > li:hover > a {
    color: #bad14f;
}

/* ==========================================================================
   HERO CAROUSEL — parità marchigianahome.css (LETTERALE)
   prod: .pcrt-slidehome { height:800px } [desktop],
         .pcrt-slidehome { height:600px } [768-991],
         .pcrt-slidehome { height:500px } [475-767],
         .pcrt-slidehome { height:400px } [<475]
   prod: .title-slidehome { font-size:56px; color:#bad14f; font-weight:400;
         letter-spacing:0.2em; margin-bottom:20px; display:block }
   prod: .descslidehome { max-width:800px; font-size:20px }
   prod: .overlayslide .sppb-carousel-item-inner { background:rgba(0,0,0,0.6) }
   prod: .pcrt-slidehome p { padding: 10px 0 0 0 }
   prod: .pcrt-slidehome a { color:#fff; text-transform:uppercase }
   ========================================================================== */

/* Slide item: altezza prod 800px desktop. NIENTE override transition/position:
   SPPB v6 default già imposta .sppb-item{position:relative;transition:.6s left}. */
body.itemid-159 #section-id-1512062792604 .sppb-carousel-item,
body.itemid-159 #section-id-1512062792604 .sppb-item.sppb-item-has-bg {
    height: 800px;
    min-height: 800px;
    background-size: cover;
    background-position: center center;
}
body.itemid-159 #section-id-1512062792604 .sppb-carousel.sppb-slide {
    height: 800px;
}
/* SPPB v6 markup: <img> dentro slide (non background-url come prod). Falla fillare.
   FIX cycle1: usa !important per vincere su sppagebuilder.css default
   (.sppb-carousel-inner > .sppb-item > img { width:100%; height:auto }). */
body.itemid-159 #section-id-1512062792604 .sppb-item.sppb-item-has-bg > img,
body.itemid-159 #section-id-1512062792604 .sppb-carousel-inner > .sppb-item > img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center;
    z-index: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* Padding 60px del default SPPB rompe layout: rimuovi sull'item-has-bg */
body.itemid-159 #section-id-1512062792604 .sppb-carousel-inner > .sppb-item.sppb-item-has-bg {
    padding: 0 !important;
}

/* Container carousel: relative + overflow hidden (default SPPB v6, qui solo height).
   NESSUN override su .sppb-item: lascia attive le transizioni native SPPB
   (.sppb-item position:relative; transition:.6s ease-in-out left;
    .active{left:0} .next{left:100%} .prev{left:-100%}
    .active.left{left:-100%} .active.right{left:100%}). */
body.itemid-159 #section-id-1512062792604 .sppb-carousel-inner {
    height: 800px;
}

/* Overlay scuro letterale prod (.overlayslide) */
body.itemid-159 #section-id-1512062792604 .sppb-carousel-item-inner {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 50px;
}

/* Caption box centrato */
body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 10px 20px 0 20px;
}
body.itemid-159 #section-id-1512062792604 .sppb-carousel-text,
body.itemid-159 #section-id-1512062792604 .sppb-carousel-pro-text {
    text-align: center;
    color: #ffffff;
}

/* Titolo — replica .title-slidehome ESATTO prod */
body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h2,
body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h3,
body.itemid-159 #section-id-1512062792604 .sppb-carousel-text h2,
body.itemid-159 #section-id-1512062792604 .sppb-carousel-pro-title,
body.itemid-159 #section-id-1512062792604 .title-slidehome {
    font-size: 56px;
    line-height: 1.1;
    color: #bad14f !important;
    font-weight: 400;
    display: block;
    margin: 0 0 2px 0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Body — replica .descslidehome prod */
body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption p,
body.itemid-159 #section-id-1512062792604 .sppb-carousel-content,
body.itemid-159 #section-id-1512062792604 .sppb-carousel-pro-text,
body.itemid-159 #section-id-1512062792604 .descslidehome {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.5;
    color: #ffffff !important;
    padding: 0;
    text-transform: uppercase;
}

/* Bottone "Scopri di più" hero — prod inline-styles:
   #btn-1512062792613.sppb-btn-custom { letter-spacing:2px; text-transform:uppercase; color:#fff } */
body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption .sppb-btn,
body.itemid-159 #section-id-1512062792604 .sppb-carousel-text .sppb-btn,
body.itemid-159 #section-id-1512062792604 a.sppb-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    color: #ffffff !important;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 200ms ease;
}
body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption .sppb-btn:hover,
body.itemid-159 #section-id-1512062792604 a.sppb-btn:hover {
    background: transparent;
    color: rgba(255,255,255,0.75) !important;
    border: none;
}

/* Page title nasconde sulla home (era così su prod) */
body.itemid-159 #sp-page-title { display: none; }

/* Mobile - regole letterali prod marchigianahome.css L48-80 */
@media (max-width: 991px) {
    body.itemid-159 #sp-top-bar {
        background: #000;
    }
    body.itemid-159 #offcanvas-toggler > i,
    body.itemid-159 #offcanvas-toggler > i:hover {
        color: #ffffff;
    }
    body.itemid-159 .offcanvas-menu {
        background: #000;
        color: #fff;
    }
    /* HERO mobile prod: .pcrt-slidehome { height:600px } [768-991]
       prod: .title-slidehome { font-size:40px } */
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-item,
    body.itemid-159 #section-id-1512062792604 .sppb-item.sppb-item-has-bg {
        height: 600px;
        min-height: 600px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-inner,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel.sppb-slide {
        height: 600px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h2,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h3,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-text h2,
    body.itemid-159 #section-id-1512062792604 .title-slidehome {
        font-size: 40px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption p,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-content {
        font-size: 18px;
    }
}
@media (max-width: 767px) {
    body.itemid-159 li.sp-contact-time {
        display: none;
    }
    body.itemid-159 #sp-top-bar {
        padding: 0;
    }
    body.itemid-159 #sp-top-bar .sp-contact-info {
        margin-top: 5px;
    }
    body.itemid-159 #sp-main-body {
        top: -90px;
    }
    /* HERO 475-767 prod: .pcrt-slidehome { height:500px } */
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-item,
    body.itemid-159 #section-id-1512062792604 .sppb-item.sppb-item-has-bg {
        height: 500px;
        min-height: 500px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-inner,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel.sppb-slide {
        height: 500px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-item-inner {
        padding: 20px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h2,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h3,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-text h2,
    body.itemid-159 #section-id-1512062792604 .title-slidehome {
        font-size: 40px;
        line-height: 0.7;
        letter-spacing: 0.08em;
        margin-bottom: 10px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption p,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-content {
        font-size: 16px;
    }
}
/* SPPB genera padding-top:100px su mobile per section Produzione — troppo, riduco a 40px */
@media (max-width: 767.98px) {
    .sp-page-builder .page-content #section-id-1512138964232 {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 474px) {
    /* HERO <475 prod: .pcrt-slidehome { height:400px } */
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-item,
    body.itemid-159 #section-id-1512062792604 .sppb-item.sppb-item-has-bg {
        height: 400px;
        min-height: 400px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-inner,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel.sppb-slide {
        height: 400px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h2,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h3,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-text h2,
    body.itemid-159 #section-id-1512062792604 .title-slidehome {
        font-size: 26px;
        line-height: 0.7;
        letter-spacing: 0.12em;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption p,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-content {
        font-size: 18px;
    }
}
@media (max-width: 376px) {
    body.itemid-159 .sp-contact-email {
        display: none !important;
    }
}

/* ==========================================================================
   ULTIME NEWS (mod 108) — parita' letterale prod #section-id-1512657362439
   PROD CSS (prod-marchigianahome.css L249-285, prod-inline-styles.css L2):
     section #1512657362439 padding-top:50px; padding-bottom:50px
     .sppb-section-title .sppb-title-heading {font-size:36px;line-height:36px;color:#000}
     .container-news { background:#f5f5f5 }       <-- box wrapper
     .dx-news        { padding-right:20px }
     .dx-news h4     { margin:0; padding:0 0 10px 0 }
     .data-mod-news  { font-size:11px; font-weight:500; font-style:italic }
     p.mod-articles-category-introtext { margin-bottom:0 }
     .leggi-tutto-news { text-transform:uppercase; font-weight:500 }
     @media(max-width:767px) {
       .container-news { max-width:400px; margin:0 auto }
       .dx-news        { padding:20px }
     }
   PROD MARKUP: .modulo-news > .container-news > .row[row-sm-height]
     > .col-sm-4 (img) + .col-sm-8 > .dx-news (data, h4>a, introtext, leggitutto>a)
   LOCAL MARKUP (Joomla4 mod_articles_category default):
     ul.mod-articlescategory > li > .mod-articles-category-image.item-image (a>img)
       + .mod-articles-category-content > a.title + span.date + p.introtext + p.readmore>a
   STRATEGIA: replica visiva con flex (img sx, contenuto dx), bg #f5f5f5,
   verde brand #13913d (preset1.css L2 default a) / hover #0d642a (L5).
   ========================================================================== */
.sp-page-builder .page-content #section-id-1512657362439 .sppb-section-title .sppb-title-heading {
    font-size: 36px !important;
    line-height: 36px;
    text-align: center;
    color: #000000;
}
#section-id-1512657362439 .sppb-addon-module .sppb-addon-content {
    background: #f5f5f5;
    padding: 20px;
}
#section-id-1512657362439 ul.mod-articlescategory,
#section-id-1512657362439 .mod-articlescategory.category-module {
    list-style: none;
    margin: 0;
    padding: 0;
}
#section-id-1512657362439 .mod-articlescategory > li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0 0 20px 0;
    border-bottom: 1px solid #e2e2e2;
}
#section-id-1512657362439 .mod-articlescategory > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
/* Thumbnail sx — replica .col-sm-4 prod (~33% del box) */
#section-id-1512657362439 .mod-articlescategory > li .mod-articles-category-image,
#section-id-1512657362439 .mod-articlescategory > li .item-image {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}
#section-id-1512657362439 .mod-articlescategory > li .mod-articles-category-image img,
#section-id-1512657362439 .mod-articlescategory > li .item-image img {
    width: 100%;
    height: auto;
    display: block;
}
/* Content area dx — replica .dx-news prod (padding-right:20px) */
#section-id-1512657362439 .mod-articlescategory > li .mod-articles-category-content {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}
/* Date — .data-mod-news prod L260 */
#section-id-1512657362439 .mod-articles-category-date,
#section-id-1512657362439 span.mod-articles-category-date {
    display: block;
    font-size: 11px;
    font-weight: 500;
    font-style: italic;
    color: #252525;
    margin: 0 0 4px 0;
}
/* Title — verde brand prod (preset1.css L2 default a) */
#section-id-1512657362439 a.mod-articles-category-title,
#section-id-1512657362439 .mod-articles-category-title {
    color: #13913d;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    margin: 0 0 10px 0;
}
#section-id-1512657362439 a.mod-articles-category-title:hover,
#section-id-1512657362439 .mod-articles-category-title:hover {
    color: #0d642a;
    text-decoration: none;
}
/* Intro text — prod L264-266 margin-bottom:0 */
#section-id-1512657362439 .mod-articles-category-introtext,
#section-id-1512657362439 p.mod-articles-category-introtext {
    margin: 0 0 8px 0;
    color: #252525;
    line-height: 1.5;
}
/* Read more — replica .leggi-tutto-news prod L268-270 */
#section-id-1512657362439 .mod-articles-category-readmore,
#section-id-1512657362439 p.mod-articles-category-readmore {
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}
#section-id-1512657362439 .mod-articles-category-readmore a,
#section-id-1512657362439 p.mod-articles-category-readmore a {
    color: #13913d;
    text-decoration: none;
    font-size: 14px;
}
#section-id-1512657362439 .mod-articles-category-readmore a:hover {
    color: #0d642a;
    text-decoration: none;
}

/* Mobile prod L276-285: container-news max-width:400px center, dx-news padding:20px,
   stack verticale (img sopra, testo sotto). */
@media (max-width: 767px) {
    #section-id-1512657362439 .sppb-addon-module .sppb-addon-content {
        max-width: 400px;
        margin: 0 auto;
        padding: 0;
    }
    #section-id-1512657362439 .mod-articlescategory > li {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    #section-id-1512657362439 .mod-articlescategory > li .item-image,
    #section-id-1512657362439 .mod-articlescategory > li .mod-articles-category-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
    #section-id-1512657362439 .mod-articlescategory > li .mod-articles-category-content {
        padding: 20px;
    }
}

/* ==========================================================================
   PRODOTTI home — feature cards parità prod (SENZA bordo/sfondo CSS).
   Markup SPPB v6 (identico a prod):
     - addon A (image): <img> .jpg grande, .sppb-media-content VUOTO
     - addon B (icon):  <img> icona-XXX.png (PNG TRASPARENTE col cerchio
       verde GIA' DIPINTO dentro) + <h3 .sppb-addon-title> col link
   I due addon sono fratelli (sibling) dentro lo stesso .sppb-column-addons.
   Strategia overlap = prod: negative margin-top sul wrapper "icona".
   Ground truth da prod-inline-styles.css:
     #sppb-addon-wrapper-1511970686077 { margin:-30px 0 0 0; }   desktop
     @media (768-991): margin-top:-30px
     @media (max-width:767px): margin-top:-50px
     .sppb-addon-title { margin:10px 0; color:#333; font-size:20px;
       line-height:26px; text-transform:uppercase; }
   IMPORTANTE: l'icona NON ha border-radius/background/padding. Niente.
   La grafica del cerchio verde e' DIPINTA nel PNG.
   Selezione: il wrapper "icona" e' quello che contiene un h3.sppb-addon-title
   (il wrapper "image" ha .sppb-media-content vuoto). :has() lo identifica.
   Scope: #prodottihome (riga 1) + sezioni 1777879397xxx (righe 2-3).
   ========================================================================== */

#prodottihome .sppb-addon-feature,
section[id^="1777879397"] .sppb-addon-feature {
    text-align: center;
}
#prodottihome .sppb-addon-feature .sppb-img-container,
section[id^="1777879397"] .sppb-addon-feature .sppb-img-container {
    display: block;
    margin: 0 auto;
}

/* Wrapper "icona" (quello con il titolo): overlap negativo come prod.
   FIX U3: alcuni wrapper-icona (es. #sppb-addon-wrapper-1777879397229 PORTE
   BLINDATE) hanno inline `margin-top:0px;margin-bottom:30px` iniettato da
   SPPB con specificità ID — vince sul selettore :has(). Inoltre le card
   con icona "non a cavallo" (PERSIANE/TAPPARELLE/PORTE BLINDATE/POSA)
   richiedono un overlap maggiore per parità visiva con prod (icona di 70px
   centrata sul bordo immagine → margin-top:-45px). Selettore mirato per
   filename `/icona-` con !important per forzare sopra l'inline ID. */
#prodottihome .sppb-addon-wrapper:has(img[src*="/icona-"]),
section[id^="section-id-"] .sppb-addon-wrapper:has(img[src*="/icona-"]),
section[id^="1777879397"] .sppb-addon-wrapper:has(img[src*="/icona-"]) {
    position: relative;
    z-index: 2;
    margin-top: -45px !important;
    margin-bottom: 0 !important;
    text-align: center;
}
/* SPPB genera padding-top:45px sul div diretto (clearfix/sppb-wow) dentro il wrapper
   icona — forza a 0 perché annulla il margin-top negativo a cavallo. */
#prodottihome .sppb-addon-wrapper:has(img[src*="/icona-"]) > div,
section[id^="section-id-"] .sppb-addon-wrapper:has(img[src*="/icona-"]) > div,
section[id^="1777879397"] .sppb-addon-wrapper:has(img[src*="/icona-"]) > div {
    padding-top: 0 !important;
}

/* L'icona PNG: NESSUN border-radius, NESSUN background, NESSUN padding.
   Solo dimensioni naturali del PNG (80x80 prod). */
#prodottihome .sppb-addon-wrapper.addon-root-feature:has(.sppb-addon-title) .sppb-img-container img,
section[id^="1777879397"] .sppb-addon-wrapper.addon-root-feature:has(.sppb-addon-title) .sppb-img-container img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
}

/* Titolo card sotto l'icona — valori prod letterali */
#prodottihome .sppb-addon-wrapper.addon-root-feature:has(.sppb-addon-title) .sppb-addon-title,
section[id^="1777879397"] .sppb-addon-wrapper.addon-root-feature:has(.sppb-addon-title) .sppb-addon-title {
    margin: 10px 0 10px 0;
    color: #333333;
    font-size: 20px;
    line-height: 26px;
    text-transform: uppercase;
    font-weight: 500;
}
#prodottihome .sppb-addon-wrapper.addon-root-feature:has(.sppb-addon-title) .sppb-addon-title a,
section[id^="1777879397"] .sppb-addon-wrapper.addon-root-feature:has(.sppb-addon-title) .sppb-addon-title a {
    color: #333333;
    text-decoration: none;
}
#prodottihome .sppb-addon-wrapper.addon-root-feature:has(.sppb-addon-title) .sppb-addon-title a:hover,
section[id^="1777879397"] .sppb-addon-wrapper.addon-root-feature:has(.sppb-addon-title) .sppb-addon-title a:hover {
    color: #13913d;
}

/* Mobile: prod usa margin-top:-50px sul wrapper-icona */
@media (max-width: 767px) {
    #prodottihome .sppb-addon-wrapper:has(img[src*="/icona-"]),
    section[id^="section-id-"] .sppb-addon-wrapper:has(img[src*="/icona-"]),
    section[id^="1777879397"] .sppb-addon-wrapper:has(img[src*="/icona-"]) {
        margin-top: -50px !important;
    }
    /* Spacing fra image-addon e card successiva: 30px come prod */
    #prodottihome .sppb-addon-wrapper.addon-root-feature:not(:has(.sppb-addon-title)),
    section[id^="1777879397"] .sppb-addon-wrapper.addon-root-feature:not(:has(.sppb-addon-title)) {
        margin-bottom: 30px;
    }
}

/* === F7: AZIENDA dark section parity (3 cards COSA E IL PVC / MADE IN ITALY / CERTIFICAZIONI) === */
.sp-page-builder .page-content #section-id-1512140710911 {
    padding: 130px 0 130px 0;
    margin: 0;
    background-image: url('/images/2017/11/29/bg-aziendahome.jpg');
    background-repeat: repeat-y;
    background-attachment: fixed;
    background-position: 50% 50%;
}
@media (max-width: 767px) {
    .sp-page-builder .page-content #section-id-1512140710911 {
        padding: 100px 0 100px 0;
    }
}
.sp-page-builder .page-content #section-id-1512140710911 > .sppb-row-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Title (heading) */
#section-id-1512140710911 #sppb-addon-wrapper-1512140710949 {
    margin: 0 0 50px 0;
}
#section-id-1512140710911 #sppb-addon-1512140710949 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 28px;
}
#section-id-1512140710911 #sppb-addon-1512140710949 .sppb-addon-title {
    margin: 0 0 20px 0;
    color: #ffffff;
    font-size: 48px;
    line-height: 72px;
}
@media (min-width: 768px) and (max-width: 991px) {
    #section-id-1512140710911 #sppb-addon-1512140710949 .sppb-addon-title {
        font-size: 36px;
        line-height: 48px;
    }
}
@media (max-width: 767px) {
    #section-id-1512140710911 #sppb-addon-1512140710949 .sppb-addon-title {
        font-size: 28px;
        line-height: 36px;
    }
    #section-id-1512140710911 #sppb-addon-wrapper-1512140710949 {
        margin: 0 0 30px 0;
    }
}

/* Cards (3 box translucenti) */
#section-id-1512140710911 #sppb-addon-1511966457091,
#section-id-1512140710911 #sppb-addon-1511973355722,
#section-id-1512140710911 #sppb-addon-1511973355730 {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 45px 40px 40px 40px;
    transition: .3s;
}
#section-id-1512140710911 #sppb-addon-1511966457091 a,
#section-id-1512140710911 #sppb-addon-1511973355722 a,
#section-id-1512140710911 #sppb-addon-1511973355730 a {
    color: #ffffff;
}
#section-id-1512140710911 #sppb-addon-1511966457091 .sppb-addon-title,
#section-id-1512140710911 #sppb-addon-1511973355722 .sppb-addon-title,
#section-id-1512140710911 #sppb-addon-1511973355730 .sppb-addon-title {
    margin: 10px 0;
    color: #ffffff;
    font-size: 18px;
    line-height: 23px;
    text-transform: uppercase;
}
#section-id-1512140710911 #sppb-addon-1511966457091 .sppb-addon-text,
#section-id-1512140710911 #sppb-addon-1511973355722 .sppb-addon-text,
#section-id-1512140710911 #sppb-addon-1511973355730 .sppb-addon-text {
    font-size: 14px;
    line-height: 21px;
}
#section-id-1512140710911 #sppb-addon-1511966457091 .sppb-icon .sppb-icon-container,
#section-id-1512140710911 #sppb-addon-1511973355722 .sppb-icon .sppb-icon-container,
#section-id-1512140710911 #sppb-addon-1511973355730 .sppb-icon .sppb-icon-container {
    display: inline-block;
    text-align: center;
    padding: 0;
    color: #ffffff;
    border-width: 0;
}
#section-id-1512140710911 #sppb-addon-1511966457091 .sppb-icon .sppb-icon-container > i,
#section-id-1512140710911 #sppb-addon-1511973355722 .sppb-icon .sppb-icon-container > i,
#section-id-1512140710911 #sppb-addon-1511973355730 .sppb-icon .sppb-icon-container > i {
    font-size: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
}

/* Buttons "SCOPRI DI PIU" */
#section-id-1512140710911 #sppb-addon-wrapper-1511972746575,
#section-id-1512140710911 #sppb-addon-wrapper-1511973355723,
#section-id-1512140710911 #sppb-addon-wrapper-1511973355731 {
    margin: 0 0 30px 0;
}
#section-id-1512140710911 #btn-1511972746575.sppb-btn-custom,
#section-id-1512140710911 #btn-1511973355723.sppb-btn-custom,
#section-id-1512140710911 #btn-1511973355731.sppb-btn-custom {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 15px 40px 15px 40px;
    text-transform: uppercase;
    border: 0;
    transition: all .3s ease;
}
#section-id-1512140710911 #btn-1511972746575.sppb-btn-custom:hover,
#section-id-1512140710911 #btn-1511973355723.sppb-btn-custom:hover,
#section-id-1512140710911 #btn-1511973355731.sppb-btn-custom:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile spacing fra cards */
@media (max-width: 767px) {
    #section-id-1512140710911 #sppb-addon-wrapper-1511966457091,
    #section-id-1512140710911 #sppb-addon-wrapper-1511973355722,
    #section-id-1512140710911 #sppb-addon-wrapper-1511973355730 {
        margin: 0 0 20px 0;
    }
}

/* ============================================================
   F8 — MOBILE RESPONSIVE PARITA' PROD (consolidato finale)
   Ground truth: prod-marchigianahome.css L48-80, L221-224, L276-292
                 prod-template.css L2627-2678
                 prod-inline-styles.css (azienda + feature mobile margin)
   ============================================================ */

/* ---------- 991px (tablet/iPad portrait) ---------- */
@media (max-width: 991px) {
    /* Top-bar nero, header TRASPARENTE su home mobile — carousel sale sotto l'header */
    body.itemid-159 #sp-top-bar {
        background: #000 !important;
    }
    /* Header rimane trasparente (background:none già su desktop, non sovrascrivere) */
    body.itemid-159 #sp-header,
    body.itemid-159 #sp-header.menu-fixed {
        background: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }
    /* Carousel sale sotto header+topbar: topbar ~36px + header 90px = 126px */
    body.itemid-159 .com-sppagebuilder #sp-main-body,
    /* topbar ~30px + header 60px = 90px */
    body.itemid-159 #sp-main-body {
        position: relative;
        top: -90px;
        margin-bottom: -90px;
    }

    /* Logo container 90px mobile (match prod) */
    body #sp-header,
    body #sp-header .logo {
        height: 90px;
    }
    body #sp-header .logo a { line-height: 90px; }
    body #sp-header .logo img,
    body #sp-header .logo-image,
    body #sp-header .logo-image-phone {
        height: 40px !important;
        width: auto !important;
        max-width: 100%;
    }

    /* Offcanvas hamburger */
    body #offcanvas-toggler {
        line-height: 90px;
        font-size: 20px;
    }
    body #offcanvas-toggler > i,
    body #offcanvas-toggler > i:hover {
        color: #ffffff;
    }
    body .offcanvas-menu {
        background: #000;
        color: #fff;
    }
    body .offcanvas-menu .offcanvas-inner,
    body .offcanvas-menu .offcanvas-inner .sp-module,
    body .offcanvas-menu .offcanvas-inner .sp-module .sp-module-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    body .offcanvas-menu .offcanvas-inner .sp-module-title,
    body .offcanvas-menu .offcanvas-inner h3.sp-module-title {
        text-transform: uppercase;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
    }
    body .offcanvas-menu .offcanvas-inner ul.menu li > a,
    body .offcanvas-menu .offcanvas-inner ul.menu li > .nav-header,
    body .offcanvas-menu .offcanvas-inner ul.menu li.active > a,
    body .offcanvas-menu .offcanvas-inner ul.menu li.active > .nav-header {
        color: #fff !important;
        text-transform: uppercase !important;
        padding-left: 28px !important;
        position: relative;
        opacity: 1 !important;
    }
    body .offcanvas-menu .offcanvas-inner ul.menu li > a::before,
    body .offcanvas-menu .offcanvas-inner ul.menu li > .nav-header::before {
        font-family: "Font Awesome 6 Free", "FontAwesome";
        content: "\f054";
        font-weight: 900;
        font-size: 11px;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
    }
    body .offcanvas-menu .offcanvas-inner ul.menu li ul li > a {
        padding: 8px 0 8px 28px !important;
        display: block !important;
    }
    body .offcanvas-menu .fa,
    body .offcanvas-menu .fab,
    body .offcanvas-menu .far,
    body .offcanvas-menu .fas {
        color: #fff !important;
    }
    /* Toggle pulsante sottomenu custom */
    body .offcanvas-menu .offcanvas-inner ul.menu li.menu-parent > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    body .offcanvas-menu .offcanvas-inner ul.menu li.menu-parent > a .hu-sub-toggle {
        margin-left: auto;
        padding: 4px 6px;
        cursor: pointer;
        flex-shrink: 0;
        color: #fff;
        font-size: 12px;
        line-height: 1;
    }
    body .offcanvas-menu .close-offcanvas {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #000;
        border: 2px solid #fff;
        opacity: 1 !important;
        flex-shrink: 0;
    }
    body .offcanvas-menu .close-offcanvas i.fa {
        color: #fff !important;
        font-size: 14px !important;
        line-height: 1;
    }

    /* Menu desktop nascosto sotto 992 (HU default, ribadito) */
    body .sp-megamenu-parent {
        display: none;
    }

    /* News box centrato + max-width 400 (prod L287-292) */
    body #section-id-1512657362439 .sppb-addon-module .sppb-addon-content {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Footer 4 col -> 2 col (manteniamo bottom modules pieni se non a 767) */
    #sp-bottom > .container > .row > [class*="col-"] {
        margin-bottom: 30px;
    }
}

/* ---------- 767px (mobile landscape, tablet portrait) ---------- */
@media (max-width: 767px) {
    /* Top-bar font ridotto (prod template L2645) */
    body #sp-top-bar .sp-contact-info > li,
    body.itemid-159 #sp-top-bar .sp-contact-info > li {
        font-size: 12px;
        padding: 0 5px;
    }
    body.itemid-159 #sp-top-bar {
        padding: 0;
    }
    body.itemid-159 li.sp-contact-time {
        display: none;
    }

    /* Logo tablet-mobile: 40px (= logo_height_sm DB param) */
    body #sp-header .logo img,
    body #sp-header .logo-image,
    body #sp-header .logo-image-phone {
        height: 40px !important;
        width: auto !important;
        max-width: 100%;
    }

    /* Sezione Azienda padding ridotto (prod inline L: padding-top:100px;padding-bottom:100px @767) */
    .sp-page-builder .page-content #section-id-1512140710911 {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }

    /* Sezione testo Azienda intro (prod inline L: padding 50px @767) */
    .sp-page-builder .page-content #section-id-1512147470154 {
        padding: 50px 0 !important;
    }
    .sp-page-builder .page-content #section-id-1508998189235 {
        padding: 35px 35px 15px 35px !important;
    }

    /* Footer 4 col -> 1 col stack centered */
    #sp-bottom > .container > .row > [class*="col-"] {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        text-align: left;
        margin-bottom: 30px;
    }
    #sp-bottom .footer-brand,
    #sp-bottom .footer-brand img {
        text-align: left;
    }
    #sp-bottom ul.footer-contacts > li {
        justify-content: flex-start;
        text-align: left;
    }
    body #sp-footer { text-align: left; }
    body #sp-footer .sp-copyright,
    body #sp-footer span.sp-copyright {
        font-size: 11px;
        padding: 8px 10px;
        line-height: 1.5;
    }

    /* Hero mobile: padding ridotto e margini pulsanti (prod) */
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption {
        padding: 10px 15px 0 15px;
    }
}

/* ---------- 480px (smartphone portrait) ---------- */
@media (max-width: 480px) {
    body #sp-header .logo img,
    body #sp-header .logo-image,
    body #sp-header .logo-image-phone {
        height: 40px !important;
        width: auto !important;
        max-width: 100%;
    }
    body #sp-top-bar .sp-contact-info > li,
    body.itemid-159 #sp-top-bar .sp-contact-info > li {
        font-size: 11px;
        padding: 0 3px;
    }
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h2,
    body.itemid-159 #section-id-1512062792604 .sppb-carousel-caption h3,
    body.itemid-159 #section-id-1512062792604 .title-slidehome {
        font-size: 40px;
        letter-spacing: 0.1em;
    }
    /* Section title H2 generale */
    .sp-page-builder .page-content .sppb-section-title .sppb-title-heading,
    #prodottihome .sppb-addon-title,
    #section-id-1512140710911 .sppb-addon-title,
    #section-id-1512657362439 .sppb-section-title .sppb-title-heading {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
}

/* =====================================================================
   P1 - PAGINE ARTICOLO (com_content view=article) - parita' con prod
   Prod usa Helix3 con #sp-page-title banner separato + h1 green inline.
   Local usa HelixUltimate che renderizza solo <h1> dentro .article-header.
   Allineiamo tipografia/spacing/breadcrumb su tutte le pagine articolo.
   Valori estratti da prod-template.css L1381-1417 + prod-marchigianainterne.css L1-14.
   ===================================================================== */
body.view-article #sp-main-body {
    padding: 50px 0;
}
body.view-article #sp-component {
    padding: 0;
}

/* Page header h1 (local) -> stile heading verde simil-prod entry-header.
   Specificita' alta perche' template.css di HU usa
   .article-details .article-header h2/h4 { font-size: 2.25rem } */
body.view-article .item-page > .page-header,
body.view-article .item-page .article-header,
body.view-article .article-details .article-header {
    margin: 0 0 20px 0;
    padding: 0;
    border-bottom: 0;
}
body.view-article .item-page .page-header h1,
body.view-article .item-page .page-header h2,
body.view-article .item-page .article-header h1,
body.view-article .item-page .article-header h2,
body.view-article .article-details .article-header h1,
body.view-article .article-details .article-header h2,
body.view-article .article-details .article-header h4 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    color: #13913d !important;
    margin: 0 0 15px 0 !important;
    padding: 0;
    font-weight: 500;
}

/* Breadcrumb modulo (se presente) - come prod sp-page-title .breadcrumb */
body.view-article .breadcrumb {
    background: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 13px;
}
body.view-article .breadcrumb-item,
body.view-article .breadcrumb > li,
body.view-article .breadcrumb > span,
body.view-article .breadcrumb > li > a {
    font-size: 13px;
}
body.view-article .breadcrumb-item.active,
body.view-article .breadcrumb > .active {
    color: #666;
}

/* Article content typography - prod usa line-height ~1.7 e font-size 14px */
body.view-article .item-page,
body.view-article .com-content-article {
    font-size: 14px;
    line-height: 1.7;
}
body.view-article .item-page p {
    line-height: 1.7;
    margin-bottom: 1em;
}
body.view-article .item-page img {
    max-width: 100%;
    height: auto;
}

/* Article info / metadata - prod template.css L1589-1602 */
body.view-article .article-info {
    margin: 0 -8px 5px;
    line-height: 12px;
    color: #666;
    font-size: 12px;
    display: inline-block;
}
body.view-article .article-info > dd {
    display: inline-block;
    color: #666;
    text-transform: uppercase;
    margin: 0 8px;
    font-size: 10px;
    font-weight: 600;
    padding-top: 10px;
}
body.view-article .article-info > dd > i {
    display: inline-block;
    margin-right: 3px;
}

/* Tags row - prod template.css L1606-1612 */
body.view-article .tags {
    margin-top: 20px;
}
body.view-article .tags > span {
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Speasyimagegallery (se presente) - eredita stile sezione prodotti */
body.view-article .speasyimagegallery,
body.view-article .seig-gallery {
    margin: 20px 0;
}
body.view-article .speasyimagegallery img,
body.view-article .seig-gallery img {
    max-width: 100%;
    height: auto;
}

/* Mobile pagine articolo */
@media (max-width: 767px) {
    body.view-article #sp-main-body {
        padding: 30px 0;
    }
    body.view-article #sp-component {
        padding: 0 15px;
    }
    body.view-article .item-page .page-header h1,
    body.view-article .item-page .page-header h2,
    body.view-article .item-page .article-header h1,
    body.view-article .item-page .article-header h2 {
        font-size: 22px;
    }
}

/* =====================================================================
   P4 - PAGINE NON-HOME (mobile + desktop) - parita' con prod
   Prod: header bianco solido, top-bar bianco con social/contatti, logo JPG
   colorato. Local: stesso scheletro, ma logo PNG con "MARCHIGIANA" bianca
   diventa illeggibile su sfondo bianco -> swap a JPG su tutte le pagine
   non-home. Inoltre, il top-bar local non ha sociali/contatti su mobile
   per regole responsive di HU: forziamo display flex come prod.
   ===================================================================== */

/* Logo: pagine non-home -> usa JPG colorato (come prod) invece del PNG
   trasparente che ha la scritta MARCHIGIANA bianca (visibile solo su home
   con header trasparente sopra carousel scuro). */
body:not(.itemid-159) #sp-header .logo a img.logo-image,
body:not(.itemid-159) #sp-header .logo a img.logo-image-phone {
    content: url('/images/logo-marchigiana-infissi.jpg');
    width: auto;
}

/* Header non-home: bianco solido sempre, niente trasparenza */
body:not(.itemid-159) #sp-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Top-bar non-home: bianco con border-bottom subtle (matching prod) */
body:not(.itemid-159) #sp-top-bar {
    background: #ffffff;
    color: #333;
    border-bottom: 1px solid #eee;
}
body:not(.itemid-159) #sp-top-bar a {
    color: #333;
}
body:not(.itemid-159) #sp-top-bar ul.social-icons > li a {
    color: #999999;
}

/* Megamenu non-home: nero su bianco, hover/active verde-giallo */
body:not(.itemid-159) .sp-megamenu-parent > li > a {
    color: #000;
}
body:not(.itemid-159) .sp-megamenu-parent > li:hover > a,
body:not(.itemid-159) .sp-megamenu-parent > li.active > a {
    color: #bad14f;
}

/* Dropdown PRODOTTI — parità prod (Helix3):
   - item: display:block + padding 10px (HU usa inline-block+padding:8px 0)
   - hover: bg #13913d, colore #fff */
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item span:not(.sp-menu-badge) {
    display: block !important;
    padding: 10px !important;
    color: #333333 !important;
    font-size: 14px !important;
    line-height: 1.4;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover {
    background: #13913d !important;
    color: #fff !important;
}

/* Mobile non-home (<992px): top-bar visible con social icons + contact info,
   header sempre solido (no sticky-trasparente). */
@media (max-width: 991px) {
    body:not(.itemid-159) #sp-top-bar {
        background: #ffffff;
        padding: 8px 0;
        display: block;
    }
    body:not(.itemid-159) #sp-top-bar .container,
    body:not(.itemid-159) #sp-top-bar .container-inner {
        display: block;
    }
    body:not(.itemid-159) #sp-top-bar #sp-top1,
    body:not(.itemid-159) #sp-top-bar #sp-top2 {
        display: block;
        width: 100%;
        text-align: center;
    }
    body:not(.itemid-159) #sp-top-bar ul.social-icons {
        display: inline-block;
        margin: 0 auto 4px;
    }
    body:not(.itemid-159) #sp-top-bar .sp-contact-info {
        display: block;
        float: none;
        text-align: center;
        margin: 0;
    }
    body:not(.itemid-159) #sp-top-bar .sp-contact-info > li {
        display: inline-block;
        margin: 0 6px;
        font-size: 12px;
    }
    body:not(.itemid-159) #sp-top-bar .sp-contact-info li.sp-contact-email {
        display: inline-block !important;
    }
    body:not(.itemid-159) #sp-header {
        position: relative;
        background: #ffffff;
    }
}

/* Mobile <=480px: contact-info ancora piu' compatto */
@media (max-width: 480px) {
    body:not(.itemid-159) #sp-top-bar .sp-contact-info > li {
        font-size: 11px;
        margin: 0 3px;
    }
    body:not(.itemid-159) #sp-top-bar li.sp-contact-time {
        display: block;
    }
}

/* Page-title banner: prod (Helix3) usa <section id="sp-page-title"> diretto.
   HU 2.x emette <section id="sp-title"><div class="sp-page-title" style="bg-image">.
   Aliasing: ogni regola targeta ENTRAMBI i selettori per garantire parità.
   Bg-image inline e' generato da features/title.php quando menu params
   helixultimate_enable_page_title=1 + helixultimate_page_title_bg_image set.
   Note: itemid-101/159 (home) hanno helixultimate_enable_page_title=0 →
   PHP non emette markup, scoping CSS non necessario per quei casi. */
#sp-page-title,
#sp-title .sp-page-title {
    color: #fff;
    padding: 60px 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}
#sp-page-title .container,
#sp-title .sp-page-title .container {
    max-width: 1140px;
}
/* Fallback bg quando non c'e' bg-image inline (es. richieste future senza img) */
#sp-page-title:not([style*="background-image"]),
#sp-title .sp-page-title:not([style*="background-image"]) {
    background-color: #2a2a2a;
}
/* HU emette wrapper extra <section id="sp-title"> — neutralizza min-height/padding */
#sp-title { min-height: 0; padding: 0; }
#sp-title > .sp-column { padding: 0; }

#sp-page-title .sp-page-title h2,
#sp-page-title h1,
#sp-page-title .sp-page-title-heading,
#sp-title .sp-page-title h2,
#sp-title .sp-page-title h1,
#sp-title .sp-page-title-heading {
    color: #fff;
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}
#sp-page-title .breadcrumb,
#sp-title .sp-page-title .breadcrumb {
    background: none;
    padding: 0 !important;
    margin: 8px 0 0 0;
}
#sp-page-title .breadcrumb,
#sp-page-title .breadcrumb a,
#sp-page-title .breadcrumb-item.active,
#sp-title .sp-page-title .breadcrumb,
#sp-title .sp-page-title .breadcrumb a,
#sp-title .sp-page-title .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}
@media (max-width: 767px) {
    #sp-page-title,
    #sp-title .sp-page-title {
        padding: 60px 0;
    }
    #sp-page-title .sp-page-title h2,
    #sp-page-title h1,
    #sp-page-title .sp-page-title-heading,
    #sp-title .sp-page-title h2,
    #sp-title .sp-page-title h1,
    #sp-title .sp-page-title-heading {
        font-size: 22px;
    }
}

/* ==========================================================================
   LAVORI / SP Easy Image Gallery (com_speasyimagegallery, itemid-106)
   Parità prod (Helix3 + spgallery min CSS). Ref:
   - prod-template.css L1378-1402: #sp-title{min-height:0}, .sp-page-title{padding:30px 0; bg-size:cover; bg-attachment:fixed}, h2{font-size:24px;line-height:1;color:#fff}
   - prod-template.css L1404-1417: .sp-page-title .breadcrumb{bg:none; padding:0; margin:10px 0 0 0; color:#fff}
   - DOM identico prod/local (speasyimagegallery-row + col-md-3/sm-4/xs-6),
     style inline gutter 20/15/10 generato da default.php (parità garantita).
   - Issue residui (NON CSS): page-title section non renderizzata localmente
     (richiede menu param helixultimate_enable_page_title=1 + bg-image →
     /images/header-lavori.jpg, set in DB - scope P0/template, non CSS).
   ========================================================================== */
body.com-speasyimagegallery #sp-title {
    min-height: 0;
}
body.com-speasyimagegallery #sp-page-title .sp-page-title {
    padding: 30px 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}
body.com-speasyimagegallery #sp-page-title .sp-page-title h2,
body.com-speasyimagegallery #sp-page-title .sp-page-title-heading {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}
body.com-speasyimagegallery #sp-page-title .breadcrumb {
    background: none;
    padding: 0;
    margin: 10px 0 0 0;
}
body.com-speasyimagegallery #sp-page-title .breadcrumb,
body.com-speasyimagegallery #sp-page-title .breadcrumb > span,
body.com-speasyimagegallery #sp-page-title .breadcrumb > li,
body.com-speasyimagegallery #sp-page-title .breadcrumb > li > a,
body.com-speasyimagegallery #sp-page-title .breadcrumb > li + li:before {
    color: #fff;
}
body.com-speasyimagegallery #sp-page-title .breadcrumb > .active {
    color: rgba(255, 255, 255, 0.8);
}
/* Gallery container spacing - allinea a #sp-main-body container default
   (eredita 60px 0 da template stack). Reset album-description per parità prod. */
body.com-speasyimagegallery .speasyimagegallery-album-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
}
/* Hover effect: prod usa overlay opacity transition (style.css L139-156) -
   già definito da style-min.css del componente, no override necessario.
   Cursor zoom-in già su .speasyimagegallery-gallery-item (L127). */

/* Mobile: a 768 col-sm-4 (33%) → 3 cols, a <768 col-xs-6 (50%) → 2 cols.
   Identico prod/local; nessun override richiesto. */

/* ==========================================================================
   CATEGORY PAGES (com_content view=category) — layout custom prodotti/news
   I template PHP shaper_helixultimate/html/com_content/category/{prodotti,news}.php
   replicano la struttura prod (Helix3): items-row.row > col-sm-N > article.item.
   Qui il CSS che dà ai card l'aspetto prod (immagine + titolo sotto).
   ========================================================================== */

/* Layout PRODOTTI: griglia card con immagine + titolo */
body.layout-prodotti .com-content-category-prodotti .items-row {
    margin-bottom: 30px;
}
body.layout-prodotti .com-content-category-prodotti .item {
    margin-bottom: 30px;
    position: relative;
}
body.layout-prodotti .com-content-category-prodotti .item .entry-image {
    margin: 0 0 10px 0;
    overflow: hidden;
    float: none;
}
body.layout-prodotti .com-content-category-prodotti .item .entry-image img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
    transition: transform .35s ease;
}
body.layout-prodotti .com-content-category-prodotti .item .entry-image a:hover img {
    transform: scale(1.03);
}
body.layout-prodotti .com-content-category-prodotti .item .entry-header {
    margin: 0;
}
body.layout-prodotti .com-content-category-prodotti .item .entry-header h2 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}
body.layout-prodotti .com-content-category-prodotti .item .entry-header h2 a {
    color: #252525;
    text-decoration: none;
}
body.layout-prodotti .com-content-category-prodotti .item .entry-header h2 a:hover {
    color: #c7d530;
}
body.layout-prodotti .com-content-category-prodotti > p,
body.layout-prodotti .com-content-category-prodotti .category-desc {
    margin-bottom: 30px;
}

/* Layout NEWS: card grigio chiaro (parità prod) */
body.layout-news .com-content-category-news .items-row {
    margin-bottom: 24px;
}
body.layout-news .com-content-category-news .item {
    background: #f0f0f0;
    padding: 20px;
    overflow: hidden;
}
body.layout-news .com-content-category-news .item .entry-header h2 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 12px;
    line-height: 1.3;
}
body.layout-news .com-content-category-news .item .entry-header h2 a {
    color: #13913d;
    text-decoration: none;
}
body.layout-news .com-content-category-news .item .entry-header h2 a:hover {
    color: #bad14f;
}
body.layout-news .com-content-category-news .item .entry-intro {
    margin-bottom: 0;
}
body.layout-news .com-content-category-news .item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile (≤768): card singola colonna */
@media (max-width: 767px) {
    body.layout-prodotti .com-content-category-prodotti .col-sm-6,
    body.layout-prodotti .com-content-category-prodotti .col-sm-4,
    body.layout-prodotti .com-content-category-prodotti .col-sm-3,
    body.layout-prodotti .com-content-category-prodotti .col-sm-12 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   PROPORZIONI MAIN/SIDEBAR — parita prod (testo 75%, sidebar 25%).
   HU 2.x emette col-lg-8/col-lg-4 (67/33%). Forziamo 9/3 via override.
   ========================================================================== */
/* Proporzioni 75/25 SOLO quando #sp-right e' effettivamente presente.
   Senza :has(#sp-right), la home (che ha #sp-component a tutta larghezza) verrebbe
   ristretta erroneamente a 75%. */
@media (min-width: 992px) {
    body:has(#sp-right) #sp-main-body #sp-component,
    body:has(#sp-right) #sp-main-body div#sp-component[class*="col-lg-"] {
        flex: 0 0 75%;
        max-width: 75%;
        width: 75%;
        padding-right: 30px;
    }
    body:has(#sp-right) #sp-main-body #sp-right,
    body:has(#sp-right) #sp-main-body aside#sp-right[class*="col-lg-"] {
        flex: 0 0 25%;
        max-width: 25%;
        width: 25%;
        padding-left: 0;
    }
}

/* ==========================================================================
   SIDEBAR #sp-right — parita prod: items con bg grigio chiaro, active verde.
   Container esterno (sp-column / sp-module / sp-module-content) trasparente
   senza border/padding/bg — solo i singoli items hanno background.
   ========================================================================== */
#sp-right,
#sp-right .sp-column,
#sp-right .sp-module,
#sp-right .sp-module-content {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
#sp-right .sp-module {
    margin-top: 30px !important;
}
#sp-right .sp-module:first-child {
    margin-top: 0 !important;
}
#sp-right .sp-module .sp-module-title {
    margin: 0 0 0 0;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    background: #363636;
    letter-spacing: 1.5px;
    text-align: center;
    border: none;
}
#sp-right .sp-module ul,
#sp-right .sp-module ul.menu,
#sp-right .sp-module ul.mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
#sp-right .sp-module ul > li,
#sp-right .sp-module ul.menu > li,
#sp-right .sp-module ul.mod-menu > li {
    display: block;
    border: none;
    margin-bottom: 2px;
    transition: 200ms;
}
#sp-right .sp-module ul > li > a,
#sp-right .sp-module ul.menu > li > a,
#sp-right .sp-module ul.mod-menu > li > a {
    display: block;
    padding: 9px 14px;
    line-height: 1.2;
    color: #000;
    background: #f4f4f4;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: 200ms;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#sp-right .sp-module ul > li > a:before,
#sp-right .sp-module ul.menu > li > a:before {
    content: none;
}
#sp-right .sp-module ul > li > a:hover,
#sp-right .sp-module ul > li > a:focus {
    background: #fff;
    color: #000;
}
/* Active item — bg #d6db5c, testo SEMPRE NERO, font-weight 400 invariato */
#sp-right .sp-module ul > li.active > a,
#sp-right .sp-module ul > li.current > a,
#sp-right .sp-module ul.menu > li.active > a,
#sp-right .sp-module ul.menu > li.current > a {
    background: #d6db5c;
    color: #000;
    font-weight: 400;
    position: relative;
}
#sp-right .sp-module ul > li.active > a:hover,
#sp-right .sp-module ul > li.current > a:hover {
    background: #d6db5c;
    color: #000;
}
#sp-right .sp-module ul > li.active > a:after,
#sp-right .sp-module ul > li.current > a:after,
#sp-right .sp-module ul.menu > li.active > a:after,
#sp-right .sp-module ul.menu > li.current > a:after {
    content: "›";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 18px;
    font-weight: 600;
}
/* Sub-menu (livello 2): collapsed per default, espanso solo se parent active */
#sp-right .sp-module ul > li > ul,
#sp-right .sp-module ul.menu > li > ul,
#sp-right .sp-module ul.mod-menu > li > ul {
    display: none;
    list-style: none;
    margin: 2px 0 0 0;
    padding: 0;
}
#sp-right .sp-module ul > li.active > ul,
#sp-right .sp-module ul > li.current > ul,
#sp-right .sp-module ul > li.parent.active > ul,
#sp-right .sp-module ul.menu > li.active > ul,
#sp-right .sp-module ul.menu > li.current > ul,
#sp-right .sp-module ul.menu > li.parent.active > ul {
    display: block;
}
#sp-right .sp-module ul > li > ul > li,
#sp-right .sp-module ul.menu > li > ul > li {
    margin-bottom: 1px;
}
#sp-right .sp-module ul > li > ul > li > a,
#sp-right .sp-module ul.menu > li > ul > li > a {
    padding: 8px 15px 8px 25px;
    background: #fafafa;
    font-size: 13px;
    color: #555;
}
#sp-right .sp-module ul > li > ul > li > a:hover {
    background: #f0f0f0;
    color: #252525;
}
#sp-right .sp-module ul > li > ul > li.current > a,
#sp-right .sp-module ul > li > ul > li.active > a {
    background: #ececec;
    color: #000;
    font-weight: 400;
    padding-left: 25px;
}
#sp-right .sp-module ul > li > ul > li.current > a:after,
#sp-right .sp-module ul > li > ul > li.active > a:after {
    content: none;
}

/* ==========================================================================
   BREADCRUMB dentro #sp-page-title / #sp-title — parità prod (template.css L1404-1417)
   ========================================================================== */
#sp-page-title .breadcrumb,
#sp-title .sp-page-title .breadcrumb,
.sp-page-title .breadcrumb {
    background: none;
    padding: 0;
    margin: 10px 0 0 0;
    font-size: 13px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
#sp-page-title .breadcrumb > li,
#sp-title .sp-page-title .breadcrumb > li,
.sp-page-title .breadcrumb > li {
    display: inline-block;
}
#sp-page-title .breadcrumb > li > a,
#sp-page-title .breadcrumb > span,
#sp-page-title .breadcrumb-item.active,
#sp-title .sp-page-title .breadcrumb > li > a,
#sp-title .sp-page-title .breadcrumb > span,
#sp-title .sp-page-title .breadcrumb-item.active,
.sp-page-title .breadcrumb > li > a,
.sp-page-title .breadcrumb > span,
.sp-page-title .breadcrumb-item.active {
    color: #fff;
    text-decoration: none;
}
#sp-page-title .breadcrumb > li + li:before,
#sp-page-title .breadcrumb-item + .breadcrumb-item:before,
#sp-title .sp-page-title .breadcrumb > li + li:before,
#sp-title .sp-page-title .breadcrumb-item + .breadcrumb-item:before,
.sp-page-title .breadcrumb > li + li:before,
.sp-page-title .breadcrumb-item + .breadcrumb-item:before {
    content: "/";
    padding: 0 8px;
    color: rgba(255,255,255,0.6);
}
#sp-page-title .breadcrumb > .active,
#sp-title .sp-page-title .breadcrumb > .active,
.sp-page-title .breadcrumb > .active {
    color: rgba(255,255,255,0.8);
}
/* "You are here" prefix da mod_breadcrumbs */
#sp-page-title .breadcrumbs__here,
#sp-title .sp-page-title .breadcrumbs__here,
.sp-page-title .breadcrumbs__here {
    color: rgba(255,255,255,0.7);
    margin-right: 6px;
    font-style: italic;
}

/* ==========================================================================
   HOME — sezione PRODOTTI: icone PNG ("icona-*.png") sovrapposte a cavallo
   del bordo bottom della foto. PROD ha tutti gli sppb-addon-wrapper con stesso
   ID (margin-top:-30 inline). LOCAL SPPB v6 ha rigenerato gli ID, quindi solo
   alcuni hanno il margin inline. Regola generica via attribute selector.
   ========================================================================== */
.sppb-column-addons .sppb-addon-wrapper:has(img[src*="icona-"]),
.sppb-column-addons .sppb-addon-wrapper:has(img[src*="/icona-"]) {
    margin-top: -30px !important;
    text-align: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 767px) {
    .sppb-column-addons .sppb-addon-wrapper:has(img[src*="icona-"]),
    .sppb-column-addons .sppb-addon-wrapper:has(img[src*="/icona-"]) {
        margin-top: -50px !important;
    }
}
/* Fallback per browser senza :has — l'addon-wrapper subito dopo un addon
   single-image che ha img foto-prodotto (jpg) è l'icona. Pattern: foto.jpg + icona.png */
.sppb-column-addons .sppb-addon-wrapper + .sppb-addon-wrapper > div > .sppb-addon-single-image > .sppb-addon-content > .sppb-addon-single-image-container > img[src$=".png"] {
    /* applichiamo via parent — vedi sopra. Qui fallback "if image png after image jpg" → */
}
/* Container icona PNG: dimensioni rotonda verde (le icone-*.png in prod sono già 60x60 verdi su sfondo trasparente, quindi width auto OK) */
.sppb-column-addons .sppb-addon-single-image .sppb-addon-single-image-container img[src*="icona-"] {
    max-width: 60px;
    height: auto;
    display: inline-block;
    margin: 0 auto;
}
/* Card title sotto icona: padding superiore ridotto (icona è sopra) */
.sppb-column-addons .sppb-addon-wrapper:has(img[src*="icona-"]) + .sppb-addon-wrapper .sppb-addon-title {
    margin-top: 5px;
    text-align: center;
}

/* ==========================================================================
   Article social share — markup parita prod (.helix-social-share dentro
   .article-footer-top). NO bordi/separatori, allineato a sinistra in fondo
   al testo articolo.
   ========================================================================== */
.article-footer-top {
    margin: 25px 0 10px;
    padding: 0;
    border: none;
    background: none;
}
.helix-social-share {
    display: block;
    text-align: right;
}
.helix-social-share-icon ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.helix-social-share-icon ul > li > div > a > svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor;
    display: inline-block;
}
.helix-social-share-icon ul > li {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
}
.helix-social-share-icon ul > li > div {
    display: inline-block;
}
.helix-social-share-icon ul > li > div > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 14px !important;
    transition: opacity 0.2s, transform 0.2s;
}
body #sp-main-body .helix-social-share-icon ul > li > div > a {
    font-size: 14px !important;
}
body #sp-main-body .helix-social-share-icon ul > li > div > a > svg {
    width: 14px !important;
    height: 14px !important;
}
.helix-social-share-icon ul > li > div > a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    color: #fff;
}
/* Bg grigio chiaro, glyph verde scuro #13913d. Hover: cerchio diventa #13913d, icona bianca. */
.helix-social-share-icon ul > li > div > a {
    background: #f0f0f0;
    color: #13913d;
}
.helix-social-share-icon ul > li > div > a:hover,
.helix-social-share-icon ul > li > div > a:focus {
    background: #13913d;
    color: #fff;
}
/* Markup ha doppia classe `fa fa-{net} fab fa-{net}-f` (vedi social_share.php).
   La classe `.fab` (FA6) garantisce font-family Brands, `.fa-{net}-f` garantisce
   il glyph FA6 nativo. Nessuno shim CSS necessario qui. */
.helix-social-share-icon i { line-height: 1; }
/* ==========================================================================
   LEGACY SPPB v3 carousel (.sppb-carousel.sppb-slide) — visibilità slide e
   styling frecce/indicators. Init JS gestito da snippet in templates/.../index.php.
   ========================================================================== */
.sppb-carousel.sppb-slide {
    position: relative;
    overflow: hidden;
}
.sppb-carousel.sppb-slide .sppb-carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
/* Slide — position/left/zIndex/transition gestiti interamente da JS inline */
.sppb-carousel.sppb-slide .sppb-carousel-inner > .sppb-item {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    width: 100% !important;
    pointer-events: none;
}
.sppb-carousel.sppb-slide .sppb-carousel-inner > .sppb-item.active {
    pointer-events: auto;
}
.sppb-carousel.sppb-slide .sppb-carousel-inner > .sppb-item img {
    width: 100%;
    height: auto;
    display: block;
}
.sppb-carousel.sppb-slide .sppb-carousel-item-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    color: #fff;
    text-align: center;
    padding: 20px;
}
.sppb-carousel.sppb-slide .sppb-carousel-caption {
    max-width: 700px;
}
.sppb-carousel.sppb-slide .sppb-carousel-text h2 {
    color: #fff;
    font-size: 36px;
    margin: 0 0 4px;
    font-weight: 500;
}
.sppb-carousel.sppb-slide .sppb-carousel-content {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-size: 16px;
}
.sppb-carousel.sppb-slide .sppb-btn {
    display: inline-block;
    padding: 0;
    background: none;
    color: #fff;
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    border: none;
    font-size: 16px;
}
.sppb-carousel.sppb-slide .sppb-btn:hover {
    background: none;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
/* Frecce navigation — niente cerchio, solo icona FA */
.sppb-carousel.sppb-slide .sppb-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    color: #fff;
    text-decoration: none;
    font-size: 40px;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    background: none;
    border: none;
    padding: 0 10px;
}
.sppb-carousel.sppb-slide .sppb-carousel-arrow:hover {
    color: rgba(255,255,255,0.75);
}
.sppb-carousel.sppb-slide .sppb-carousel-arrow.left { left: 10px; }
.sppb-carousel.sppb-slide .sppb-carousel-arrow.right { right: 10px; }
/* Indicators dots */
.sppb-carousel.sppb-slide .sppb-carousel-indicators {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10;
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 10px;
}
.sppb-carousel.sppb-slide .sppb-carousel-indicators li {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.5) !important;
    border: none !important;
    text-indent: 0 !important;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.sppb-carousel.sppb-slide .sppb-carousel-indicators li.active {
    background: #fff !important;
}
@media (max-width: 767px) {
    .sppb-carousel.sppb-slide .sppb-carousel-text h2 { font-size: 22px; }
    .sppb-carousel.sppb-slide .sppb-carousel-content { font-size: 14px; }
    .sppb-carousel.sppb-slide .sppb-carousel-arrow { font-size: 28px; }
}


/* ==========================================================================
   PARITA' PROD — 2026-09-01 (valori MISURATI su www.marchigianainfissi.it
   con getComputedStyle, non dedotti dal CSS)
   ========================================================================== */

/* Menu: prod = 12px / weight 500. L'inline di Helix Ultimate impone 18px/700:
   era il peso 700 a far sembrare il menu piu' grande, non la dimensione. */
body .sp-megamenu-parent > li > a,
body .sp-megamenu-parent > li > span,
body .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
	font-size: 12px;
	font-weight: 500;
}

/* Vista articolo: in Joomla 6 il contenitore e' .article-details, non .item-page
   (Joomla 3), quindi le regole esistenti restavano inerti.
   Valori prod: font 14px, line-height 24px, margin-bottom paragrafi 16px. */
body.view-article .article-details {
	font-size: 14px;
	line-height: 24px;
}

body.view-article .article-details p {
	line-height: 24px;
	margin-bottom: 16px;
}

body.view-article .article-details img {
	max-width: 100%;
	height: auto;
}

/* END parita' prod ========================================================= */

/* ==========================================================================
   PARITA' PROD — differenze di LAYOUT misurate il 2026-09-01
   (confronto getComputedStyle locale vs www.marchigianainfissi.it/azienda)
   ========================================================================== */

/* Container: prod = 1140px, non 1170. */
body #sp-header .container,
body #sp-top-bar .container,
body #sp-main-body .container,
body #sp-bottom .container,
body #sp-footer .container {
	max-width: 1140px !important;
}

/* Logo: prod = 162x29. In locale usciva 284x50 perche' il cap era solo
   sull'altezza massima e l'immagine e' piu' grande dell'originale prod. */
body #sp-header .logo img,
body #sp-header .logo-image,
body #sp-header .logo-image-phone {
	max-height: 29px;
	width: auto;
	height: auto;
}

/* Menu: l'inline di Helix Ultimate mette 18px/700 sull'UL contenitore
   (i singoli link erano gia' corretti a 12px/500). Prod: 14px/500. */
body ul.sp-megamenu-parent {
	font-size: 14px;
	font-weight: 500;
}

/* Titolo articolo: prod usa h2 a 20px/500; in J6 il markup emette h1. */
body.view-article .article-details .article-header h1,
body.view-article .article-details .page-header h1 {
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 20px !important;
}

/* END parita' layout ======================================================= */

/* ==========================================================================
   PARITA' PROD — sidebar e icone topbar (valori misurati 2026-09-01)
   NB: le regole preesistenti hanno specificita' alta (#sp-right .sp-module ...)
   e !important sul padding, quindi qui si usa lo stesso peso.
   ========================================================================== */

/* Sidebar: prod ha 12px di padding per lato -> modulo 261px su 285px */
body #sp-right {
	padding-left: 12px !important;
	padding-right: 12px !important;
}

body #sp-right .sp-column {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body #sp-right .sp-module {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Titolo modulo: prod 18px / peso 500 */
body #sp-right .sp-module .sp-module-title,
body #sp-right .sp-module h3.sp-module-title {
	font-size: 18px !important;
	font-weight: 500 !important;
}

/* Voci menu: prod 14px, interlinea 36px, padding 2px 0 */
body #sp-right .sp-module ul > li > a,
body #sp-right .sp-module ul.menu > li > a,
body #sp-right .sp-module ul.menu li > a,
body #sp-right .sp-module ul > li > span {
	font-size: 14px !important;
	line-height: 36px !important;
	padding: 2px 0 !important;
}

/* Icone contatto in topbar: prod #999 (le social restano #333) */
body #sp-top-bar .sp-contact-info li i,
body #sp-top-bar .sp-contact-info li span[class*="fa"] {
	color: #999999;
}

/* END parita' sidebar/topbar =============================================== */

/* Icone social fine articolo: prod = cerchio 30x30 con padding-top 4px.
   In locale usciva 36x36, quindi l'icona (SVG in J6, icon-font in J3)
   sembrava piu' piccola a parita' di cerchio. */
body #sp-main-body .helix-social-share-icon ul > li > div > a,
body #sp-main-body .helix-social-share-icon ul > li > a {
	width: 30px !important;
	height: 30px !important;
	line-height: 24px !important;
	padding: 4px 0 0 !important;
}

/* Il glifo dentro l'SVG occupa solo ~5x9 su un box 14x14 (viewBox 24x24 con
   molto margine interno). In prod l'icona-font rende 9x14: per pareggiarla
   l'SVG va portato a ~22px. */
body #sp-main-body .helix-social-share-icon ul > li svg {
	width: 22px !important;
	height: 22px !important;
}

/* Voci menu sidebar: in prod un ::before vuoto con margin-right 8px stacca
   il testo dal bordo; in J6 quello pseudo-elemento non c'e' piu'. */
body #sp-right .sp-module ul.menu > li > a::before,
body #sp-right .sp-module ul > li > a::before {
	content: "";
	display: inline;
	margin-right: 8px;
}

/* Il glifo nell'SVG occupa ~5x9 su un box 14x14; in prod l'icona-font rende
   9x14. Serve un box ~22px. Selettore identico alle regole 14px !important
   preesistenti (che avevano specificita' maggiore) ma dichiarato dopo. */
body #sp-main-body .helix-social-share-icon ul > li > div > a > svg,
.helix-social-share-icon ul > li > div > a > svg {
	width: 22px !important;
	height: 22px !important;
}

/* Icone social: centratura reale nel cerchio.
   Il padding-top di 4px (ereditato da prod, dove l'icona-font si allineava
   sulla baseline) spingeva il glifo in basso: 12px sopra contro 5px sotto.
   Con flex centrato lo spazio e' simmetrico. */
body #sp-main-body .helix-social-share-icon ul > li > div > a,
body #sp-main-body .helix-social-share-icon ul > li > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	line-height: 1 !important;
}

body #sp-main-body .helix-social-share-icon ul > li > div > a > svg,
.helix-social-share-icon ul > li > div > a > svg {
	width: 20px !important;
	height: 20px !important;
	display: block;
}

/* Badge "Featured" rosso sugli articoli in evidenza: introdotto da Joomla 4,
   non esiste in J3 e quindi non e' presente in produzione. In piu' e' in
   inglese su un sito italiano. */
body .article-details .featured-article-badge,
body .badge.bg-danger.featured-article-badge {
	display: none !important;
}

/* Spaziature articolo: in prod l'articolo parte 65px sotto l'inizio di
   #sp-main-body (50px di padding + 15px di margine) e l'intestazione ha
   30px di margine inferiore. In locale erano 50px e 20px. */
body.view-article .article-details {
	margin-top: 15px;
}

body.view-article .article-details > .page-header,
body.view-article .article-details .article-header {
	margin: 0 0 30px 0 !important;
}
