* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

header {
    background: url("imagens/banner.png") center/cover no-repeat;
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.logo {
    position: absolute;
    top: 20px;
    left: 30px;
    height: 70px;
    z-index: 2;
}

header h1 {
    position: relative;
    color: white;
    font-size: 2.8rem;
    z-index: 2;
    text-align: center;
}

nav {
    position: absolute;
    top: 25px;
    right: 40px;
    z-index: 2;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.25);
}

main {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 2rem;
}

main h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2a5298;
}

section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

section h2 {
    margin-bottom: 1rem;
    color: #1e3c72;
}

.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.active-link {
    background: rgba(255, 255, 255, 0.3);
}

header.shrink {
    height: 180px;
    transition: 0.3s ease;
}
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: #4ea8ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


@media (max-width: 900px) {

    header {
        height: auto;
        padding: 2rem 1rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    header::after {
        border-radius: 0;
    }

    .logo {
        position: static;
        height: 55px;
        margin-bottom: 1rem;
    }

    header h1 {
        font-size: 2rem;
        margin: 0.5rem 0;
    }

    nav {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}