html,
body {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #eef2f9;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #1c2434;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Faixa superior ---------- */

.topo {
    background: linear-gradient(135deg, #072b66, #0a3e94 60%, #1257c4);
    color: #ffffff;
    padding: 36px 24px 90px;
    text-align: center;
}

.topo img {
    width: 140px;
    height: auto;
}

.topo h1 {
    margin: 18px 0 8px;
    font-size: 1.9rem;
    letter-spacing: 1px;
}

.topo p {
    margin: 0 auto;
    max-width: 560px;
    font-size: 1.05rem;
    color: #d8e4fa;
}

/* ---------- Mural de projetos ---------- */

main {
    flex: 1;
    margin-top: -60px;
    padding: 0 24px 30px;
}

.mural {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin: 0 auto;
}

.projeto {
    display: flex;
    flex-direction: column;
    width: 300px;
    background: #ffffff;
    border-radius: 14px;
    border: 3px solid transparent;
    box-shadow: 0 8px 24px #0a3e9426;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.projeto:hover {
    border-color: #0a3e94;
}

.projeto:focus-visible {
    outline: 3px solid #0a3e94;
    outline-offset: 3px;
}

.projeto img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.projeto .info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
    gap: 8px;
}

.projeto h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #0a3e94;
}

.projeto p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #45516a;
}

.projeto .acessar {
    font-weight: bold;
    color: #0a3e94;
}

.projeto:hover .acessar {
    text-decoration: underline;
}

/* ---------- Rodapé ---------- */

.rodape {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 18px 0 12px;
    background-color: #072b66;
    color: #ffffff;
    font-size: 0.85rem;
}

.rodape a,
.rodape button {
    text-decoration: underline;
    color: #ffffff;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.rodape a:focus-visible,
.rodape button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* ---------- Telas menores ---------- */

@media (max-width: 700px) {
    .topo {
        padding-bottom: 80px;
    }

    .rodape {
        flex-direction: column;
        gap: 6px;
        height: auto;
        padding: 12px 0;
    }
}