﻿/* ─── Seção principal ───────────────────────────────────────── */
.redes-section {
    padding: 70px 0 50px;
    min-height: calc(100vh - 260px);
}

/* ─── Cabeçalho ─────────────────────────────────────────────── */
.redes-header {
    text-align: center;
    margin-bottom: 56px;
}

.redes-header__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #0e8645;
}

.redes-header__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #133769;
    margin: 0 0 14px;
    line-height: 1.2;
}

.redes-header__desc {
    font-size: 16px;
    color: #6b7280;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Grid ─────────────────────────────────────────────────── */
.redes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: 20px;
    justify-content: center;
}

/* ─── Card ─────────────────────────────────────────────────── */
.rede-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    background: #fff;
    border: 1.5px solid #b0bbcd47;
    border-radius: 16px;
    padding: 32px 20px 26px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    width: 100%;
    max-width: 260px;
    transition: border-color .22s, box-shadow .22s, transform .22s;
}

    .rede-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #133769 0%, #0e8645 100%);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .3s ease;
    }

    .rede-card:hover {
        border-color: #c5d4ea;
        box-shadow: 0 8px 32px rgba(19, 55, 105, .10);
        transform: translateY(-5px);
        text-decoration: none;
        color: inherit;
    }

        .rede-card:hover::after {
            transform: scaleX(1);
        }

/* ─── Logo ring ─────────────────────────────────────────────── */
.rede-logo-ring {
    width: 130px;
    height: 100px;
    border-radius: 10px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color .22s, box-shadow .22s;
}

.rede-logo-ring img {
    object-fit: contain;
}

/* ─── Placeholder avatar ────────────────────────────────────── */
.rede-placeholder-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #eef3fb;
    border: 1.5px solid #c5d4ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #133769;
    flex-shrink: 0;
}

/* ─── Nome da rede ──────────────────────────────────────────── */
.rede-nome {
    font-size: 16px;
    font-weight: 700;
    color: #133769;
    line-height: 1.35;
    word-break: break-word;
}

/* ─── Badge UF ──────────────────────────────────────────────── */
.rede-uf-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--color-secondary-pure);
    background: #eef3fb;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ─── CTA ───────────────────────────────────────────────────── */
.rede-cta {
    font-size: 13px;
    color: var(--color-primary-pure);
    font-weight: 600;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .22s, transform .22s;
    white-space: nowrap;
}

.rede-card:hover .rede-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsivo ────────────────────────────────────────────── */
@media (max-width: 600px) {
    .redes-section {
        padding: 50px 0 72px;
        min-height: calc(100vh - 180px);
    }

    .redes-header {
        margin-bottom: 40px;
    }

    .redes-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 350px));
        gap: 14px;
    }

    .rede-card {
        padding: 24px 14px 20px;
        gap: 11px;
        max-width: 350px;
    }
    .redes-header__desc {
        font-size: 15px;
    }

    .rede-placeholder-ring {
        font-size: 28px;
    }
}
