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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

/* Header Corporativo */
.corporate-header {
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-section:hover {
    opacity: 0.85;
}

.logo-section img {
    height: 55px;
    width: auto;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Main Nav Container */
.main-nav {
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Forçar visibilidade do botão em mobile */
@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Animação para overlay */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Seção Órgãos Sociais */
.orgaos-section {
    padding: 2rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.section-intro h2 {
    font-size: 2rem;
    color: #791F53;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-intro p {
    font-size: 0.95rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.orgaos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem 2rem;
    margin-top: 1rem;
    justify-items: center;
}

.orgao-card {
    text-align: center;
    transition: all 0.3s ease;
    max-width: 200px;
}

.orgao-card:hover {
    transform: translateY(-8px);
}

.orgao-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.orgao-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #791F53;
    box-shadow: 0 4px 20px rgba(121, 31, 83, 0.25);
    transition: all 0.3s;
}

.orgao-card:hover img {
    border-color: #006239;
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 98, 57, 0.35);
}

.orgao-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    border: 3px solid white;
}

.orgao-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.orgao-card .cargo {
    color: #791F53;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.3rem;
}

.orgao-card .curso {
    color: #666;
    font-size: 0.8rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.btn-bio {
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.8rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-bio:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 31, 83, 0.3);
}

.orgao-social-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin: 0.8rem 0;
}

.orgao-social-links a {
    width: 36px;
    height: 36px;
    background: rgba(121, 31, 83, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #791F53;
    text-decoration: none;
    transition: all 0.3s;
}

.orgao-social-links a:hover {
    background: #791F53;
    color: white;
    transform: translateY(-2px);
}

.orgao-responsibilities {
    text-align: left;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.orgao-responsibilities h4 {
    font-size: 0.85rem;
    color: #791F53;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.orgao-responsibilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.orgao-responsibilities li {
    font-size: 0.8rem;
    color: #666;
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.orgao-responsibilities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #006239;
    font-weight: bold;
}

/* Footer Corporativo */
.corporate-footer {
    background: #2c3e50;
    color: white;
    padding: 2.5rem 2rem 1.5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: white;
    color: #791F53;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #791F53;
}

#modalBody {
    padding: 2rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #791F53;
    margin-bottom: 1rem;
}

.modal-name {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.modal-cargo {
    color: #791F53;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-curso {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.modal-section {
    margin: 1.5rem 0;
}

.modal-section h3 {
    color: #791F53;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #791F53;
    padding-bottom: 0.5rem;
}

.modal-section p {
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.modal-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #006239;
    font-weight: bold;
}

.modal-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-contact a {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #791F53 0%, #006239 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 31, 83, 0.3);
}

/* Organograma */
.organograma-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.organograma-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #791F53;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.organograma-section .section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.organograma {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.org-connector {
    height: 40px;
    width: 2px;
    background: linear-gradient(to bottom, #791F53, #006239);
    margin: 0 auto;
    position: relative;
}

.org-connector::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #006239;
}

.org-node {
    background: white;
    border: 2px solid #791F53;
    border-radius: 12px;
    padding: 1rem;
    min-width: 180px;
    max-width: 200px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.org-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(121, 31, 83, 0.3);
    border-color: #006239;
}

.org-node-photo {
    margin-bottom: 0.8rem;
}

.org-node-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #791F53;
}

.org-node:hover .org-node-photo img {
    border-color: #006239;
}

.org-node-info h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.org-node-info span {
    font-size: 0.8rem;
    color: #791F53;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-level-1 .org-node {
    border-width: 3px;
    background: linear-gradient(135deg, rgba(121, 31, 83, 0.05) 0%, rgba(0, 98, 57, 0.05) 100%);
}

.org-level-1 .org-node-photo img {
    width: 100px;
    height: 100px;
    border-width: 4px;
}

/* Responsivo */
@media (max-width: 968px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    /* ESCONDER MENU DESKTOP - O menu só aparece quando ativo (mobile) */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: linear-gradient(135deg, #791F53 0%, #006239 100%);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 1001;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Esconder menu desktop normal - não mostrar no header */
    .header-container .main-nav:not(.active) {
        display: none;
    }
    
    /* Mostrar botão hamburger - FORÇAR VISIBILIDADE com máxima especificidade */
    .header-container .mobile-menu-toggle,
    .corporate-header .mobile-menu-toggle,
    button.mobile-menu-toggle,
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1003 !important;
        position: relative !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Garantir que os traços apareçam */
    .mobile-menu-toggle span {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: white !important;
    }
    
    /* Mostrar menu mobile quando ativo */
    .main-nav.active {
        right: 0 !important;
        display: block !important;
    }
    
    /* Mostrar menu quando ativo */
    .main-nav.active .nav-menu,
    .main-nav .nav-menu {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        padding: 5rem 1.5rem 2rem;
        height: auto;
        min-height: 100%;
        align-items: flex-start;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
        width: 100%;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        animation: fadeIn 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    .corporate-header {
        z-index: 1002;
    }
    
    .orgaos-section {
        padding: 1.5rem 1rem 2.5rem;
    }
    
    .section-intro h2 {
        font-size: 1.8rem;
    }
    
    .orgaos-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem 1.5rem;
    }
    
    .orgao-card img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 600px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .logo-section img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Garantir que o botão apareça */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .main-nav {
        width: 280px;
        max-width: 85vw;
    }
    
    .nav-menu {
        padding: 4.5rem 1.2rem 1.5rem;
    }
    
    .orgaos-section {
        padding: 1.5rem 1rem 2rem;
    }
    
    .section-intro {
        margin-bottom: 1.5rem;
    }
    
    .section-intro h2 {
        font-size: 1.6rem;
    }
    
    .section-intro p {
        font-size: 0.9rem;
    }
    
    .orgaos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    
    .orgao-card img {
        width: 110px;
        height: 110px;
    }
    
    .orgao-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    
    .orgao-card h3 {
        font-size: 1.1rem;
    }
    
    .orgao-card .cargo {
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-photo {
        width: 120px;
        height: 120px;
    }
    
    .modal-name {
        font-size: 1.5rem;
    }
    
    .modal-contact {
        flex-direction: column;
    }
    
    .modal-contact a {
        width: 100%;
        justify-content: center;
    }
    
    .organograma {
        padding: 1rem;
    }
    
    .org-level {
        gap: 1rem;
    }
    
    .org-node {
        min-width: 150px;
        max-width: 170px;
        padding: 0.8rem;
    }
    
    .org-node-photo img {
        width: 70px;
        height: 70px;
    }
    
    .org-level-1 .org-node-photo img {
        width: 85px;
        height: 85px;
    }
    
    .org-node-info h4 {
        font-size: 0.9rem;
    }
    
    .org-node-info span {
        font-size: 0.75rem;
    }
}
