body {
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template-rows: 120px 1fr;
    grid-template-areas:
        "header"
        "main"
        "footer";
    overflow-x: hidden;
}

header {
    grid-area: header;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-areas:
        "header"
        "navegation";
    grid-template-rows: 70px 50px;
}

.header {
    grid-area: header;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    background-color: var(--cor-preto);
    color: var(--cor-branco);
    border-bottom: 2px solid var(--cor-vermelho);
}

.header__logo {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cor-branco);
}

.header__logo:hover {
    cursor: pointer;
}

.header__logo--title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.header__logo img {
    height: 2rem;
    width: 2rem;
}

.header__redes {
    height: fit-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 35.5px;
}

.header__redes a i {
    font-size: 1.5rem;
    color: var(--cor-branco);

}

.header__redes a i:hover {
    cursor: pointer;
    color: var(--cor-vermelho);
    transform: scale(1.2);
    transition: .2s;
}

.menu-container {
    grid-area: navegation;
    height: 100%;
    background-color: var(--cor-cinza);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    gap: 80px;
    text-transform: uppercase;
}

.menu-container a {
    color: var(--cor-cinza-claro);
}

.menu-container a:hover {
    cursor: pointer;
    color: var(--cor-branco);
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-toggle {
    display: none;
    height: 40px;
    width: 44px;
    border: 1px solid var(--cor-vermelho);
    border-radius: 8px;
    background-color: transparent;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
}

.menu-toggle__bar {
    width: 22px;
    height: 2px;
    background-color: var(--cor-branco);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-social {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--cor-cinza-claro);
}

.menu-social a i {
    font-size: 1.2rem;
    color: var(--cor-branco);
}

main {
    grid-area: main;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}



footer {
    grid-area: footer;
    height: 70px;
    width: 100%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    background-color: var(--cor-preto);
    color: var(--cor-branco);
    text-align: center;
    padding: 0 16px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 8px;
}

.pagination__btn {
    background-color: var(--cor-vermelho);
    color: var(--cor-branco);
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.pagination__btn:hover {
    cursor: pointer;
    background-color: var(--cor-vermelho);
}

.pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--cor-preto);
}

.pagination__info {
    color: var(--cor-branco);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .menu-container {
        gap: 40px;
    }

    .header__redes {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    body {
        grid-template-rows: auto 1fr;
    }

    header {
        grid-template-rows: 80px auto;
        height: auto;
    }

    .header {
        padding: 0 12px;
        flex-direction: row;
        gap: 8px;
    }

    .header__logo {
        height: auto;
    }

    .header__redes {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-container {
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, padding 0.25s ease;
        background: linear-gradient(180deg, var(--cor-cinza) 0%, var(--cor-preto) 100%);
    }

    .menu-container a {
        padding: 10px 12px;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.04);
        text-align: center;
    }

    .nav-toggle:checked~.menu-container {
        max-height: 360px;
        padding: 12px 16px 16px 16px;
    }

    .nav-toggle:checked~.menu-container .menu-social {
        display: flex;
    }
}

@media (max-width: 600px) {
    body {
        grid-template-rows: auto 1fr;
    }

    .header__logo--title {
        font-size: 1.1rem;
        text-align: center;
    }

    .header__redes a i {
        font-size: 1.1rem;
    }

    .menu-container {
        font-size: 0.85rem;
        gap: 12px;
    }

    main {
        align-items: flex-start;
        padding-bottom: 24px;
    }

    footer {
        font-size: 0.85rem;
    }

    .pagination {
        flex-wrap: wrap;
    }
}