#top-menu {
    position: fixed;
    top: 16px;
    left: 0;
    width: 100%;
    background-color: var(--main-color);
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.menu-container {
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-items {
    display: flex;
    list-style: none;
    width: 100%;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.menu-items li {
    display: flex;
    align-items: center;
}

.menu-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-branding .logo-icon {
    height: 55px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.menu-logo {
    height: 33px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.menu-icon {
    height: 24px;
    width: auto;
}

#menu-home {
    display: flex;
    align-items: center;
}

.menu-items-right {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.menu-items-right li a {
    display: flex;
    align-items: center;
}

.menu-items-right li:not(:first-child)::before {
    content: "|";
    font-size: 24px;
    color: var(--white);
    margin-right: 20px;
    display: inline-block;
}

.menu-item-text {
    font-family: 'din-condensed', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 26px;
    color: var(--white);
}

.menu-items a {
    color: var(--white);
    text-decoration: none;
    font-weight: normal;
    font-size: 18px;
    transition: color 0.2s ease;
}

.menu-items a:hover {
    color: #FFF;
    text-decoration: none;
}

.menu-item-text.current-page {
    font-style: italic;
    cursor: default;
}

.menu-branding-link,
.menu-branding-link:hover {
    text-decoration: none;
}

#fullscreen-toggle.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    display: flex;
    align-items: center;
}

#top-menu.menu-hidden {
    transform: translateY(-130%);
}

#top-menu.menu-hidden-inactive {
    transform: translateY(-130%);
}

#top-hover-target {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 99;
    pointer-events: auto;
    background-color: transparent;
}

@media (max-width: 768px) {

    #top-menu {
        transform: none !important;
        height: auto;
        padding-top: 5px;
        padding-bottom: 5px;
        transition: background-color 0.3s ease, height 0.3s ease;
    }

    #top-hover-target {
        pointer-events: none;
    }

    .menu-container {
        padding: 0 15px;
    }

    .menu-items {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .menu-branding {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 0;
        padding: 5px 0;
        gap: 10px;
    }

    .menu-branding .logo-icon {
        height: 35px;
    }

    .menu-logo {
        height: 25px;
    }

    .menu-items-right li:not(:first-child)::before {
        display: none;
    }

    #fullscreen-toggle {
        display: none;
    }


    #mobile-menu-toggle, .mobile-toggle-item {
        display: none !important;
    }

    #top-menu:not(.is-open) .menu-items-right {
        display: none;
    }

    #top-menu:not(.is-open) .menu-branding {
         padding-right: 0;
    }

    #top-menu.is-open .menu-items {
        padding-bottom: 10px;
    }

    #top-menu.is-open .menu-items-right {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 5px;
    }

    #top-menu.is-open .menu-item-text {
        font-size: 20px;
    }

    #top-menu.is-open .menu-items-right a {
        font-size: 16px;
        padding: 5px 0;
    }
}
