/* =========================================================
   Q-SI
   SITE.CSS
   ========================================================= */


/* =========================================================
   01. VARIABILI / STILE GENERALE
   ========================================================= */

:root {
    --qsi-dark: #101820;
    --qsi-dark-secondary: #18232d;
    --qsi-accent: #168aad;
    --qsi-accent-light: #34a8c7;
    --qsi-white: #ffffff;
    --qsi-light: #f5f7f8;
    --qsi-border: #dfe5e8;
    --qsi-text: #16212b;
    --qsi-muted: #65727c;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    font-size: 16px;
}


body {
    margin: 0;
    color: var(--qsi-text);
    background-color: var(--qsi-white);
    font-family: "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}


img {
    max-width: 100%;
}


.text-accent {
    color: var(--qsi-accent);
}


/* =========================================================
   02. NAVBAR
   ========================================================= */

.navbar {
    padding-top: 18px;
    padding-bottom: 18px;
}


.navbar-brand {
    color: var(--qsi-dark) !important;
    letter-spacing: -1px;
}


.qsi-navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--qsi-dark) !important;
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
}


.qsi-navbar-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}


.navbar-nav {
    gap: 12px;
}


.nav-link {
    color: var(--qsi-text) !important;
    font-size: 0.93rem;
    font-weight: 500;
    transition: color 0.2s ease;
}


    .nav-link:hover {
        color: var(--qsi-accent) !important;
    }


.navbar .btn-outline-dark {
    border-radius: 4px;
    font-size: 0.9rem;
}


    .navbar .btn-outline-dark:hover {
        background-color: var(--qsi-dark);
    }


/* =========================================================
   03. BUTTON
   ========================================================= */

.btn-primary-qsi,
.btn-secondary-qsi,
.btn-light-qsi {
    padding: 14px 28px;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}


.btn-primary-qsi {
    color: white;
    background-color: var(--qsi-dark);
    border: 1px solid var(--qsi-dark);
}


    .btn-primary-qsi:hover {
        color: white;
        background-color: var(--qsi-accent);
        border-color: var(--qsi-accent);
        transform: translateY(-2px);
    }


.btn-secondary-qsi {
    color: var(--qsi-dark);
    background-color: transparent;
    border: 1px solid var(--qsi-dark);
}


    .btn-secondary-qsi:hover {
        color: white;
        background-color: var(--qsi-dark);
        transform: translateY(-2px);
    }


.btn-light-qsi {
    color: var(--qsi-dark);
    background-color: white;
    border: 1px solid white;
}


    .btn-light-qsi:hover {
        color: white;
        background-color: transparent;
        transform: translateY(-2px);
    }


/* =========================================================
   04. LINK
   ========================================================= */

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--qsi-dark);
    font-weight: 650;
    text-decoration: none;
    transition: color 0.2s ease;
}


    .text-link:hover {
        color: var(--qsi-accent);
    }


.text-link-light {
    color: white;
}


    .text-link-light:hover {
        color: var(--qsi-accent-light);
    }


/* =========================================================
   05. ELEMENTI CONDIVISI DELLE SEZIONI
   ========================================================= */

.section-light,
.section-dark,
.section-soft,
.contact-cta {
    padding: 110px 0;
}


.section-light {
    background-color: var(--qsi-white);
}


.section-soft {
    background-color: var(--qsi-light);
}


.section-dark {
    color: white;
    background-color: var(--qsi-dark);
}


.hero-label,
.section-label {
    margin-bottom: 22px;
    color: var(--qsi-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.2px;
}


.section-label-light {
    color: var(--qsi-accent-light);
}


.section-title {
    max-width: 650px;
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 650;
    line-height: 1.03;
    letter-spacing: -2px;
}


.section-title-light {
    color: white;
}


.section-text {
    color: var(--qsi-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}


.content-title {
    margin: 0;
    color: var(--qsi-dark);
    font-size: clamp(2.3rem, 4vw, 3.7rem);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -2px;
}


.content-text {
    color: var(--qsi-muted);
    font-size: 1.1rem;
    line-height: 1.85;
}


.content-text-lead {
    color: var(--qsi-dark);
    font-size: 1.35rem;
    font-weight: 500;
}


.dark-content-text {
    color: #b9c3ca;
    font-size: 1.15rem;
    line-height: 1.85;
}


/* =========================================================
   06. HOME - HERO
   ========================================================= */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 105deg, #ffffff 0%, #ffffff 63%, #f1f5f6 63%, #f1f5f6 100% );
}


.min-vh-75 {
    min-height: 75vh;
}


.hero-title {
    margin: 0;
    color: var(--qsi-dark);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -4px;
}


    .hero-title span {
        color: var(--qsi-accent);
    }


.hero-description {
    max-width: 670px;
    margin-top: 35px;
    margin-bottom: 35px;
    color: var(--qsi-muted);
    font-size: 1.25rem;
    line-height: 1.7;
}


.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}


/* =========================================================
   07. HOME - GRAFICA Q-SI
   ========================================================= */

.hero-graphic {
    position: relative;
    width: 340px;
    height: 340px;
}


.graphic-box {
    position: absolute;
    top: 70px;
    left: 70px;
    z-index: 3;
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 200px;
    height: 200px;
    color: white;
    background-color: var(--qsi-dark);
    font-weight: 700;
    transform: rotate(-6deg);
}


    .graphic-box span {
        margin-top: 35px;
        font-size: 7rem;
        line-height: 1;
    }


    .graphic-box small {
        color: var(--qsi-accent-light);
        font-size: 2rem;
    }


.graphic-circle {
    position: absolute;
    border-radius: 50%;
}


.graphic-circle-1 {
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    border: 2px solid var(--qsi-accent);
}


.graphic-circle-2 {
    bottom: 0;
    left: 0;
    width: 140px;
    height: 140px;
    background-color: var(--qsi-accent);
}


/* =========================================================
   08. APPROCCIO
   ========================================================= */

.approach-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 25px;
    padding: 28px 0;
    border-bottom: 1px solid var(--qsi-border);
}


    .approach-item:first-child {
        padding-top: 0;
    }


    .approach-item span {
        color: var(--qsi-accent);
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 2px;
    }


    .approach-item h3 {
        margin: 0 0 10px;
        color: var(--qsi-dark);
        font-size: 1.4rem;
        font-weight: 650;
    }


    .approach-item p {
        margin: 0;
        color: var(--qsi-muted);
        line-height: 1.7;
    }


/* =========================================================
   09. HOME - AREE DI COMPETENZA
   ========================================================= */

