/* ================================================
   SEÇÃO DIFERENCIAIS — home.css (ou diferenciais.css)
   ================================================ */

.diferenciais {
    overflow: hidden;
}

.dif-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
    max-height: 580px;
}

.dif-left {
    background: #0d1117;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 3.5rem;
    gap: 1.5rem;
}

.dif-left-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dif-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffcf1f;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dif-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.dif-title em {
    font-style: normal;
    color: #ffcf1f;
}

/* ---------- Grid 2×2 de cards ---------- */
.dif-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.dif-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    position: relative;
}

.dif-card--red {
    background: #ffcf1f;
}

.dif-card--dark {
    background: #161b22;
}

.dif-card:hover {
    opacity: 1.12;
    /* filter: brightness(1.12); – Removido para compatibilidade com validadores antigos */
}

.dif-card:hover .dif-card-arrow {
    transform: translateX(4px);
}

.dif-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dif-card-icon svg {
    width: 26px;
    height: 26px;
    fill: rgba(255,255,255,0.7);
}

.dif-card--red .dif-card-icon svg {
    fill: rgba(255,255,255,0.9);
}

.dif-card-icon-dark svg {
    width: 26px;
    height: 26px;
    fill: #020202;
}

.dif-card--red .dif-card-icon-dark svg {
    fill: #020202;
}

.dif-card-body h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 0.35rem;
}

.dif-card-body p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    margin: 0;
}

.dif-card-body-dark h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #020202;
    line-height: 1.3;
    margin: 0 0 0.35rem;
}

.dif-card-body-dark p {
    font-size: 0.78rem;
    color: #020202;
    line-height: 1.55;
    margin: 0;
}

.dif-card--red .dif-card-body p {
    color: rgba(255,255,255,0.75);
}

.dif-card--red .dif-card-body-dark p {
    color: #020202;
}

.dif-card-arrow {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.4);
    align-self: center;
    transition: transform 0.2s;
    line-height: 1;
}

.dif-card-arrow-dark {
    font-size: 1.1rem;
    color: #020202;
    align-self: center;
    transition: transform 0.2s;
    line-height: 1;
}

.dif-card--red .dif-card-arrow {
    color: rgba(255,255,255,0.7);
}

/* ---------- Coluna direita: foto ---------- */
.dif-right {
    position: relative;
    overflow: hidden;
    height: 580px;
}

.dif-right-img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}

.diferenciais:hover .dif-right-img {
    transform: scale(1.04);
}

.dif-right-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,17,23,0.35) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .dif-split {
        grid-template-columns: 1fr;
    }

    .dif-right {
        height: 260px;
        order: -1;
    }

    .dif-left {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .dif-cards {
        grid-template-columns: 1fr;
    }
}