/* ============================================= */
/* ESTILOS DA SEÇÃO INSTAGRAM                    */
/* ============================================= */

/* ============================================= */
/* ESTILOS DA SEÇÃO INSTAGRAM (COM FUNDO ESCURO) */
/* ============================================= */

.instagram-section {
    width: 100%;
    padding: 0px 0;
    text-align: center;
    background-color: #003366; /* <-- COR DE FUNDO ALTERADA */
}

.instagram-header {
    margin-bottom: 40px;
}

.instagram-logo-icon {
    font-size: 2.5rem;
    color: #ffcc00; /* <-- COR ALTERADA PARA O AMARELO DE DESTAQUE */
    margin-bottom: 10px;
}

.instagram-section .section-title {
    color: #ffffff; /* <-- COR ALTERADA PARA BRANCO */
}

.instagram-handle {
    color: #dddddd; /* <-- COR ALTERADA PARA CINZA CLARO */
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.instagram-handle:hover {
    color: #ffffff; /* Efeito hover para branco */
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 5px;
    max-width: 1300px;
    margin: 0 auto 40px auto;
}

.instagram-post {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.instagram-post:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A sobreposição agora é mais sutil, pois o fundo já é escuro */
    background-color: rgba(0, 0, 0, 0.4); 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

/* Ajuste do botão "Siga-nos" para o fundo escuro */
.instagram-section .btn-ver-todos {
    border-color: #ffcc00; /* Borda amarela */
    color: #ffcc00; /* Texto amarelo */
    background-color: transparent;
}

.instagram-section .btn-ver-todos:hover {
    background-color: #ffcc00; /* Fundo amarelo ao passar o mouse */
    color: #003366; /* Texto azul escuro ao passar o mouse */
}

.instagram-header {
    margin-bottom: 40px;
}

.instagram-logo-icon {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 10px;
}

.instagram-section .section-title {
    margin-bottom: 5px;
}

.instagram-handle {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.instagram-handle:hover {
    color: #003366;
}

.instagram-grid {
    display: grid;
    /* Grade responsiva que se ajusta ao tamanho da tela */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 5px; /* Espaçamento mínimo entre as fotos */
    max-width: 1300px;
    margin: 0 auto 40px auto; /* Centraliza a grade */
}

.instagram-post {
    position: relative; /* Necessário para a sobreposição */
    display: block;
    aspect-ratio: 1 / 1; /* Força a imagem a ser quadrada */
    overflow: hidden;
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o quadrado sem distorcer */
    transition: transform 0.4s ease;
}

.instagram-post:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.75); /* Sobreposição azul escura */
    
    /* Centraliza o ícone do Instagram */
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: #ffffff;
    font-size: 2rem;
    
    opacity: 0; /* Escondido por padrão */
    transition: opacity 0.4s ease;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1; /* Mostra a sobreposição ao passar o mouse */
}

/* Ajuste no botão "Ver todos" para aceitar um ícone */
.btn-ver-todos {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}