.qsi-card {
    height: 100%;
    min-height: 300px;
    padding: 30px;
    border: 1px solid #34414b;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}


    .qsi-card:hover {
        transform: translateY(-7px);
        border-color: var(--qsi-accent);
        background-color: var(--qsi-dark-secondary);
    }


.card-number {
    margin-bottom: 55px;
    color: var(--qsi-accent-light);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.qsi-card h3 {
    margin-bottom: 20px;
    font-size: 1.45rem;
    font-weight: 600;
}


.qsi-card p {
    margin: 0;
    color: #aeb9c1;
    line-height: 1.7;
}


/* =========================================================
   10. HOME - PROJECT PREVIEW
   ========================================================= */

.project-preview {
    padding: 55px;
    background-color: var(--qsi-light);
    border-left: 5px solid var(--qsi-accent);
}


.project-tag {
    margin-bottom: 20px;
    color: var(--qsi-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.project-preview h3 {
    max-width: 650px;
    margin-bottom: 22px;
    font-size: 2.3rem;
    font-weight: 650;
    letter-spacing: -1px;
}


.project-preview p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--qsi-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}


.project-code {
    padding: 30px;
    background-color: var(--qsi-dark);
    font-family: Consolas, monospace;
}


    .project-code span {
        display: block;
        padding: 8px 0;
        color: var(--qsi-accent-light);
        font-size: 0.9rem;
        border-bottom: 1px solid #34414b;
    }


        .project-code span:last-child {
            border-bottom: none;
        }


/* =========================================================
   11. HOME - CAREER SUMMARY
   ========================================================= */

.career-summary {
    padding: 100px 0;
    background-color: var(--qsi-light);
}


.career-summary-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
}


    .career-summary-flow > div:not(.career-arrow) {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }


    .career-summary-flow span {
        color: var(--qsi-accent);
        font-size: 0.65rem;
        font-weight: 700;
    }


    .career-summary-flow strong {
        color: var(--qsi-dark);
        font-size: 1.25rem;
    }


.career-arrow {
    color: var(--qsi-border);
    font-size: 2rem;
}


/* =========================================================
   12. CONTATTI CTA
   ========================================================= */

.contact-cta {
    color: white;
    background-color: var(--qsi-accent);
}


    .contact-cta h2 {
        margin-bottom: 20px;
        font-size: clamp(3rem, 6vw, 5rem);
        font-weight: 700;
        letter-spacing: -3px;
    }


    .contact-cta p {
        max-width: 650px;
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.7;
    }


/* =========================================================
   13. PAGINE INTERNE - HERO
   ========================================================= */

.page-hero {
    padding: 120px 0 100px;
    background-color: var(--qsi-light);
}


.page-title {
    margin: 0;
    color: var(--qsi-dark);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -4px;
}


.page-intro {
    max-width: 780px;
    margin-top: 35px;
    margin-bottom: 0;
    color: var(--qsi-muted);
    font-size: 1.25rem;
    line-height: 1.7;
}


/* =========================================================
   14. PAGINA SUCCESSIVA
   ========================================================= */

.page-next {
    padding: 90px 0;
    color: white;
    background-color: var(--qsi-dark);
}


.page-next-accent {
    background-color: var(--qsi-accent);
}


.page-next h2 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 650;
    letter-spacing: -2px;
}


/* =========================================================
   15. CHI SONO - HERO / FOTO
   ========================================================= */

.about-hero {
    padding: 110px 0;
    background-color: var(--qsi-light);
}


.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 380px;
    gap: 80px;
    align-items: center;
}


.about-hero-secondary {
    max-width: 720px;
    margin-top: 20px;
    color: var(--qsi-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}


.about-photo-wrapper {
    position: relative;
    padding: 0 0 22px 22px;
}


.about-photo-accent {
    position: absolute;
    right: 22px;
    bottom: 0;
    width: calc(100% - 22px);
    height: calc(100% - 22px);
    background-color: var(--qsi-accent);
}


.about-photo {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center top;
}


/* =========================================================
   16. CHI SONO - FORMAZIONE
   ========================================================= */

.about-learning-section {
    padding: 120px 0;
    color: white;
    background-color: var(--qsi-dark);
}


.about-learning-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 100px;
}


.about-learning-title {
    max-width: 520px;
    margin: 0;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -3px;
}


.about-learning-content {
    max-width: 750px;
}


    .about-learning-content > p {
        color: #aeb9c1;
        font-size: 1.05rem;
        line-height: 1.85;
    }


    .about-learning-content .about-learning-lead {
        color: white;
        font-size: 1.3rem;
        font-weight: 500;
    }


/* =========================================================
   17. CHI SONO - LAUREA
   ========================================================= */

.degree-card {
    position: relative;
    margin-top: 50px;
    padding: 32px 35px;
    background-color: #16232d;
    border: 1px solid #34414b;
}


    .degree-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background-color: var(--qsi-accent);
    }


.degree-card-label {
    margin-bottom: 12px;
    color: var(--qsi-accent-light);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.degree-card h3 {
    margin: 0 0 7px;
    color: white;
    font-size: 1.7rem;
    font-weight: 650;
}


.degree-card p {
    margin: 0;
    color: #aeb9c1;
}


.degree-card > span {
    position: absolute;
    top: 30px;
    right: 35px;
    color: var(--qsi-accent-light);
    font-size: 1rem;
    font-weight: 700;
}


/* =========================================================
   18. CHI SONO - TESI
   ========================================================= */

.about-thesis {
    padding: 110px 0;
    background-color: white;
}


.thesis-mini-card {
    padding: 45px;
    background-color: var(--qsi-light);
    border-left: 5px solid var(--qsi-accent);
}


    .thesis-mini-card > span {
        display: block;
        margin-bottom: 20px;
        color: var(--qsi-accent);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 2px;
    }


    .thesis-mini-card h3 {
        margin-bottom: 25px;
        color: var(--qsi-dark);
        font-size: 1.8rem;
        font-weight: 650;
        line-height: 1.3;
    }


    .thesis-mini-card p {
        color: var(--qsi-muted);
        line-height: 1.75;
    }


.thesis-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 35px;
    margin-bottom: 35px;
    border-top: 1px solid var(--qsi-border);
    border-left: 1px solid var(--qsi-border);
}


    .thesis-mini-stats > div {
        padding: 22px;
        border-right: 1px solid var(--qsi-border);
        border-bottom: 1px solid var(--qsi-border);
    }


    .thesis-mini-stats strong {
        display: block;
        margin-bottom: 8px;
        color: var(--qsi-accent);
        font-size: 1.8rem;
        font-weight: 700;
    }


    .thesis-mini-stats span {
        color: var(--qsi-muted);
        font-size: 0.72rem;
        line-height: 1.4;
    }


.thesis-mini-quote {
    margin: 35px 0;
    padding: 25px 30px;
    color: white;
    background-color: var(--qsi-dark);
    border-left: 4px solid var(--qsi-accent);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================================
   19. CHI SONO - PROSPETTIVA
   ========================================================= */

.about-perspective {
    padding: 110px 0;
    color: white;
    background-color: var(--qsi-accent);
}


    .about-perspective h2 {
        max-width: 800px;
        margin-bottom: 30px;
        font-size: clamp(2.8rem, 5vw, 4.5rem);
        font-weight: 700;
        line-height: 1;
        letter-spacing: -3px;
    }


    .about-perspective p {
        max-width: 750px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.05rem;
        line-height: 1.8;
    }


/* =========================================================
   20. ESPERIENZE - INTRODUZIONE
   ========================================================= */

.experience-introduction {
    border-bottom: 1px solid var(--qsi-border);
}


/* =========================================================
   21. ESPERIENZE - PRINCIPALE
   ========================================================= */

.experience-featured {
    padding: 120px 0;
    color: white;
    background-color: var(--qsi-dark);
}


.experience-featured-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 60px;
}


