@font-face {
    font-family: 'RobotoMono';
    src: url('fonts/RobotoMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


body{
    background-color: #fffcfa;
    margin: 0;
    font-family: 'RobotoMono', 'Courier New', Courier, monospace;
}





/* -------------------------------------------- NOME LATERALE */


.nome-laterale{
    margin-right: -80px;
    margin-left: auto;
    font-weight: 400;
    transform: rotate(90deg);
    margin-top: 80px;
    white-space: nowrap;
}


/* ------------------------------------------------ IL RESTO */

.main-box{
    display: flex;
    flex-direction: column;
    padding-top: 0px;
    gap: 80px;
}


.titolo-sezione{
    padding: 0 48px;
    margin-bottom: 40px;
    
}


.box1{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 48px;
}


.box1:nth-child(even){
    margin-left: 10%;
}

.box1:nth-child(odd){
    margin-right: 10%;             
    flex-direction: row-reverse;  
}


#spirali{
    width: 25%;
    height: auto;
    object-fit: cover;
}

#sistema{
    width: 30%;
    height: auto;
    object-fit: cover;
}

#clee{
    width: 25%;
    height: auto;
    object-fit: cover;
}



.txt-1, .txt-3{
    text-align: left;
}


.txt-2, .txt-4{
    text-align: right;
}

.titolo-proj{
    font-size: 16px;
    color: black;
}

.sottotitolo-proj{
    font-size: 13px;
    line-height: 1.5;
    color: #878787;
    max-width: 500px;

}



@media (max-width: 768px){
    .box1{
        display: flex;
        flex-direction: column;
    }

    #spirali{
    width: 100%;
    height: auto;
    object-fit: contain;

    
  
    }

    #sistema{
    width: 100%;
    height: auto;
    object-fit: contain;
    
    }

    #clee{
    width: 100%;
    height: auto;
    object-fit: contain;

    
    }

    .txt-1, .txt-3{
    text-align: left;
    }


    .txt-2, .txt-4{
    text-align: left;
    }

    .box1:nth-child(even){
    margin-left: 0%;
    }

    .box1:nth-child(odd){
    margin-right: 0%;  
    flex-direction: column;           
      
    }
}