@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Poppins", sans-serif;
        }


/* Ajustes nas redes sociais */
.interface{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.interface .logotipos{
    margin-top: 2vw;
    align-items: center;
    display: flex;
    margin-bottom: 0;
}

.interface .redes-sociais {
    display: flex;
    gap: 1vw;
    justify-content: flex-end; 
    align-items: center;
    margin-top: 2vw;
    margin-bottom: 2vw;
    margin-right: 2vw;
}

.interface .redes-sociais a{
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 2.5vw;
    color: #000;
}

.interface .redes-sociais button:hover {
    color: rgb(0, 0, 90);
}

.redes-sociais {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.redes-sociais a button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 2vw;
}

.redes-sociais a img {
    width: 2vw;
    height: auto;
}


/* --- Menu Inferior --- */
.parte-de-baixo-menu {
    background-color: rgb(0, 0, 90);
    
}

.parte-de-baixo-menu .interface {
    display: flex;
    justify-content: flex-start;
}

.parte-de-baixo-menu ul {
    display: flex;
    justify-content: flex-start;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.parte-de-baixo-menu .opcoes {
    color: #fff;
    padding: 1vw 1.2vw;
    text-decoration: none;
    font-weight: 600;
    font-size: 1vw;
    display: block;
    transition: 0.1s;
    text-align: left;
}

.parte-de-baixo-menu .opcoes:hover {
    background-color: rgba(0, 0, 0, 0.76);
    box-shadow: inset 0 0 1vw hwb(0 0% 100% / 0.76);
    transition: 0.5s;
}

.parte-de-baixo-menu ul li {
    margin-right: 1vw ;
}

.parte-de-baixo-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}


/* --- ESTILOS PARA DROPDOWN (LENDAS E CURTAS) --- */

.menu-das-lendas, .menu-curtas {
    position: relative;
}

.menu-das-lendas .sub-menu,.menu-curtas .sub-menu{
    background-color: rgba(49, 49, 49, 0.95);
    width: 100%;
    margin: 0;
    padding: 0;
}

.menu-das-lendas p, .menu-curtas p{
    font-size: 2vw;
    color: #fff;
    margin-left: 0.8vw;
}

.menu-das-lendas button, .menu-curtas button{
    color: #fff;
    background-color: rgba(49, 49, 49, 0.95);
    font-size: 1.2vw;
    border: none;
    padding-left: 1vw;
    transition: 2.ms;
    cursor: pointer;
}

.menu-das-lendas button:hover, .menu-curtas button:hover{
    color: #eeff00;
    font-size: 1vw;
}

.menu-das-lendas .droop, .menu-curtas .droop {
    position: absolute;
    top: 100%;
    left: 0;
    /* Aumentado a largura para acomodar 3 colunas */
    width: 50vw; 
    max-height: 0; 
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    transition: max-height 0.3s ease-out;
    z-index: 999;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0; 
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* CLASSE QUE SERÁ ADICIONADA/REMOVIDA VIA JAVASCRIPT */
.menu-das-lendas .droop.show, .menu-curtas .droop.show {
    max-height: 80vh; 
    overflow-y: auto; 
    padding: 1vw;
}

.card-lenda {
    display: none;
}

.apresentar{
    display: inline-block;
    position: relative;
}


/* --- ESTILOS DENTRO DO DROPDOWN PARA 3 ITENS POR LINHA --- */

/* CONTAINER DE CADA LINHA: Deve ser FLEX e permitir QUEBRA */
.lendas-hrf1 {
    display: flex;
    flex-wrap: wrap; /* ESSENCIAL: Permite que os cards quebrem para a próxima linha */
    padding: 10px 0;
    gap: 15px;
    justify-content: flex-start;
    width: 100%; 
}

/* O CARD INDIVIDUAL: Definir o tamanho para caber 3 por linha */
.card-lenda {
    /* Calcula a largura para 3 itens: (100% / 3) - espaçamento */
    flex: 0 0 calc(33.33% - 10px); 
    max-width: calc(33.33% - 10px); /* Garantia de largura máxima */
    box-sizing: border-box; /* Inclui padding e borda no cálculo da largura */
}

.card-lenda img {
    width: 100%; /* A imagem ocupa 100% do card-lenda (1/3 da linha) */
    height: auto;
    border-radius: 5%;
    display: block;
}

.lendas-hrf1 a:hover{
    color: #eeff00;
}

.card-lenda .texto-sobreposto {
    position: absolute;
    bottom: 0; 
    left: 0;
    font-size: 1vw;
    transform: none; 
    padding: 5px;
    width: 100%;
    text-align: center; 
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 5px 5px;
    display: flex;
    justify-content: center;
}

/* --- ESTILOS PARA DROPDOWN SOBRE (SEM ALTERAÇÃO) --- */

.menu-de-sobre {
    position: relative;
}


.menu_festival {
    position: relative;
}


.sobre h1{
    font-size: 3vw;
    padding-top: 2vw;
    margin-left: 1.5vw;
}

.sobre p{
    font-size: 1.5vw;
    margin-left: 25px;
}

#sigma{
    text-align: center;
}

.grid-lendas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 3rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.lena-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #222;
}

.lena-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.lena-card:hover img {
    transform: scale(1.05);
}

.lena-card a {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 1rem 0.9rem;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 60%, transparent);
    color: #fff;
    text-decoration: none;
    font-size: 1vw;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: color 0.2s;
}

.lena-card:hover a {
    color: #eeff00;
}

.simple-footer {
    width: 100%;
    padding: 15px 0; 
    background-color: #0e0e0e;
    color: #eee; 
    font-size: 0.9em;
    text-align: center; 
    font-family: Arial, sans-serif;
}

@media screen and (max-width: 720px) {
    .grid-lendas {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }

    .lena-card a {
        font-size: 3vw;
    }

    header .parte-de-cima-menu img{
        padding: 1vw;
        height: 13vw;
        width: auto;
    }

    .parte-de-baixo-menu .interface{
        width: 100%;
    }
    

    .parte-de-baixo-menu .interface a{
        font-size: 2vw;
        padding: 2vw 0.2vw;
    }

    #inicio{
        padding-left: 10px;
    }

    header .menu-das-lendas .droop{
        width: 100vw;
        left: 0;
        position: fixed;
        top: auto;
        border-radius: 0;
    }

    header .menu-das-lendas .droop .sub-menu button{
        font-size: 10px;
        padding-left: 5px;
    }

    header .menu-das-lendas .droop .card-lenda{
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    header .menu-curtas .droop{
        width: 100vw;
        left: 0;
        position: fixed;
        top: auto;
        border-radius: 0;
    }

    header .menu-curtas .droop .sub-menu button{
        font-size: 10px;
        padding-left: 5px;
    }

    header .menu-curtas .droop .card-lenda{
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .sobre h1{
        font-size: 6vw;
    }

    .sobre p{
        font-size: 3vw;
    }
}