
:root {
    --azul: #0B2345;
    --laranja: #FF6714;
    --branco: #FFFFFF;
    --cinza: #F4F6F9;
    --texto: #333333;
    --largura: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: var(--branco);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 40px, var(--largura));
    margin-inline: auto;
}

section {
    padding: 70px 0;
}

section h2 {
    color: var(--azul);
    font-size: 2rem;
    margin-bottom: 30px;
}

#header {
    background: var(--azul);
    color: var(--branco);
    min-height: 90px;
}

#banner {
    min-height: 420px;
    background: var(--azul);
    color: var(--branco);
}

#categorias {
    background: var(--cinza);
}

#destaques {
    background: var(--branco);
}

#noticias {
    background: var(--cinza);
}

#footer {
    background: var(--azul);
    color: var(--branco);
    padding: 50px 0;
}

@media (max-width: 768px) {
    section {
        padding: 45px 0;
    }

    section h2 {
        font-size: 1.6rem;
    }

    #banner {
        min-height: 300px;
    }
}


.header-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    flex-direction: column;
    color: var(--branco);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo small {
    font-size: .65rem;
    letter-spacing: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: .9rem;
    font-weight: 600;
}

.main-nav > a,
.nav-dropdown > a {
    color: var(--branco);
    transition: color .2s;
}

.main-nav a:hover {
    color: var(--laranja);
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 10px 0;
    background: var(--branco);
    color: var(--azul);
    border-radius: 6px;
    box-shadow: 0 8px 20px #0002;
    z-index: 10;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 9px 15px;
}

.btn-contato {
    background: var(--laranja);
    color: var(--branco);
    padding: 11px 18px;
    border-radius: 5px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px;
    background: var(--branco);
}

@media (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
        padding-block: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
        padding: 15px 0;
    }

    .main-nav.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        padding-left: 15px;
    }

    .dropdown-content a {
        color: var(--branco);
    }

    .btn-contato {
        display: none;
    }
}


/* MODALIDADES */

#categorias {
    background: var(--cinza);
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
}

.section-tag {
    display: inline-block;
    color: var(--laranja);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p {
    color: #666;
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.modalidade-card {
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .07);
    transition: transform .25s, box-shadow .25s;
}

.modalidade-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.modalidade-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.modalidade-content {
    padding: 22px;
}

.modalidade-content h3 {
    color: var(--azul);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.modalidade-content p {
    color: #666;
    font-size: .92rem;
    margin-bottom: 18px;
    min-height: 70px;
}

.modalidade-content a {
    color: var(--laranja);
    font-weight: 700;
    font-size: .9rem;
}

.modalidade-content a:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .modalidades-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .modalidades-grid {
        grid-template-columns: 1fr;
    }

    .modalidade-card img {
        height: 210px;
    }
}


/* AJUSTE FINAL - GRID DE MODALIDADES */

#categorias .modalidades-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
}

#categorias .modalidade-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

#categorias .modalidade-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: #f4f6fa;
}

#categorias .modalidade-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

#categorias .modalidade-content p {
    min-height: 70px;
}

#categorias .modalidade-content a {
    margin-top: auto;
}

@media (max-width: 1000px) {
    #categorias .modalidades-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #categorias .modalidades-grid {
        grid-template-columns: 1fr;
    }
}

