
/* --- CONFIGURAÇÕES GERAIS --- */
:root {
    --primary-color: #0a4086;
    --secondary-color: #f5b44b;
    --background-color: #f4f4f4fd;
    --text-color: #2e2e2e;
    --light-text-color: #ffffff;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.9;
}



/* --- CABEÇALHO E NAVEGAÇÃO --- */
#main-header {
    position: relative;
    padding: 18px 9px;
    background-image: url('img/cabecalho.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    opacity: 0.3;
    transition: opacity 1s ease-in-out;
}

#main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#main-header.visible {
    opacity: 1;
}

.header-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.brand-logo {
    max-width: 310px;
    height: auto;
    border-radius: 95%;
    border: 0px solid var(--light-text-color);
    opacity: 0.3;
    transition: opacity 1s ease-in-out 0.2s;
}

.brand-logo.visible {
    opacity: 1;
}

.header-text {
    font-family: var(--font-header);
    font-weight: 500;
    font-size: 1.7rem;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 1.2s ease-in-out 0.5s;
    text-align: right;
    white-space: nowrap;
}

.header-text.left {
    transform: translateX(-20px);
    transition-delay: 0.5s;
    text-align: left;
}

.header-text.right {
    transform: translateX(20px);
    transition-delay: 0.5s;
}

.header-text.visible {
    opacity: 1;
    transform: translateX(0);
}

#main-nav {
    background-color: var(--primary-color);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

#main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
}

#main-nav .nav-link {
    color: var(--light-text-color);
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 7px;
    transition: background-color 0.5s ease;
}

#main-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.075);
}

#main-nav .nav-link.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

#main-nav .nav-link i {
    margin-right: 3px;
}



/* --- SEÇÕES DE CONTEÚDO --- */
#content-area {
    padding: 25px 5%;
    margin: 0 auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.7s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    font-family: var(--font-header);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}



/* Efeitos de Animação para os elementos */
.content-section .intro-text,
.content-section .owner-info,
.content-section .section-title,
.content-section .contact-info {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.active .intro-text.visible,
.content-section.active .owner-info.visible,
.content-section.active .section-title.visible,
.content-section.active .contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}



/* --- SEÇÃO HOME --- */
.owner-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.owner-photo {
    width: 180px;
    height: 180px;
    border-radius: 43%;
    object-fit: cover;
}

.owner-name { font-weight: bold; font-size: 1.2rem; }
.owner-role { color: #0a4086; }



/* --- SEÇÃO GALERIA --- */
#image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    cursor: pointer;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}



/* Estilo para o item de vídeo (quando usar .mp4) */
.gallery-item.video-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.video-overlay i {
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.gallery-item.video-item:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.gallery-item.video-item:hover .video-overlay i {
    transform: scale(1.2);
}



/* --- SEÇÃO PARCEIROS --- */
#partners-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    text-align: center;
}

.partner-item {
    width: 210px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f4f4f4fd;
    padding: 7px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s ease;
}

.partner-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.partner-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}



/* --- SEÇÃO CONTATO --- */
.contact-info {
    text-align: center;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-info i {
    margin-right: 5px;
    color: var(--secondary-color);
}



/* --- FOOTER --- */
footer {
    background-color: #333;
    color: var(--light-text-color);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-contact a {
    color: #f5a523e3;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact i {
    margin-right: 5px;
    color: #f5a523e3;
}



/* --- OVERLAY DA GALERIA --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.full-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
}

.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
}

.prev-btn {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}



/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    .owner-info {
        flex-direction: column;
        text-align: center;
    }
    #main-nav ul {
        gap: 5px;
        flex-wrap: wrap;
    }
    #main-nav .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .header-content-wrapper {
        flex-direction: column;
        gap: 5px; 
    }

    .brand-logo {
        max-width: 200px;
    }

    .header-text {
        font-size: 1.5rem;
        text-align: center;
        white-space: normal;
        transform: none !important;
    }

    #main-nav ul {
        flex-direction: row; /* Muda de volta para linha */
        flex-wrap: wrap; /* quebrar a linha */
        justify-content: center;
        gap: 5px;
    }

    #main-nav .nav-link {
        font-size: 1rem;
        padding: 5px;
        width: 48%; /* largura para 2 a 3 itens por linha */
        text-align: center;
        margin: 5px 0; /* margem entre as linhas */
    }

    .section-title {
        font-size: 1.5rem;
    }

    .owner-info {
        flex-direction: column;
        text-align: center;
    }
    
    .owner-photo {
        width: 120px;
        height: 120px;
    }
}