.experience-side {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.experience-year {
    color: var(--qsi-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.experience-year-current {
    color: var(--qsi-accent-light);
}


.experience-line {
    width: 1px;
    height: 100%;
    min-height: 300px;
    margin: 15px 0;
    background-color: #34414b;
}


.experience-company,
.journey-company {
    margin-bottom: 5px;
    color: var(--qsi-accent-light);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.experience-location {
    margin-bottom: 25px;
    color: var(--qsi-muted);
    font-size: 0.8rem;
}


.experience-body h2,
.experience-standard-content h2 {
    max-width: 850px;
    margin-bottom: 18px;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -3px;
}


.experience-period-text {
    margin-bottom: 35px;
    color: var(--qsi-accent-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.experience-lead {
    max-width: 850px;
    margin-bottom: 55px;
    color: #b6c1c8;
    font-size: 1.2rem;
    line-height: 1.8;
}


.experience-responsibilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    border-top: 1px solid #34414b;
    border-left: 1px solid #34414b;
}


.responsibility-item {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 15px;
    min-height: 190px;
    padding: 28px;
    border-right: 1px solid #34414b;
    border-bottom: 1px solid #34414b;
}


    .responsibility-item > span {
        color: var(--qsi-accent-light);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }


    .responsibility-item h3 {
        margin: 0 0 12px;
        font-size: 1rem;
        font-weight: 650;
    }


    .responsibility-item p {
        margin: 0;
        color: #aab6be;
        font-size: 0.92rem;
        line-height: 1.65;
    }


.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1000px;
    margin-top: 35px;
}


    .experience-tags span {
        padding: 7px 11px;
        color: #bac5cb;
        border: 1px solid #34414b;
        font-size: 0.7rem;
        font-weight: 600;
    }


/* =========================================================
   22. ESPERIENZE - STANDARD
   ========================================================= */

.experience-standard {
    padding: 110px 0;
    background-color: white;
    border-bottom: 1px solid var(--qsi-border);
}


.experience-standard-soft {
    background-color: var(--qsi-light);
}


.experience-standard-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 60px;
}


.experience-date-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}


    .experience-date-column span {
        color: var(--qsi-accent);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }


    .experience-date-column div {
        width: 1px;
        min-height: 220px;
        margin: 15px 0;
        background-color: var(--qsi-border);
    }


.experience-standard-content .experience-company {
    color: var(--qsi-accent);
}


.experience-standard-content h2 {
    color: var(--qsi-dark);
}


.experience-lead-dark {
    color: var(--qsi-muted);
}


.experience-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 950px;
    margin-top: 45px;
    border-top: 1px solid var(--qsi-border);
    border-left: 1px solid var(--qsi-border);
}


    .experience-points > div {
        min-height: 140px;
        padding: 25px;
        border-right: 1px solid var(--qsi-border);
        border-bottom: 1px solid var(--qsi-border);
    }


    .experience-points strong {
        display: block;
        margin-bottom: 12px;
        color: var(--qsi-accent);
        font-size: 0.68rem;
        letter-spacing: 1.5px;
    }


    .experience-points p {
        margin: 0;
        color: var(--qsi-muted);
        line-height: 1.6;
    }


/* =========================================================
   23. ESPERIENZE - VERBANOFILM
   ========================================================= */

.company-journey {
    padding: 120px 0;
    color: white;
    background-color: var(--qsi-dark);
}


.journey-intro {
    max-width: 650px;
    margin-top: 25px;
    color: #aeb9c1;
    font-size: 1.2rem;
    line-height: 1.8;
}


.journey-timeline {
    max-width: 1050px;
    margin: 90px auto 0;
}


.journey-role {
    display: grid;
    grid-template-columns: 130px 35px 1fr;
    min-height: 350px;
}


.journey-date {
    padding-top: 2px;
    text-align: right;
}


    .journey-date span {
        display: block;
        color: white;
        font-size: 1.7rem;
        font-weight: 700;
    }


    .journey-date small {
        color: var(--qsi-accent-light);
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }


.journey-marker {
    position: relative;
}


    .journey-marker::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 15px;
        width: 9px;
        height: 9px;
        background-color: var(--qsi-accent);
        border-radius: 50%;
    }


    .journey-marker::after {
        content: "";
        position: absolute;
        top: 22px;
        bottom: 0;
        left: 19px;
        width: 1px;
        background-color: #34414b;
    }


.journey-role-last .journey-marker::after {
    display: none;
}


.journey-content {
    padding-left: 35px;
    padding-bottom: 80px;
}


.journey-role-label {
    margin-bottom: 10px;
    color: var(--qsi-accent-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.journey-content h3 {
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 650;
}


.journey-period {
    margin-bottom: 22px;
    color: #7f8d96;
    font-size: 0.78rem;
}


.journey-content > p {
    max-width: 700px;
    color: #b6c0c7;
    font-size: 1.05rem;
    line-height: 1.7;
}


.journey-content ul {
    max-width: 700px;
    margin-top: 25px;
    padding-left: 18px;
    color: #9fabb3;
}


.journey-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}


/* =========================================================
   24. COMPETENZE
   ========================================================= */

.skills-category {
    padding: 110px 0;
    background-color: white;
}


.skills-category-soft {
    background-color: var(--qsi-light);
}


.skills-category-dark {
    color: white;
    background-color: var(--qsi-dark);
}


.skills-category-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 90px;
}


.skills-category-number {
    display: block;
    margin-bottom: 50px;
    color: var(--qsi-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.skills-category-number-light {
    color: var(--qsi-accent-light);
}


.skills-category-heading h2 {
    max-width: 480px;
    margin: 0;
    color: var(--qsi-dark);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}


.skills-category-dark .skills-category-heading h2 {
    color: white;
}


.skills-lead {
    max-width: 760px;
    margin-bottom: 45px;
    color: var(--qsi-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}


.skills-lead-light {
    color: #b2bdc4;
}


/* =========================================================
   25. COMPETENZE - BLOCK GRID
   ========================================================= */

.skills-block-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--qsi-border);
    border-left: 1px solid var(--qsi-border);
}


.skills-block {
    min-height: 180px;
    padding: 28px;
    border-right: 1px solid var(--qsi-border);
    border-bottom: 1px solid var(--qsi-border);
}


    .skills-block h3 {
        margin-bottom: 12px;
        color: var(--qsi-dark);
        font-size: 1.1rem;
        font-weight: 650;
    }


    .skills-block p {
        margin: 0;
        color: var(--qsi-muted);
        line-height: 1.65;
    }


/* =========================================================
   26. COMPETENZE - CLEAN LIST
   ========================================================= */

.skills-list-clean {
    border-top: 1px solid var(--qsi-border);
}


    .skills-list-clean > div {
        display: grid;
        grid-template-columns: 50px 1fr;
        padding: 20px 0;
        border-bottom: 1px solid var(--qsi-border);
    }


    .skills-list-clean span {
        color: var(--qsi-accent);
        font-size: 0.7rem;
        font-weight: 700;
    }


    .skills-list-clean strong {
        color: var(--qsi-dark);
        font-size: 1rem;
        font-weight: 600;
    }


/* =========================================================
   27. COMPETENZE - PROCESS
   ========================================================= */

.process-skills {
    border-top: 1px solid #34414b;
}


    .process-skills > div {
        padding: 30px 0;
        border-bottom: 1px solid #34414b;
    }


    .process-skills span {
        display: block;
        margin-bottom: 10px;
        color: var(--qsi-accent-light);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 2px;
    }


    .process-skills h3 {
        margin-bottom: 12px;
        font-size: 1.4rem;
    }


    .process-skills p {
        max-width: 700px;
        margin: 0;
        color: #aab6be;
        line-height: 1.7;
    }


/* =========================================================
   28. COMPETENZE - ERP / TECNOLOGIE
   ========================================================= */

.technology-levels {
    border-top: 1px solid var(--qsi-border);
}


.technology-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 35px;
    padding: 25px 0;
    border-bottom: 1px solid var(--qsi-border);
}


    .technology-row strong {
        display: block;
        margin-bottom: 5px;
        color: var(--qsi-dark);
    }


    .technology-row span {
        color: var(--qsi-accent);
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }


    .technology-row p {
        margin: 0;
        color: var(--qsi-muted);
        line-height: 1.6;
    }


