body {
    margin: 0;
    padding: 0;
    background-color: #313238;
}

/* Stili per header */
.header {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    height: 150px;
    background-color: #0B0B0B;
    position: relative; /* Assicurati che sia relativo */
    top: 0;
    z-index: 1000;
    border-radius: 0px 0px 55px 55px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    width: 443.27px;
    position: absolute;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}



/* Stile immagine */
#cantiere {
    overflow: hidden;
    max-width: 563px;
}

#cantiere img {
    max-width: 100%;
    height: auto;
    border-radius: 25px;
    position: absolute;
    top: 300px;
    left: 55px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#cantiere img.active {
    opacity: 1;
}

/* div per accesso */
.accesso {
    width: 350px;
    height: 443px;
    border-radius: 15px;
    background-color: #0B0B0B;
    position: absolute;
    right: 100px;
    top: 300px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

.testo_1,
.testo_2 {
    width: 250px;
    height: 30px;
    color: #B1B1B1;
    font-family: Montserrat;
    font-size: 14px;
    position: absolute;
    left:50px
}

.testo_1 {
    top: 35px;
}
.testo_2{
    top:150px;
}

.user,
.password {
    width: 266px;
    height: 50px;
    background-color: #313238;
    border: none;
    border-radius: 20px;
    color: #B1B1B1;
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    margin-left: 40px;
    margin-right: 50px;
    padding-left: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Aggiunge un'ombra leggera */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Transizione per animazioni fluide */
}

.user {
    top: 75px;
}

.password {
    top: 190px;
}

.user:focus,
.password:focus {
    background-color: #3b3c42; /* Colore di sfondo più chiaro al focus */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Ombra più pronunciata al focus */
    outline: none; /* Rimuove il contorno predefinito */
}

.user::placeholder,
.password::placeholder {
    color: #888; /* Colore del placeholder */
    opacity: 1; /* Assicura che il colore del placeholder sia visibile */
}




.ric_accesso {
    color: #B1B1B1;
    font-family: Montserrat;
    position: absolute;
    margin-left: 40px;
    font-size: 13px;
    margin-right: 50px;
    top: 255px;
}

/* Nascondi il checkbox originale ma lascialo funzionante */
input[type="checkbox"].styled-checkbox {
    position: absolute;
    opacity: 0;
    z-index: 1;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Stili per lo pseudo-elemento che rappresenta il checkbox */
.checkbox-custom {
    position: absolute;
    width: 12px;
    height: 12px;
    background: transparent;
    color: #B1B1B1;
    border: 2px solid #B1B1B1;
    border-radius: 3px;
    top: 0;
    left: 0;
    z-index: 0;
    transition: background 0.5s, border-color 0.3s;
}

/* Quando il checkbox è selezionato, mostra un quadrato bianco al centro */
input[type="checkbox"].styled-checkbox:checked + .checkbox-custom {
    background: #FFF;
    border-color: #ccc;
}

.label-text {
    margin-left: 24px;
    vertical-align: middle;
}

.b_accedi {
    width: 281px;
    height: 50px;
    border-radius: 20px;
    background-color: #4B93D2;
    color: white;
    font-family: Montserrat;
    position: absolute;
    top: 325px;
    left: 40px;
    border: none;
    overflow: hidden;
    transition: background-color 0.3s ease;
    cursor: pointer;
    outline: none;
}

.b_accedi:hover {
    background-color: #3a6f9a;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}


.divLanguageIt{
    font-weight: bold; 
    float: right; 
    margin-right: 10px; 
    margin-top: 10px;
}


.divLanguageEn{
    display: inline-block; 
    margin-right: 10px;

}


#imgIt{
    width:30px;
}

#imgEn{
    width:30px;
}


@keyframes ripple-effect {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.recuperaPW {
    border: none;
    background-color: transparent;
    border-radius: 20px;
    color: #B1B1B1;
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    left: 50px;
    top: 395px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

/*grafica mobile*/
@media (max-width: 480px){
    .header{
        height: 150px;
        width: 100%;
    }
    .logo{
        width: 280px;
        height: auto;
    }
    #cantiere{
        display: none;
    }
    .accesso{
        position: absolute;
        left:50%;
        transform: translateX(-50%);
        top: 200px;
    }
}

/*grafica mobile orizzontale*/
@media (max-width: 767px){
    .header{
        height: 100px;
        width: 100%;
    }
    .logo{
        width: 280px;
        height: auto;
    }
    #cantiere{
        display: none;
    }
    .accesso{
        position: absolute;
        left:50%;
        transform: translateX(-50%);
        top: 120px;
    }

    .divLanguageIt{
        margin-right: 10px;
        margin-top: 500px;
        margin-right: 140px;
    }
}

/* Stili per tablet in verticale */
@media (min-width: 768px) and (max-width: 1024px) {
    .header{
        height: 250px;
        width: 100%;
    }
    #cantiere img{
        position: absolute;
        top:350px;
        width: 370px;
        left:20px;
    }
    .accesso{
        top:350px;
        right: 50px;
    }
}

