/* globale */
:root {
    --cv-green: #00A25D;
    --cv-green-dark: #05824c;
    --cv-green-deep: #067646;
    --cv-green-soft: rgba(0, 162, 93, 0.1);
    --cv-green-border: rgba(0, 162, 93, 0.18);
}

body {
    font-family: 'Open Sans', sans-serif;
}

h2 {
    color: var(--cv-green);
    font-weight: 600;
}
h3 {
    color: var(--cv-green);
    font-weight: 600;
}

/* pulsanti */
.btn {
    --bs-btn-border-radius: 999px;
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 0.58rem;
    --bs-btn-font-weight: 600;
    --bs-btn-box-shadow: 0 6px 16px rgba(16, 57, 38, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(10, 88, 54, 0.08);
}

.btn:focus-visible {
    outline: none;
}

.btn-outline-cv,
.btn-success,
.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: var(--cv-green);
    --bs-btn-border-color: var(--cv-green);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--cv-green-dark);
    --bs-btn-hover-border-color: var(--cv-green-dark);
    --bs-btn-focus-shadow-rgb: 0, 162, 93;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--cv-green-deep);
    --bs-btn-active-border-color: var(--cv-green-deep);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: rgba(0, 162, 93, 0.55);
    --bs-btn-disabled-border-color: rgba(0, 162, 93, 0.4);
    --bs-gradient: none;
}

.btn-outline-cv {
    font-size: 1rem;
}

.btn-outline-cv-grey,
.btn-outline-secondary {
    --bs-btn-color: #5f6f68;
    --bs-btn-bg: #ffffff;
    --bs-btn-border-color: rgba(95, 111, 104, 0.2);
    --bs-btn-hover-color: var(--cv-green-deep);
    --bs-btn-hover-bg: rgba(0, 162, 93, 0.08);
    --bs-btn-hover-border-color: rgba(0, 162, 93, 0.3);
    --bs-btn-focus-shadow-rgb: 0, 162, 93;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--cv-green);
    --bs-btn-active-border-color: var(--cv-green);
    --bs-btn-disabled-color: rgba(95, 111, 104, 0.55);
    --bs-btn-disabled-bg: #ffffff;
    --bs-btn-disabled-border-color: rgba(95, 111, 104, 0.12);
    --bs-gradient: none;
}

.btn-secondary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: rgba(0, 162, 93, 0.92);
    --bs-btn-border-color: rgba(0, 162, 93, 0.92);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--cv-green-dark);
    --bs-btn-hover-border-color: var(--cv-green-dark);
    --bs-btn-focus-shadow-rgb: 0, 162, 93;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--cv-green-deep);
    --bs-btn-active-border-color: var(--cv-green-deep);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: rgba(0, 162, 93, 0.55);
    --bs-btn-disabled-border-color: rgba(0, 162, 93, 0.4);
}

.btn-danger {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #cf4b4b;
    --bs-btn-border-color: #cf4b4b;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #b93a3a;
    --bs-btn-hover-border-color: #b93a3a;
    --bs-btn-focus-shadow-rgb: 207, 75, 75;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #a62f2f;
    --bs-btn-active-border-color: #a62f2f;
}

.btn-light,
.btn-outline-light {
    --bs-btn-border-radius: 999px;
}

.btn-sm {
    --bs-btn-padding-x: 0.82rem;
    --bs-btn-padding-y: 0.42rem;
    min-height: 34px;
}

.btn-lg {
    --bs-btn-padding-x: 1.2rem;
    --bs-btn-padding-y: 0.75rem;
    min-height: 48px;
}

.table .btn,
.dataTables_wrapper .btn,
.table-responsive .btn {
    --bs-btn-padding-x: 0.72rem;
    --bs-btn-padding-y: 0.34rem;
    min-height: 32px;
    gap: 0.32rem;
    font-size: 0.88rem;
    box-shadow: none;
}

