* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
}

body {
    background-image: url('https://storage.googleapis.com/img_meltemi/SITI/micrositi/prezzobravo/background.jpeg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}


h1 {
    font-family: "Berkshire Swash", monospace;
    font-size: 60px;
    line-height: 1.3;
}

h2,
h3 {
    font-family: "American Typewriter", "Berkshire Swash", monospace;
}

h2 {
    font-size: 35px;
    line-height: 1.3;
}

h3 {
    font-size: 25px;
    line-height: 1.3;
}

h4 {
    font-size: 25px;
    line-height: 1.3;
}

p {
    font-size: 18px;
    line-height: 1.3;
}

/* Links & Hovers */

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

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

.footer a {
    color: white;
}

.checkbox a {
    color: #9D2493;
    text-decoration: underline;
}

.checkbox a:hover {
    color: orange;
    text-decoration: none;
}

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

input[type="submit"]:hover {
    background-color: white !important;
    color: #9D2493 !important;
    cursor: pointer;
}

div,
input,
img,
a {
    transition: 100ms ease-in;
}

/* Navbar */

.nav {
    background-color: white;
    height: 10%;
    min-height: 70px;
    position: fixed;
    width: 100%;
    display: flex;
    z-index: 100;
    box-shadow: 0 0 1px #9D2493;
    align-items: center;
}

.logo-container {
    height: 100%;
    width: 20%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

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

.nav-links {
    margin-left: auto;
    margin-right: 30px;
    padding: 0;
}

.nav-links a {
    margin-left: 10px;
    color: #9D2493;
}

/* Hero */

.hero h1,
.hero p {
    margin: auto;
}

.hero {
    width: 100%;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 50px;
    height: auto;
    background-color: #166082;
    color: white;
}

/* Servizi */

.servizi-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    margin: 20px auto;
}

.servizio {
    margin: 20px auto;
    text-align: center;
    border-radius: 10px;
    background-color: white;
    border: 10px solid orange;
    box-shadow: 0 0 5px lightgrey;
    padding: 50px;
}

.servizio img {
    height: 180px;
}

.servizio:hover {
    box-shadow: 0 0 20px white;
    border: 10px solid white;
}

/* Blocks */

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

.contatto,
.offerte,
.form {
    margin: 20px auto;
    background-color: white;
    border: 2px solid #9D2493;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 0 5px lightgrey;
    max-width: 700px;
    width: 100%;
}

.descrizione {
    background-color: #166082;
    color: white;
    border: none;
    padding: 40px 70px;
    max-width: 500px;
    text-align: justify;
    margin: auto 30px;
}

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

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

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

.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;
}

.campo {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 15px 0 5px 0;
}

.campo label {
    width: 30%;
    text-align: left;
    font-weight: bold;
}

.campo input {
    width: 70%;
    margin-right: 0;
    border-radius: 10px;
    padding: 10px;
    border: solid 1px orange;
}

/* CORRECCIÓN PRIVACIDAD Y CHECKBOXES */

.checkbox,
.camps {
    margin: 25px 0;
}

.flag {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
}

.flag input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #9D2493;
}

.flag label {
    display: block;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    text-align: left;
    word-break: break-word;
}

.submit-botton {
    background-color: #9D2493 !important;
    border: 2px solid #9D2493 !important;
    box-shadow: 0 0 0px transparent !important;
    color: white !important;
    text-align: center;
    padding: 15px 30px;
    border-radius: 15px;
    margin: 20px auto 0 auto;
    display: block;
    font-size: 16px;
    font-weight: bold;
}

/* Dicono di noi */

.dicono-di-noi {
    width: 100%;
    background-color: white;
    border-top: 5px solid orange;
    margin: 100px 0 0 0;
    padding: 40px 20px;
}

.dicono-di-noi p,
.dicono-di-noi h1,
.dicono-di-noi h2,
.dicono-di-noi h3,
.dicono-di-noi h4 {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.recensioni {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    justify-content: center;
    gap: 20px;
}

.recensione {
    border: solid 1px #ededed;
    padding: 30px;
    margin: 0;
    max-width: 500px;
    background-color: #fff;
}

/* Footer */

.footer {
    width: 100%;
    background-color: #166082;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.footer p {
    margin-bottom: 10px;
}

/* Responsive */

@media screen and (max-width: 1000px) {
    body {
        height: 100vh;
        background-attachment: scroll;
    }

    .descrizione {
        margin: auto;
    }
}

@media screen and (max-width: 600px) {
    body {
        height: auto;
        background-attachment: scroll;
    }

    h1 {
        font-size: 30px;
    }

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

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

    .hero {
        padding-top: 100px;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .nav {
        height: 80px;
    }

    .nav img {
        max-width: 180px;
    }

    .nav-links {
        display: none !important;
    }

    .servizi-container {
        margin: auto;
    }

    .servizio {
        border: solid 5px orange;
        max-width: 140px;
        padding: 20px 10px;
    }

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

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

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

    .campo {
        flex-direction: column;
        align-items: flex-start;
    }

    .campo label {
        width: 100%;
        margin-bottom: 5px;
    }

    .campo input {
        width: 100%;
    }

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