/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CONFIGURAÇÕES GERAIS */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f6f8;
    color: #222;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 2rem 0;
}

/* TOPO */
.topo {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0d6efd, #6ea8fe);
    color: white;
}

.topo h1 {
    font-size: clamp(1.8rem, 4vw, 3rem); /* (min, padrão, max)*/
    margin-bottom: 0.5rem;
}

.topo p {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

/* MENU */
.menu {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    background-color: #212529;
    padding: 1rem;
    flex-wrap: wrap;
}

.menu::before {
    content: "☰";
    position: absolute;
    left: 1rem;
    transform: translateY(-50%);
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    background-color: #343a40;
    border-radius: 8px;
    transition: 0.3s;
}

.menu a:hover {
    background-color: #0d6efd;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.hero-texto,
.hero-imagem {
    width: 100%;
}

.hero h2 {
    margin-bottom: 1rem;
}

.hero p {
    margin-bottom: 1rem;
}

.hero button {
    padding: 0.8rem 1.2rem;
    border: none;
    background-color: #0d6efd;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.hero button:hover {
    background-color: #0b5ed7;
}

/* CARDS */
.cards-section {
    margin-bottom: 3rem;
}

.cards-section h2,
.grid-section h2,
.tabela-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
}

.card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.card h3 {
    margin-bottom: 0.8rem;
    color: #0d6efd;
}

/* GRID */
.grid-section {
    margin-bottom: 3rem;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.box {
    background: linear-gradient(135deg, #198754, #71dd8a);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    padding: 3rem;
    text-align: center;
    border-radius: 12px;
}

/* TABELA */
.tabela-section {
    margin-bottom: 3rem;
}

.tabela-wrapper {
    overflow-x: auto;
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    min-width: 700px;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

th {
    background-color: #0d6efd;
    color: white;
}

/* RODAPÉ */
.rodape {
    text-align: center;
    padding: 1.5rem;
    background-color: #212529;
    color: white;
}

/*        MEDIA QUERIES      */

/* Desktop */
@media (max-width: 1200px) {
    .grid-galeria {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .cards,
    .grid-galeria {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .menu {
        justify-content: space-between;
    }

    .menu::before {
        display: block;
    }

    .menu a {
        display: none;
        width: 100%;
        margin-top: 0.5rem;
    }

    .menu:hover a,
    .menu:focus-within a {
        display: block;
    }
}

/* Celulares */
@media (max-width: 480px) {
    .menu {
        flex-direction: column;
        align-items: center;
        padding: 0.8rem;
    }

    .hero {
        padding: 1rem;
    }

    .box {
        padding: 1.5rem;
        font-size: 1.3rem;
    }
}