﻿/* ==========================================================
   HOME - ECOSYSTEM
   IMAGINA LO DIFERENTE
========================================================== */

.ecosystem {
    position: relative;
    padding: 110px 0 92px;
    overflow: hidden;
    background: radial-gradient(circle at 72% 20%, rgba(169, 199, 213, 0.30), transparent 32%), linear-gradient(180deg, #f8fbfc 0%, #ffffff 52%, #f8fbfc 100%);
}

.ecosystem__container {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
    gap: 68px;
    align-items: center;
}

.ecosystem__content {
    position: relative;
    z-index: 2;
}

    .ecosystem__content .erp-section-title {
        margin: 18px 0 20px;
        color: var(--erp-text);
        font-size: clamp(2.2rem, 4vw, 4.2rem);
        line-height: 1.05;
        letter-spacing: -0.055em;
    }

        .ecosystem__content .erp-section-title span {
            color: var(--erp-primary);
        }

    .ecosystem__content .erp-subtitle {
        max-width: 560px;
        margin-bottom: 34px;
    }

.ecosystem__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: grid;
    gap: 22px;
}

    .ecosystem__benefits li {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .ecosystem__benefits i {
        margin-top: 3px;
        color: var(--erp-primary);
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .ecosystem__benefits strong {
        display: block;
        margin-bottom: 3px;
        color: var(--erp-text);
        font-size: 1.02rem;
        font-weight: 850;
    }

    .ecosystem__benefits span {
        display: block;
        color: var(--erp-text-secondary);
        font-size: 0.95rem;
        line-height: 1.55;
    }

.ecosystem__visual {
    position: relative;
    z-index: 1;
}

    .ecosystem__visual::before {
        content: "";
        position: absolute;
        inset: 10% 7%;
        border-radius: 50%;
        background: rgba(75, 116, 145, 0.16);
        filter: blur(70px);
        z-index: -1;
    }

    .ecosystem__visual img {
        width: 100%;
        border-radius: var(--erp-radius-xl);
        box-shadow: var(--erp-shadow-lg);
    }

/* Highlights */

.ecosystem__highlights {
    margin-top: 92px;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(220, 231, 236, 0.9);
    border-radius: var(--erp-radius-xl);
    box-shadow: var(--erp-shadow-md);
}

.ecosystem-highlight {
    min-height: 138px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 1px solid var(--erp-border);
}

    .ecosystem-highlight:last-child {
        border-right: none;
    }

    .ecosystem-highlight i {
        color: var(--erp-primary);
        font-size: 2.3rem;
        flex-shrink: 0;
    }

    .ecosystem-highlight strong {
        display: block;
        color: var(--erp-primary);
        font-size: 1rem;
        font-weight: 850;
        line-height: 1.25;
    }

    .ecosystem-highlight span {
        display: block;
        margin-top: 7px;
        color: var(--erp-text-secondary);
        font-size: 0.9rem;
        line-height: 1.5;
    }

.ecosystem-highlight--primary {
    border: 1px solid rgba(75, 116, 145, 0.45);
    border-radius: var(--erp-radius-lg);
    background: linear-gradient(135deg, rgba(220, 234, 240, 0.65), rgba(255, 255, 255, 0.95));
}

    .ecosystem-highlight--primary strong {
        color: var(--erp-primary-dark);
    }

/* Phrase */

.ecosystem__phrase {
    width: fit-content;
    max-width: 900px;
    margin: 46px auto 0;
    padding: 22px 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(220, 231, 236, 0.9);
    border-radius: var(--erp-radius-xl);
    box-shadow: var(--erp-shadow-sm);
    color: var(--erp-text-secondary);
    text-align: center;
}

    .ecosystem__phrase i {
        color: var(--erp-primary);
        font-size: 1.6rem;
        flex-shrink: 0;
    }

    .ecosystem__phrase span {
        font-size: 1.18rem;
        font-weight: 700;
        line-height: 1.45;
    }

    .ecosystem__phrase strong {
        color: var(--erp-primary);
    }

/* Responsive */

@media (max-width: 1180px) {
    .ecosystem__container {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .ecosystem__content {
        max-width: 760px;
    }

    .ecosystem__visual {
        max-width: 920px;
        margin-inline: auto;
    }

    .ecosystem__highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .ecosystem-highlight {
        border-right: none;
        border-bottom: 1px solid var(--erp-border);
    }

        .ecosystem-highlight:nth-last-child(-n + 2) {
            border-bottom: none;
        }

    .ecosystem-highlight--primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .ecosystem {
        padding: 82px 0 72px;
    }

    .ecosystem__container {
        gap: 42px;
    }

    .ecosystem__content .erp-section-title {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .ecosystem__highlights {
        margin-top: 62px;
        padding: 18px;
        grid-template-columns: 1fr;
    }

    .ecosystem-highlight {
        min-height: auto;
        padding: 22px 12px;
        border-right: none;
        border-bottom: 1px solid var(--erp-border);
    }

        .ecosystem-highlight:nth-last-child(-n + 2) {
            border-bottom: 1px solid var(--erp-border);
        }

        .ecosystem-highlight:last-child {
            border-bottom: none;
        }

    .ecosystem__phrase {
        width: 100%;
        padding: 22px;
        align-items: flex-start;
        text-align: left;
    }
}