/* =========================================================
   29. COMPETENZE - DIGITAL DEVELOPMENT
   ========================================================= */

.skills-development {
    padding: 120px 0;
    color: white;
    background-color: var(--qsi-accent);
}


    .skills-development h2 {
        max-width: 500px;
        margin-bottom: 25px;
        font-size: clamp(3rem, 5vw, 5rem);
        font-weight: 700;
        line-height: 0.95;
        letter-spacing: -3px;
    }


    .skills-development .col-lg-5 > p {
        max-width: 500px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.05rem;
        line-height: 1.75;
    }


.development-project {
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}


    .development-project:first-child {
        padding-top: 0;
    }


.development-project-number {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.development-project h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 650;
}


.development-project p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}


.development-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}


    .development-tags span {
        padding: 6px 9px;
        border: 1px solid rgba(255, 255, 255, 0.35);
        font-size: 0.7rem;
        font-weight: 600;
    }


/* =========================================================
   30. PROGETTI - DETTAGLIO
   ========================================================= */

.project-detail {
    padding: 120px 0;
    background-color: var(--qsi-white);
}


.project-detail-dark {
    color: white;
    background-color: var(--qsi-dark);
}


.project-detail-grid {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 330px;
    gap: 55px;
}


.project-index {
    margin-bottom: 15px;
    color: var(--qsi-accent);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.project-status {
    color: var(--qsi-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}


.project-detail-dark .project-status {
    color: #8d9aa3;
}


.project-category {
    margin-bottom: 20px;
    color: var(--qsi-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.project-main h2 {
    max-width: 700px;
    margin-bottom: 25px;
    color: var(--qsi-dark);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -3px;
}


.project-detail-dark .project-main h2 {
    color: white;
}


.project-lead {
    max-width: 760px;
    color: var(--qsi-muted);
    font-size: 1.2rem;
    line-height: 1.75;
}


.project-detail-dark .project-lead {
    color: #aeb9c1;
}


.project-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}


    .project-columns h3 {
        margin-bottom: 12px;
        color: var(--qsi-dark);
        font-size: 1rem;
        font-weight: 700;
    }


.project-detail-dark .project-columns h3 {
    color: white;
}


.project-columns p {
    color: var(--qsi-muted);
    line-height: 1.7;
}


.project-detail-dark .project-columns p {
    color: #aeb9c1;
}


.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 35px;
}


    .project-stack span {
        padding: 7px 11px;
        border: 1px solid var(--qsi-border);
        font-size: 0.72rem;
        font-weight: 600;
    }


.project-detail-dark .project-stack span {
    color: #c8d0d5;
    border-color: #34414b;
}


/* =========================================================
   31. PROGETTI - VISUAL
   ========================================================= */

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    background-color: #17232d;
}


.project-visual-qsi {
    display: flex;
    align-items: baseline;
    transform: rotate(-5deg);
}


.project-q {
    color: white;
    font-size: 9rem;
    font-weight: 750;
    line-height: 1;
}


.project-si {
    color: var(--qsi-accent-light);
    font-size: 2rem;
    font-weight: 700;
}


.project-visual-light {
    background-color: var(--qsi-light);
    border: 1px solid var(--qsi-border);
}


.flow-diagram {
    width: 75%;
}


    .flow-diagram span {
        display: block;
        color: var(--qsi-dark);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 2px;
    }


.flow-line {
    width: 1px;
    height: 45px;
    margin: 10px 0 10px 8px;
    background-color: var(--qsi-accent);
}


/* =========================================================
   32. PROGETTI - TESI
   ========================================================= */

.project-thesis {
    background-color: #eef3f5;
}


.project-thesis-title {
    max-width: 760px;
    margin-top: 45px;
    padding: 30px;
    background-color: white;
    border-left: 4px solid var(--qsi-accent);
}


    .project-thesis-title span {
        display: block;
        margin-bottom: 12px;
        color: var(--qsi-accent);
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 2px;
    }


    .project-thesis-title h3 {
        margin: 0;
        color: var(--qsi-dark);
        font-size: 1.4rem;
        font-weight: 650;
        line-height: 1.4;
    }


.project-thesis-visual {
    background-color: var(--qsi-dark);
}


    .project-thesis-visual > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }


    .project-thesis-visual small {
        color: #aeb9c1;
        font-size: 0.7rem;
        letter-spacing: 2px;
    }


    .project-thesis-visual span {
        color: var(--qsi-accent-light);
        font-size: 5rem;
        font-weight: 300;
    }


    .project-thesis-visual strong {
        color: white;
        font-size: 1rem;
        letter-spacing: 2px;
    }


.thesis-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 50px;
    border-top: 1px solid var(--qsi-border);
    border-left: 1px solid var(--qsi-border);
}


    .thesis-results > div {
        min-height: 150px;
        padding: 28px;
        border-right: 1px solid var(--qsi-border);
        border-bottom: 1px solid var(--qsi-border);
    }


    .thesis-results strong {
        display: block;
        margin-bottom: 10px;
        color: var(--qsi-accent);
        font-size: 2.2rem;
        font-weight: 700;
        letter-spacing: -1px;
    }


    .thesis-results span {
        color: var(--qsi-muted);
        font-size: 0.85rem;
        line-height: 1.5;
    }


.thesis-conclusion {
    margin-top: 50px;
    padding: 35px;
    color: white;
    background-color: var(--qsi-dark);
}


    .thesis-conclusion > span {
        display: block;
        margin-bottom: 20px;
        color: var(--qsi-accent-light);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 2px;
    }


    .thesis-conclusion blockquote {
        margin: 0 0 20px;
        font-size: 2rem;
        font-weight: 650;
        line-height: 1.2;
        letter-spacing: -1px;
    }


    .thesis-conclusion p {
        max-width: 700px;
        margin: 0;
        color: #aeb9c1;
        line-height: 1.7;
    }


.thesis-actions {
    margin-top: 35px;
}


/* =========================================================
   33. PROGETTI - FUTURI
   ========================================================= */

.future-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--qsi-border);
    border-left: 1px solid var(--qsi-border);
}


.future-project {
    min-height: 280px;
    padding: 35px;
    border-right: 1px solid var(--qsi-border);
    border-bottom: 1px solid var(--qsi-border);
}


    .future-project > span {
        display: block;
        margin-bottom: 55px;
        color: var(--qsi-accent);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 2px;
    }


    .future-project h3 {
        margin-bottom: 18px;
        color: var(--qsi-dark);
        font-size: 1.4rem;
        font-weight: 650;
    }


    .future-project p {
        margin: 0;
        color: var(--qsi-muted);
        line-height: 1.7;
    }


/* =========================================================
   34. CONTATTI
   ========================================================= */

.contact-page {
    padding: 120px 0;
}


.contact-info h2 {
    max-width: 350px;
    margin-bottom: 25px;
    color: var(--qsi-dark);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
}


.contact-info > p {
    margin-bottom: 45px;
    color: var(--qsi-muted);
    line-height: 1.7;
}


.contact-note {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid var(--qsi-border);
}


    .contact-note:last-child {
        border-bottom: 1px solid var(--qsi-border);
    }


    .contact-note span {
        color: var(--qsi-accent);
        font-size: 0.75rem;
        font-weight: 700;
    }


    .contact-note p {
        margin: 0;
        color: var(--qsi-text);
    }


/* =========================================================
   35. FORM
   ========================================================= */

.contact-form label,
.login-form label {
    display: block;
    margin-bottom: 9px;
    color: var(--qsi-dark);
    font-size: 0.82rem;
    font-weight: 650;
}


