.pa-container {
    margin-bottom: 30px;
}
.pa-container ul {
    margin: 0;
}
.pa-container li {
    list-style: none;
}
.pa-container ul li a {
    text-decoration: none;
}
.pa-tabs-nav ul {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
    margin-left: 0;
}
.pa-tabs-nav ul li:first-of-type {
    border-left: 1px solid rgb(231, 234, 237)
}
.pa-tabs-nav ul li {
    border-right: 1px solid rgb(231, 234, 237)
}
.pa-tabs-nav ul li {
    font-weight: 600;
    color: #30475f;
    padding: 1.5rem;
    white-space: nowrap;
    line-height: 1em;;
}

.pa-tab-item {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.pa-tab-item.active,
.pa-tab-item:hover {
    color: #007a52;
}

.pa-tab-item.active {
    color: #007a52;
    border-bottom-color: #007a52;
}

.pa-form-steps {
    display: flex;
    gap: 30px;
}

.pa-sidebar {
    flex: 0 0 300px;
    height: fit-content;
    position: sticky;
    top: 60px;
}

.pa-sidebar h3 {
    color: #007a52;
    font-size: .775rem;
    font-weight: 600;
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 10px;
    border-bottom: 4px solid #e9e6f2;
}
.pa-sidebar-list {
    padding: 16px 16px 0;
}

.pa-sidebar-item {
    padding: 6px 24px 6px 22px;
    font-weight: normal;
    position: relative;
}

.pa-sidebar-item.active {
    color: #007a52;
}
.pa-sidebar-item.active:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background-color: #007a52;
}
.riepilogo-conferma {
    margin: 30px 0 60px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
}
.pa-steps-content-wrapper {
    width: 100%;
}

.pa-step-content {
    flex-grow: 1;
    display: none;
}

.pa-step-content.active {
    display: block;
}

.pa-form-box {
    background-color: #ebeef0;
    padding: 1.78rem;
    margin-bottom: 25px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .2);
}

.pa-form-box h2 {
    font-size: 2.2rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 0;
}

.pa-form-box p {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

.pa-form-box label {
    font-size: .8rem;
    color: #1a1a1a;
    font-weight: 600;
}

.pa-form-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    background-color: #fff;
}

.pa-form-fieldset {
    background-color: #fff;
    padding: 1.78rem;
}

.pa-form-box ul {
    margin: 0;
    background-color: #fff;
    padding: 1rem;
}
.pa-form-box li {
    list-style: none;
    background-color: #fff;
    padding: .5rem;
}

span#max-richiedenti {
    font-size: 1rem;
    margin-left: 10px;
    font-style: italic;
    font-weight: 400;
}

/* Stili per i bottoni di navigazione tra gli step (se presenti) */
.pa-navigation-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    gap: 20px;
}

.pa-button {
    background-color: #007a52;
    color: #fff;
    padding: 10px 50px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: .9rem;
    transition: background-color 0.3s ease;
    font-weight: 600;
}
.pa-button[disabled] {
    opacity: .3;
}

.pa-button:hover {
    background-color: #006242;
    color: #fff;
}

.pa-button.secondary {
    background-color: #6c757d;
}

.pa-button.secondary:hover {
    background-color: #5a6268;
}

.validity-message {
    color: red;
    font-size: .8rem;
    margin-top: 6px 0 18px;
}

#prestampati-box ul li {
    padding: 0;
}
span.sub {
    font-size: .8rem;
    font-style: italic;
}
a.document-link {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 10px;
    width: fit-content;
    transition: background-color .2s ease-in-out;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
}
a.document-link:hover {
    background-color: #ebeef0;
}

.document-icon img {
    width: 40px;
    height: 40px;
}
.document-description {
    margin: 0;
    columns: #333;
}
.pre-loaded-data {
    color: #007a52;
    font-style: italic;
    text-decoration: underline;
}
.pa-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.pa-loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite; 
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}