.logo {
    text-align: center;
    max-height: 6rem;
    object-fit: contain;
}

.logo img{
    object-fit: contain;
    width: 15rem;
    height: auto;
}
@media screen and (max-width: 850px) {
    .logo {
        text-align: left;
        object-fit: cover;
        padding-left: 2rem;
    }
    .logo img{
        width: 12rem;
    }
}
@media screen and (max-width: 500px){
    .logo img {
        padding-top: 0.3rem;
        width: 10rem;
    }
}
.navbar {
    position: relative;
    top: 1rem;
    left: 0;
    max-width: 100%;
    z-index: 1000;
    background-color: #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    transition: top 0.2s ease-in;
}
.navbar.fixo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
}

.opcoes {
    display: flex;
    align-items: center;
    padding-right: 20px;
}
.navbar {
    padding: 0 1.75rem;
}
.navbar a {
    display: block;
    color: #707070;
    font-size: 1rem;
    line-height: 1rem;
    text-align: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-weight: normal;
    transition: .5s all ease-in-out;
}

.navbar a.hover:hover, .dropdown:hover .dropbtn {
    color: #fff;
    background: #aaa;
}

.navbar a.active {
    color: black;
}

.dropdown {
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 1rem;    
    border: none;
    outline: none;
    color: black;
    padding: 0.8rem 1rem;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 10rem;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    color: #fff;
    background: #aaa;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.sub-dropdown {
    position: relative;
    display: block;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 20rem;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 0;
    left: 100%;
}

.sub-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.sub-dropdown-content a:hover {
    color: #fff;
    background: #aaa;
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.opcoes a.active {
    background-color: #707070;
    color: #ffed00;
}
.opcoes a.semi-active {
    background: #707070;
    color: #fff;
}
.dropdown-content a.active {
    background-color: #707070;
    color: #ffed00;
}

@media screen and (min-width: 850px){
    .sidebar,
    .btn {
        display: none;
    }
}
@media screen and (max-width: 850px) {
    .opcoes,
    .navbar  {
        display: none;
    }

    .btn {
        position: absolute;
        top: 1.5rem;
        right: 45px;
        height: 45px;
        width: 45px;
        text-align: center;
        cursor: pointer;
        transition: left 0.4s ease;
        z-index: 1001;
    }

    .btn.click {
        left: 80%;
    }

    .btn span {
        color: #aaa;
        font-size: 2.5rem;
        line-height: 45px;
    }

    .btn.click span:before {
        content: '\f00d';
    }

    .fechar_sidebar span { 
        position: relative;
        font-size: 2rem;
        line-height: 45px;
        left: 18rem;
        margin-top: 2rem;
        cursor: pointer;
        color: #343333;
    }

    .sidebar {
        position: absolute;
        width: 22rem;
        height: 100%;
        top: 0;
        left: -22rem;
        transition: left 0.4s ease;
        z-index: 1000;
        background: #f3f1f1; 
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar ul {
        background: #f3f1f1;
        height: 100%;
        width: 100%;
        list-style: none;
        padding-left: 0;
        padding: 0; 
        display: flex;
        flex-direction: column;
    }
    .sidebar ul .empresa-show.show,
    .sidebar ul .prod-show.show,
    .sidebar ul ul .otos-show.show,
    .sidebar ul ul .oftal-show.show,
    .sidebar ul ul .derma-show.show,
    .sidebar ul ul .lant-show.show    {
        display: block;
    }
    .sidebar ul li {
        line-height: 2rem;
        border-bottom: 2px solid rgba(109, 61, 61, 0.1);
    }

    .sidebar ul li:first-child {
        border-top: 2px solid rgba(109, 61, 61, 0.1);
    }
    .sidebar ul li:last-child {
                border-bottom: 2px solid rgba(109, 61, 61, 0.1);
    }

    .sidebar ul ul ul li:first-child {
        border-top: 2px solid rgba(109, 61, 61, 0.1);
    }

    .sidebar ul li a {
        box-sizing: border-box;
        position: relative;
        color: black;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        display: block;
        width: 100%;
        border-right: 3px solid transparent;
        padding: 0.5rem;
        padding-left: 1rem;
    }

    .sidebar ul ul {
        position: static;
        display: none;
    }

    .sidebar ul ul li {
        font-size: 16px;
        color: black;
    }

    .sidebar ul ul li a {
        font-size: 16px;
        color: black;
        padding-left: 1.5rem;
        width: 100%;
    }

    .sidebar ul ul ul li a {
        padding-left: 2rem;
        font-size: 14px;
    }

    .sidebar ul li a:hover {
        color: #ffed00;
        background: #707070;
    }

    .sidebar ul li a span {
        position: absolute;
        color: black;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        font-size: 1.4rem;
        transition: transform 0.4s;
        padding: 20px;
    }

    .sidebar ul ul li a span {
        font-size: 1rem;
    }
    .sidebar ul li a span.rotate {
        transform: translateY(-50%) rotate(-180deg);
    }
    .sidebar ul li a:hover span.rotate {
        transform: translateY(-50%) rotate(-180deg);
    }

    body.sidebar-open {
        overflow: hidden; 
    }

    .overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.5); 
        backdrop-filter: blur(10px); 
        pointer-events: none;
        transition: opacity 0.3s ease;
        opacity: 0; 
        z-index: 999; 
    }

    .sidebar.show + .overlay,
    body.sidebar-open {
        overflow: auto;
    }

    .sidebar.show + .overlay {
        opacity: 1;
    }
}

@media screen and (max-width: 400px) {
    .sidebar {
        width: 18rem;
        left: -20rem;
    }
    .fechar_sidebar span {
        left: 15rem;
    }
}

@media screen and (max-width: 500px){
    .btn.click {
        display: none;
    }
    .btn span {
        font-size: 2rem;
    }
}
