/* ==========================================
   CRYPTOEXCEL — HOME SECTION 6
   Versione con CTA allineata al contenitore
   ========================================== */

.ce-s6 {
    --navy: #123B78;
    --blue: #0879E8;
    --body: #28456F;
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 68px 20px 76px;
    color: var(--navy);
    font-family: Catamaran, Arial, sans-serif;
    background: transparent;
}

.ce-s6::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #ffffff;
    pointer-events: none;
}

.ce-s6,
.ce-s6 *,
.ce-s6 *::before,
.ce-s6 *::after {
    box-sizing: border-box;
}

.ce-s6 .ce-s6__inner {
    max-width: 1100px;
    width: 100%;
    margin: auto;
}

/* ==========================================
   INTRODUZIONE
   ========================================== */

.ce-s6 .ce-s6__intro {
    text-align: center;
    max-width: 960px;
    margin: 0 auto 48px;
}

.ce-s6 .ce-s6__eyebrow {
    display: inline-block;
    background: #e3eef9;
    color: #0755b5;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .11em;
    line-height: 1.3;
}

.ce-s6 h2.ce-s6__title {
    font: 800 clamp(32px, 3.5vw, 44px)/1.12 Catamaran, Arial, sans-serif;
    letter-spacing: -.025em;
    color: var(--navy);
    margin: 18px 0 17px;
    padding: 0;
}

.ce-s6 .ce-s6__title span {
    display: block;
    color: var(--blue);
}

.ce-s6 p.ce-s6__lead {
    font: 400 20px/1.36 Catamaran, Arial, sans-serif;
    color: var(--body);
    margin: 0 auto;
    padding: 0;
    max-width: 950px;
}

.ce-s6 .ce-s6__brand {
    font-weight: 800;
    white-space: nowrap;
}

.ce-s6 .ce-s6__brand-first {
    color: var(--navy);
}

.ce-s6 .ce-s6__brand-last {
    color: var(--blue);
}

/* ==========================================
   QUATTRO COLONNE
   ========================================== */

.ce-s6 .ce-s6__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 64px;
    align-items: stretch;
}

.ce-s6 .ce-s6__card {
    min-width: 0;
    padding: 0 23px 0 25px;
    transition: transform .24s ease;
    transform-origin: center center;
    position: relative;
}

.ce-s6 .ce-s6__card:first-child {
    padding-left: 0;
}

.ce-s6 .ce-s6__card:last-child {
    padding-right: 0;
}

.ce-s6 .ce-s6__card + .ce-s6__card {
    border-left: 1px solid #d4e8fa;
}

@media (hover: hover) and (pointer: fine) {
    .ce-s6 .ce-s6__card:hover {
        transform: scale(1.035);
        z-index: 1;
    }
}

.ce-s6 .ce-s6__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e0f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 12px;
}

.ce-s6 .ce-s6__icon svg {
    width: 36px;
    height: 36px;
}

.ce-s6 .ce-s6__card h3 {
    font: 800 23px/1.13 Catamaran, Arial, sans-serif;
    letter-spacing: -.018em;
    color: var(--navy);
    margin: 0 0 12px;
    padding: 0;
}

.ce-s6 .ce-s6__card p {
    font: 400 18px/1.36 Catamaran, Arial, sans-serif;
    color: var(--body);
    margin: 0;
    padding: 0;
}

/* ==========================================
   CTA FINALE — LARGHEZZA CORRETTA
   ========================================== */

.ce-s6 .ce-s6__cta {
    width: 100%;
    max-width: 1100px;
    position: relative;
    left: auto;
    transform: none;
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    background: #e1f1ff;
    border: 1px solid #cfe8ff;
    border-radius: 24px;
    padding: 18px 44px 20px;
    gap: 0;
}

.ce-s6 .ce-s6__cta-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 0 34px;
}

.ce-s6 .ce-s6__cta-panel:first-child {
    padding-left: 0;
}

.ce-s6 .ce-s6__cta-panel + .ce-s6__cta-panel {
    border-left: 1px solid #99d1ff;
    padding-left: 64px;
    padding-right: 0;
}

.ce-s6 .ce-s6__cta h3 {
    font: 800 clamp(23px, 2.2vw, 29px)/1.16 Catamaran, Arial, sans-serif;
    letter-spacing: -.015em;
    color: var(--navy);
    margin: 0 0 5px;
    padding: 0;
}

.ce-s6 .ce-s6__cta p {
    font: 400 17px/1.3 Catamaran, Arial, sans-serif;
    color: var(--body);
    margin: 0 0 15px;
    padding: 0;
}

/* ==========================================
   PULSANTI
   ========================================== */