.qsi-input {
    width: 100%;
    padding: 15px 16px;
    color: var(--qsi-dark);
    background-color: white;
    border: 1px solid var(--qsi-border);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .qsi-input:focus {
        border-color: var(--qsi-accent);
        box-shadow: 0 0 0 3px rgba(22, 138, 173, 0.10);
    }


.qsi-textarea {
    resize: vertical;
}


.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}


    .form-privacy input {
        margin-top: 4px;
    }


    .form-privacy label {
        margin: 0;
        color: var(--qsi-muted);
        font-size: 0.8rem;
        font-weight: 400;
    }


.contact-submit {
    min-width: 180px;
}


.form-development-note {
    margin-top: 30px;
    padding-top: 20px;
    color: var(--qsi-muted);
    font-size: 0.78rem;
    border-top: 1px solid var(--qsi-border);
}


    .form-development-note span {
        margin-right: 10px;
        color: var(--qsi-accent);
        font-weight: 700;
        letter-spacing: 1px;
    }


/* =========================================================
   36. LOGIN
   ========================================================= */

.login-section {
    padding: 100px 0;
    background-color: var(--qsi-light);
}


.login-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(16, 24, 32, 0.12);
}


.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 620px;
    padding: 70px;
    color: white;
    background-color: var(--qsi-dark);
}


    .login-intro h1 {
        max-width: 500px;
        margin-bottom: 30px;
        font-size: clamp(3.2rem, 6vw, 5.5rem);
        font-weight: 700;
        line-height: 0.95;
        letter-spacing: -3px;
    }


    .login-intro > p {
        max-width: 520px;
        color: #b5c0c7;
        font-size: 1.08rem;
        line-height: 1.7;
    }


.login-security {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 60px;
}


    .login-security span {
        padding: 7px 10px;
        color: var(--qsi-accent-light);
        border: 1px solid #34414b;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }


.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 65px;
    background-color: white;
}


.login-panel-header > span {
    display: block;
    margin-bottom: 8px;
    color: var(--qsi-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.login-panel-header h2 {
    margin-bottom: 40px;
    color: var(--qsi-dark);
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: -2px;
}


.login-field {
    margin-bottom: 22px;
}


.login-button {
    width: 100%;
    margin-top: 10px;
}


.login-message {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--qsi-border);
}


    .login-message span {
        display: block;
        margin-bottom: 8px;
        color: var(--qsi-accent);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 1.5px;
    }


    .login-message p {
        margin: 0;
        color: var(--qsi-muted);
        font-size: 0.8rem;
        line-height: 1.6;
    }


/* =========================================================
   37. FOOTER Q-SI
   ========================================================= */

.qsi-footer {
    margin: 0 !important;
    padding: 75px 0 30px;
    color: white;
    background-color: var(--qsi-dark);
    border-top: 4px solid var(--qsi-accent);
}


.qsi-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 70px;
    padding-bottom: 60px;
}


/* BRAND */

.qsi-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: white;
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
}


    .qsi-footer-logo:hover {
        color: white;
    }


    .qsi-footer-logo img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }


.qsi-footer-brand p {
    max-width: 420px;
    margin: 0 0 8px;
    color: #9eabb4;
    font-size: 0.9rem;
    line-height: 1.6;
}


/* NAVIGAZIONE */

.qsi-footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}


.qsi-footer-label {
    margin-bottom: 8px;
    color: var(--qsi-accent-light);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.qsi-footer-nav a {
    color: #b7c1c8;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease;
}


    .qsi-footer-nav a:hover {
        color: white;
    }


/* PARTE INFERIORE */

.qsi-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 25px;
    color: #73818a;
    border-top: 1px solid #2d3a44;
    font-size: 0.78rem;
}


    .qsi-footer-bottom strong {
        margin-right: 7px;
        color: white;
    }


    .qsi-footer-bottom a {
        color: #73818a;
        text-decoration: none;
    }


        .qsi-footer-bottom a:hover {
            color: white;
        }


/* =========================================================
   38. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .project-detail-grid {
        grid-template-columns: 85px minmax(0, 1fr);
    }


    .project-visual {
        grid-column: 2;
        min-height: 280px;
        margin-top: 15px;
    }
}


@media (max-width: 991px) {

    /* NAVBAR */

    .navbar-nav {
        gap: 2px;
        padding-top: 20px;
        padding-bottom: 10px;
    }


    .navbar .btn-outline-dark {
        display: inline-block;
        margin-top: 8px;
    }


    /* HOME */

    .hero-section {
        background: white;
    }


    .min-vh-75 {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 100px;
    }


    .section-light,
    .section-dark,
    .section-soft,
    .contact-cta {
        padding: 80px 0;
    }


    .career-summary-flow {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }


    .career-arrow {
        transform: rotate(90deg);
    }


    /* CHI SONO */

    .about-hero-grid {
        grid-template-columns: 1fr;
    }


    .about-photo-wrapper {
        max-width: 420px;
    }


    .about-learning-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }


    /* ESPERIENZE */

    .experience-featured-grid,
    .experience-standard-grid {
        grid-template-columns: 75px 1fr;
        gap: 30px;
    }


    .experience-responsibilities,
    .experience-points {
        grid-template-columns: 1fr;
    }


    /* COMPETENZE */

    .skills-category-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }


    .skills-category-number {
        margin-bottom: 25px;
    }


    /* PROGETTI */

    .future-projects {
        grid-template-columns: 1fr;
    }


    /* LOGIN */

    .login-wrapper {
        grid-template-columns: 1fr;
    }


    .login-intro {
        min-height: auto;
        padding: 60px;
    }


    .login-panel {
        padding: 60px;
    }


    /* FOOTER */

    .qsi-footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 40px;
    }
}


/* =========================================================
   39. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* HOME */

    .hero-title {
        font-size: 3.7rem;
        letter-spacing: -2px;
    }


    .hero-description {
        font-size: 1.05rem;
    }


    .section-title {
        font-size: 2.7rem;
    }


    .project-preview {
        padding: 30px;
    }


    .project-code {
        margin-top: 35px;
    }


    .contact-cta .btn {
        margin-top: 35px;
    }


    /* PAGINE INTERNE */

    .page-hero {
        padding: 80px 0;
    }


    .page-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }


    .page-next .btn {
        margin-top: 30px;
    }


    /* CHI SONO */

    .about-hero {
        padding: 80px 0;
    }


    .about-photo {
        height: 430px;
    }


    .about-learning-section,
    .about-thesis,
    .about-perspective {
        padding: 80px 0;
    }


    .degree-card > span {
        position: static;
        display: block;
        margin-top: 20px;
    }


    .thesis-mini-card {
        padding: 30px;
    }


    .thesis-mini-stats {
        grid-template-columns: 1fr;
    }


    /* ESPERIENZE */

    .experience-featured,
    .experience-standard,
    .company-journey {
        padding: 80px 0;
    }


    .experience-featured-grid,
    .experience-standard-grid {
        display: block;
    }


    .experience-side,
    .experience-date-column {
        display: none;
    }


    .experience-body h2,
    .experience-standard-content h2 {
        font-size: 3rem;
        letter-spacing: -2px;
    }


    .experience-responsibilities {
        margin-top: 40px;
    }


    .responsibility-item {
        min-height: auto;
    }


    .journey-timeline {
        margin-top: 60px;
    }


    .journey-role {
        grid-template-columns: 65px 20px 1fr;
        min-height: auto;
    }


    .journey-date span {
        font-size: 1.1rem;
    }


    .journey-date small {
        display: none;
    }


    .journey-marker::before {
        left: 5px;
    }


    .journey-marker::after {
        left: 9px;
    }


    .journey-content {
        padding-left: 20px;
        padding-bottom: 60px;
    }


        .journey-content h3 {
            font-size: 1.5rem;
        }


    /* COMPETENZE */

    .skills-category,
    .skills-development {
        padding: 80px 0;
    }


    .skills-block-grid {
        grid-template-columns: 1fr;
    }


    .technology-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    /* PROGETTI */

    .project-detail {
        padding: 80px 0;
    }


    .project-detail-grid {
        display: block;
    }


    .project-meta {
        margin-bottom: 35px;
    }


    .project-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .project-visual {
        margin-top: 50px;
    }


    .project-q {
        font-size: 7rem;
    }


    .thesis-results {
        grid-template-columns: 1fr;
    }


    .thesis-conclusion blockquote {
        font-size: 1.6rem;
    }


    /* CONTATTI */

    .contact-page {
        padding: 80px 0;
    }


    /* LOGIN */

    .login-section {
        padding: 40px 0;
    }


    .login-intro,
    .login-panel {
        padding: 40px 28px;
    }


    /* FOOTER */

    .qsi-footer {
        padding-top: 55px;
    }


    .qsi-footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 45px;
    }


    .qsi-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-container {
    padding-top: 80px;
    padding-bottom: 100px;
}

