.testeAA{
    background-color:red;    
}

/* Container Geral */
.parlamentares-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    padding: 0 10px;
}

.parlamentares-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid #0056b3;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* --- GRID SYSTEM --- */
.tile-parlamentares ul {
    display: grid;
    /* 5 Colunas fixas no Desktop */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 0;
    list-style: none;
}

/* --- CARTÃO (LI) --- */
.tile-parlamentares li {
    position: relative; /* Isso é essencial para o link máscara funcionar */
    height: 250px; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    background-color: #fff;
}

/* Efeito ao passar o mouse em QUALQUER lugar do cartão */
.tile-parlamentares li:hover {
    transform: translateY(-5px);
}

/* Aumenta a foto quando passa o mouse no LI */
.tile-parlamentares li:hover img {
    transform: scale(1.05);
}

/* --- O NOVO LINK MÁSCARA --- */
.link-mascara {
    position: absolute; /* Tira o link do fluxo e deixa ele flutuando */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Garante que ele fique EM CIMA da foto e do texto */
    cursor: pointer; /* Garante que apareça a mãozinha */
    background: transparent; /* Invisível */
}

/* --- CONTEÚDO VISUAL (Sem interferir no clique) --- */
.card-content {
    width: 100%;
    height: 100%;
    pointer-events: none; /* Deixa o clique passar direto para o link máscara, se precisar */
}

/* Imagem de Fundo */
.tile-parlamentares img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

/* --- OVERLAY (Alterado para ficar mais suave) --- */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* MUDANÇA AQUI: Degradê mais suave e começando mais tarde */
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.8) 100%);
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    box-sizing: border-box;
    z-index: 5;
}

/* --- TEXTOS --- */
.card-text {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.nome {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.cargo {
    display: block;
    font-size: 0.8rem;
    color: #ffda79; 
    font-weight: 600;
    text-transform: uppercase;
}

/* Etiqueta Partido */
.partido-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255,255,255,0.9);
    color: #333;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 6;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) {
    .tile-parlamentares ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .tile-parlamentares ul {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }
    .tile-parlamentares li {
        height: 200px;
    }
    .nome {
        font-size: 0.95rem;
    }
    .card-overlay {
        padding: 10px;
    }
}