/* =========================================================
   BNI PERUGIA — LEADERSHIP REGION
   HERO NATIVA CMS OVERRIDE V1
   Sovrascrive SOLO la pagina che contiene .ldr26-page
   ========================================================= */

/* Nasconde la Hero nativa CMS solo sulla pagina Leadership Region */
body:has(.ldr26-page) .widgetPageHeader{
    display:none !important;
    height:0 !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    overflow:hidden !important;
}

/* Porta il primo modulo personalizzato a battuta sotto la navigazione */
body:has(.ldr26-page) .widgetPageHeader + style + .widgetTextColumns{
    margin-top:0 !important;
    padding-top:0 !important;
}

/* Neutralizza il contenitore CMS SOLO del widget che ospita la Hero */
body:has(.ldr26-page) .widgetPageHeader + style + .widgetTextColumns > .holder{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}

/* Rimuove i gutter Bootstrap dal solo primo widget */
body:has(.ldr26-page) .widgetPageHeader + style + .widgetTextColumns > .holder > .wysiwyg{
    float:none !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

/* Sicurezza: nessun offset esterno ereditato sulla pagina/hero */
body:has(.ldr26-page) .ldr26-page,
body:has(.ldr26-page) .ldr26-hero{
    margin-top:0 !important;
}

/* Responsive: stesso comportamento senza spazi introdotti dal CMS */
@media (max-width:767px){
    body:has(.ldr26-page) .widgetPageHeader + style + .widgetTextColumns,
    body:has(.ldr26-page) .widgetPageHeader + style + .widgetTextColumns > .holder,
    body:has(.ldr26-page) .widgetPageHeader + style + .widgetTextColumns > .holder > .wysiwyg{
        margin-top:0 !important;
        padding-top:0 !important;
    }
}