.dashboard-header {
    margin-bottom: 45px;
}

.dashboard-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 650px;
}


/* GRID */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


/* CARD */

.dashboard-card {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    min-height: 190px;
    padding: 30px;
    border: 1px solid #e4e4e4;
    border-radius: 18px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: #bfbfbf;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    color: inherit;
}


/* ICON */

.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    min-width: 58px;
    font-size: 27px;
    background: #f5f5f5;
    border-radius: 14px;
}


/* CONTENT */

.dashboard-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-card h2 {
    font-size: 1.35rem;
    font-weight: 650;
    margin: 2px 0 8px;
}

.dashboard-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dashboard-card-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
}


/* DISABLED */

.dashboard-card-disabled {
    opacity: 0.58;
}


/* MOBILE */

@media (max-width: 768px) {

    .dashboard-container {
        padding-top: 45px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 160px;
    }
}
/* =========================================================
   PASSWORD VAULT
   ========================================================= */

.vault-container {
    padding-top: 70px;
    padding-bottom: 100px;
}

.vault-header {
    max-width: 720px;
    margin-bottom: 45px;
}

.vault-back {
    display: inline-block;
    margin-bottom: 35px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

    .vault-back:hover {
        color: #000;
    }

.vault-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.vault-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.65;
}


/* LOCKED CARD */

.vault-locked {
    max-width: 520px;
    padding: 40px;
    border: 1px solid #e3e3e3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.vault-lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 25px;
    border-radius: 16px;
    background: #f5f5f5;
    font-size: 30px;
}

.vault-locked h2 {
    font-size: 1.55rem;
    margin-bottom: 10px;
}

.vault-locked > p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* FORM */

.vault-form-group {
    margin-bottom: 18px;
}

    .vault-form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
        font-weight: 600;
    }

.vault-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .vault-input:focus {
        border-color: #333;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    }

.vault-button {
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

    .vault-button:hover {
        opacity: 0.88;
    }

    .vault-button:active {
        transform: scale(0.99);
    }


/* SECURITY INFO */

.vault-security-note {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #ededed;
    color: #858585;
    font-size: 0.82rem;
}


/* MOBILE */

@media (max-width: 576px) {

    .vault-locked {
        padding: 28px 22px;
    }
}

/* =========================================================
   CONTATTI - FORM FUNZIONANTE
   ========================================================= */

.qsi-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


.privacy-inline-link {
    margin-left: 4px;
    color: var(--qsi-accent);
    font-weight: 600;
    text-decoration: none;
}


    .privacy-inline-link:hover {
        text-decoration: underline;
    }


.contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}


.qsi-form-status {
    display: none;
    margin-top: 5px;
    padding: 20px 22px;
    border-left: 4px solid transparent;
}


    .qsi-form-status strong,
    .qsi-form-status span {
        display: block;
    }


    .qsi-form-status strong {
        margin-bottom: 5px;
        font-size: 1rem;
    }


    .qsi-form-status span {
        font-size: 0.9rem;
        line-height: 1.6;
    }


.qsi-form-success {
    display: block;
    color: #174b33;
    background-color: #eef8f3;
    border-left-color: #2b8a5a;
}


.qsi-form-error {
    display: block;
    color: #7a2525;
    background-color: #fff1f1;
    border-left-color: #b94747;
}
/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 120px);
    padding: 80px 20px;
}


.login-card {
    width: 100%;
    max-width: 460px;
    padding: 42px;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
}


.login-label {
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #777;
}


.login-card h1 {
    margin: 0 0 10px;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}


.login-description {
    margin-bottom: 32px;
    color: #6c757d;
    line-height: 1.6;
}


/* CAMPI */

.login-field {
    margin-bottom: 21px;
}


    .login-field label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
        font-weight: 600;
    }


.login-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .login-input:focus {
        border-color: #333;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    }


.login-field-error,
.login-validation {
    color: #b42318;
    font-size: 0.84rem;
}


.login-field-error {
    display: block;
    margin-top: 6px;
}


.login-validation ul {
    margin: 0 0 20px;
    padding-left: 18px;
}


/* PASSWORD */

.login-password-wrapper {
    position: relative;
}


    .login-password-wrapper .login-input {
        padding-right: 90px;
    }


.login-show-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}


    .login-show-password:hover {
        color: #111;
    }


/* RICORDAMI */

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 25px;
    font-size: 0.9rem;
}


    .login-remember input {
        width: 16px;
        height: 16px;
    }


/* PULSANTE */

.login-button {
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}


    .login-button:hover {
        opacity: 0.88;
    }


    .login-button:active {
        transform: scale(0.99);
    }


/* FOOTER */

.login-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #eeeeee;
    text-align: center;
}


    .login-footer a {
        color: #777;
        text-decoration: none;
        font-size: 0.87rem;
    }


        .login-footer a:hover {
            color: #111;
        }


@media (max-width: 576px) {

    .login-page {
        padding: 40px 15px;
    }

    .login-card {
        padding: 30px 22px;
    }
}
/* =========================================================
   UTENTE AUTENTICATO / LOGOUT
   ========================================================= */

.nav-user {
    font-size: 0.82rem;
    color: #777;
}


.nav-logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}


.nav-logout-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}


    .nav-logout-button:hover {
        opacity: 0.65;
    }

/* =========================================================
   PASSWORD VAULT - SICUREZZA / CREAZIONE
   ========================================================= */

.vault-card {
    max-width: 560px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}


    .vault-card h2 {
        margin-bottom: 10px;
        font-size: 1.55rem;
        font-weight: 650;
    }


.vault-card-description {
    margin-bottom: 26px;
    color: #6c757d;
    line-height: 1.6;
}


/* WARNING */

.vault-warning {
    margin-bottom: 28px;
    padding: 16px 18px;
    background: #fff8e5;
    border: 1px solid #f0dfad;
    border-radius: 10px;
    color: #695516;
    font-size: 0.88rem;
    line-height: 1.55;
}


    .vault-warning strong {
        display: block;
        margin-bottom: 3px;
    }


/* PASSWORD FIELD */

.vault-password-field {
    position: relative;
}


    .vault-password-field .vault-input {
        padding-right: 90px;
    }


