body {
    color: #000;
    margin: 0;
    background-color: #333;
}

#wrap {
    padding: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 800px;
}

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

h1 {
    text-align: center;
    color: #000;
    font-weight: 300;
    font-family: serif;
}

form input:not([type='checkbox']),
form select {
    font-size: 1em;
    background: none;
    border: 1px solid #cacaca;
    width: calc(100% - 10px - 2px);
    padding: 0px 5px;
    background-color: #fbfbfb;
    border-radius: 3px;
    height: 30px;
    line-height: 32px;
}

form select {
    color: #757575;
    width: 100%;
    height: 32px;
    padding: 0;
}

#btn-submit {
    width: 150px;
    display: block;
    background: #b2936d;
    padding: 1.5em;
    border-radius: 3px;
    text-transform: uppercase;
    margin: 1em 0 0 auto;
    color: #fff;
    border: none;
    text-align: center;
    outline-color: #a08564;
}

#icon-send {
    position: relative;
    top: 3px;
    right: -3px;
    width: 16px;
}

#logo {
    max-width: 180px;
    max-height: 120px;
}

#wrap-flag {
    width: 180px;
    text-align: right;
}

#wrap-flag a {
    display: inline-block;
    line-height: 1;
}

#wrap-flag a:first-child {
    margin-right: 20px;
}

#wrap-flag img {
    width: 26px;
    display: block;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px 20px;
    display: none;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    display: none;
    padding: 10px 20px;
}

#campi-privacy input {
    display: inline-block;
    width: auto;
}

#campi-privacy label {
    display: inline;
    font-size: 18px;
    line-height: 22px;
}

#wrap-testo-privacy,

#testo-privacy {
    padding: 30px;
    background-color: #fff;
    width: 90%;
    margin: 30px auto;
    text-align: justify;
    position: relative;
    z-index: 100;
}

#chiudi-privacy {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background-color: #333;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 102;
    color: #fff;
    font-weight: bold;
    text-align: center;
    outline: none;
}

.container-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.container-fields .col {
    width: calc(50% - 7px);
    margin-top: 14px;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-wrapper input[type="date"] {
    width: 100%;
}

.input-wrapper::before {
    content: attr(data-placeholder);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

.input-wrapper input:not(:placeholder-shown) + .input-wrapper::before {
    display: none;
}

.input-wrapper input:focus + .input-wrapper::before {
    display: none;
}

.flatpickr-calendar{
    font-family: 'Arial', sans-serif;
}

@media (min-width: 768px) {
    #campi-privacy {
        max-width: 100%;
        min-width: 420px;
    }
}

@media (max-width: 767px) {

    body {
        font-size: 12px;
    }

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

    #wrap-logo {
        width: calc(100% - 80px);
    }

    #wrap-title {
        order: 1;
        width: 100%;
    }

    #wrap-flag {
        width: 80px;
    }

    #logo {
        max-height: 80px;
        max-width: 120px;
    }

    h1 {
        margin-bottom: 0;
        margin-top: 5px;
    }

    .container-fields .col {
        margin-top: 0.8em;
        width: 100%;
    }

    form input[type="submit"] {
        width: 100%;
    }
}