/* ---- NAVBAR ---- */

.navbar .logo {
    margin: 0;
    width: 8rem;
    font-size: 0;
}

.navbar {
    background-color: #FFF;
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 1rem 1rem 1rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    margin-block: 1rem;
}

.navbar .menu {
    display: flex;
}

.navbar .menu .menu-item {
    margin-inline: 1.2rem;
    border-bottom: 2px solid #0000;
}

.navbar .menu .menu-item img {
    width: 1.5rem;
    margin-bottom: -0.2rem;
}

.navbar .menu-item a {
    color: var(--text-color);
    text-decoration: none;
}

.navbar .menu-item:hover {
    border-bottom: 2px solid var(--text-color);
}

.navbar .menu-item.active {
    border-bottom: 2px solid var(--main);
}

.navbar .menu-divider {
    background-color: #00000024;
    width: 0.1rem;
    margin-inline: 1rem;
}

.navbar .menu-item.sub-item {
    opacity: 0.3;
}

.navbar .menu-item.sub-item.active {
    opacity: 1;
    border-bottom: none;
}

/* ---- MENU MOBILE ---- */

nav {
    display: none;
}

#menu-toggle {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

#menu-toggle input {
    display: flex;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
}

#menu-toggle img {
    width: 2rem;
    margin-bottom: -0.3rem;
}

#menu-toggle input:checked~ul {
    opacity: 1;
    display: block;
}

#mobile-menu {
    position: absolute;
    right: -0.5rem;
    top: -2rem;
    box-shadow: 0 0 10px #85888C;
    width: 10rem;
    padding: 2rem;
    background-color: #FFF;
    opacity: 0;
    display: none;
}


#mobile-menu li {
    display: block;
    margin-block: 1rem;
}

#mobile-menu .active span {
    border-bottom: 3px solid var(--main);
}

#mobile-menu li a {
    color: var(--text-color);
    text-decoration: none;
}

#mobile-menu li:first-child {
    position: absolute;
    margin: 0;
    top: 0.7rem;
    right: 0.7rem;
}

#mobile-menu .sub-item {
    opacity: 0.3;
}

#mobile-menu .sub-item.active {
    opacity: 1;
}

#mobile-menu .sub-item.active span {
    border-bottom: none;
}

.menu-divider-horizontal {
    background-color: #00000024;
    width: 100%;
    height: 2px;
}