.vault-show-button {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}


    .vault-show-button:hover {
        color: #111;
    }


/* ERROR */

.vault-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #fff0f0;
    border: 1px solid #efcaca;
    border-radius: 9px;
    color: #a32121;
    font-size: 0.88rem;
}


/* SUCCESS */

.vault-success {
    margin-bottom: 22px;
    padding: 16px 18px;
    background: #f1f8f3;
    border: 1px solid #cde3d2;
    border-radius: 10px;
    color: #345c3d;
    font-size: 0.9rem;
    line-height: 1.55;
}


    .vault-success strong {
        display: block;
        margin-bottom: 3px;
    }


/* ACTIONS */

.vault-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}


    .vault-actions .vault-button {
        flex: 1;
    }


.vault-secondary-button {
    padding: 14px 20px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-weight: 600;
    cursor: pointer;
}


    .vault-secondary-button:hover {
        background: #f5f5f5;
    }


#antiForgeryForm {
    display: none;
}


@media (max-width: 576px) {

    .vault-card {
        padding: 28px 22px;
    }


    .vault-actions {
        flex-direction: column;
    }
}

/* =========================================================
   PASSWORD VAULT - ELENCO CREDENZIALI
   ========================================================= */

.credentials-area {
    margin-top: 50px;
    margin-bottom: 80px;
}


.credentials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 25px;
}


    .credentials-header h2 {
        margin: 7px 0 4px;
        font-size: 1.8rem;
    }


    .credentials-header p {
        margin: 0;
        color: #777;
    }


.credentials-add-button {
    width: auto;
    min-width: 140px;
}


.credentials-toolbar {
    max-width: 460px;
    margin-bottom: 24px;
}


/* =========================================================
   LISTA VUOTA
   ========================================================= */

.credentials-empty {
    padding: 55px 30px;
    border: 1px dashed #d4d4d4;
    border-radius: 16px;
    text-align: center;
}


.credentials-empty-icon {
    margin-bottom: 12px;
    font-size: 34px;
}


.credentials-empty h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}


.credentials-empty p {
    margin: 0;
    color: #777;
}


/* =========================================================
   CREDENZIALE
   ========================================================= */

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.credential-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .credential-card:hover {
        border-color: #c8c8c8;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    }


.credential-info {
    min-width: 0;
    flex: 1;
}


    .credential-info h3 {
        margin: 0 0 5px;
        font-size: 1.08rem;
    }


.credential-username {
    margin-bottom: 7px;
    color: #777;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}


.credential-password {
    display: inline-block;
    min-height: 22px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}


/* =========================================================
   PULSANTI AZIONI
   ========================================================= */

.credential-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}


    .credential-actions button,
    .credential-actions a {
        padding: 8px 11px;
        border: 1px solid #dedede;
        border-radius: 8px;
        background: #fff;
        color: #222;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }


        .credential-actions button:hover,
        .credential-actions a:hover {
            background: #f5f5f5;
        }


    /* ELIMINA */

    .credential-actions .credential-delete-button {
        color: #a32121;
        border-color: #e7caca;
    }


        .credential-actions .credential-delete-button:hover {
            background: #fff0f0;
            border-color: #d9aaaa;
        }


/* =========================================================
   MODALE
   ========================================================= */

.credential-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


    .credential-modal[hidden] {
        display: none;
    }


.credential-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}


.credential-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 590px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 35px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
}


.credential-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}


    .credential-modal-header h2 {
        margin: 6px 0 0;
        font-size: 1.6rem;
    }


.credential-modal-close {
    border: 0;
    background: transparent;
    color: #777;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}


    .credential-modal-close:hover {
        color: #111;
    }


.credential-notes {
    min-height: 100px;
    resize: vertical;
}


.credential-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}


    .credential-modal-actions .vault-button {
        width: auto;
    }


/* =========================================================
   PASSWORD VAULT - NOTE CREDENZIALI
   ========================================================= */

.credential-notes-display {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eeeeee;
    color: #666;
    font-size: 0.88rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* =========================================================
   PASSWORD VAULT - LAYOUT RESPONSIVE CREDENZIALI
   ========================================================= */

/*
   Da 1200px in giù:

   NOME SITO

   UTENTE                         PASSWORD
   nome@email.it                  ••••••••••

   DESCRIZIONE
   eventuali note

   [Mostra] [Copia utente] [Copia password]
   [Modifica] [Elimina] [Apri sito]
*/

@media (max-width: 1200px) {

    .credentials-list {
        gap: 8px;
    }


    .credential-card {
        display: block;
        padding: 15px 18px;
    }


    .credential-info {
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.65fr);
        column-gap: 24px;
        row-gap: 3px;
        width: 100%;
        min-width: 0;
    }


        /* NOME SITO */

        .credential-info h3 {
            grid-column: 1 / -1;
            margin: 0 0 7px;
            font-size: 1.02rem;
            line-height: 1.2;
        }


    /* USERNAME */

    .credential-username {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        min-width: 0;
        margin: 0;
        color: #222;
        font-size: 0.86rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }


        .credential-username::before {
            content: "Utente";
            margin-bottom: 2px;
            color: #888;
            font-size: 0.64rem;
            font-weight: 700;
            line-height: 1.15;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }


    /* PASSWORD */

    .credential-password {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 0;
        color: #222;
        font-size: 0.86rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }


        .credential-password::before {
            content: "Password";
            margin-bottom: 2px;
            color: #888;
            font-family: "Segoe UI", Arial, sans-serif;
            font-size: 0.64rem;
            font-weight: 700;
            line-height: 1.15;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }


    /* DESCRIZIONE */

    .credential-notes-display {
        grid-column: 1 / -1;
        margin-top: 8px;
        padding-top: 7px;
        border-top: 1px solid #eeeeee;
        color: #666;
        font-size: 0.82rem;
        line-height: 1.3;
    }


        .credential-notes-display::before {
            content: "Descrizione";
            display: block;
            margin-bottom: 2px;
            color: #888;
            font-size: 0.64rem;
            font-weight: 700;
            line-height: 1.15;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }


    /* PULSANTI */

    .credential-actions {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        margin-top: 9px;
        padding-top: 8px;
        border-top: 1px solid #eeeeee;
    }


        .credential-actions button,
        .credential-actions a {
            padding: 6px 9px;
            font-size: 0.75rem;
            line-height: 1.2;
        }
}


/* =========================================================
   PASSWORD VAULT - TABLET / MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .credentials-header {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }


    .credentials-header {
        margin-bottom: 16px;
    }


    .credentials-add-button {
        width: 100%;
    }


    .credentials-toolbar {
        max-width: none;
        margin-bottom: 14px;
    }


    .credential-card {
        padding: 14px 15px;
    }


    .credential-info {
        grid-template-columns: minmax(0, 1fr) minmax(130px, 0.7fr);
        column-gap: 18px;
    }


    .credential-modal-card {
        padding: 28px 20px;
    }


    .credential-modal-actions {
        flex-direction: column-reverse;
    }


        .credential-modal-actions button {
            width: 100%;
        }
}


/* =========================================================
   PASSWORD VAULT - TELEFONI PICCOLI
   ========================================================= */

@media (max-width: 520px) {

    .credential-info {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 3px;
    }


        .credential-info h3,
        .credential-username,
        .credential-password,
        .credential-notes-display {
            grid-column: 1;
        }


    .credential-password {
        margin-top: 6px;
    }


    .credential-notes-display {
        margin-top: 7px;
    }


    .credential-actions {
        margin-top: 8px;
        padding-top: 7px;
    }


        .credential-actions button,
        .credential-actions a {
            flex: 1 1 auto;
            text-align: center;
        }
}