.table .btn.btn-icon,
.dataTables_wrapper .btn.btn-icon,
.table-responsive .btn.btn-icon {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    font-size: 0.82rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    font-size: 0.95rem;
}

@media (max-width: 576px) {
    .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.82rem;
    }
}

/* filtri */
.btn-group-mobile,
.cv-filter-group,
#filtriPosizione {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.42rem;
}

.btn-group-mobile .btn,
.cv-filter-group .btn,
#filtriPosizione .btn,
.filtro-posizione {
    --bs-btn-padding-x: 0.82rem;
    --bs-btn-padding-y: 0.34rem;
    min-height: 32px;
    font-size: 0.82rem;
    letter-spacing: 0.015em;
    box-shadow: none;
}

.btn-group-mobile .btn.btn-secondary,
#filtriPosizione .btn.btn-success,
.cv-filter-group .btn.btn-secondary,
.filtro-posizione.btn-success {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#conteggioGravita .btn,
.btn-group .btn {
    box-shadow: none;
}

@media (max-width: 768px) {
    .btn-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .btn-group .btn {
        flex: 1 1 30%;
        margin-bottom: 0.25rem;
    }

    .btn-group-mobile .btn,
    #filtriPosizione .btn,
    .cv-filter-group .btn,
    .filtro-posizione {
        flex: 0 1 auto;
    }
}

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 0.9rem;
    border-color: rgba(0, 162, 93, 0.16);
    background-color: #ffffff;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(0, 162, 93, 0.34);
    box-shadow: 0 0 0 0.2rem rgba(0, 162, 93, 0.1);
}

.form-select {
    padding-right: 2.5rem;
    padding-left: 0.95rem;
    color: #4f5d57;
    font-weight: 600;
    border-color: rgba(0, 162, 93, 0.2);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2305824c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M3.5 6l4.5 4 4.5-4'/%3e%3c/svg%3e");
    background-position: right 0.95rem center;
    background-size: 16px 12px;
}

.form-select:hover {
    border-color: rgba(0, 162, 93, 0.3);
    background-color: #fcfefd;
}

.form-select-sm {
    min-height: 36px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 0.85rem;
    padding-right: 2.2rem;
    font-size: 0.88rem;
}

.form-select option {
    color: #33413b;
    background: #ffffff;
}

