* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-principal: #0047AB;
    --azul-escuro: #003380;
    --amarelo: #FFD700;
    --branco: #FFFFFF;
    --cinza-claro: #F5F5F5;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-escuro));
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    height: 100px;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--amarelo);
    color: var(--azul-principal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--branco);
    border: 2px solid var(--branco);
}

.btn-secondary:hover {
    background: var(--branco);
    color: var(--azul-principal);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    height: 90vh;
    background: linear-gradient(rgba(0, 71, 171, 0.7), rgba(0, 51, 128, 0.8)),
                url('imagens/bannerprincipal.jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--branco);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--branco), transparent);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.8rem;
    animation: fadeInUp 1s ease 0.3s both;
    color: var(--amarelo);
    font-weight: 600;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
section {
    padding: 5rem 2rem;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--azul-principal);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--amarelo);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* História */
.historia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
    padding: 0 2rem;
}

.historia-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.historia-text p {
    margin-bottom: 1.5rem;
}

.historia-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 400px;
    background: url('https://images.unsplash.com/photo-1606925797300-0b35e9d1794e?w=800') center/cover;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-escuro));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: var(--branco);
    box-shadow: 0 5px 20px rgba(0,71,171,0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--amarelo);
    margin-bottom: 0.5rem;
}

/* MVV */
.mvv-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.mvv-card {
    background: var(--branco);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 5px solid var(--amarelo);
    transition: transform 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-10px);
}

.mvv-card h3 {
    color: var(--azul-principal);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.mvv-card p {
    color: #555;
    line-height: 1.8;
}

.valores-list {
    list-style: none;
    margin-top: 1rem;
}

.valores-list li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.valores-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--amarelo);
    font-weight: bold;
}

/* Projetos */
#projetos {
    background: var(--cinza-claro);
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 2rem;
}

.projeto-card {
    background: var(--branco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.projeto-card:hover {
    transform: translateY(-10px);
}

.projeto-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.projeto-content {
    padding: 2rem;
}

.projeto-content h3 {
    color: var(--azul-principal);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.projeto-content p {
    color: #666;
    line-height: 1.6;
}

/* Projeto Destaque */
.projeto-destaque {
    margin-top: 4rem;
    padding: 0 2rem;
}

.projeto-destaque-container {
    background: var(--branco);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 5px solid var(--amarelo);
}

.projeto-destaque h2 {
    color: var(--azul-principal);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.projeto-destaque-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.projeto-destaque h3 {
    color: var(--azul-principal);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.projeto-destaque p {
    color: #333;
    line-height: 1.8;
}

.projeto-destaque-info {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-escuro));
    padding: 2rem;
    border-radius: 15px;
    color: var(--branco);
}

.projeto-destaque-info h3 {
    color: var(--amarelo);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.projeto-destaque-info p {
    color: var(--branco);
    line-height: 1.8;
}

.projeto-destaque-info strong {
    color: var(--amarelo);
}

.projeto-destaque-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .projeto-destaque-grid,
    .projeto-destaque-info-grid {
        grid-template-columns: 1fr;
    }
    
    .projeto-destaque {
        padding: 0 1rem;
    }
    
    .projeto-destaque-container {
        padding: 2rem 1.5rem;
    }
}

/* Transparência */
.transparencia-content {
    margin-top: 3rem;
    padding: 0 2rem;
}

.doc-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.doc-category {
    background: var(--branco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--azul-principal);
}

.doc-category h3 {
    color: var(--azul-principal);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.doc-list {
    list-style: none;
}

.doc-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.doc-list li:last-child {
    border-bottom: none;
}

.doc-list a {
    color: var(--azul-principal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.doc-list a:hover {
    color: var(--amarelo);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--azul-escuro), var(--azul-principal));
    color: var(--branco);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: var(--amarelo);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p, .footer-section a {
    color: var(--branco);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--amarelo);
    transition: color 0.3s ease;
}

.footer-section p:last-of-type {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: flex-start;
}

.social-link {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: var(--amarelo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-principal);
    font-weight: bold;
    transition: transform 0.3s ease;
    position: relative;
}

.social-link svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social-link:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--branco);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .historia-content,
    .mvv-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .projetos-grid {
        padding: 0 1rem;
    }

    .transparencia-content {
        padding: 0 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 3rem 1rem;
    }

    .footer-content {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.hidden {
    display: none;
}

/* Mini Modal Galeria */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-modal.hidden {
    display: none !important;
}

.gallery-modal-content {
    background: var(--branco);
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.6);
}

.gallery-close {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    font-size: 2rem;
    color: var(--azul-principal);
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color 0.3s ease;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-close:hover {
    background: var(--azul-principal);
    color: var(--branco);
}

.gallery-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--cinza-claro);
    text-align: center;
}

.gallery-header h2 {
    color: var(--azul-principal);
    font-size: 1.5rem;
    margin: 0;
}

.gallery-container {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    overflow-y: auto;
    max-height: 50vh;
}

.gallery-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.gallery-image:hover {
    transform: scale(1.05);
    opacity: 1;
    border-color: var(--amarelo);
}

.gallery-image.active {
    border-color: var(--azul-principal);
    opacity: 1;
    box-shadow: 0 3px 15px rgba(0, 71, 171, 0.3);
}

.gallery-nav {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--cinza-claro);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.gallery-btn-prev,
.gallery-btn-next {
    padding: 0.6rem 1.2rem;
    background: var(--azul-principal);
    color: var(--branco);
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn-prev:hover,
.gallery-btn-next:hover {
    background: var(--azul-escuro);
    transform: translateY(-2px);
}

.gallery-counter {
    color: var(--azul-principal);
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .gallery-modal {
        padding: 0.5rem;
    }
    
    .gallery-modal-content {
        max-height: 90vh;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
        padding: 0.8rem;
        max-height: 45vh;
    }
    
    .gallery-image {
        height: 80px;
    }
    
    .gallery-nav {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .gallery-btn-prev,
    .gallery-btn-next {
        width: 100%;
        padding: 0.7rem;
    }
    
    .gallery-header h2 {
        font-size: 1.2rem;
    }
}

/* Modal Fullscreen para imagem ampliada */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-modal.hidden {
    display: none !important;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--branco);
    cursor: pointer;
    z-index: 20001;
    line-height: 1;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-prev,
.fullscreen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--branco);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20001;
}

.fullscreen-prev {
    left: 2rem;
}

.fullscreen-next {
    right: 2rem;
}

.fullscreen-prev:hover,
.fullscreen-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--branco);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .fullscreen-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .fullscreen-prev,
    .fullscreen-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .fullscreen-prev {
        left: 1rem;
    }
    
    .fullscreen-next {
        right: 1rem;
    }
    
    .fullscreen-counter {
        bottom: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}