/* =========================================================
   GESTIONE UTENTI
   ========================================================= */

.users-container {
    padding-top: 70px;
    padding-bottom: 100px;
}


.users-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 35px;
}


.users-title {
    margin: 8px 0 10px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
}


.users-subtitle {
    max-width: 650px;
    margin: 0;
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.6;
}


.users-primary-button {
    flex: 0 0 auto;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #111;
    font-weight: 600;
    cursor: pointer;
}


    .users-primary-button:hover {
        opacity: 0.88;
    }


/* =========================================================
   MESSAGGI
   ========================================================= */

.users-message {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
}


.users-message-success {
    color: #345c3d;
    background: #f1f8f3;
    border: 1px solid #cde3d2;
}


.users-message-error {
    color: #a32121;
    background: #fff0f0;
    border: 1px solid #efcaca;
}


/* =========================================================
   LISTA
   ========================================================= */

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.user-admin-card {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 0.8fr) auto;
    align-items: center;
    gap: 25px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
}


.user-admin-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}


.user-admin-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #f3f3f3;
    color: #222;
    font-size: 1rem;
    font-weight: 700;
}


.user-admin-info {
    min-width: 0;
}


.user-admin-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}


    .user-admin-name-row h2 {
        margin: 0;
        font-size: 1rem;
        font-weight: 650;
    }


.user-admin-email {
    margin-top: 3px;
    color: #777;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}


/* =========================================================
   BADGE
   ========================================================= */

.user-badge {
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}


.user-badge-admin {
    color: #17576b;
    background: #eaf7fa;
}


.user-badge-active {
    color: #345c3d;
    background: #edf7ef;
}


.user-badge-disabled {
    color: #8a3030;
    background: #fff0f0;
}


/* =========================================================
   PERMESSI
   ========================================================= */

.user-admin-permissions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}


    .user-admin-permissions > div {
        padding: 8px 10px;
        background: #f7f7f7;
        border-radius: 8px;
    }


    .user-admin-permissions span {
        display: block;
        margin-bottom: 2px;
        color: #888;
        font-size: 0.61rem;
        font-weight: 700;
        letter-spacing: 0.04em;
    }


    .user-admin-permissions strong {
        color: #222;
        font-size: 0.82rem;
    }


/* =========================================================
   AZIONI
   ========================================================= */

.user-admin-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}


    .user-admin-actions form {
        margin: 0;
    }


.user-action-button {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #222;
    background: #fff;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}


    .user-action-button:hover {
        color: #111;
        background: #f5f5f5;
    }


.user-admin-protected {
    color: #888;
    font-size: 0.75rem;
}


.users-empty {
    padding: 40px;
    border: 1px dashed #ddd;
    border-radius: 14px;
    color: #777;
    text-align: center;
}


/* =========================================================
   FORM NUOVO UTENTE
   ========================================================= */

.users-field-error {
    display: block;
    margin-top: 5px;
    color: #a32121;
    font-size: 0.78rem;
}


.users-validation {
    margin-bottom: 18px;
    color: #a32121;
    font-size: 0.82rem;
}


    .users-validation ul {
        margin: 0;
        padding-left: 18px;
    }


.users-password-note {
    margin-top: -4px;
    color: #888;
    font-size: 0.78rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .user-admin-card {
        grid-template-columns: minmax(260px, 1fr) minmax(200px, 0.7fr);
    }


    .user-admin-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }
}


@media (max-width: 700px) {

    .users-page-header {
        flex-direction: column;
        align-items: stretch;
    }


    .users-primary-button {
        width: 100%;
    }


    .user-admin-card {
        display: block;
        padding: 15px;
    }


    .user-admin-permissions {
        margin-top: 14px;
    }


    .user-admin-actions {
        margin-top: 12px;
        padding-top: 10px;
    }
}

/* =========================================================
   GESTIONE ACCESSI UTENTE
   ========================================================= */

.user-access-container {
    padding-top: 70px;
    padding-bottom: 120px;
}


.user-access-header {
    margin-bottom: 32px;
}


.user-access-title {
    margin: 8px 0 12px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
}


.user-access-identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


    .user-access-identity strong {
        font-size: 1.05rem;
    }


    .user-access-identity span {
        color: #777;
        font-size: 0.85rem;
    }


/* =========================================================
   SEZIONE
   ========================================================= */

.access-section {
    margin-bottom: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
}


.access-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}


    .access-section-header h2 {
        margin: 5px 0 5px;
        font-size: 1.3rem;
    }


    .access-section-header p {
        margin: 0;
        max-width: 650px;
        color: #777;
        font-size: 0.88rem;
        line-height: 1.5;
    }


/* =========================================================
   TUTTI GLI ALBUM
   ========================================================= */

.access-master-option {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 17px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
}


    .access-master-option:hover {
        background: #fafafa;
    }


.access-checkbox-wrapper {
    padding-top: 2px;
}


.access-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}


.access-master-option strong {
    display: block;
    color: #222;
    font-size: 0.95rem;
}


.access-master-option span {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: 0.8rem;
}


/* =========================================================
   ALBUM SPECIFICI
   ========================================================= */

.specific-albums-area {
    margin-top: 22px;
    transition: opacity 0.2s ease;
}


    .specific-albums-area.disabled {
        opacity: 0.4;
    }


.specific-albums-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 12px;
}


    .specific-albums-header strong {
        display: block;
        font-size: 0.9rem;
    }


    .specific-albums-header span {
        display: block;
        margin-top: 3px;
        color: #777;
        font-size: 0.77rem;
    }


.selected-albums-counter {
    flex: 0 0 auto;
    padding: 5px 8px;
    background: #f3f3f3;
    border-radius: 7px;
    color: #666;
    font-size: 0.7rem;
    font-weight: 600;
}


.album-permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}


.album-permission-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 13px 42px 13px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 11px;
    cursor: pointer;
}


    .album-permission-card:hover {
        background: #fafafa;
    }


.album-permission-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.album-permission-content {
    min-width: 0;
}


    .album-permission-content strong {
        display: block;
        font-size: 0.87rem;
        color: #222;
    }


    .album-permission-content span {
        display: block;
        margin-top: 3px;
        color: #888;
        font-size: 0.72rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


.album-permission-check {
    position: absolute;
    right: 13px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border: 1px solid #ccc;
    border-radius: 7px;
    color: transparent;
    font-size: 0.75rem;
    font-weight: 700;
}


.album-permission-card:has( .album-permission-checkbox:checked) {
    border-color: #222;
    background: #fafafa;
}


    .album-permission-card:has( .album-permission-checkbox:checked)
    .album-permission-check {
        color: #fff;
        background: #222;
        border-color: #222;
    }


.access-empty {
    padding: 25px;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 10px;
    color: #888;
    text-align: center;
    font-size: 0.82rem;
}


/* =========================================================
   PROGETTI
   ========================================================= */

.access-section-disabled {
    background: #fafafa;
}


.access-coming-soon {
    padding: 5px 8px;
    background: #eee;
    border-radius: 6px;
    color: #777;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}


/* =========================================================
   SALVATAGGIO
   ========================================================= */

.access-save-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .access-section {
        padding: 17px;
    }


    .album-permissions-grid {
        grid-template-columns: 1fr;
    }


    .specific-albums-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .access-save-bar {
        align-items: stretch;
        flex-direction: column-reverse;
    }


        .access-save-bar > * {
            width: 100%;
            text-align: center;
        }
}