@charset "utf-8";

/* Mobile */
@media only screen and (min-width: 0px) {
    .banner {
        padding: 60px 20px;
        color: white;
    }
    
    .banner a:hover {
        color: white;
    }

    .contenitore-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        flex-wrap: wrap;
        flex-direction: column;
        text-align: center;
    }

    .immagine-banner {
        flex: 1 1 45%;
        padding: 0;
    }
    
    .immagine-banner img {
        width: 100%;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        display: block;
    }
    
    .testo-banner {
        flex: 1 1 45%;
        padding: 20px 10px;
    }
    
    .testo-banner h2 {
        font-size: 2rem;
        margin-bottom: 15px;
        color: #ffffff;
    }
    
    .testo-banner p {
        font-size: 1.1rem;
        margin-bottom: 20px;
        color: #d0d0d0;
    }
    
    .pulsante-banner {
        display: inline-block;        
        padding: 12px 24px;
        text-decoration: none;
        border-radius: 6px;
        font-weight: bold;
    }

    /* Animazione */

    [data-animate],
    .fade-in-section,
    .banner.hidden {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease-out;
    }

    [data-animate].visible,
    .fade-in-section.visible,
    .banner.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Fine animazione */


    .totem {
        background: radial-gradient(circle at center, #2d4473 0%, #0a0f1a 100%);
    }

    .pulsante-totem {
        background-color: #0077cc;
        color: white;
        transition: background-color 0.3s ease;
    }
    .pulsante-totem:hover {
        background-color: #273a62;
    }

    .software {
        text-align: right;
        margin-top: 20px;
        background: linear-gradient(to bottom, #0e143f 0%, #5a4ca3 50%, #ffffff 100%);
    }

    .pulsante-software {
        background-color: #5a4ca3;
        color: white;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }
    .pulsante-software:hover {
        background-color: #473c87;
    }

    /* Come Funziona */

    .steps .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48;
        font-size: 36px;
        display: inline-block;
        margin-bottom: 15px;
    }
    
    .how-it-works {
        background-color: #f7f9fc;
        padding: 80px 20px;
        text-align: center;
    }
    
    .how-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .how-it-works h2 {
        font-size: 2.5rem;
        color: #273a62;
        margin-bottom: 40px;
    }
    
    .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);
    }
    
    .step-icon {
        color: #273a62;
        font-size: 36px;
        margin-bottom: 15px;
        display: block;
    }
    
    .step h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: #273a62;
    }
    
    .step p {
        font-size: 0.95rem;
        color: #444;
    }
    

    /* Vantaggi */

    .coppia {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .colonna {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .colonna.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .colonna.immagine img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
    }
    
    .colonna.testo {
        background-color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        color: #273a62;
        box-sizing: border-box;
        padding: 40px;
    }
    
    /* Loghi Clienti*/

    .titolo-clienti {
        margin-top: 25px;
        text-align: center;
        color: #273a62;
        font-size: 1.5rem;
    }

    .loghi-clienti {
        background-color: #ffffff;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    .carosello-loghi {
        padding: 40px 0;
        overflow: hidden;
        margin: 0 auto;
        max-width: 960px;
    }
    .contenitore-carosello {
        animation: scroll 20s linear infinite;
		display: flex;
		width: calc(150px * 20);
    }

    .logo-wrapper {
        flex: 0 0 auto;
        width: 120px;
        height: 80px;
        margin: 0 15px;
        background-color: #f5f5f5;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo-wrapper img {
        max-width: 80%;
        max-height: 75%;
        object-fit: contain;
    }

    /* Animazione */
    @keyframes scroll {
        0% {
            transform: translateX(0%);
        }
        100% {
            transform: translateX(calc(-150px * 10));
        }
    }

    .contenitore-carosello:hover {
        animation-play-state: paused;
    }
    
}

/* Desktop */
@media only screen and (min-width: 769px) {

    .contenitore-banner {
        flex-direction: row;
    }

    .totem .testo-banner{
        text-align: left !important;
    }

    .software .testo-banner {
        text-align: right !important;
    }

    .testo-banner {
        padding: 10px 30px;
    }


    /* Vantaggi */

    .coppia {
        flex-direction: row;
        height: 400px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    .invertita {
        flex-direction: row-reverse;
    }

    .colonna {
        width: 50%;
        height: 100%;
    }

    .colonna.testo, .colonna.immagine {
        width: 50%;
    }


}