
.parallax {
    /* Immagine di sfondo */
    background-image: url('../img/parallax.jpg');

    /* Fissa l'immagine in posizione parallax */
    background-attachment: fixed;
    background-position: 0px -300px  ; /* fissa al top e centrata */
    background-repeat: no-repeat;
    background-size: cover;
    /* Altezza del div */
    height: 500px; /* puoi regolare */
    min-height: 300px;
    /* Facoltativo: bordo o overlay */
    position: relative;
    color: white;
}

.parallax div.home{
    position: absolute;
    left:20px;
    top:20px;
}

.parallax div.logout{
    position: absolute;
    right:20px;
    top:20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:5px;
    text-transform: uppercase
}

.parallax div.mainmenu{
    position: absolute;
    left:20px;
    top:20px;
    width: auto;
    min-width: 140px;
}

.parallax div.content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(0,0,0,0.5); /* overlay semi-trasparente */
    padding: 10px 20px;
    border-radius: 10px;
    width: 420px;
}

.parallax .content .logo{
    /*    max-width: 200px;*/
    max-height: 100px;
    width:auto;
    height:100px;
    margin:5px auto;
    border-radius:8%;
    display: block
}


.parallax .cover .cover-image{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
}


.badge{
    color: var(--appcolor) !important;
    font-weight: bold;
    background: var(--bianco);
    border-radius: 50%;
    font-size: 16px !important;
    font-style: normal;
    font-weight: normal
}
/*
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}*/


@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        background-position: top center;
    }
    
     .parallax .parallax_content{
        max-width: 70%
    }
    
    .parallax .parallax_content .logo{
        height: 80px
    }
    
}
