.menu {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 25px;
    width: auto;
}

/* Para desktop e tablet */
@media (min-width: 768px) {
    .menu {
        width: 700px;
    }
}

.menu-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Links e botão juntos */
.menu-center {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 30px;
    gap: 15px;
}

/* Esconder botão mobile por default */
.botao-entrar-mobile {
    display: none;
}

@media (max-width: 767px) {
    .menu-center {
        display: none;
    }

    .botao-entrar-mobile {
        display: block;
    }

    .menu {
        width: auto;
        padding: 10px 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .menu-content {
        gap: 20px; /* espaço entre logo, botão e bandeira */
    }
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 300;
}

.menu a:hover {
    color: #00C86C;
    transition: color 0.3s;
}

.botao-entrar {
    background-color: #00C86C;
    color: #C2F5DF;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.botao-entrar:hover {
    background-color: #46791e;
    color: #ffffff;
}

.menu-flag {
    margin-right: -47px;
    display: block;
    width: 30px;
    height: auto;
}

/* Shake no hover */
@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

.menu-flag:hover {
  animation: shake 0.4s;
}