* {
    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;
}

#values {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.value-card {
    background: #ffffff;
    flex: 1 1 300px;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card .counter {
    font-size: 2rem;
    font-weight: bold;
    color: #2a5298;
    display: block;
    margin-bottom: 0.5rem;
}

.value-card .label {
    font-size: 1rem;
    color: #555;
}

#worst {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#worst h2 {
    margin-bottom: 15px;
    color: #c0392b;
}

#worst {
    padding: 2rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    background-color: #ffffff;
    color: #222222;
    border: 1px solid #dddddd;
}

#worst h2 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.worst-list {
    padding-left: 1.5rem;
}

.worst-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

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: 300px;
        flex-direction: column;
        justify-content: center;
    }

    nav {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .logo {
        top: 15px;
        left: 15px;
        height: 55px;
    }

    header h1 {
        font-size: 2rem;
        margin-top: 60px;
    }

    #values {
        flex-direction: column;
    }
}