@media screen and (max-width: 858px) {
    .checkbtn {
        display: block;
        color: #000;
    }
    ul {
        position: fixed;
        width: fit-content;
        height: fit-content;
        padding-left: 50px;
        padding-right: 50px;
        background-color: rgba(0, 0, 0, 0.9);
        top: 110px;
        border-radius: 7px;
        right: -100%;
        text-align: center;
        transition: all .5s;
    }
    header ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    header ul li a {
        font-size: 20px;
        color: #fff;
    }
    a:hover, a.active {
        background: none;
        color: white;
    }
    #check:checked ~ ul {
        right: 20px;
    }
    #sidebar.active {
        right: -100%;
    }
}

@media screen and (max-width: 567px) {
    label.logo a img {
        margin-left: 30px;
    }
    .aboutus, .servizi, .contatti, .info, .developer {
        padding-left: 40px;
        padding-right: 40px;
    }
    .home {
        padding: 100px 30px;
    }
}

@media screen and (max-width: 560px) {
    .home .content h1 {
        font-size: 2.2em;
        line-height: 40px;
    }
}

@media screen and (max-width: 500px) {
    .aboutusTitle h1, .serviziTitle h1, .contattiTitle h1 {
        font-size: 3.2em;
        text-align: center;
    }
    .contattiTitle p {
        font-size: 1.2em;
        padding-left: 10px;
        padding-right: 10px;
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 430px) {
    .serviziTitle h1, .contattiTitle h1 {
        font-size: 2.3em;
    }
    .aboutus, .contatti {
        padding-left: 20px;
        padding-right: 20px;
    }
    .servizi {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 425px) {
    .home {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .home .content {
        width: 300px;
    }
}

@media screen and (max-width: 390px) {
    .row {
        width: auto;
    }
}

@media screen and (max-width: 348px) {
    .home .content {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media screen and (max-width: 311px) {
    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 300px) {
    .home .content {
        padding-left: 30px;
        padding-right: 0px;
    }
}

@media screen and (max-width: 324px) {
    .aboutusTitle h1, .serviziTitle h1, .contattiTitle h1 {
        font-size: 50px;
    }
    .contattiTitle p {
        font-size: 14px;
    }
}

@media screen and (max-width: 311px) {
    .aboutusTitle h1, .serviziTitle h1, .contattiTitle h1 {
        font-size: 2em;
    }
}


