* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.c {
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-img {
    display: flex;
    align-items: center;
    height: 110px;
}

.lista {
    position: absolute;
    font-family: "Poppins";
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    list-style: none;
}

.logo {
    height: 50px; /* se ajusta dentro do menu */
    width: auto;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.menu {
    background-color: #f5f5f5;
    display: flex;
    align-items: center; /* alinha logo e links na vertical */
    justify-content: space-between;
    padding: 10px 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    position: relative; /* importante */
    height: 80px; /* define altura fixa do menu */
    pointer-events: auto;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.menu li {
    position: relative;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: #E60000;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;

    width: 0%;
    height: 2px;
    background: #E60000;

    transform: translateX(-50%);
    transition: width 0.3s ease;
}

/* hover */
.menu a:hover::after {
    width: 100%;
}

/* ativo */
.menu a.ativo::after {
    width: 100%;
}

.menu-mobile {
    display: none;
}

/* Menu Mobile */

@media (max-width: 768px) {

    .menu-mobile {
        display: block;
        font-size: 28px;
        color: #E60000;
        cursor: pointer;
    }

    .lista {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translate(-50%, -150%);

    width: 90%;
    max-width: 300px;

    background: white;
    border-radius: 10px;
    padding: 20px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    transition: 0.3s ease;

    display: flex;
    justify-content: center;
    }

    .lista.active {
        transform: translate(-50%, 0);
    }

    .menu ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .c {
        justify-content: space-between;
        width: 100%;
    }

    .menu-mobile {
        display: block;
    }
}