/* --- GLOBAL OVERRIDES --- */

.site-header .site-branding img {
    max-height: 50px;
}

.site-title {
    height: auto;
    line-height: normal;
}

/* --- HEADER CLEANUP (Single Row) --- */

.header-style-1.site-header {
    border-bottom: none !important;
}

.header-style-1.site-header .pbmit-logo-area {
    display: none !important;
    /* Remove secondary logo/info bar */
}

.header-style-1 .pbmit-main-header-area {
    border-bottom: none !important;
}

.site-header-menu,
.pbmit-header-overlay {
    border-bottom: none !important;
}

.site-header .pbmit-header-content {
    height: 100px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

.site-header .site-branding img.logo-img {
    max-height: 60px;
    width: auto;
}

/* --- MENU STYLES --- */

.header-style-1 .site-navigation ul.navigation>li>a {
    color: #fff !important;
    padding-bottom: 5px;
    position: relative;
}

/*.site-header .site-navigation ul.navigation li.active a {
    text-decoration: underline;
}*/

/* Menu Hover Effect */
.site-header .main-menu .navigation>li.active>a::after,
.site-header .main-menu .navigation>li>a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.mobile-only-menu-item {
    display: none !important;
}


/* --- LANGUAGE SELECTOR --- */

.pbmit-language-selector-wrapper {
    margin: 0 30px 0 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--pbmit-heading-typography-font-family), sans-serif;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pbmit-language-selector-wrapper a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pbmit-language-selector-wrapper a:hover,
.pbmit-language-selector-wrapper a.active {
    color: #fff !important;
}

.pbmit-language-selector-wrapper .sep {
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 10px;
    font-weight: 300;
}


/* --- FOOTER STYLES --- */

.pbmit-footer-logo img {
    /*max-height: 146px;*/
    max-height: 186px;
}

.footer.site-footer {
    background-image: none;
}

.pbmit-footer-widget-area a {
    color: #fff;
}

.pbmit-footer-widget-area a:hover {
    opacity: 0.8;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 1199px) {
    .site-header .pbmit-header-content {
        height: 80px;
        display: flex !important;
        padding: 0 15px;
    }

    .site-header .site-branding img.logo-img {
        max-height: 50px;
    }

    /* Hide logo on ALL pages for mobile/tablet */
    .site-header .site-branding {
        display: none !important;
    }

    .mobile-only-menu-item {
        display: block !important;
    }

    /* Force tutto a sinistra su mobile/tablet */
    .header-style-1 .site-header-menu,
    .header-style-1 .pbmit-main-header-area,
    .header-style-1 .pbmit-main-header-area .container-fluid,
    .site-header .pbmit-header-content {
        justify-content: flex-start !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        text-align: left !important;
    }

    .site-header .site-navigation {
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        display: flex !important;
        justify-content: flex-start !important;
        width: auto !important;
        flex: 0 0 auto !important;
        order: -1 !important;
        /* Move to the absolute left */
    }

    .pbmit-right-box {
        display: flex !important;
        align-items: center;
        margin-left: 10px !important;
        flex: 0 0 auto !important;
    }

    /* Force menu color for visibility in mobile slide-out menu */
    .pbmit-menu-wrap ul.navigation>li>a,
    .header-style-1 .site-navigation ul.navigation>li>a {
        color: #000 !important;
    }

    /* Force toggler (hamburger) and language selector to be left-aligned */
    .navbar-toggler {
        color: #fff !important;
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        top: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 30px !important;
        display: block !important;
    }

    .pbmit-language-selector-wrapper {
        display: flex !important;
        margin: 0 0 0 15px !important;
        /* Spazio a sinistra rispetto al menu */
        font-size: 14px;
    }


    /* Hide the button on tablet/mobile to give space to language selector and burger menu */
    .site-header .pbmit-button-box {
        display: none !important;
    }

    .pbmit-right-box {
        display: flex !important;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .site-header .pbmit-header-content {
        height: 70px;
        padding: 0 15px;
    }

    /* Smaller font for mobile */
    .pbmit-language-selector-wrapper {
        margin: 0 10px;
        font-size: 12px;
    }

    .pbmit-language-selector-wrapper .sep {
        margin: 0 5px;
    }
}



/* --- HOMEPAGE SPECIFIC (Desktop only for logo hiding if already done in responsive for others) --- */
/* Since we hid it for all in responsive, we only need to hide it for desktop homepage here */
.page-home .site-header .site-branding {
    display: none !important;
}

@media (min-width: 1200px) {
    .page-home .site-header .site-navigation {
        margin-left: auto;
    }
}

.tparrows {
    display: none !important;
}


/* Layout fix */
.site-header .pbmit-header-content .site-branding {
    flex-shrink: 0;
}