/* Estilos específicos para mobile */

.menu, a.cta-button  {
    position: fixed;
    top: 0;
    left: -100%; /* Oculto inicialmente */
    width: 100%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease-in-out;
    z-index: 1000; /* Garante que o menu fica acima dos outros elementos */
}

.menu.active {
    left: 0; /* Exibe o menu ao clicar no ícone */
    width: 70vw;
    height: 100vh;
}

.menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.menu li {
    margin: 15px 0;
}

.menu a {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.menu-toggle {
    display: block;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    z-index: 1100; /* Garante que o ícone esteja clicável */
}

.cta-button {
    position: relative;
    z-index: 900; /* Mantém o botão abaixo do menu */
}

/* Esconder o menu toggle em telas maiores */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    .menu {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        background: transparent;
        height: auto;
    }
}

/* Ícone de fechar (X) */
.menu-close {
    display: none; /* Oculto inicialmente */
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    z-index: 1200; /* Acima do menu */
}

/* Exibe o botão "X" apenas quando o menu está ativo */
.menu.active ~ .menu-close {
    display: block;

}

.hero {
    position: relative;
    width: 100%;
    height: 700px; /* ajuste o tamanho conforme necessário */
    overflow: hidden;
    padding:0px;
    margin:0px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Isso garante que a imagem cubra toda a área sem distorcer */
    position: absolute;
    top: 0;
    left: 0;
}


.hero-text {
    position: absolute;
    bottom:10px;  /* Ajuste a distância do texto para a parte inferior da imagem */
    left: 0px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5); /* Para melhorar a visibilidade do texto */
    padding:25px;
    border-radius: 5px;
}

nav.menu ul li a:hover {
    width: 100 vw;
    color: white; /* Cor do texto */
    background-color: rgba(54, 54, 54, 0.453); /* Cor de fundo */
}

nav#menu > div {
    position: absolute;
    top: 10%;
    translate: (-50%,-50%);
}

img#mobile { display: block;}
img#tablet { display: none;}
img#desktop { display: none;}