.regolamento {
    background-color: #F4ECDE;
    width: 100%;
    min-height: 568px;
    display: flex;
    justify-content: center;
    font-size: 18px;
    padding-bottom: 20px;
}

.regolamento-textarea {
    width: 80%;
    color: #641730;
    background-image: url(img/Loghi/LogoFiligrana.svg);
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 1;
}

.regolamento-textarea h1{
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 1000;
}

.regolamento-textarea h2{
    margin-top: 10px;
    font-weight: 700;
}

.regolamento-textarea #reg-ut{
    margin-top: 10px;
    font-weight: 600;
}

.form {
    width: 100%;
    height: 1004px;
    background-image: url(img/Immagini/HeroBg.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
}

.form-text {
    padding: 80px;
}

.form-bg {
    width: 560px;
    height: 668px;
    background-color: rgba(255, 255, 255, 91%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: left;
    color: #641730;
    flex-direction: column;
}

.form-input {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.form-input label{
    padding-left: 10px;
    font-weight: 500;
}

input[type="file"]::file-selector-button  {
    display: none;
}

.form-input input{
    height: 50px;
    border: solid 2px #BABABA;
    border-radius: 15px;
    padding-left: 20px;
    background-color: #FFF6E8;
    color: #641730;
}

.form-input input::placeholder{
    font-size: large;
}


.form-checkboxes {
    display: flex;
    flex-direction: column;
    color: #1E1E1E;
    padding: 5px;
}

.form-checkboxes div input{
    background-color: #D9D9D9;
    height: 24px;
    width: 24px;
}

.form-cb {
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 8px;
    padding-left: 2px;
}

.form-invia {
    width: 100%;
    height: 85px;
    border: 0px;
    border-radius: 30px;
    background-color: #641730;
    color: white;
    font-weight: 800;
    font-size: 40px;
    font-style: normal;
    margin-top: 30px;
    cursor: pointer;
}

footer {
    margin-top: -180px;
    z-index: 1;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, #1A1A1A, transparent);
    color: #ffffff;
    box-sizing: border-box;
}
.gradient {
    width: 100%;
    height: 366px; 
    background: linear-gradient(0deg, #000000 0%, #1A1A1A 52.38%, rgba(51, 51, 51, 0) 80.42%, rgba(102, 102, 102, 0) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.footer-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding-bottom: 30px;
}

.footer-content div{
    margin: 40px;
}

.footer-content div h3{
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-content div p{
    margin-top: 5px;
    font-weight: lighter;
    display: flex;
    align-items: center;
}

.footer-content div p img{
    margin-right: 5px;
    margin-top:5px;
}

.loghi-istituzioni {
    display: flex;
    flex-direction: column;
    margin: 5px;
    position: absolute;
    right: 0px;
}

.loghi-istituzioni img {
    width: 80px;
    height: 80px;
    margin: -5px;
}

@media screen and (max-width: 800px) {
    .regolamento-textarea {
    width: 90%;
    background-size: contain;
    }
    .form {
    height: 750px;
    background-size: cover;
    }
    .form-bg {
    width: 300px;
    height: 600px;
    }
    .form-text {
    padding: 40px;
    }

    .form-input input{
    height: 40px;
    }

    .form-invia {
    height: 60px;
    }
    .form-checkboxes {
    font-size: small;
    }

    footer{
        margin-top: 16vh;
        position: static;
    }

    .footer-content{
    width: 100%;
    display: flex;
    flex-direction: column;
    background: black;
    }
  }