/* =========================================================
   CryptoTasse - Come funziona
   ========================================================= */

.ct-cf {
    --ct-primary: #034331;
    --ct-secondary: #065F46;
    --ct-accent: #10B981;
    --ct-bg: #FAFDFB;
    --ct-soft: #F1F8F5;
    --ct-border: #DDE7E3;
    --ct-white: #FFFFFF;
    --ct-body: #101C18;

    width: 100%;

    background: var(--ct-bg);
    color: var(--ct-primary);

    padding: 48px 24px 80px;

    box-sizing: border-box;
}

.ct-cf *,
.ct-cf *::before,
.ct-cf *::after {
    box-sizing: border-box;
}

.ct-cf__inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}


/* =========================================================
   Header
   ========================================================= */

.ct-cf__header {
    max-width: 850px;

    margin: 0 auto 44px;

    text-align: center;
}

.ct-cf__eyebrow {
    display: inline-block;

    padding: 7px 18px;
    margin-bottom: 12px;

    background: var(--ct-soft);

    border-radius: 999px;

    color: var(--ct-secondary);

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.ct-cf .ct-cf__title {
    margin: 0 0 16px;

    color: var(--ct-primary);

    font-size: 48px !important;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.ct-cf__intro {
    margin: 0;

    color: #14241F;

    font-size: 20px;
    line-height: 1.55;
}

.ct-cf__promise {
    position: relative;

    display: inline-block;

    margin: 6px 0 0;
    padding-bottom: 13px;

    color: var(--ct-accent);

    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
}

.ct-cf__promise::after {
    content: "";

    position: absolute;

    width: 155px;
    height: 5px;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%) rotate(-1deg);

    background: var(--ct-secondary);

    border-radius: 60% 40% 55% 45%;

    clip-path: polygon(
        0 45%,
        8% 28%,
        22% 35%,
        40% 18%,
        58% 30%,
        76% 22%,
        91% 38%,
        100% 55%,
        91% 70%,
        72% 63%,
        54% 78%,
        34% 65%,
        16% 74%,
        0 60%
    );
}


/* =========================================================
   Steps
   ========================================================= */

.ct-cf__steps {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        80px
        minmax(0, 1fr)
        80px
        minmax(0, 1fr);

    align-items: stretch;

    gap: 0;

    max-width: 1400px;

    margin: 0 auto 38px;
}

.ct-cf__step {
    position: relative;

    min-height: 355px;

    padding: 48px 34px 26px;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid var(--ct-border);
    border-radius: 18px;

    text-align: center;
}

.ct-cf__number {
    position: absolute;

    top: -25px;
    left: 50%;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateX(-50%);

    background: linear-gradient(
        145deg,
        var(--ct-secondary),
        var(--ct-accent)
    );

    border-radius: 50%;

    color: #FFFFFF;

    font-size: 24px;
    font-weight: 800;
}

.ct-cf__icon {
    width: 105px;
    height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 17px;

    color: #07834F;
}

.ct-cf__icon svg {
    display: block;

    width: 100%;
    height: 100%;
}

.ct-cf__step h3 {
    margin: 0 0 12px;

    color: var(--ct-primary);

    font-size: 23px;
    font-weight: 800;
    line-height: 1.25;
}

.ct-cf__step p {
    margin: 0;

    color: var(--ct-body);

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   Frecce
   ========================================================= */

.ct-cf__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    align-self: center;

    color: #07834F;
}

.ct-cf__arrow span {
    width: 42px;

    border-top: 2px dashed var(--ct-accent);
}

.ct-cf__arrow svg {
    width: 23px;
    height: 23px;

    margin-left: -3px;
}


/* =========================================================
   Benefits
   ========================================================= */

.ct-cf__benefits {
    display: grid;

    grid-template-columns: repeat(5, minmax(0, 1fr));

    max-width: 1400px;

    margin: 0 auto 24px;
    padding: 28px 20px;

    background: var(--ct-soft);

    border-radius: 18px;
}

.ct-cf__benefit {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    min-width: 0;

    padding: 0 20px;

    border-right: 1px solid var(--ct-border);
}

.ct-cf__benefit:last-child {
    border-right: 0;
}

.ct-cf__benefit-symbol {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--ct-secondary);

    border: 2px solid var(--ct-accent);
    border-radius: 50%;
}

