* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-escuro: #0D2C54;
    --branco: #FFFFFF;
    --cinza-claro: #F5F5F5;
    --dourado: #c92c27;
    --cinza-texto: #333333;
    --cinza-medio: #666666;
}

a{
    text-decoration: none;
}

::-webkit-scrollbar{
    width: 10px;
}


::-webkit-scrollbar-thumb{
    background-color: var(--dourado);
    
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--cinza-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: var(--azul-escuro);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter:saturate(1.2) blur(10px);
    border-bottom:1px solid rgba(255,255,255,.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1929339a; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo {
    color: var(--branco);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

/* Menu Desktop (escondido no mobile) */
.nav-menu {
    display: none;
}

/* Botão Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--branco);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animação do hamburger quando ativo */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--dourado);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--dourado);
}

/* Menu Mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 44, 84, 0.15);
    backdrop-filter: blur(15px);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 80px 15px 20px 15px;
    max-width: 400px;
    margin: 0 auto;
}

.menu-section {
    margin-bottom: 18px;
}

.menu-section-title {
    color: var(--dourado);
    font-size: 1.00rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    margin: 4px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.mobile-menu.active .mobile-menu-list li {
    opacity: 1;
    transform: translateY(0);
}

/* Animação sequencial para os itens principais */
.mobile-menu.active .menu-section:nth-child(1) .mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .menu-section:nth-child(1) .mobile-menu-list li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .menu-section:nth-child(1) .mobile-menu-list li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .menu-section:nth-child(1) .mobile-menu-list li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .menu-section:nth-child(1) .mobile-menu-list li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .menu-section:nth-child(1) .mobile-menu-list li:nth-child(6) { transition-delay: 0.35s; }

/* Links principais (maiores) */
.mobile-menu-list a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 1.20rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

/* Links secundários (menores) */
.mobile-menu-list.secondary a {
    font-size: 0.8rem;
    font-weight: 400;
    padding: 6px 12px;
    color: rgba(204, 174, 174, 0.85);
}

.mobile-menu-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--dourado), #e74c3c);
    border-radius: 8px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    z-index: -1;
}

.mobile-menu-list a:hover::before {
    width: 100%;
}

.mobile-menu-list a:hover {
    color: var(--branco);
    transform: translateX(5px);
}

.mobile-menu-list.secondary a:hover {
    color: var(--branco);
}

/* Botão de voltar */
.back-button {
    position: fixed;
    top: 25px;
    left: 25px;
    background: rgba(13, 44, 84, 0.8);
    color: var(--branco);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
}

.mobile-menu.active .back-button {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.back-button:hover {
    background: var(--dourado);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(201, 44, 39, 0.4);
}

/* Botão de contato especial */
.contact-btn {
    background: linear-gradient(135deg, var(--dourado), #e74c3c);
    padding: 15px 30px !important;
    border-radius: 25px !important;
    margin-top: 20px;
    box-shadow: 0 8px 20px rgba(201, 44, 39, 0.3);
    text-align: center;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    color: var(--branco) !important;
    text-decoration: none;
    display: block;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(201, 44, 39, 0.5);
}

.contact-btn:hover::before {
    display: none;
}

/* Overlay para blur do fundo */
body.menu-open {
    overflow: hidden;
}

body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsivo - Menu hamburger em todas as telas */
@media (min-width: 769px) {
    /* Mantém o hamburger visível no desktop também */
    .hamburger {
        display: flex;
    }
    
    /* Esconde o menu tradicional */
    .nav-menu {
        display: none;
    }
    
    /* Ajustes para desktop no menu mobile */
    .mobile-menu {
        width: 100%;
    }
    
    .mobile-menu-content {
        max-width: 600px;
        padding: 80px 40px 30px 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .menu-section {
        margin-bottom: 20px;
    }
    
    .mobile-menu-list.secondary a {
        font-size: 0.85rem;
    }
    
    .contact-btn {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 20px auto 0;
    }
}

/* Gallery Section */
#galeria {
    padding: 80px 0;
}

.gallery-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.category-btn {
    background: var(--branco);
    color: var(--azul-escuro);
    padding: 12px 25px;
    border: 2px solid var(--azul-escuro);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--dourado);
    border-color: var(--dourado);
    color: var(--branco);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 44, 39, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--azul-escuro), var(--dourado));
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(13, 44, 84, 0.3), rgba(201, 44, 39, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--branco);
    font-size: 3rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-content {
    padding: 25px;
}

.gallery-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--azul-escuro);
}

.gallery-date {
    color: var(--dourado);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.gallery-description {
    color: var(--cinza-medio);
    line-height: 1.6;
    font-size: 0.95rem;
}

.gallery-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--dourado);
    color: var(--branco);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}

.modal-info {
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--branco);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dourado);
}

/* Footer */
footer {
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--dourado);
    margin-bottom: 25px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--dourado);
}

.footer-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.footer-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--dourado);
    font-size: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--dourado);
    padding-left: 5px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--dourado);
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--dourado);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: transparent;
    color: var(--dourado);
    border: 2px solid var(--dourado);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--dourado);
    color: var(--azul-escuro);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(201, 44, 39, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--dourado);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--branco);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animation {
    animation: fadeInUp 0.8s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-categories {
        justify-content: center;
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .modal-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        margin: 0 10px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--branco);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .directors-grid,
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 0;
    }
}

/* Chat Assistant Widget */
.chat-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--dourado);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
    z-index: 1001;
}

.chat-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

.chat-widget {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 340px;
    max-height: 70vh;
    background: var(--branco);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.chat-widget.open {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--azul-escuro), var(--dourado));
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--branco);
    font-size: 1.1rem;
    cursor: pointer;
}

.chat-body {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    display: flex;
}

.chat-message .bubble {
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.4;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    animation: fadeInUp 0.3s ease;
}

.chat-message.bot .bubble {
    background: #f2f6fb;
    color: #132b3a;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.user .bubble {
    background: var(--dourado);
    color: var(--branco);
}

.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qa-btn {
    background: #eff3f6;
    border: 1px solid #d8e1e8;
    color: #0e2a3f;
    border-radius: 16px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.qa-btn:hover {
    background: var(--dourado);
    color: var(--branco);
    border-color: var(--dourado);
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.send-btn {
    background: var(--azul-escuro);
    color: var(--branco);
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.send-btn:hover {
    background: var(--dourado);
}

@media (max-width: 480px) {
    .chat-widget {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 88px;
        max-height: 70vh;
    }
    .chat-toggle {
        right: 12px;
        bottom: 12px;
    }
}