.ce-s6 .ce-s6__button {
    min-height: 47px;
    min-width: 230px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 9px 24px;
    margin-top: auto;
    border-radius: 16px;
    font: 800 20px/1.2 Catamaran, Arial, sans-serif;
    text-decoration: none !important;
    transition:
        background-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.ce-s6 .ce-s6__button--primary {
    background: #0879e8;
    color: #fff !important;
    border: 2px solid #0879e8;
}

.ce-s6 .ce-s6__button--primary:hover {
    background: #0064ca;
    color: #fff !important;
}

.ce-s6 .ce-s6__button--outline {
    background: transparent;
    color: #0879e8 !important;
    border: 2px solid #0879e8;
}

.ce-s6 .ce-s6__button--outline:hover {
    background: #0879e8;
    color: #fff !important;
}

.ce-s6 .ce-s6__button svg {
    width: 22px;
    height: 22px;
}

.ce-s6 .ce-s6__button:focus-visible {
    outline: 3px solid #123b78;
    outline-offset: 4px;
}

/* ==========================================
   RESPONSIVE — TABLET
   ========================================== */

@media (max-width: 1000px) {

    .ce-s6 .ce-s6__card {
        padding: 0 15px;
    }

    .ce-s6 .ce-s6__card h3 {
        font-size: 21px;
    }

    .ce-s6 .ce-s6__card p {
        font-size: 17px;
    }

    .ce-s6 .ce-s6__cta {
        width: 100%;
        padding: 22px 25px;
    }

    .ce-s6 .ce-s6__cta-panel + .ce-s6__cta-panel {
        padding-left: 28px;
    }

    .ce-s6 .ce-s6__cta-panel {
        padding-right: 25px;
    }
}

/* ==========================================
   RESPONSIVE — MOBILE
   ========================================== */

@media (max-width: 760px) {

    .ce-s6 {
        padding: 43px 17px 52px;
    }

    .ce-s6 .ce-s6__intro {
        margin-bottom: 34px;
    }

    .ce-s6 h2.ce-s6__title {
        font-size: clamp(29px, 6vw, 37px);
    }

    .ce-s6 p.ce-s6__lead {
        font-size: 18px;
        line-height: 1.45;
    }

    .ce-s6 .ce-s6__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
        margin-bottom: 52px;
    }

    .ce-s6 .ce-s6__card,
    .ce-s6 .ce-s6__card:first-child,
    .ce-s6 .ce-s6__card:last-child {
        padding: 0 18px;
    }

    .ce-s6 .ce-s6__card:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .ce-s6 .ce-s6__card:nth-child(even) {
        border-left: 1px solid #d4e8fa;
        padding-right: 0;
    }

    .ce-s6 .ce-s6__cta {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ce-s6 .ce-s6__cta-panel,
    .ce-s6 .ce-s6__cta-panel:first-child {
        padding: 0;
    }

    .ce-s6 .ce-s6__cta-panel + .ce-s6__cta-panel {
        border-left: 0;
        border-top: 1px solid #99d1ff;
        padding: 23px 0 0;
    }

    .ce-s6 .ce-s6__button {
        margin-top: 6px;
    }
}

/* ==========================================
   RESPONSIVE — SMARTPHONE
   ========================================== */

@media (max-width: 480px) {

    .ce-s6 .ce-s6__cards {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .ce-s6 .ce-s6__card,
    .ce-s6 .ce-s6__card:first-child,
    .ce-s6 .ce-s6__card:last-child,
    .ce-s6 .ce-s6__card:nth-child(even) {
        border-left: 0;
        padding: 21px 0;
    }

    .ce-s6 .ce-s6__card + .ce-s6__card {
        border-top: 1px solid #d4e8fa;
    }

    .ce-s6 .ce-s6__icon {
        width: 58px;
        height: 58px;
    }

    .ce-s6 .ce-s6__card h3 {
        font-size: 23px;
    }

    .ce-s6 .ce-s6__card p {
        font-size: 17px;
        line-height: 1.46;
    }

    .ce-s6 .ce-s6__cta {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .ce-s6 .ce-s6__cta h3 {
        font-size: 24px;
    }

    .ce-s6 .ce-s6__cta p {
        font-size: 17px;
    }

    .ce-s6 .ce-s6__button {
        width: 100%;
        min-width: 0;
        font-size: 19px;
    }
}

/* ==========================================
   ACCESSIBILITÀ — RIDUZIONE ANIMAZIONI
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .ce-s6 .ce-s6__card,
    .ce-s6 .ce-s6__button {
        transition: none !important;
    }

    .ce-s6 .ce-s6__card:hover {
        transform: none !important;
    }
}