/* ESTILOS GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Georgia', serif;
}

body {
    display: flex;
    margin: 0;
    min-height: 100vh;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)),
        url('../img/home/img_fundo.jpg') center center fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
}

/* Gradiente bem suave apenas para melhorar contraste */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
    z-index: -1;
}

/* MENU LATERAL */
#sidebar {
    width: 250px;
    min-height: 100vh;
    background: #40ade0; 
    background: linear-gradient(to bottom, #4893d1, #2089b2); 
    color: white;
    transition: all 0.3s;
    position: fixed;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
}

#sidebar.collapsed {
    width: 70px;
}

#sidebar.collapsed .menu-text {
    display: none;
}

.sidebar-header {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.02);
    text-align: center;
}

.menu-items {
    padding-top: 20px;
}

.menu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #FFD700;
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #FFD700;
}

.menu-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    min-width: 20px;
    color: #FFD700;
}

.menu-text {
    font-size: 1rem;
    white-space: nowrap;
}

.toggle-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #FFD700;
}

/* CONTEÚDO PRINCIPAL */
#content {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
    transition: all 0.3s;
}

#sidebar.collapsed + #content {
    margin-left: 70px;
    width: calc(100% - 70px);
}

/* ===== CABEÇALHO PRINCIPAL ===== */
.content-header {
    background: transparent !important;
    padding: 2rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
}

.content-header h1 {
    font-size: 5rem; 
    color: #FFD700;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.95); 
    margin-bottom: 0.5rem;
    font-weight: normal;
    letter-spacing: 1px; 
    line-height: 1.2; 
}

.content-header p {
    font-size: 1.1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    margin: 0;
    font-weight: bold;
}

/* ===== ABAS ===== */
.tab-content {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
    width: 100%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    line-height: 1.6;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.tab-content h2 {
    margin-bottom: 20px;
    color: #FFD700;
    padding-bottom: 10px;
    font-size: 1.6rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

/* ===== ESTILOS PARA IMAGENS ===== */
.image-container {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    max-width: 650px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.image-wrapper {
    position: relative;
    padding-top: 56.25%; /* Proporção 16:9 */
    overflow: hidden;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.03);
}

.image-caption {
    text-align: center;
    padding: 12px;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.5);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,215,0,0.2);
}

/* Para imagens portrait (retrato) */
.image-portrait .image-wrapper {
    padding-top: 125%; /* Proporção 4:5 */
}

/* Responsivo */
@media (max-width: 768px) {
    .image-container {
        max-width: 100%;
    }
    
    .image-portrait .image-wrapper {
        padding-top: 100%; /* Quadrado para mobile */
    }
}

/* ===== PROJETOS SOCIAIS ===== */
.projetos-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.ano-selector {
    margin: 20px 0 30px;
    text-align: center;
}

.ano-selector label {
    color: #FFD700;
    margin-right: 10px;
    font-size: 1.1rem;
}

.ano-selector select {
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.ano-selector select:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ano-selector select:focus {
    outline: 2px solid #FFD700;
}

.projeto-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.projeto-titulo {
    color: #FFD700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
}

.projeto-titulo i {
    font-size: 1.2rem;
}

.projeto-descricao p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.projeto-detalhes {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 3px solid #FFD700;
}

.projeto-detalhes h5 {
    color: #FFD700;
    margin: 15px 0 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.projeto-detalhes h5 i {
    font-size: 0.9rem;
}

.projeto-detalhes ul {
    padding-left: 20px;
    margin: 10px 0;
}

.projeto-detalhes li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: none;
}

.projeto-detalhes li:before {
    content: "•";
    color: #FFD700;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.projeto-significado {
    font-style: italic;
    padding: 15px;
    background: rgba(139, 69, 19, 0.1);
    border-left: 3px solid #8B4513;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
    border-radius: 0 6px 6px 0;
}

.projeto-significado i:first-child {
    color: #8B4513;
    margin-right: 5px;
}

.projeto-significado i:last-child {
    color: #8B4513;
    margin-left: 5px;
}

/* Responsivo */
@media (max-width: 768px) {
    .projeto-card {
        padding: 20px;
    }
    
    .projeto-titulo {
        font-size: 1.3rem;
    }
}

/* ===== ABA CONTATOS ===== */
#contacts.tab-content {
    padding: 40px;
}

