:root {
    --primary-color: #c00;
    --secondary-color: #ffd700;
    --green-color: #006400;
    --dark-bg: #ffffff;
    --light-text: #111111;
    --accent: #e60000;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

header {
    background: #111;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #444;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

nav a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem;
    transition: 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

section {
    padding: 100px 20px 60px;
    max-width: 960px;
    margin: auto;
}

.divider {
    height: 4px;
    width: 240px;
    display: flex;
    margin: 20px auto;
    background: linear-gradient(to right, var(--green-color) 33.33%, var(--accent) 33.33% 66.66%, var(--secondary-color) 66.66%);
}



/* .carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: auto;
    display: block;
} */

/* #home {
    width: 100%;
    height: 100vh;
    animation: bgMove 15s ease infinite;
    height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

#home {
    width: 100%;
    height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* A imagem de fundo com transparência */
#home .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagens/fundo.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.8;
    /* controle a transparência aqui */
    z-index: 0;
}

/* Coloca o conteúdo por cima da imagem */
#home>*:not(.background) {
    position: relative;
    z-index: 1;
}

#carouselExample,
.carousel-inner,
.carousel-item {
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

@keyframes bgMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#quem-somos .carousel-inner img {
    height: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 767px) {
    #quem-somos .row {
        flex-direction: column;
    }

    .texto-quem-somos p {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    #quem-somos .carousel-inner img {
        max-height: 280px;
    }
}


#quem-somos h2,
#contato h2 {
    text-align: center;
    font-size: 2rem;
}

#quem-somos p {
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.8rem;
    margin-bottom: 1.3rem;
}

.carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel img {
    max-height: 90%;
    border-radius: 10px;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: var(--light-text);
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

@media (max-width: 700px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.menu-green::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--green-color);
}

.menu-red::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
}

.menu-yellow::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

footer#rodape {
    width: 100%;
    background: #111;
    color: #f0f0f0;
    border-top: 1px solid #444;
}

#rodape .contato {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

#rodape .contato h2 {
    margin-bottom: 1rem;
    color: #f0f0f0;
}

#rodape .contato .divider {
    background: linear-gradient(to right,
            var(--green-color) 33.33%,
            var(--accent) 33.33% 66.66%,
            var(--secondary-color) 66.66%);
    width: 240px;
    height: 4px;
    margin: 20px auto;
}

#rodape .contato .social-icons a {
    color: #f0f0f0;
    font-size: 2rem;
    margin: 0 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

#rodape .contato .social-icons a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 767px) {
    #quem-somos .row {
        flex-direction: column;
    }

    .texto-quem-somos p {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    #quem-somos .carousel-inner img {
        max-height: 280px;
    }
}

/* .bd-callout-info {
    --bd-callout-color: var(--bs-info-text-emphasis);
    --bd-callout-bg: var(--bs-info-bg-subtle);
    --bd-callout-border: var(--bs-info-border-subtle);
}
.bd-callout {
    --bs-link-color-rgb: var(--bd-callout-link);
    --bs-code-color: var(--bd-callout-code-color);
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--bd-callout-color, inherit);
    background-color: var(--bd-callout-bg, var(--bs-gray-100));
    border-left: .25rem solid var(--bd-callout-border, var(--bs-gray-300));
} */

#local {
    width: 100%;
    max-width: 100% !important;
    /* força quebra do padrão */
    margin: 0 !important;
    /* remove centralização */
    background-color: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
}

#local h2 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 1rem;
}

#local .divider {
    background: linear-gradient(to right,
            var(--green-color) 33.33%,
            var(--accent) 33.33% 66.66%,
            var(--secondary-color) 66.66%);
    width: 240px;
    height: 4px;
    margin: 20px auto;
}

.mapa-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding-top: 20px;
}

.mapa-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* Ajustáveis */
:root {
    --sponsor-gap: 40px;
    --sponsor-height: 100px;
    /* sua altura desejada */
    --sponsor-speed: 30s;
    /* velocidade do loop */
}

#patrocinadores {
    background: #fff;
    text-align: center;
}

#patrocinadores h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #111;
}

.sponsor-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.sponsor-track {
    display: flex;
    width: max-content;
    /* largura soma do conteúdo */
    animation: sponsorScroll var(--sponsor-speed) linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.sponsor-group {
    display: flex;
    gap: var(--sponsor-gap);
    align-items: center;
}

.sponsor-group:last-child {
    margin-left: var(--sponsor-gap);
    /* só entre grupos */
}

.sponsor-group img {
    height: var(--sponsor-height);
    width: auto;
    flex-shrink: 0;
    filter: grayscale(100%);
    transition: filter .3s ease, transform .3s ease;
}

.sponsor-group img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* loop contínuo: anda exatamente metade (um grupo) */
@keyframes sponsorScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile: um pouco mais compacto */
@media (max-width: 600px) {
    :root {
        --sponsor-gap: 24px;
        --sponsor-height: 70px;
        --sponsor-speed: 20s;
    }
}