html,
body {
    height: 100%;
    width: 100%;
    font-family: "Lucida Console", "Courier New", monospace;
}

nav {
    margin: 0 5%;
    height: 15%;
}

.title {
    text-align: left;
    width: 30%;
    float: left;
    padding-top: 2%;
}

.title h1 {
    margin-bottom: 0;
    font-size: 1.5rem;
    opacity: 0.8;
}

.title p {
    font-size: 0.9rem;
    margin: 0;
}

.title h1 a {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

#MenuButton {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar {
    width: 70%;
    float: right;
    padding-top: 2%;
}

.list-menu {
    list-style-type: none;
    margin-left: auto;
}

.nav-item {
    float: left;
    position: relative;
}

.nav-item>a {
    color: grey;
    text-decoration: none;
}

.active {
    color: black !important;
}

.nav-item>a:hover {
    color: black;
}

.servizi {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    list-style-type: none;
    background-color: white;
    padding: 0;
    margin: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.servizi .nav-item {
    float: none;
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
}

.servizi .nav-item:hover {
    background-color: #f0f0f0;
}

.servizi .nav-item>a {
    color: grey;
}

.dropdown:hover .servizi,
.dropdown.open .servizi {
    display: block;
}

.content-box {
    height: 75%;
    width: 100%;
    margin: auto;
}

.content-cards {
    height: 100%;
    width: 65%;
    padding: 10%;
    float: left;
}

.cards {
    text-align: center;
    width: 50%;
    height: 50%;
    float: left;
}

.sidebar {
    height: 100%;
    width: 35%;
    float: right;
    text-align: center;
}

.product {
    padding: 2%;
}

.product>img {
    width: 25%;
    height: auto;
    margin: auto;
}

.product>h3 {
    padding-top: 2%;
}

.post-container {
    padding: 10%;
    width: 100%;
}

.link_articolo {
    color: gray;
}

footer {
    height: 10%;
    margin-top: 0;
}

footer a {
    font-size: 1.5rem;
    transition: 0.3s;
    text-decoration: none;
}

footer a:hover {
    color: #0d6efd;
}

/* CHI SONO */

.chi-sono-container {
    text-align: center;
    height: 100%;
    width: 65%;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
}

.contatti-container {
    text-align: center;
    height: 100%;
    width: 65%;
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5%;
}

.chi-sono-text {
    width: 60%;
    float: right;
    text-align: center;
}

.chi-sono-text>p {
    padding: 5%;
}

#Chi-sono-img {
    float: left;
    width: 40%;
}

.siti-web-container,
.software-container {
    text-align: center;
    height: 100%;
    width: 65%;
    float: left;
    padding: 5%;
}

#Siti-web-img,
#Software-img {
    width: 25%;
}

.siti-web-text,
.software-text {
    padding: 5%;
}

/* Tablet e mobile */
@media (max-width: 992px) {
    nav {
        height: auto;
        margin: 2vh 4vw;
        overflow: visible;
    }

    .title,
    .navbar {
        float: none;
        width: 100%;
        text-align: center;
        padding-top: 1%;
    }

    .title {
        margin-bottom: 2%;
    }

    .list-menu {
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }

    .nav-item {
        float: none;
        display: inline-block;
        padding: 1vh 2vw;
    }

    .servizi {
        position: absolute;
        top: 100%;
        left: 0;
        transform: none;
        display: none;
        padding: 0;
        text-align: center;
    }

    .dropdown:hover .servizi,
    .dropdown:focus-within .servizi,
    .dropdown.open .servizi {
        display: block;
    }

    .servizi .nav-item {
        display: block;
        padding: 1vh 0;
    }

    .content-box {
        height: auto;
        display: block;
    }

    .content-cards {
        width: 100%;
        float: none;
        padding: 5% 10%;
        height: auto;
    }

    .cards {
        width: 50%;
        height: auto;
        float: left;
    }

    .sidebar {
        width: 100%;
        float: none;
        height: auto;
        padding: 5% 0;
    }

    .post-container {
        padding: 5%;
    }

    footer {
        height: auto;
    }

    .chi-sono-container,
    .contatti-container {
        width: 100%;
        float: none;
        height: auto;
        display: block;
        padding: 5%;
    }

    .chi-sono-text {
        width: 100%;
        float: none;
    }

    #Chi-sono-img {
        float: none;
        width: 60%;
        margin: 0 auto 5% auto;
        display: block;
    }

    .siti-web-container,
    .software-container {
        width: 100%;
        float: none;
        height: auto;
        padding: 5%;
    }
}

/* Mobile */
@media (max-width: 600px) {

    nav {
        margin: 2vh 4vw;
    }

    nav::after {
        content: "";
        display: block;
        clear: both;
    }

    .title h1 {
        font-size: 1.2rem;
    }

    .title p {
        font-size: 0.8rem;
    }

    .title {
        text-align: left;
        float: left;
        width: 70%;
    }

    #MenuButton {
        display: block;
        float: right;
        margin-top: 3vh;
    }

    .navbar {
        display: none;
        width: 100%;
        padding-top: 2%;
        clear: both;
    }

    .navbar.open {
        display: block;
    }

    .nav-item {
        float: none;
        display: block;
        padding: 1.5vh 0;
        text-align: center;
    }

    .list-menu {
        text-align: center;
        padding-left: 0;
    }

    .nav-item>a {
        display: inline-block;
    }

    .dropdown.open .servizi {
        display: block;
    }

    .servizi {
        position: absolute;
        top: 100%;
        left: 0;
        transform: none;
        min-width: 100%;
        width: auto;
        text-align: left;
        padding: 0;
    }

    .cards {
        width: 100%;
        float: none;
    }

    .product {
        margin: 6% 0%;
    }

    .product>img {
        width: 35%;
        height: auto;
        margin: auto;
    }

    .content-cards {
        padding: 8% 5%;
    }

    #Chi-sono-img {
        width: 80%;
    }

    .sidebar img {
        max-width: 60vw;
    }

    .siti-web-text,
    .software-text,
    .chi-sono-text>p {
        font-size: 0.95rem;
    }
}