.social-links {
    text-align: center;
    margin-bottom: 30px;
}

.social-icon {
    color: #FFD700;
    font-size: 2rem;
    margin: 0 15px;
    transition: all 0.3s;
}

.social-icon:hover {
    transform: scale(1.2);
}

.contact-form {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.contact-form h3 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
    background: rgba(26, 35, 126, 0.8);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: background 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: rgba(13, 71, 161, 0.9);
}

/* ===== ABA LOCALIZAÇÃO ===== */
#location .location-info {
    color: white;
}

#location p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.location-btn {
    display: inline-block;
    background: rgba(26, 35, 126, 0.8);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none !important;
    margin: 15px 0;
    transition: all 0.3s;
    font-size: 1rem;
    cursor: pointer;
}

.location-btn:hover {
    background: rgba(13, 71, 161, 0.9);
    text-decoration: none !important;
}

.location-btn i {
    margin-right: 10px;
}

#location .google-map {
    height: 400px;
    width: 100%;
    border: none;
    border-radius: 8px;
    margin: 20px 0;
}

/* CALENDÁRIO */
.calendar-container {
    max-width: 800px;
    margin: 0 auto;
}

.year-selector {
    margin: 20px 0;
    text-align: center;
}

.year-selector label {
    color: #FFD700;
    margin-right: 10px;
}

.year-selector select {
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.year-selector select:hover {
    background: rgba(0, 0, 0, 0.8);
}

.year-selector select option {
    background: #1a237e;
    color: white;
}

.memorial-message {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.year-selector select:focus {
    outline: 2px solid #FFD700;
}

.events-section, .weekly-activities {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.evento {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255,215,0,0.3);
}

.evento:last-child {
    border-bottom: none;
}

/* MÍDIAS */
.eventos-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.evento-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.evento-titulo {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.evento-titulo i {
    font-size: 1.2rem;
}

.evento-descricao {
    margin-bottom: 20px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

.evento-galeria {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    margin: 15px 0;
}

.evento-foto {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.evento-foto:hover {
    transform: translateY(-5px);
}

.evento-foto img {
    width: 100%;
    max-width: 280px; 
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.foto-legenda {
    background: rgba(0,0,0,0.5);
    margin: 0;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
}

.evento-video {
    margin-top: 30px;
}

.evento-video h4 {
    color: #FFD700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-descricao {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    color: rgba(255,255,255,0.7);
}

/* ===== CORREÇÕES PARA O INSTAGRAM ===== */
.instagram-promo {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 15px;
    border-radius: 8px;
}

.instagram-promo p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFD700 !important; /* Mudando para dourado */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.instagram-link:hover {
    color: white !important;
    background: rgba(255, 215, 0, 0.2);
    text-decoration: none;
    transform: translateY(-2px);
}

.instagram-link i {
    font-size: 1.2rem;
}

/* Ajuste para o layout com o novo elemento */
.gallery-card {
    display: flex;
    flex-direction: column;
}

.gallery-info {
    margin-top: auto; /* Mantém as informações no lugar */
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    #sidebar {
        width: 70px;
    }
    
    #sidebar .menu-text {
        display: none;
    }
    
    #content {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 20px;
    }
    
    .content-header h1 {
        font-size: 1.8rem;
    }
    
    .content-header p {
        font-size: 1rem;
    }
    
    .tab-content {
        padding: 25px;
    }
    
    .social-icon {
        font-size: 1.8rem;
        margin: 0 10px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .google-map {
        height: 300px;
    }
    
    .location-btn {
        padding: 12px 20px;
    }
    
    /* Ajuste para mobile - garantir boa visualização */
    body {
        background-attachment: scroll;
    }
    
    .content-header h1 {
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    }
    
    /* Responsividade específica para o Instagram */
    .instagram-promo {
        padding: 12px;
        margin: 20px 0;
    }
    
    .instagram-link {
        font-size: 0.9rem;
        padding: 8px 12px;
        white-space: normal;
        text-align: center;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .instagram-promo p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .instagram-link {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }
    
    .instagram-link i {
        font-size: 1.4rem;
    }
}