 /***********************
    FORM ISCRIZIONE
************************/
form button{
    border: none;
    cursor: pointer;
    margin: 0 auto;
}
.form_hero{
    margin-top: .5rem;
    width: 100%;
    padding: 2rem 5rem;
    background-color: var(--light_gray);
    color: var(--white);
}
.form_hero_wrapper{
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    /* display: flex;
    justify-content: space-between;
    align-items: center; */
}
.form_hero_data h2{
    font-size: 2.3rem;
    text-transform: uppercase;
    /* margin-bottom: 2rem; */
    /* max-width: 900px;
    width: 100%; */
    /* text-align: center; */
}
.form_hero_data.servizi{
    text-align: center;
    margin: 3rem 0;
}
.form_hero_data.servizi h2{
    font-size: 2.5rem;
}
.form_hero_data div{
    margin-top: 2rem;
}
.form_hero_data div div:nth-child(2){
    font-size: 2rem;
    font-weight: 600;
}
.form_hero_data div div:nth-child(1){
    font-weight: 500;
    margin-bottom: .35rem;
}
.form_hero_pdf{
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}
.form_hero_pdf i{
    color: var(--bordeaux);
    font-size: 2rem;
}
.form_title{
    font-size: 2.3rem;
    text-align: center;
}
.form_link{
    margin-top: .5rem;
    width: 100%;
    text-align: center;
}
.forgot{
    text-align: left !important;
}
.form_link a{
    text-decoration: underline;
    color: var(--dark_gold);
    transition: all 150ms linear;
}
.form_link a:hover,
.form_link a:active{
    color: var(--bright_gold);
}
.form_section_title{
    margin: 2rem 0;
    font-size: 1.8rem;
    /* text-transform: capitalize; */
}
.form_section_title span{
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark_gray);
}
.login_form{
    width: 60%;
    margin: 0 auto;
    margin-top: 5rem;
}
.login_form button,
.register_form button{
    margin-top: 4rem;
}
.register_form{
    margin-top: 3rem;
}
.register_success, .register_danger{
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 18px;
    font-weight: 600;
    color: green;
}
.register_danger{
    color: red;
}
/********** INPUT ************/
.input_data{
    height: 40px;
    width: 100%;
    position: relative;
}
input{
    background: transparent;
    color: var(--black);
    border: none;
}
input:focus{
    border: none;
    outline: none;
}
.input_data input{
    height: 100%;
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--dark_gray);
    font-size: 16px;
}
.input_data label{
    position: absolute;
    bottom: 10px;
    left: 0;
    color: var(--dark_gray);
    pointer-events: none;
    font-size: 18px;
    transition: all .3s ease;
}
.input_data input:focus ~ label,
.input_data input:valid ~ label{
    transform: translateY(-25px);
    font-size: 15px;
    /* color: var(--light_gray); */
}
.underline{
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
}
.underline::before{
    position: absolute;
    content: "";
    bottom: 0;
    height: 100%;
    width: 100%;
    background: var(--light_gray);
    transform: scaleX(0);
    transition: transform .3s ease;
}
.input_data input:focus ~ .underline::before,
.input_data input:valid ~ .underline::before{
    transform: scaleX(1);
}
.input_data label span{
    color: var(--bright_gold);
}
.input_data input::placeholder{
    color: var(--light_gray);
}
#codice_cassa_edile_container{
    /* display: none; */
    opacity: 0;
    transition: opacity .3s ease;
}
.cassa_edile_error{
    position: absolute;
    top: .85rem;
    left: 0;
}
.cassa_edile div:nth-child(3){
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.cassa_edile div:nth-child(3) label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .25rem;
}
/********** MESSAGGI ERRORE ************/
.input_container{
    margin-bottom: 15px;
    position: relative;
}
.error{
    color: var(--error);
    background: #fffafa;
}
.error ~ .underline::before{
    background: var(--error);
}
.data_error {
    position: absolute;
    bottom: -30px;
    left: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--error);
    display: block;
    margin: 8px 0;
    /* display: none; */
}
/********** 2 INPUT ************/
.input_row{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    margin: 3rem 0;
}
.input_col{
    width: calc((100% - 2rem) / 2);
}
.cassa_edile{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
    position: relative;
}
/********** TEXTAREA ************/
.input_container textarea{
    margin-top: 1rem;
    border: 2px solid var(--light_gray);
    color: var(--black);
    font-size: 16px;
    resize: none;
    padding: 1rem 1.5rem;
}
.input_container textarea:focus{
    border: 1px solid var(--dark_gray);
    outline: none;
}
/********** CHECKBOX ***********/
.form_privacy{
    width: fit-content;
    margin: 3rem auto;
    position: relative;
}
.form_privacy span{
    margin-left: .5rem;
    font-size: 18px;
}
.form_privacy span a{
    text-decoration: underline;
    font-weight: 500;
    color: var(--dark_gray);
}
.form_txt span{
    font-size: 1.3rem;
}
.privacy_data_error{
    position: absolute;
    bottom: -30px;
    left: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--error);
    display: block;
    margin: 8px 0;
}
/********** SELECT ***********/
.input_data select{
    height: 100%;
    width: 100%;
    border: 2px solid var(--light_gray);
    outline: none;
    font-size: 16px;
}
.input_data .select_label{
    position: absolute;
    top: -25px;
    left: 0;
    color: var(--dark_gray);
    pointer-events: none;
    font-size: 15px;
}
.input_data .file_label{
    position: absolute;
    top: -3px;
    left: 0;
    color: var(--dark_gray);
    pointer-events: none;
    font-size: 15px;
}
/********** ALUNNI FASE 2 (+) ***********/
.aggiungiAllievo{
    width: fit-content;
    text-transform: uppercase;
    font-size: .85rem;
    font-weight: 700;
    padding: .5rem .65rem;
    background: var( --bright_gold);
    color: var(--white);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 250ms linear;
}
.aggiungiAllievo:hover{
    background-color: var(--dark_gold);
}
.aggiungiAllievo:active{
    box-shadow: none;
}
.fa-user-plus{
    margin-right: .5rem;
}
.alunno_plus{
    width: fit-content;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
} 
.alunno_plus .form_section_title{
    margin: 0;
}
.alunno_plus button{
    background: transparent; 
}
.alunno_plus button i{
    padding-top: 5px;
    color: var(--bordeaux);
    font-size: 1rem;
    transition: all 150ms linear;
}
.alunno_plus button:hover i{
    color: var(--darker_bordeaux);
}
/********** FORM MEDIA QUERY ***********/
@media screen and (max-width: 1024px){
    /* .page_wrapper{
        margin: 5rem auto;
        margin-top: 8rem;
    } */
    .form_hero{
        margin-top: 3rem;;
    }
    .form_hero_data h2{
        text-align: center;
    }
}
@media screen and (max-width: 768px){
    .input_container{
        margin-bottom: 15px;
        position: relative;
        padding: .5rem 0;
    }
    .input_row{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin: 2rem 0;
    }
    .input_col{
        width: 100%;
    }
}
@media screen and (max-width: 430px){
    .form_hero_wrapper{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .form_hero_data h2{
        font-size: 1.5rem;
    }
    .form_hero_data div{
        font-size: 1rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: baseline;
        gap: .35rem;
    }
    .form_hero_data div div:nth-child(2){
        font-size: 1.3rem;
        margin-left: .5rem;
    }
    .form_hero_pdf{
        margin-top: 2rem;
    }
    .form_hero_pdf i{
        font-size: 1.8rem;
    }
    .form_title{
        font-size: 1.4rem;
    }
    .form_section_title{
        font-size: 1rem;
        letter-spacing: 1px;
        font-weight: 700;
        text-align: center;
        text-transform: uppercase;
        color: var(--dark_gold);
    }
    .form_section_title span{
        display: block;
        text-transform: capitalize;
        font-size: .95rem;
        margin-top: .5rem;
    }
    .form_txt{
        color: var(--dark_gold);
        font-weight: 700;
        text-align: center;
    }
    .form_txt span{
        font-size: 1.1rem;
    }
    .form_privacy{
        text-align: center;
        line-height: 1.8rem;
    }
    .form_hero_data.servizi{
        margin: 2rem 0;
    }
    .form_hero_data.servizi h2{
        font-size: 2rem;
    }
    .form_privacy span{
        font-size: 1rem;
    }
    .privacy_data_error{
        bottom: -30px;
    }
}
@media screen and (max-width: 375px){
    .form_title{
        font-size: 1.2rem;
    }
    .form_hero_data h2{
        font-size: 1.2rem;
    }
    .form_hero_data div div:nth-child(2){
        font-size: 1.2rem;
    }
    .input_container{
        margin-bottom: 40px;
    }
    .form_hero_data.servizi h2{
        font-size: 1.5rem;
    }
    .form_privacy span{
        font-size: .95rem;
    }
    .privacy_data_error{
        bottom: -40px;
        line-height: 1rem;
    }
    .alunno_plus{
        width: 100%;
        gap: 0;
    } 
    .alunno_plus .form_section_title{
        width: 100%;
        text-align: center;
    }
}