/* GENERAL */

:root {
    --primary: #333;
    --secondary: #8E8E8E;
    --tertiary: #003da5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.container {
    width: 1640px;
    margin: auto;
}

/* TIPOGRAFIA */

p {
    font-family: "Open Sans", sans-serif;
    color: var(--secondary);
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
}

h1 {
    font-family: "Open Sans", sans-serif;
    color: #fff;
    font-weight: 600;
    font-size: 50px;
    line-height: 76px;
    margin-top: 30px;
    margin-bottom: 30px;
}

h2 {
    font-family: "Open Sans", sans-serif;
    color: var(--primary);
    font-weight: 600;
    font-size: 28px;
    line-height: 42px;
    margin-top: 70px;
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-family: "Open Sans", sans-serif;
    color: var(--primary);
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
}

h4 {
    font-family: "Open Sans", sans-serif;
    font-size: 50px;
    line-height: 60px;
    color: var(--primary);
    font-weight: 600;
}

a {
    font-family: "Open Sans", sans-serif;
    text-decoration: none;
    color: var(--primary);
    font-weight: 400;
}

a:hover {
    color: var(--tertiary);
}

/* HEADER */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    max-width: 250px;
    padding: 20px 0 20px 0;
}

header {
    font-family: 'Poppins', sans-serif;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: #F7F7F7;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.header_links {
    display: flex;
    gap: 50px;
}

.header_links i {
    margin-right: 15px;
    font-size: 25px;
}

.header_links a {
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* HERO */

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/azienda.png');
    height: 93vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-testo {
    text-align: center;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-testo h1 {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.hero-testo i {
    color: #fff;
    font-size: 65px;
}

.hero-testo p {
    color: #ffffff;
    font-size: 27px;
    line-height: 40px;
}

/* CARDS */

.card-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 56px;
}

.card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
}

.card,
img {
    object-fit: cover;
    width: 100%;
}

.card h3 {
    padding: 25px;
}

.card p {
    padding: 0 25px 25px 25px;
    text-align: center;
}

/* GALLERY */

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 56px;
}

.gallery img {
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
}

/* BANNER */

.banner {
    height: 350px;
    margin-top: 80px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 110px 138px 110px 138px;
    background-color: #F7F7F7;
}

.banner_testo {
    text-align: left;
}

.banner_immagine img{
    max-height: 450px;
}

.banner_testo i {
    margin-right: 19px;
}

.sottotitolo {
    margin-bottom: 35px;
    margin-top: 5px;
}

.bottone {
    padding: 14px 30px 14px 30px;
    color: #fff;
    background-color: var(--primary);
    border-radius: 27px;
}

.bottone:hover {
    color: #fff;
    background-color: var(--tertiary);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
}

/* FOOTER */

footer {
    background-color: #F7F7F7;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0 70px 0;
}

.logo_footer {
    max-width: 300px;
}

.colonna_footer p {
    color: var(--primary);
    padding-bottom: 15px;
}

.colonna_footer p i {
    margin-right: 15px;
    font-size: 25px;
}

.colonna_footer a {
    display: flex;
    align-items: center;
}

.titolo_footer {
    font-weight: 600;
    font-size: 28px;
    line-height: 42px;
    margin-bottom: 5px;
}

.footer1 {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 75%;
}

/* PARAGRAFI */

.service_p {
    width: 70%;
    text-align: center;
    margin: 0 auto 70px auto;
}

.realisation_p {
    width: 70%;
    margin: 0 auto 70px auto;
    text-align: center;
}

.location_p {
    width: 70%;
    margin: 0 auto 70px auto;
    text-align: center;
}

.mappa {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.16);
    margin-bottom: 70px;
}

/* RESPONSIVE */

/* DESKTOP SMALL */

@media screen and (min-width: 1024px) and (max-width: 1639px) {

    .container {
        width: 1004px;
        margin: auto;
    }

    .card-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .gallery {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 36px;
        margin-bottom: 70px;
    }

    .banner {
        padding: 50px 50px 50px 50px;
    }

    .service_p {
        width: 100%;
    }
    
    .realisation_p {
        width: 100%;
    }
    
    .location_p {
        width: 100%;
    }

    .footer {
        display: block;
    }

    .footer1 {
        display: block;
        margin-top: 40px;
        width: 100%;
    }

    #utility {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .hero-testo h1 {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

}

/* TABLET */

@media screen and (min-width: 768px) and (max-width: 1023px) {

    h1 {
        font-size: 43px;
        line-height: normal;
    }

    .hero-testo {
        width: 75%;
    }

    .hero-testo p {
        font-size: 20px;
        line-height: normal;
    }

    .hero-testo i {
        font-size: 45px;
    }

    .container {
        width: 758px;
        margin: auto;
    }

    .card-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        margin-bottom: 70px;
    }

    .banner {
        padding: 50px 50px 50px 50px;
    }

    .service_p {
        width: 100%;
    }
    
    .realisation_p {
        width: 100%;
    }
    
    .location_p {
        width: 100%;
    }

    .header_links a {
        font-size: 0;
    }

    .header_links {
        gap: 25px;
    }

    .footer {
        display: block;
    }
    
    .footer1 {
        display: block;
        margin-top: 40px;
        width: 100%;
    }

    #utility {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .hero-testo h1 {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

}

/* SMARTPHONE */

@media screen and (max-width: 767px) {

    h1 {
        font-size: 33px;
        line-height: normal;
    }

    .hero-testo {
        width: 90%;
    }

    .hero-testo p {
        font-size: 18px;
        line-height: normal;
    }

    .hero-testo i {
        font-size: 50px;
    }

    .logo-header {
        width: 40%;
    }

    .container {
        width: 90%;
    }

    .card-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .gallery {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 36px;
        margin-bottom: 70px;
    }

    .banner {
        display: block;
        padding: 50px 50px 50px 50px;
        height: auto;
    }

    .banner_immagine {
        margin-top: 45px;
    }

    .service_p {
        width: 100%;
    }
    
    .realisation_p {
        width: 100%;
    }
    
    .location_p {
        width: 100%;
    }

    .header_links a {
        font-size: 0;
    }

    .header_links {
        gap: 10px;
    }

    .footer {
        display: block;
    }

    .footer1 {
        display: block;
        margin-top: 40px;
        width: 100%;
    }

    #utility {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .hero-testo h1 {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
}