html {
    /* Risoluzione di riferimento 1920x1080 */
    font-size: 80%;
    }

:root {
    --testo: #006699;
    --grigio_scuro:  #3c4c6c;
    --grigio_chiaro:  #c1c2c7;
    --bordo: #CCC;
    --rosso: #BC3159;
    --sfondo: #E6E6E6;
}

body {
    font-size: 12px;
    font-size: 1.2rem;
    font-family: 'DM Sans', sans-serif;
    font-family: Verdana, Georgia, sans-serif;        
    font-style: normal;
    font-weight: 400;
    color:#006699;
    color:var(--testo);
    background-color: var(--sfondo);
    }

#wrap{
    max-width: 800px;
    max-width: 80rem;
    margin:auto; 
    border: 1px solid #CCC; 
    border-top: none; 
    background-color: #FFF;
}

#header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    background-image: linear-gradient(to top, white, #DBE0F7);
    border-bottom: 1px solid #CCC;    
    padding:5px 0 5px 0;
    padding:.5rem 0 .5rem 0;    
    margin-bottom:30px;
    margin-bottom:3rem;
}

#logo_container{
    margin-left:20px;
    margin-left:2rem;
    align-self: center;
}

#logo_container img{
    width: 320px;
    width: 32rem;
}

#languages{
    margin-right:5px;
    margin-right:.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#languages img{
    width: 45px;
    width: 4.5rem;
}

#languages a {
    border: 2px solid transparent;
}

#languages a:hover{
    border: 2px solid white;
    border: 2px solid var(--testo);
    border-radius: 5px;
    border-radius: .5rem;
}

    #languages a{
        position: relative;
        display: inline-block;
    }
    
    .tooltiptext2 {
        display: none;
        width: 120px;
        width: 12rem;
        background-color: black;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        
        /* Position the tooltip */
        position: absolute;
        z-index: 1;
        top: -1px;
        right: 110%;
      }
      
      a:hover .tooltiptext2 {
        display: block;
      }


h1{
    font-weight: 400;
    text-align: center;
    font-size: 20px;
    font-size: 2rem;
}

.balance-text{
    text-wrap: balance;
}

#general_contact_info{
    width:85%;
    margin: 0 auto;
    margin-top:20px;
    margin-top:2rem;
}

.riga_divisore{
    color: #3c4c6c;
    color:var(--grigio_scuro);
    font-weight:bold; 
    border-bottom-width: 2px; 
    border-bottom-style: dotted; 
    border-bottom-color: #ccc;
}

#contact_data{
    display: flex;
    flex-direction: row;
    justify-content:space-evenly;
    flex-wrap: wrap;
    align-items: center;
}

#contact_data div{
    margin-top: 10px;
    margin-top: 1rem;
}

ul{
    list-style-type: none; /* Remove bullets */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margins */
}

#innerR{
    display: flex;
    align-items: center;
    justify-content: center;
}

h2{
    font-size: 13px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #BC3159;
    color:var(--rosso);
}

#footer {
    border-top: 1px solid #CCC; 
}

#footer div{
    padding:5px;
    padding:.5rem;
    background-color: var(--grigio_chiaro);
    color:black;
}

@media screen and (max-width: 1300px) {
    html {
        /* Risoluzione di riferimento 1300x900 */
        font-size: 72.5%;
        }        
}

@media screen and (max-width: 1024px) {
    html {
        /* Risoluzione di riferimento 1024x768 */
        font-size: 62.5%;
        }    
}


@media screen and (max-width: 599px) {
    #footer div{text-align: center;}

    /* bandiere a capo */
    #header{
        display: block;
    }

    #logo_container{
        display: flex;
        justify-content: center;
    }    

    #languages{
        flex-direction: row;
        justify-content:space-evenly ;
        padding-top: 5px;
        padding-top: .5rem;
        border-top: 1px solid #CCC;
        margin-top: 10px;
        margin-top: 1rem;
    }

    .tooltiptext2 {
        display: none;
        width: 120px;
        width: 12rem;
        background-color: black;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        
        /* Position the tooltip */
        position: absolute;
        z-index: 1;
        /* top: 120%; */
        top:-80%;
        left: 50%;
        margin-left: -60px;
      }

    #languages img{
        width:70px;
        width:7rem;
    }
    
}

    