/* navbar */
.navbar-cv {
    background: transparent;
    padding-top: 0.5rem;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.navbar-cv-shell {
    background: linear-gradient(135deg, var(--cv-green) 0%, var(--cv-green-dark) 100%);
    border-radius: 1rem;
    padding: 0.42rem 0.78rem;
    box-shadow: 0 7px 18px rgba(0, 90, 52, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.navbar-cv-main {
    min-width: 0;
}

.navbar-cv .navbar-brand,
.navbar-cv .nav-link,
.navbar-cv .navbar-text {
    color: white;
}

.navbar-cv .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.72);
    color: white;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.navbar-cv .btn-outline-light:hover,
.navbar-cv .btn-outline-light:focus {
    background-color: white;
    color: var(--cv-green-dark);
    border-color: white;
}

.navbar-cv .btn.btn-icon {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 0.8rem;
    font-size: 0.88rem;
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
}

.navbar-cv .navbar-action-icon {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.navbar-cv .navbar-action-icon:hover,
.navbar-cv .navbar-action-icon:focus {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.navbar-cv-actions {
    gap: 0.35rem;
    flex-shrink: 0;
}

.navbar-user-chip {
    max-width: 220px;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    font-size: 0.84rem;
    line-height: 1;
}

.navbar-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .navbar-cv-shell {
        padding: 0.38rem 0.62rem;
        border-radius: 1rem;
    }

    .navbar-cv {
        padding-top: 0.35rem;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .navbar-cv .container-fluid {
        flex-wrap: nowrap;
    }

    .navbar-cv .d-flex {
        flex-wrap: nowrap;
        align-items: center;
    }

    .navbar-cv .btn.btn-icon {
        width: 30px;
        height: 30px;
        min-height: 30px;
        border-radius: 0.75rem;
        font-size: 0.82rem;
    }
}

/* home */
.home-page {
    background: #f8fbf9;
}

.home-shell {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.home-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.home-brand-logo {
    max-width: 280px;
}

.home-brand-subtitle {
    color: #5d6d66;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.home-hub-card {
    width: 100%;
    max-width: 720px;
    padding: 1.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(12, 97, 58, 0.08);
    box-shadow: 0 14px 30px rgba(16, 57, 38, 0.07);
}

.home-hub-heading {
    margin-bottom: 1rem;
    text-align: center;
}

.home-hub-title {
    margin-bottom: 0.2rem;
    color: var(--cv-green-dark);
    font-size: 1.16rem;
    font-weight: 700;
}

.home-hub-text {
    color: #66756e;
    font-size: 0.9rem;
}

.home-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-hub-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(50% - 0.425rem);
    justify-self: center;
}

.home-hub-tile {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid var(--cv-green-border);
    background: #ffffff;
    color: var(--cv-green-deep);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(10, 88, 54, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-hub-tile:hover,
.home-hub-tile:focus {
    color: var(--cv-green-deep);
    border-color: rgba(0, 162, 93, 0.34);
    box-shadow: 0 10px 22px rgba(10, 88, 54, 0.08);
    transform: translateY(-1px);
}

.home-hub-tile-primary {
    border-color: var(--cv-green-border);
    box-shadow: 0 6px 14px rgba(10, 88, 54, 0.04);
}

.home-hub-tile-external {
    border-color: rgba(90, 108, 121, 0.24);
    color: #55636d;
}

.home-hub-tile-external:hover,
.home-hub-tile-external:focus {
    color: #39464f;
    border-color: rgba(90, 108, 121, 0.38);
}

.home-hub-tile-external .home-hub-tile-icon {
    background: rgba(90, 108, 121, 0.1);
}

.home-hub-tile-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--cv-green-soft);
    font-size: 1rem;
}

.home-hub-tile-label {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.15;
}

.home-hub-footer {
    margin-top: 0.8rem;
    padding-top: 0.85rem;
    display: flex;
    justify-content: center;
}

.home-hub-footer-auth {
    gap: 0.7rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    justify-content: center;
}

.home-hub-footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.46rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 162, 93, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #51615a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 57, 38, 0.03);
}

.home-hub-footer-auth .home-hub-footer-action {
    flex: 1 1 0;
    min-width: 0;
}

.home-hub-footer-action-primary {
    background: rgba(0, 162, 93, 0.1);
    border-color: rgba(0, 162, 93, 0.22);
    color: var(--cv-green-deep);
}

.home-hub-footer-action:hover,
.home-hub-footer-action:focus {
    color: var(--cv-green-deep);
    border-color: rgba(0, 162, 93, 0.28);
    background: rgba(0, 162, 93, 0.06);
}

.home-hub-footer-action-primary:hover,
.home-hub-footer-action-primary:focus {
    color: var(--cv-green-deep);
    background: rgba(0, 162, 93, 0.14);
    border-color: rgba(0, 162, 93, 0.3);
}

/* module landing */
.module-landing {
    margin-bottom: 3rem;
}

.module-landing-heading {
    text-align: center;
    margin-bottom: 1.15rem;
}

.module-landing-title {
    margin-bottom: 0.2rem;
    color: var(--cv-green-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.module-landing-text {
    margin-bottom: 0;
    color: #66756e;
    font-size: 0.92rem;
}

.module-landing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 880px;
    margin: 0 auto;
}

.module-landing-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc(50% - 0.425rem);
    justify-self: center;
}

.module-landing-grid.module-landing-grid-compact {
    max-width: 720px;
    margin: 0 auto;
}

.module-landing-tile {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid var(--cv-green-border);
    background: #ffffff;
    color: var(--cv-green-deep);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(10, 88, 54, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.module-landing-tile:hover,
.module-landing-tile:focus {
    color: var(--cv-green-deep);
    border-color: rgba(0, 162, 93, 0.34);
    box-shadow: 0 10px 22px rgba(10, 88, 54, 0.08);
    transform: translateY(-1px);
}

.module-landing-tile:disabled,
.module-landing-tile.disabled {
    opacity: 0.58;
    box-shadow: none;
    transform: none;
}

.module-landing-tile-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--cv-green-soft);
    font-size: 0.98rem;
}

.module-landing-tile-label {
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.18;
}

.module-landing-tile-text {
    color: #6f7c76;
    font-size: 0.88rem;
    line-height: 1.3;
}

.module-landing-grid-compact .module-landing-tile {
    min-height: 96px;
}

/* report */
.report-card {
    padding: 1.3rem;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.report-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--cv-green-border);
    background: #ffffff;
    color: var(--cv-green-deep);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(10, 88, 54, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.report-kpi-card:hover,
.report-kpi-card:focus {
    color: var(--cv-green-deep);
    border-color: rgba(0, 162, 93, 0.34);
    box-shadow: 0 10px 22px rgba(10, 88, 54, 0.08);
    transform: translateY(-1px);
}

.report-kpi-label {
    color: #5d6c66;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
}

.report-kpi-value {
    color: var(--cv-green-dark);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.report-kpi-meta {
    color: #6f7c76;
    font-size: 0.82rem;
    line-height: 1.25;
}

.report-toolbar,
.report-results {
    border: 1px solid rgba(12, 97, 58, 0.08);
    border-radius: 1rem;
    background: #fbfcfc;
}

.report-toolbar {
    padding: 1rem 1.05rem;
    margin-bottom: 1rem;
}

.report-toolbar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.report-toolbar-title,
.report-results-title {
    margin-bottom: 0.18rem;
    color: var(--cv-green-dark);
    font-size: 1rem;
    font-weight: 700;
}

.report-toolbar-text,
.report-results-text {
    color: #6f7c76;
    font-size: 0.86rem;
}

.report-toolbar-actions {
    flex-shrink: 0;
}

.report-filter-block + .report-filter-block {
    margin-top: 0.8rem;
}

.report-filter-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #586760;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.report-results {
    padding: 0.95rem 1.05rem 1rem;
}

.report-results-head {
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .home-shell {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .home-brand-logo {
        max-width: 240px;
    }

    .home-brand-subtitle {
        font-size: 0.86rem;
    }

    .home-hub-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .home-hub-title {
        font-size: 1.08rem;
    }

    .home-hub-text {
        font-size: 0.86rem;
    }

    .home-hub-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .home-hub-grid > :last-child:nth-child(odd) {
        max-width: none;
    }

    .home-hub-tile {
        min-height: 84px;
        padding: 0.85rem 0.9rem;
        gap: 0.5rem;
    }

    .home-hub-tile-icon {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 0.92rem;
    }

    .home-hub-tile-label {
        font-size: 1rem;
    }

    .home-hub-footer-action {
        font-size: 0.9rem;
        padding: 0.45rem 0.82rem;
    }

    .home-hub-footer-auth .home-hub-footer-action {
        flex-basis: 100%;
        width: 100%;
    }

    .module-landing-heading {
        margin-bottom: 1rem;
    }

    .module-landing-title {
        font-size: 1.08rem;
    }

    .module-landing-text {
        font-size: 0.86rem;
    }

    .module-landing-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .module-landing-grid > :last-child:nth-child(odd) {
        max-width: none;
    }

    .module-landing-tile,
    .module-landing-grid-compact .module-landing-tile {
        min-height: 84px;
        padding: 0.85rem 0.9rem;
        gap: 0.5rem;
    }

    .module-landing-tile-icon {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 0.9rem;
    }

    .module-landing-tile-label {
        font-size: 0.98rem;
    }

    .module-landing-tile-text {
        font-size: 0.84rem;
    }

    .report-card {
        padding: 1rem;
    }

    .report-kpi-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .report-kpi-card {
        padding: 0.85rem 0.9rem;
    }

    .report-kpi-value {
        font-size: 1.38rem;
    }

    .report-toolbar,
    .report-results {
        padding: 0.9rem;
    }

    .report-toolbar-head {
        flex-direction: column;
        align-items: stretch;
    }

    .report-toolbar-actions {
        width: 100%;
    }

    .report-toolbar-actions .btn {
        width: 100%;
    }

}

/* login modal */
.cv-login-modal .modal-dialog {
    max-width: 420px;
}

.cv-login-modal .modal-content {
    border: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(16, 57, 38, 0.14);
}

.cv-login-modal .modal-header {
    border-bottom: 0;
    padding: 1.5rem 1.5rem 0.5rem;
    justify-content: center;
}

.cv-login-modal .modal-body {
    padding: 0 1.5rem 1.2rem;
}

.cv-login-modal .modal-footer {
    border-top: 0;
    padding: 0 1.5rem 1.5rem;
    justify-content: center;
    flex-direction: column;
    gap: 0.65rem;
}

.cv-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
}

.cv-login-title {
    margin: 0;
    color: var(--cv-green-dark);
    font-size: 1.12rem;
    font-weight: 700;
}

.cv-login-subtitle {
    margin: 0;
    color: #6a7872;
    font-size: 0.88rem;
    line-height: 1.4;
}

.cv-login-form .form-label {
    margin-bottom: 0.35rem;
    color: #57655f;
    font-size: 0.86rem;
    font-weight: 600;
}

.cv-login-form .form-control {
    min-height: 44px;
    border-radius: 0.85rem;
    border-color: rgba(0, 162, 93, 0.16);
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.cv-login-form .form-control:focus {
    border-color: rgba(0, 162, 93, 0.36);
    box-shadow: 0 0 0 0.2rem rgba(0, 162, 93, 0.12);
}

.cv-login-helper-link {
    color: #5f6f68;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

.cv-login-helper-link:hover,
.cv-login-helper-link:focus {
    color: var(--cv-green-deep);
    text-decoration: underline;
}

.cv-login-submit {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
}

.cv-login-alt-action {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
}

/* shared modal skin */
.modal:not(.cv-login-modal) .modal-content {
    border: 1px solid rgba(12, 97, 58, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(16, 57, 38, 0.12);
}

.modal:not(.cv-login-modal) .modal-header {
    padding: 1.05rem 1.2rem 0.8rem;
    border-bottom: 1px solid rgba(12, 97, 58, 0.08);
    align-items: center;
}

.modal:not(.cv-login-modal) .modal-title {
    color: var(--cv-green-dark);
    font-size: 1.02rem;
    font-weight: 700;
}

.modal:not(.cv-login-modal) .modal-body {
    padding: 1rem 1.2rem 1.15rem;
    color: #4f5d57;
}

.modal:not(.cv-login-modal) .modal-footer {
    padding: 0.85rem 1.2rem 1.1rem;
    border-top: 1px solid rgba(12, 97, 58, 0.08);
    gap: 0.5rem;
}

.modal:not(.cv-login-modal) .btn-close {
    opacity: 0.68;
}

.modal:not(.cv-login-modal) .btn-close:hover,
.modal:not(.cv-login-modal) .btn-close:focus {
    opacity: 1;
}

.modal:not(.cv-login-modal) .form-control,
.modal:not(.cv-login-modal) .form-select {
    min-height: 42px;
    border-radius: 0.85rem;
    border-color: rgba(0, 162, 93, 0.16);
}

.modal:not(.cv-login-modal) .form-control:focus,
.modal:not(.cv-login-modal) .form-select:focus {
    border-color: rgba(0, 162, 93, 0.34);
    box-shadow: 0 0 0 0.2rem rgba(0, 162, 93, 0.1);
}

.modal .modal-dialog.modal-fullscreen .modal-content {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

@media (max-width: 576px) {
    .cv-login-modal .modal-header {
        padding: 1.25rem 1.1rem 0.45rem;
    }

    .cv-login-modal .modal-body {
        padding: 0 1.1rem 1rem;
    }

    .cv-login-modal .modal-footer {
        padding: 0 1.1rem 1.15rem;
    }

    .cv-login-title {
        font-size: 1.06rem;
    }

    .cv-login-subtitle {
        font-size: 0.84rem;
    }

    .modal:not(.cv-login-modal) .modal-header {
        padding: 0.95rem 1rem 0.72rem;
    }

    .modal:not(.cv-login-modal) .modal-body {
        padding: 0.95rem 1rem 1rem;
    }

    .modal:not(.cv-login-modal) .modal-footer {
        padding: 0.8rem 1rem 1rem;
    }
}

/* card */
.card,
.card-cv {
    background-color: white;
    border-radius: 1rem;

    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    .card-cv {
        padding: 1rem;
        margin: 0;
    }
}

.cv-page-shell {
    margin-bottom: 1.75rem;
}

.cv-page-card {
    width: 100%;
    padding: 1.05rem 1.1rem 1.15rem;
    border: 1px solid rgba(12, 97, 58, 0.08);
    box-shadow: 0 12px 28px rgba(16, 57, 38, 0.06);
}

.cv-page-card > :last-child {
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .cv-page-shell {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .cv-page-card {
        padding: 0.9rem;
    }
}

.cv-data-panel {
    border: 1px solid rgba(12, 97, 58, 0.08);
    border-radius: 1rem;
    background: #ffffff;
    padding: 1rem 1.05rem;
}

.cv-data-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.cv-data-panel-title {
    margin: 0;
    color: var(--cv-green-dark);
    font-size: 1rem;
    font-weight: 700;
}

.cv-data-panel-text {
    margin: 0;
    color: #6f7c76;
    font-size: 0.86rem;
}

@media (max-width: 991.98px) {
    .cv-data-panel {
        padding: 0.9rem;
    }

    .cv-data-panel-head {
        margin-bottom: 0.7rem;
    }
}

/* crumb */
.breadcrumb {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px 15px;
}

@media (max-width: 991.98px) {
    .breadcrumb {
        display: none;
    }
}

/* table */
table.table {
    width: 100%;
    table-layout: auto;
}

table.table th, table.table td {
    vertical-align: middle;
    white-space: nowrap;
}

.table.sfondo > :not(caption) > * > * {
    padding: 0.48rem 0.78rem;
    line-height: 1.15;
}

.table.table-sm.sfondo > :not(caption) > * > * {
    padding: 0.38rem 0.7rem;
}

.table.sfondo thead th {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.table.sfondo tbody td {
    font-size: 0.91rem;
    line-height: 1.1;
}

.table.sfondo .table-action-btn {
    font-size: 0.85rem;
    line-height: 1.1;
    padding: 0.35rem 0.65rem;
}

.table.sfondo .table-status-badge {
    font-size: 0.82rem;
    line-height: 1;
    padding: 0.22rem 0.58rem;
    min-height: 0;
    box-shadow: none;
}

.table.sfondo .table-id-pill {
    min-width: 4.2rem;
    min-height: 0;
    padding: 0.2rem 0.62rem;
    font-size: 0.8rem;
    line-height: 1;
}

.table.sfondo .btn,
.table.sfondo .table-inline-link {
    min-height: 0;
}

.table.sfondo .table-inline-link {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: 0;
    font-size: 0.92rem;
    line-height: 1.05;
    font-weight: 600;
    text-decoration: none;
}

.table.sfondo .table-inline-link:hover,
.table.sfondo .table-inline-link:focus {
    text-decoration: underline;
}

.cv-table-stack {
    table-layout: auto;
}

.cv-mobile-only {
    display: none;
}

.cv-desktop-only {
    display: block;
}

.rubrica-table {
    table-layout: fixed;
}

.rubrica-table th,
.rubrica-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}

.rubrica-table.table.table-sm > :not(caption) > * > * {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
}

.rubrica-table .rubrica-col-code,
.rubrica-table .rubrica-col-section,
.rubrica-table .rubrica-col-team {
    white-space: nowrap;
}

.rubrica-table .rubrica-col-code {
    width: 96px;
}

.rubrica-table .rubrica-col-phone {
    width: 140px;
}

.rubrica-table .rubrica-col-mail {
    width: 220px;
}

.rubrica-table .rubrica-col-section {
    width: 118px;
}

.rubrica-table .rubrica-col-team {
    width: 104px;
}

.rubrica-table .rubrica-col-code {
    text-align: center;
}

.rubrica-table .table-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.2rem;
}

/* colonne */
@media (max-width: 991.98px) {
    .hide-mobile {
        display: none !important;
    }
}
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}
@media (max-width: 991.98px) {
    table.sfondo thead {
        display: table-header-group !important;
    }

    table.sfondo tbody tr {
        display: table-row !important;
    }

    table.sfondo tbody td {
        display: table-cell !important;
        padding: 0.5rem;
        border-bottom: 1px solid #dee2e6;
    }

    table.sfondo tbody td::before {
        content: none !important;
    }
}

@media (max-width: 991.98px) {
    .cv-table-stack {
        display: block;
        width: 100% !important;
        border-collapse: separate;
        border-spacing: 0;
    }

    .cv-table-stack colgroup,
    .cv-table-stack thead {
        display: none !important;
    }

    .cv-table-stack tbody {
        display: block;
        width: 100%;
    }

    .cv-table-stack tbody tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 0.85rem;
        padding: 0.2rem 0.85rem;
        border: 1px solid rgba(12, 97, 58, 0.12);
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: 0 8px 18px rgba(16, 57, 38, 0.05);
        overflow: hidden;
    }

    .cv-table-stack tbody tr:last-child {
        margin-bottom: 0;
    }

    .cv-table-stack tbody td {
        display: grid !important;
        width: 100% !important;
        box-sizing: border-box;
        grid-template-columns: minmax(6.5rem, 42%) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
        padding: 0.55rem 0 !important;
        border: 0;
        border-bottom: 1px solid rgba(12, 97, 58, 0.08);
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: left !important;
    }

    .cv-table-stack tbody td > * {
        min-width: 0;
    }

    .cv-table-stack tbody td:last-child {
        border-bottom: 0;
    }

    .cv-table-stack tbody td::before {
        content: attr(data-label);
        display: block;
        color: #62736c;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        line-height: 1.25;
    }

    .cv-table-stack tbody td.text-center,
    .cv-table-stack tbody td[class*="text-center"] {
        justify-items: start;
    }

    .cv-table-stack .table-inline-link,
    .cv-table-stack .btn.btn-link {
        justify-content: flex-start;
        text-align: left;
    }

    .cv-table-stack .rubrica-col-code,
    .cv-table-stack .rubrica-col-phone,
    .cv-table-stack .rubrica-col-mail,
    .cv-table-stack .rubrica-col-section,
    .cv-table-stack .rubrica-col-team {
        width: auto;
    }

    .cv-mobile-only {
        display: block;
    }

    .cv-desktop-only {
        display: none !important;
    }
}

.cv-mobile-records {
    display: grid;
    gap: 0.85rem;
}

.cv-mobile-record {
    border: 1px solid rgba(12, 97, 58, 0.12);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(16, 57, 38, 0.05);
    padding: 0.9rem 0.95rem;
}

.cv-mobile-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cv-mobile-record-title {
    min-width: 0;
}

.cv-mobile-record-title .table-inline-link,
.cv-mobile-record-title .btn.btn-link {
    display: inline-flex;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
}

.cv-mobile-record-subtitle {
    margin-top: 0.2rem;
    color: #6f7c76;
    font-size: 0.84rem;
    line-height: 1.3;
}

.cv-mobile-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(0, 162, 93, 0.1);
    color: var(--cv-green-deep);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.cv-mobile-meta {
    display: grid;
    gap: 0.55rem;
}

.cv-mobile-meta-row {
    display: grid;
    grid-template-columns: minmax(5.6rem, 42%) minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.cv-mobile-meta-label {
    color: #62736c;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.3;
}

.cv-mobile-meta-value {
    min-width: 0;
    color: #2f3a35;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.cv-mobile-meta-value.text-success,
.cv-mobile-meta-value.text-danger {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .cv-mobile-record {
        padding: 0.85rem 0.9rem;
    }

    .cv-mobile-record-head {
        margin-bottom: 0.7rem;
    }
}




.navbar-breadcrumb {
    margin-left: 1rem;
    margin-bottom: 0;
    min-width: 0;
    max-width: 100%;
}

.navbar-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    display: flex;
    gap: 0.35rem;
    flex-wrap: nowrap;
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.1;
}

.navbar-breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.navbar-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.48);
    font-weight: 600;
    padding-right: 0.05rem;
}

.navbar-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.navbar-breadcrumb .breadcrumb-item a:hover,
.navbar-breadcrumb .breadcrumb-item a:focus {
    color: #ffffff;
}

.navbar-breadcrumb .breadcrumb-item:not(.active) a {
    font-weight: 600;
}

.navbar-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-breadcrumb .breadcrumb-home a {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
}

.navbar-breadcrumb-mobile .breadcrumb-item:first-child a {
    padding: 0.18rem 0.1rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .navbar-cv-shell {
        align-items: center;
    }

    .navbar-breadcrumb {
        margin-left: 0.5rem;
    }

    .navbar-breadcrumb .breadcrumb {
        font-size: 0.92rem;
        gap: 0.24rem;
    }

    .navbar-breadcrumb-mobile .breadcrumb-item.active {
        max-width: 11rem;
    }

    .navbar-breadcrumb .breadcrumb-home a {
        border-radius: 0.75rem;
    }
}

.modal {
    z-index: 1055;
}

.modal-backdrop {
    z-index: 1050;
}

body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

@media screen and (max-width: 991.98px) and (orientation: landscape) {
    .card-cv {
        padding: 1rem;
        margin: 0.5rem auto;
        width: 100%;
        box-sizing: border-box;
    }

    .table-responsive-sm {
        overflow-x: auto;
    }
}

/* ======= CORSI - LAYOUT ======= */
.list-group-corsi .corso-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.corso-info {
    flex: 1 1 60%;
    min-width: 250px;
}

.corso-actions {
    flex: 1 1 35%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.corso-actions .form-switch {
    min-width: 150px;
}

/* ======= CORSI - MOBILE ======= */
@media (max-width: 768px) {
    .list-group-corsi .corso-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .corso-info,
    .corso-actions {
        width: 100%;
    }

    .corso-actions {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .corso-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .corso-actions .form-switch {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .corso-actions .btn {
        flex: 1 1 100%;
    }

    .corso-info {
        font-size: 0.95rem;
    }
}
/* === EDIZIONI: layout desktop === */
.edizione-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.edizione-info {
    flex: 1 1 auto;
    min-width: 250px;
}

.edizione-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* === EDIZIONI: layout mobile === */
@media (max-width: 768px) {
    .edizione-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .edizione-info,
    .edizione-actions {
        width: 100%;
    }

    .edizione-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .edizione-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 576px) {
    .edizione-actions .btn {
        flex: 1 1 100%;
    }
}
.modal table {
    table-layout: auto;
}
/* tabella modali*/
.modal table td,
.modal table th {
    white-space: normal !important;
    word-break: break-word;
    vertical-align: top;
}
.form-control[disabled] {
    background-color: #f8f9fa;
    color: #495057;
    opacity: 1;
    font-weight: 600;
}
