.cta .button {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    min-width: unset;
    width: auto;
    display: inline-block;
}

/* Wrapper interno per uniformare larghezza e struttura degli step */
.howitworks-step-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}


/* Nuova struttura step 1: titolo su verde, descrizione sotto, immagine accanto */

.howitworks-step-img {
    flex: 0 0 320px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 2.5rem;
}

.howitworks-step-img img {
    width: 300px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}




.howitworks-step-desc {
    font-size: 1.08rem;
    color: #222;
    border-radius: 0 0 1.2rem 1.2rem;
    padding: 0.7rem 1.2rem 0.7rem 1.2rem;
    box-shadow: 0 2px 16px #b6d44e11;
    margin-bottom: 0;
    max-width: 520px;
    line-height: 1.4;
}

.howitworks-step-title-right {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: block !important;
    text-align: right !important;
    transform: rotate(2deg);
}

.howitworks-step-title {
    background: #e6f94f;
    color: #222;
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 0;
    padding: 1.1rem 0.8rem 0.7rem 0.8rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 16px #b6d44e33;
    display: inline-block;
    width: fit-content;
    text-align: left;
    transform: rotate(-2deg);
}

.howitworks-step-title-right {

    transform: rotate(2deg);
}

.howitworks-step.step-1 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 180px;
}

/* HERO */
.howitworks-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.howitworks-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100%;
    pointer-events: none;
}

/* Gradiente per mascherare il taglio netto delle lampadine */
.howitworks-hero-bg::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #fff 100%);
    /* Modifica #fff se il fondo della pagina non è bianco */
}

.howitworks-wallpaper {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scale(1.12);
    width: 100vw;
    min-width: 1200px;
    max-width: none;
    height: auto;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
}

.howitworks-lampadine {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(10%) scale(1.1);
    width: 100vw;
    min-width: 900px;
    max-width: none;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.howitworks-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem auto;
    padding: 2.5rem 1rem 2.5rem 1rem;
}

.howitworks-hero-content h1, .howitworks-hero-content h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px #7fae2e33;
}

.howitworks-hero-content p {
    font-size: 1.15rem;
    color: #fff;
    font-weight: 500;
}

/* STEPS */

/* STEPS */
.howitworks-steps {
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
    max-width: 950px;
    margin: 0 auto;
    padding: 3.5rem 1rem 2.5rem 1rem;
}

.howitworks-step {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    position: relative;
    min-height: 170px;
}

.howitworks-step:nth-child(even) {
    flex-direction: row-reverse;
}

.howitworks-step-graphic {
    min-width: 140px;
    min-height: 140px;
    background: #e6f94f;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px #b6d44e33;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.howitworks-step-graphic img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 1.2rem;
}

.howitworks-step-content {
    flex: 1;
    min-width: 0;
}

.howitworks-step-content h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #b6d44e;
    margin-bottom: 0.5rem;
}

.howitworks-step-content p {
    font-size: 1.08rem;
    color: #222;
    margin: 0;
}

/* Frecce tra step */
.howitworks-arrow {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    width: 70px;
    height: auto;
}

.arrow-dx {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.arrow-giudx {
    right: 50px;
    bottom: -60px;
    transform: rotate(90deg);
}

.arrow-giusx {
    left: 50px;
    bottom: -60px;
    transform: rotate(90deg) scaleX(-1);
}

.arrow-fine {
    right: 0;
    top: 50%;
    width: 60px;
    transform: translateY(-50%) scaleX(-1);
}

/* CTA */
.howitworks-cta {
    background: #7ee6e6;
    padding: 2.5rem 1rem 2rem 1rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0% 100%);
    font-size: 1.08rem;
}

.howitworks-cta-content {
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.howitworks-cta h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.2rem;
    text-align: center;
}

.howitworks-cta p {
    font-size: 1.08rem;
    color: #222;
    margin-bottom: 1.2rem;
}

.howitworks-cta ul {
    list-style: disc inside;
    margin: 0 0 1.2rem 0;
    padding-left: 0;
    color: #222;
}

.howitworks-cta li {
    padding-left: 1.5rem;
}


.howitworks-cta li {
    margin-bottom: 0.5rem;
}

/* CONTACT CTA */
.howitworks-contactcta {
    background: #1a1a1a;
    color: #fff;
    padding: 2.5rem 1rem 2.5rem 1rem;
    text-align: center;
    position: relative;
}

.howitworks-contactcta-content h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.howitworks-contactcta-content .cta-btn {
    background: #e6f94f;
    color: #222;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 2rem;
    padding: 0.7rem 2.2rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px #e6f94f33;
    transition: background 0.2s;
}

.howitworks-contactcta-content .cta-btn:hover {
    background: #b6d44e;
}

/* Responsive */
@media (max-width: 900px) {
    .howitworks-hero-bg .howitworks-wallpaper {
        min-width: 900px;
        width: 100vw;
        transform: translateX(-50%) scale(1.05);
    }

    .howitworks-lampadine {
        min-width: 700px;
        width: 100vw;
        transform: translateX(-50%) translateY(10%) scale(1.02);
    }

    .howitworks-steps {
        gap: 1.5rem;
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }

    .howitworks-step {
        flex-direction: column !important;
        align-items: center;
        gap: 1rem;
        min-height: 120px;
    }

    .howitworks-step-graphic {
        min-width: 90px;
        min-height: 90px;
    }

    .howitworks-arrow {
        width: 44px;
        right: -30px;
        left: auto;
        top: 100%;
        bottom: auto;
        transform: none;
    }
}

/* Mobile specific - 768px */
@media (max-width: 768px) {

    /* Hero mobile con 90vh */
    .howitworks-hero {
        min-height: 90vh;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .howitworks-hero-bg {
        height: 90vh;
    }

    .howitworks-wallpaper {
        min-width: 900px;
        width: 100vw;
        height: 90vh;
        transform: translateX(-50%) translateY(0%) scale(1.2);
        object-fit: cover;
    }

    .howitworks-lampadine {
        min-width: 700px;
        width: 100vw;
        height: 90vh;
        transform: translateX(-50%) translateY(0%) scale(1.2);
        object-fit: cover;
    }

    .howitworks-hero-content {
        margin: 0 auto;
        padding: 2rem 1rem;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .howitworks-hero-content h1,.howitworks-hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin: 0 0 1rem 0;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .howitworks-hero-content p {
        font-size: 1rem;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        margin: 0;
    }

    /* Steps mobile layout */
    .howitworks-steps {
        padding: 2rem 1rem;
        gap: 2rem;
        max-width: 100%;
    }

    .howitworks-step {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        min-height: auto !important;
        text-align: left !important;
    }

    .howitworks-step-inner {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
        max-width: 100% !important;
    }

    .howitworks-step-info {
        order: 1 !important;
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
    }

    .howitworks-step-img {
        order: 2 !important;
        width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .howitworks-step-img img {
        max-width: 280px !important;
        width: 100% !important;
        height: auto !important;
    }

    .howitworks-step-title,
    .howitworks-step-title-right {
        transform: rotate(0deg) !important;
        text-align: center !important;
        margin: 0 auto 0.5rem auto !important;
        display: block !important;
        width: fit-content !important;
    }

    .howitworks-step-desc {
        text-align: center !important;
        margin: 0 !important;
        padding: 0.8rem 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .howitworks-arrow {
        display: none;
    }

    .howitworks-cta-content {
        max-width: 90%;
    }
}
