/* ========================
   Header & Mobile Menu
======================== */

#mainHeader {
    position: relative;
    /* per ancorare il menu assoluto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: #EBE7E1;
    border-bottom: 1px #232120 solid;
    margin-bottom: 30px;
    z-index: 1000;
    width: 100%;
}


/* Sticky (solo desktop) */

#mainHeader.sticky {
    position: sticky;
    top: 50px;
    width: 80%;
    margin: 0 auto;
    background-color: #2321208c;
    opacity: 0.5;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 0 50px;
    height: 56px;
    border-bottom: none;
}

#mainHeader.sticky img {
    filter: invert(1);
    width: 150px;
}

#mainHeader.sticky button {
    color: #fff;
}

.sg_logo {
    display: flex;
}


/* Desktop nav buttons */

.sg_nav_buttons {
    display: flex;
    gap: 20px;
}

.header_button {
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
}


/* Mobile toggle */

.sg_menu_toggle {
    display: none;
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
}


/* Mobile menu (hidden by default) */

.sg_mobile_menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    background-color: #EBE7E1;
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1001;
}


/* When “open” class is present */

.sg_mobile_menu.open {
    display: flex !important;
}


/* Responsive breakpoint */

@media (max-width: 768px) {
    .sg_nav_buttons {
        display: none;
    }
    .sg_menu_toggle {
        display: block;
    }
}