.ct-cf__benefit-symbol svg {
    display: block;

    width: 28px;
    height: 28px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ct-cf__benefit h3 {
    margin: 1px 0 6px;

    color: var(--ct-primary);

    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.ct-cf__benefit p {
    margin: 0;

    color: #25332E;

    font-size: 14px;
    line-height: 1.5;
}

.ct-cf__benefit--highlight h3 {
    color: var(--ct-secondary);
}


/* =========================================================
   CTA
   ========================================================= */

.ct-cf__cta {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        minmax(430px, 500px);

    align-items: center;

    gap: 26px;

    max-width: 1400px;

    margin: 0 auto;
    padding: 26px 32px;

    background: var(--ct-soft);

    border-radius: 18px;
}

.ct-cf__cta-icon {
    width: 82px;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;

    background: var(--ct-white);

    border: 1px solid var(--ct-border);
    border-radius: 50%;

    color: var(--ct-secondary);
}

.ct-cf__cta-icon svg {
    width: 100%;
    height: 100%;
}

.ct-cf__cta-copy h3 {
    margin: 0 0 7px;

    color: var(--ct-primary);

    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.ct-cf__cta-copy p {
    margin: 0;

    color: #24322D;

    font-size: 15px;
    line-height: 1.55;
}

.ct-cf__cta-action {
    width: 100%;
    max-width: 500px;

    justify-self: end;

    text-align: center;
}

.ct-cf__button {
    width: 100%;
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    padding: 17px 28px;

    background: linear-gradient(
        135deg,
        var(--ct-secondary),
        var(--ct-accent)
    );

    border-radius: 12px;

    color: #FFFFFF !important;
    text-decoration: none !important;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;

    box-shadow: 0 7px 18px rgba(6, 95, 70, 0.12);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.ct-cf__button:hover,
.ct-cf__button:focus {
    color: #FFFFFF !important;

    transform: translateY(-2px);

    box-shadow: 0 10px 22px rgba(6, 95, 70, 0.18);
}

.ct-cf__cta-notes {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;

    gap: 16px;

    margin-top: 11px;

    color: #25332E;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.ct-cf__cta-notes span {
    white-space: nowrap;
}

.ct-cf__cta-notes span::first-letter {
    color: var(--ct-accent);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .ct-cf__steps {
        grid-template-columns:
            minmax(0, 1fr)
            45px
            minmax(0, 1fr)
            45px
            minmax(0, 1fr);
    }

    .ct-cf__step {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ct-cf__benefits {
        grid-template-columns: repeat(2, 1fr);

        gap: 0;

        padding: 12px 20px;
    }

    .ct-cf__benefit {
        padding: 20px;

        border-right: 0;
        border-bottom: 1px solid var(--ct-border);
    }

    .ct-cf__benefit:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .ct-cf__cta {
        grid-template-columns: auto 1fr;
    }

    .ct-cf__cta-action {
        grid-column: 1 / -1;

        width: 100%;
        max-width: 500px;

        justify-self: center;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .ct-cf {
        padding: 46px 18px 58px;
    }

    .ct-cf__header {
        margin-bottom: 46px;
    }

    .ct-cf__eyebrow {
        padding: 6px 14px;

        margin-bottom: 11px;

        font-size: 14px;
    }

    .ct-cf .ct-cf__title {
        margin-bottom: 15px;

        font-size: 40px !important;
        line-height: 1.08;
    }

    .ct-cf__intro {
        font-size: 17px;
        line-height: 1.5;
    }

    .ct-cf__promise {
        font-size: 21px;
    }

    .ct-cf__promise::after {
        width: 130px;
    }


    /* Steps */

    .ct-cf__steps {
        display: flex;
        flex-direction: column;

        gap: 42px;

        margin-bottom: 30px;
    }

    .ct-cf__step {
        min-height: 0;

        padding: 43px 24px 28px;
    }

    .ct-cf__arrow {
        display: none;
    }


    /* Benefits */

    .ct-cf__benefits {
        grid-template-columns: 1fr;

        padding: 8px 18px;
    }

    .ct-cf__benefit,
    .ct-cf__benefit:nth-last-child(-n+2) {
        padding: 19px 5px;

        border-right: 0;
        border-bottom: 1px solid var(--ct-border);
    }

    .ct-cf__benefit:last-child {
        border-bottom: 0;
    }


    /* CTA */

    .ct-cf__cta {
        display: flex;
        flex-direction: column;

        padding: 28px 22px;

        text-align: center;
    }

    .ct-cf__cta-copy h3 {
        font-size: 21px;
    }

    .ct-cf__cta-action {
        width: 100%;
        max-width: none;
    }

    .ct-cf__button {
        min-height: 62px;

        font-size: 17px;
    }

    .ct-cf__cta-notes {
        flex-direction: column;

        gap: 5px;

        font-size: 13px;
    }
}