/* Reset e Estilos Base */
html {
    font-size: 62.5%;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

body {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Tipografia */
h1,
h2 {
    font-family: "'Linux Libertine','Georgia','Times','Source Serif Pro',serif";
    color: #222;
    margin-bottom: 2.4rem;
}

section h2 {
    border-bottom: 2px solid #e5e7eb;
}

h1 {
    font-size: 3.2rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 2.4rem 0;
    line-height: 1.2;
    text-align: center;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #111827;
    margin: auto;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111827;
    margin: 1.6rem 0;
    line-height: 1.4;
    text-align: left;
}

p {
    font-family: sans-serif;
    font-weight: 400;
    line-height: 1.8;
    text-indent: 20px;
}

/* Links e Listas */
a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 1rem;
}

/* Header e Navegação */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    background-color: white;
}

.logo img {
    max-width: 300px;
    height: auto;
    transition: transform 0.2s ease;
}

.logo img:hover {
    transform: scale(1.02);
}

.bar {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.bar nav {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
}

.bar ul {
    display: flex;
    align-items: center;
    height: 5rem;
    margin: 0;
    gap: 2rem;
}

.bar ul li {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 0;
}

.bar a {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    border: 2px solid #f1f1f1;
    background-color: #6f2c3e;
    transition: background-color 0.3s, transform 0.2s;
}

.bar a:hover {
    background-color: #5b232e;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Layout Principal */
.content {
    max-width: 1440px;
    margin: 4rem auto;
    grid-gap: 4rem;
    display: grid;
    gap: 4rem;
    grid-template-areas: 'sidebar main anchors';
    grid-template-columns: minmax(0, 23rem) minmax(0, 2.5fr) minmax(0, 23rem);
    padding: 0 2rem;
    min-height: 100vh;
}

.main {
    background-color: white;
    padding: 2rem 5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar {
    border-right: none;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.anchors {
    border-left: none;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar a {
    font-size: 1.4rem;
}

.anchors a {
    font-size: 1.4rem;
}

/* Imagens e Figuras */
img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    width: 600px;
}

img#img-ajuste {
    width: 550px;
}

figure {
    text-align: center;
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

figcaption {
    font-size: 1.4rem;
    font-style: italic;
    color: #666;
    margin-top: 1.2rem;
    max-width: 85%;
    line-height: 1.5;
    text-align: center;
}

/* Tabelas */
table {
    border-collapse: collapse;
    margin: 2rem 0;
    width: 100%;
    background-color: #ffffff;
    font-size: 1.4rem;
    border: 1px solid #a2a9b1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

caption {
    font-weight: bold;
    padding: 1.2rem;
    background-color: #f1f7ff;
    border: 1px solid #a2a9b1;
    border-bottom: none;
    color: #202122;
}

th {
    background-color: #e8f0f8;
    font-weight: 600;
    text-align: left;
    padding: 1.2rem;
    border: 1px solid #a2a9b1;
    color: #202122;
}

td {
    padding: 1.2rem;
    border: 1px solid #a2a9b1;
    vertical-align: top;
    color: #202122;
    background-color: #ffffff;
}

tr:nth-child(even) {
    background-color: #f8fbff;
}

tr:hover {
    background-color: #e9f1ff;
}

/* Footer */
.footer {
    min-height: 10rem;
    background-color: #f1f1f1;
    padding: 4rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

/* Media Queries */
@media (max-width: 1024px) {
    .content {
        grid-template-areas:
            'sidebar main main'
            'anchors main main';
        grid-template-columns: minmax(0, 25rem) 1fr 1fr;
    }

    .anchors {
        position: sticky;
        top: calc(50vh + 2rem);
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .content {
        grid-template-areas:
            'sidebar main'
            'anchors main';
        grid-template-columns: minmax(0, 20rem) 1fr;
    }

    .bar ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .content {
        grid-template-areas:
            'main'
            'sidebar'
            'anchors';
        grid-template-columns: 1fr;
    }

    .sidebar,
    .anchors {
        position: static;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem; /* Ajusta o tamanho do título principal */
    }

    h2 {
        font-size: 2rem; /* Ajusta o tamanho dos subtítulos */
    }

    h3 {
        font-size: 1.5rem; /* Ajusta o tamanho dos subtítulos menores */
    }

    .bar ul {
        flex-direction: column; /* Muda a direção da lista de navegação para coluna */
        align-items: center; /* Centraliza os itens */
    }

    .bar ul li {
        margin-bottom: 1rem; /* Adiciona espaçamento entre os itens */
    }

    .footer {
        font-size: 10px; /* Ajusta o tamanho da fonte do rodapé */
    }
}

/* Estilização para a chamada da próxima página */
.next-page {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
}

.next-page a {
    font-size: 1.6rem;
    color: #ffffff;
    background-color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.next-page a:hover {
    background-color: #2563eb;
}

.footer {
    font-size: 12px;
    text-align: left;
    padding: 2.5rem 2.5rem 1.5rem 5.5rem;
}

.footer-info,
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-list {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-list li {
    margin-bottom: 0; /* Remove o espaçamento vertical desnecessário */
}
