@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


*{
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    box-sizing: border-box;
}

header{
    width: 100%;
    background-color: rgb(229, 229, 229);    color: black;
    border-bottom: 1px solid rgb(136, 136, 136);
}

nav{
    width: 100%;
    padding: 10px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

nav img{
    width: 150px;
}

nav i{
    font-size: 36px;
    cursor: pointer;
    margin-left: 30px;
}

nav ul{
    width: 100%;
    text-align: right;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: white;
    text-decoration: none;
}

.sub-menu-wrap{
    position: absolute;
    top: 100%;
    right: 10%;
    width: 320px;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s;
}

.sub-menu-wrap.open-menu{
    max-height: 400px;
}

.sub-menu{
    background: #fff;
    padding: 20px;
    width: 100%;
}
.user-info{
    display: flex;
    align-items: center;

}
.user-info h2{
    font-size: 16px;
    font-weight: 400;
    margin-left: 8px;
}

.user-info i{
    font-size: 38px;
}

.sub-menu  hr{
    border: 0;
    height: 1px;
    width: 100%;
    background: #ccc;
    margin: 15px 0 10px;
}

.sub-menu-link{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #525252;
    margin: 12px 0;
    cursor: pointer;
}

.sub-menu-link p{
    font-weight: 300;
    width: 100%;
}

.sub-menu-link i{
    font-size: 16px;
    background: #e5e5e5;
    border-radius: 50%;
    padding: 8px;
    margin-right: 10px;
}

.sub-menu-link:hover p{
    font-weight: 600;
}

/* Desktop: escondemos o hamburguer */
#menu-icon {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  nav {
    padding: 10px 20px;
  }

  .sub-menu-link p{
    font-size: 20px;
    font-weight: 300;
    width: 100%;
}

.sub-menu-link i{
    font-size: 20px;
}
  /* Ícone hamburguer visível */
  #menu-icon {
    display: block;
    font-size: 32px;
    cursor: pointer;
    margin-left: 20px;
  }

  /* Esconde menu padrão */
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: rgb(229, 229, 229);
    padding: 20px 0;
    border-top: 1px solid #ccc;
    text-align: center;
  }

  nav ul li {
    margin: 15px 0;
    display: block;
  }

  nav ul li a {
    font-size: 1.2rem;
    color: black;
  }

  /* Quando ativo */
  nav ul.active {
    display: flex;
  }
}
