@charset "utf-8";

/* Mobile */
@media only screen and (min-width: 0px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        text-align: center;
    }

    header h1 {
        text-align: center;
        margin-bottom: 40px;
        font-size: 2.4em;
        color: #273a62;
        position: relative;
        display: inline-block;
        padding-bottom: 10px;
        animation: fadeInDown 1s ease-out;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    }

    header h1::after {
        content: '';
        position: absolute;
        width: 50%;
        height: 1px;
        background: #f1c40f;
        bottom: 0;
        left: 25%;
        border-radius: 2px;
    }

    .servizi-aggiuntivi {
        background-color: #f7f9fc;
        padding: 80px 20px;
        text-align: center;
    }
    
    .how-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .steps {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 30px;
    }
    
    .step {
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        padding: 30px 20px;
        flex: 1 1 220px;
        max-width: 260px;
        transition: transform 0.3s ease;
        opacity: 0;
        transform: translateY(40px);
        border: 1px solid transparent
    }
    
    .immagine {
        width: 100%;
    }

    .zoom-img {
        transition: transform 0.3s cubic-bezier(.4,2,.6,1);
        cursor: zoom-in;
        z-index: 1;
    }

    .zoom-img-hover {
        width: 100vw;
        height: auto;
        left: 50%;
        transform: translateX(-50%);
        max-width: none;
        z-index: 10;
        position: relative;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    
    .step h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: #273a62;
    }
    
    .step p {
        font-size: 0.95rem;
        color: #444;
        text-align: center;
    }

    /* Animazione */

    [data-animate] {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease-out;
    }

    [data-animate].visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Fine animazione */
        
}

/* Desktop */
@media only screen and (min-width: 769px) {

    .step p {
        text-align: left;
    }

    .step:hover {
         z-index: 10;
    }
    .zoom-img:hover {
        transform: scale(2.5);
        z-index: 10;
        position: relative;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
}