:root {
    --color1: red;
    --color2: yellow;
    --color3: darkorange;
    --color4: #ffffff;
    --font1: "Adlam Display", system-ui;
    --font2: "Exo 2";
    --font3: Arial, sans-serif;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font3);
}

body {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    color: black;
    text-decoration: none;
}

h1 {
    font-family: var(--font1)
}

h2,
h3 {
    font-family: var(--font2)
}

h1 {
    font-size: 100px;
}

h2 {
    font-size: 35px;
    color: red;
}

h3 {
    font-size: 25px;
}

h4 {
    font-size: 25px;
}

p {
    font-size: 12.px;
}

/*hovers*/

.nav a,
.footer a,
.recensioni a {
    text-decoration: none;
}

.nav a:hover,
.footer a:hover {
    font-weight: bold;
}

.checkbox a:hover {
    color: var(--color3);
    text-decoration: none;
}

.recensione:hover,
.offerta:hover {
    background-color: #ededed;
    border-radius: 20px;
}

input[type="submit"]:hover {
    background-color: var(--color4) !important;
    border: 2px solid var(--color1) !important;
    padding: 14px;
    border-radius: 30px;
}

div:hover {
    transition: 100ms ease;
}

/*nav*/

.nav {
    background-color: var(--color4);
    height: 100px;
    width: 100%;
    display: flex;
    z-index: 100;
    padding: 0 50px;
    left: 0;
}

.logo-container {
    height: 90%;
    width: 20%;
    margin: auto 0;
    padding: 0;
}

.logo-container img {
    max-height: 100%;
    padding: 0 10px;
}

.nav-links {
    margin: auto;
    margin-right: 0;
}

.nav-links a {
    color: red;
    margin: 10px;
}

/*hero*/

.hero h1,
.hero p {
    margin: auto;
    width: 500px;
    color: var(--color4);
}

.hero p {
    font-size: 30px;
    font-weight: bold;
    border-top: none;
}

.hero {
    text-align: center;
    padding: 50px 0;
    height: auto;
    background-image: url(https://storage.googleapis.com/img_meltemi/S-IMG/ALTRO/itenac-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--color4);
}

/*servizi*/

.servizi-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    background-image: url(https://storage.googleapis.com/img_meltemi/S-IMG/ALTRO/itenac-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0 auto;
    padding: 50px 0;
}

.servizio {
    margin: 0px auto;
    text-align: center;
    color: var(--color4);
    border: 10px solid black;
    box-shadow: 0 0 5px lightgrey;
    background-color: black;
    width: 300px;
}

.servizio p {
    margin-top: 0;
    font-size: 20px;
}

.servizio img {
    height: 200px;
}

.servizio:hover {
    box-shadow: 0 0 20px var(--color4);
    border: 10px solid var(--color1);
}

/*blocks*/

.block1,
.block2 {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    margin: 0 auto;
}

.blocks {
    background-image: url(https://storage.googleapis.com/img_meltemi/S-IMG/ALTRO/itenac-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contatto,
.offerte,
.form {
    margin: 20px auto;
    background-color: var(--color4);
    padding: 30px;
    box-shadow: 0 0 5px lightgrey;
    max-width: 700px
}

.descrizione {
    padding: 70px;
    max-width: 500px;
    margin: auto;
    background-color: black;
}

.descrizione p {
    color: var(--color4);
    font-size: 15px;
}

.offerta {
    display: flex;
    width: 100%;
    flex-wrap: no-wrap;
    margin: 10px 0;
    padding: 5px;
    border: 1px solid #ededed;
}

.offerta-txt,
.offerta .img-container {
    width: 45%;
}

.offerta-txt {
    margin-right: 10px;
    margin-left: auto;
}

.offerta-txt p {
    font-size: 17.5px;
}

.offerte-in-bacheca p {
    color: red !important;
    font-size: 1px;
}

.offerta .img-container img,
.offerta-txt p {
    width: 100%;
    margin: 10px 0;
}

.contatto .titolo {
    margin: 20px 0;
}

.contatto .titolo h2 {
    display: inline-flex;
}

.camps,
.checkbox {
    padding: 0;
    margin: 5px auto;
}

.campo {
    width: 100%;
    margin: 5px auto;
    text-align: left;
    padding: 5px 0;
}

.campo label {
    text-align: left;
    padding-left: 10px;
    font-size: 15px;
}

.campo input {
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    border-radius: 10px;
    padding: 15px;
    border: solid 1px var(--color3);
    background-color: yellow;
}

.flag {
    margin: 10px auto;
}

.flag br {
    display: none !important;
}

.flag label {
    font-size: 10px;
    display: inline-block !important;
    width: 90%;
    padding-left: 10px;
    text-align: justify;
}

input[type="submit"] {
    background-color: yellow !important;
    border: 1px solid var(--color3) !important;
    color: var(--color1) !important;
    padding: 15px;
    font-size: 15px;
    width: 100%;
    font-weight: bold;
}

/*dicono-di-noi*/
.dicono-di-noi {
    width: 100%;
    padding: 50px 0;
    align-items: center !important;
    align-content: center !important;
}

.dicono-di-noi p,
h1,
h2,
h3,
h4 {
    max-width: 500px;
}

.dicono-di-noi .titolo {
    margin: 20px auto 10px auto;
}

.dicono-di-noi .titolo h2 {
    color: red;
}

.dicono-di-noi .titolo h3,
.dicono-di-noi .titolo h2 {
    margin: 0 auto;
}

.recensioni {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
}

.recensione {
    padding: 50px;
    background-color: var(--color4);
    box-shadow: 0 0 1px grey;
    margin: 10px auto;
}

.recensione p {
    font-size: 15px;
    line-height: 1.3;
    margin-top: 25px;
}


/*footer*/
.footer {
    width: 100%;
    text-align: center;
    padding: 25px;
    left: 0;
    background-color: black;
    color: var(--color4);
    font-size: 15px;
}

.footer a {
    color: var(--color4);
}

@media screen and (min-width: 1750px) {

    .block1,
    .block2,
    .dicono-di-noi {
        padding-left: 300px;
        padding-right: 300px;
    }
}

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

    body {
        height: 100vh;
        background-attachment: scroll;
    }

    h1 {
        font-size: 30px;
    }

    p {
        font-size: 15px;
    }

    div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .descrizione {
        margin: 10px auto;
        max-width: 400px !important;
        padding: 20px;
    }

    .hero {
        display: none;
    }

    .nav {
        height: 80px;
    }

    .nav .logo-container {
        width: 100%;
    }

    .nav img {
        max-width: 200px;

    }

    .nav a {
        display: none !important;
    }

    .servizi-container {
        padding: 25px;
        flex-wrap: wrap;
    }

    .servizio img {
        max-height: 100px;
    }

    .servizio {
        width: auto;
        padding: 25px 50px;
        width: 350px;
        margin: 10px auto;
        height: 200px;
    }

    .servizio img {
        max-width: 100%;
        height: auto;
    }

    .offerte,
    .contatto {
        width: 100%;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .offerte p {
        font-size: 12px;
    }

    .dicono-di-noi {
        margin: 0;
        border-bottom: none;
        padding: 25px;
        border-top: none;
    }

    .recensione,
    .dicono-di-noi .titolo h2,
    .dicono-di-noi .titolo h3 {
        margin: 5px 0;
        width: 100%;
    }



}
