/* Redes da marca: blocos (página /T e /N) e linha de ícones (home).
   Ícones das marcas: Simple Icons (CC0). */

.rede-chip {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
}

.rede-chip svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.rede-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.rede-tiktok,
.rede-x,
.rede-threads { background: #000; }
.rede-youtube { background: #ff0000; }
.rede-facebook { background: #0866ff; }
.rede-bluesky { background: #1185fe; }

/* ----- Blocos: título, grupos e grade ----- */
.redes {
    container-type: inline-size;
}

.redes-titulo {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--redes-tinta, #1b2a6b);
}

.redes-grupo {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--redes-tinta-2, #4a5482);
}

.redes-blocos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--colunas, 4), minmax(0, 1fr));
    gap: 8px;
}

.rede-bloco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-height: 78px;
    padding: 12px 4px 10px;
    box-sizing: border-box;
    border-radius: 14px;
    background: var(--redes-fundo, #fff);
    border: 1px solid var(--redes-borda, rgba(27, 42, 107, .16));
    color: var(--redes-tinta, #1b2a6b);
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* 4 blocos pedem pelo menos 80px cada; abaixo disso o grupo vira 2x2 */
@container (max-width: 343px) {
    .redes-blocos--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rede-bloco:hover {
    border-color: var(--redes-tinta, #1b2a6b);
}

.rede-bloco:focus-visible,
.rede-icone:focus-visible {
    outline: 3px solid var(--redes-foco, #1b2a6b);
    outline-offset: 2px;
}

/* ----- Linha de ícones (home, sobre o degradê) ----- */
.redes-linha {
    margin: 14px 0 12px;
}

.redes-linha-titulo {
    margin: 0 0 8px;
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.redes-linha-icones {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--itens, 7), minmax(0, 56px));
    justify-content: center;
    gap: 6px;
}

.rede-icone {
    display: grid;
    place-items: center;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    --redes-foco: #fff;
}

.rede-icone:hover {
    background: rgba(255, 255, 255, .3);
}

.rede-icone .rede-chip {
    width: 28px;
    height: 28px;
}

.rede-icone .rede-chip svg {
    width: 15px;
    height: 15px;
}
