.topo {
    position: relative;
    background: #092444;
    min-height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.topo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/nav-rio.png");
    background-repeat: repeat-x;
    background-size: 360px auto;
    background-position: center;
    opacity: 0.16;
    pointer-events: none;
}

.logo {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 26px;
    font-weight: 800;
    margin-right: auto;
}

.menu-principal {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    white-space: nowrap;
}

.menu-principal a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.menu-principal a:hover {
    text-decoration: underline;
}

.area-login {
    position: relative;
    z-index: 1;

    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.area-login span {
    color: white;
    font-weight: 600;
}

.btn-topo-admin,
.btn-sair,
.btn-login {
    background: white;
    color: #092444 !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: 0.2s ease;
}

.btn-topo-admin:hover,
.btn-sair:hover,
.btn-login:hover {
    background: #f1f5f9;
    color: #092444 !important;
}


.mensagens {
    max-width: 1100px;
    margin: 20px auto;
}

.mensagem {
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff3cd;
    color: #856404;
}

footer {
    text-align: center;
    padding: 24px;
    margin-top: 40px;
    background: #092444;
    color: white;
}