/* -----------------------------------------------------------------------------
   inmemorian.css
   Estilos dedicados para a aba "In Memorian"
   Inclui o título estilizado igual ao da página "Nossa História"
   -----------------------------------------------------------------------------
*/

/* Seção principal */
.memoria-section {
    padding: 3rem 1.5rem;
    background: linear-gradient(
            rgba(0, 0, 0, 0.95),
            rgba(20, 20, 20, 0.95)
        ),
        url('img/background-texture.webp');
    background-size: cover;
    color: #fff;
}

/* Título no mesmo padrão de .history-section h1 (historia.css) */
.memoria-section h1 {
    font-family: "Alfa Slab One", cursive;
    color: white;
    font-size: 3.0rem;
    text-align: center;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 10px rgba(179, 179, 177, 0.3);
}

/* Texto introdutório (opcional) */
.memoria-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #ccc;
}

/* Galeria */
.memoria-gallery {
    margin-top: 2rem;
}

/* Cada card do memorial */
.memoria-card {
    background: rgba(30, 30, 30, 0.85);
    border: 4px dotted #fff;      /* Borda pontilhada */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
    /* Não altera a borda nem o filtro da imagem */
}

/* Imagem dentro do card */
.memoria-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Altura maior para a imagem */
    background-color: #191919;
    overflow: hidden;
}

.memoria-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;      /* Mostra a imagem completa */
    object-position: center;
    filter: grayscale(1);     /* Sempre preto e branco */
    transition: transform 0.3s ease;
}

/* Remova o filtro do hover */
.memoria-card:hover .memoria-image img {
    filter: grayscale(1);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Conteúdo de texto dentro do card */
.memoria-content {
    padding: 1rem;
    text-align: center;
}

.memoria-name {
    font-family: 'Alfa Slab One', cursive;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.memoria-details {
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    color: #aaa;
    margin: 0;
}

/* Responsividade extra */
@media (max-width: 768px) {
    .memoria-name {
        font-size: 1.2rem;
    }
    .memoria-details {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .memoria-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Se quiser manter fundo idêntico ao footer (opcional) */
.memoria-section + .footer {
    background-color: #000;
}
