
/* Accordion */
.accordation-input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
.accordion-wrapper {
    border-radius: 8px;
    overflow:  hidden;
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
    width: 950px;
    margin:0 auto;
}
.accordion {
    width: 100%;
    color: white;
    overflow: hidden;
    margin-bottom: 16px;
}
.accordion:last-child{
    margin-bottom: 0;
}
.accordion-label {
    display: flex;
    -webkit-box-pack: justify;
    justify-content: space-between;
    padding: 16px;
    background: rgba(4,57,94,.8);
    font-weight: bold;
    cursor: pointer;
    font-size: 11px;
}

.accordion-label:hover {
    background: rgba(4,57,94,1);
}
.accordion-label::after {
    content: "\276F";
    width: 16px;
    height: 16px;
    text-align: center;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
.accordion-content {
    margin: 0;
    padding: 0;
    max-height: 0;
    color: rgba(4,57,94,1);
    background: #f8f8f8;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
.accordion-content p{
    margin: 0;
    color: rgba(4,57,94,.7);
    font-size: 18px;
}
input:checked + .accordion-label {
    background: rgba(4,57,94,1);
}
input:checked + .accordion-label::after {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}
input:checked ~ .accordion-content {
    max-height: 500vh;
    padding: 16px;
}
/* Table */
.delega-table {
    margin: 0;
    padding: 0;
    font-size: 0.84em;
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.delega-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
}
.delega-table th {
    padding: 7px 8px;
}
.delega-table td {
    padding: 7px 8px;
}
.delega-table tbody tr {
    text-align: center;
    border-bottom: 1px solid #dddddd;
}
.delega-table tbody tr:hover {
    background-color: #dddada;
    cursor: pointer;
}

/* Table Modulistica */
.modulistica-table {
    margin: 0;
    padding: 0;
    font-size: 0.84em;
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.modulistica-table td {
    padding: 7px 8px;
}
.modulistica-table tbody tr {
    text-align: center;
    border-bottom: 1px solid #f8f8f8;
}

.p-modulustica {
    font-size: 0.84em;
    text-align: justify;
}

/* Buttons */
.btn{
    display:block;
    margin:auto;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.btn-half-swipe {
    display: block;
    overflow: hidden;
    padding:10px;
    width: 80px;
    text-align: center;
    margin: auto;
    text-transform: uppercase;
    border: 2px solid #325a73;
    color: #325a73;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}
.btn-half-swipe:before, .btn-half-swipe:after {
    content: "";
    position: absolute;
    left:0;
    top:0;
    height: 100%;
    width: 120%;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
}
.btn-half-swipe span{
    position:relative;
    transition: all 0.5s ease-in-out;
    z-index:4;
}
.btn-half-swipe:after {
    left: -40px;
    border-left: 50px solid transparent;
    transform: translateX(100%);
}
.btn-half-swipe:hover:before {
    transform: translateX(-49%);
}
.btn-half-swipe:hover:after {
    transform: translateX(49%);
}
.btn-half-swipe--green:after {
    border-top: 80px solid #009879;
}
.btn-half-swipe--green:hover {
    border: 2px solid #009879;
    color: #333;
}
.btn-half-swipe--orange:after {
    border-top: 80px solid #f17600;
}
.btn-half-swipe--orange:hover {
    border: 2px solid #f17600;
    color: #333;
}
.btn-half-swipe--red:after {
    border-top: 80px solid #fa4b2e;
}
.btn-half-swipe--red:hover {
    border: 2px solid #fa4b2e;
    color: #333;
}
.btn-half-swipe--blue:after {
    border-top: 80px solid #325a73;
}
.btn-half-swipe--blue:hover {
    border: 2px solid #325a73;
    color: #333;
}

.btn-container{
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
/* Form*/
.form-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.form-group {
    display: flex;
    justify-content: space-between;
}

.input-container {
    width: 48%;
}

.input-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-container input[type="text"]{
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.input-container input[type="checkbox"]{
    padding: 8px;
    margin-bottom: 10px;
}

.to-up {
    text-transform: uppercase;
}

.sesso {
    width: 30%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}
.generic-select {
    width: 95%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}
.generic-date {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}
.div-error {
    margin-bottom: 10px;
}
.delete-dialog {
    background-color: #325a73;
}

/* Step indicator  */
.step-progressbar {
    list-style: none;
    counter-reset: step;
    display: flex;
    padding: 0;
}

.step-progressbar__item {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    position: relative;
}

.step-progressbar__item:before {
    width: 3em;
    height: 3em;
    content: counter(step);
    counter-increment: step;
    align-self: center;
    background: #999;
    color: #fff;
    border-radius: 100%;
    line-height: 3em;
    margin-bottom: 0.5em;
}

.step-progressbar__item:after {
    height: 2px;
    width: calc(100% - 4em);
    content: '';
    background: #999;
    position: absolute;
    top: 1.5em;
    left: calc(50% + 2em);
}

.step-progressbar__item:last-child:after {
    content: none;
}

.step-progressbar__item--active:before {
    background: #000;
}

.step-progressbar__item--complete:before {
    content: '✔';
}