@media (max-width: 900px){
    .header{
        height: 100px;
        width: 100%;
    }
    .logo{
        width: 280px;
        height: auto;
    }
    #cantiere{
        display: none;
    }
    .accesso{
        position: absolute;
        left:50%;
        transform: translateX(-50%);
        top: 120px;
    }
}
/*grafica laptop*/
@media (min-width: 1200px ) and (max-width: 1366px){
    .header{
        height: 150px;
        width: 100%;
    }
    .logo{
        width: 330px;
    }
    #cantiere img{
        top: 180px;
        width: 400px;
    }
    .accesso{
        position: absolute;
        top: 180px;
    }
}




/* Media query per rendere la pagina responsive */
/*@media (max-width: 1070px) {
    .accesso {
        right: 40px;
    }
}

@media (max-width: 1024px) {
    .header {
        height: 270px;
    }
    #cantiere {
        max-width: 400px;
    }
    #cantiere img {
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    .accesso {
        right: 40px;
    }
}

@media (max-width: 825px) {
    #cantiere img {
        left: 20px;
    }
    .accesso {
        right: 0;
    }
}

@media (max-width: 750px) {
    .header {
        height: 210px;
    }
    #cantiere img {
        top: 300px;
        max-width: 300px;
    }
    #cantiere {
        max-width: 300px;
    }
    .accesso {
        top: 300px;
    }
}

@media (max-width: 700px) {
    #cantiere img {
        left: 0;
        max-width: 220px;
    }
    #cantiere {
        max-width: 220px;
    }
}

@media (max-width: 550px) {
    #cantiere img {
        left: 50px;
    }
    .accesso {
        left: 50px;
    }
}

/* Stili per altezza */

/*@media (max-height: 900px) {
    .header {
        height: 220px;
    }
    #cantiere img {
        top: 300px;
    }
    .accesso {
        top: 300px;
    }
}

@media (max-height: 825px) {
    .accesso {
        top: 250px;
    }
    #cantiere img {
        top: 250px;
        max-width: 450px;
    }
}

@media (max-height: 750px) {
    .header {
        height: 150px;
    }
    #cantiere img {
        top: 250px;
        max-width: 450px;
    }
    #cantiere {
        max-width: 450px;
    }
    .accesso {
        top: 250px;
    }
}

@media (max-height: 675px) {
    .accesso {
        top: 200px;
    }
}

@media (max-height: 600px) {
    .header {
        height: 100px;
    }
    #cantiere img {
        top: 150px;
    }
    .accesso {
        top: 120px;
    }
}

@media (max-width: 900px) and (max-height: 650px) {
    #cantiere img {
        max-width: 350px;
    }
    #cantiere {
        max-width: 350px;
    }
}

@media (max-width: 700px) and (max-height: 650px) {
    #cantiere img {
        max-width: 200px;
    }
    #cantiere {
        max-width: 200px;
    }
}
*/