/* ===== VARIABILI E COLORI ===== */
:root {
    --fm-dark-blue: #2c3e50;
    --fm-light-blue: #3498db;
    --fm-light-gray: #ecf0f1;
    --fm-text-dark: #2c3e50;
    --fm-text-light: #bdc3c7;
    --fm-border-color: #95a5a6;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--fm-text-dark);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* ===== HEADER ===== */
.fm-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fm-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--fm-dark-blue);
    border-radius: 4px;
    padding: 8px;
    width: 80px;
    height: 80px;
}

.fm-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

.fm-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--fm-dark-blue);
    margin: 0;
    letter-spacing: -0.5px;
}

.fm-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0;
    margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--fm-light-blue);
    border-color: var(--fm-light-blue);
    color: white;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: var(--fm-light-blue);
    border-color: var(--fm-light-blue);
}

.btn-outline-primary:hover {
    background-color: var(--fm-light-blue);
    border-color: var(--fm-light-blue);
    color: white;
}

/* ===== USER INFO (HEADER) ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    margin-left: auto;
}

.user-name {
    font-size: 14px;
    color: var(--fm-dark-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name.admin-user {
    color: #dc3545;
}

.user-name i {
    font-size: 20px;
    color: var(--fm-light-blue);
}

/* Stile per il link del nome utente (clickable) */
a.user-name {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 6px 10px;
    margin: -6px -10px;
}

a.user-name:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--fm-light-blue);
}

a.user-name i {
    color: var(--fm-light-blue);
}

.btn-logout {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white !important;
    font-weight: 600;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-logout:hover,
.btn-logout:focus,
.btn-logout:active,
.btn-logout.active,
.btn-logout:visited {
    background-color: #c82333;
    border-color: #bd2130;
    color: white !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-logout i {
    margin-right: 6px;
    color: white !important;
}

/* ===== LAYOUT WRAPPER ===== */
.fm-wrapper {
    display: flex;
    flex: 1;
}

/* ===== SIDEBAR ===== */
.fm-sidebar {
    width: 200px;
    background-color: var(--fm-dark-blue);
    padding: 0;
    flex-shrink: 0;
}

.fm-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fm-nav-link {
    display: block;
    padding: 15px 20px;
    color: white !important;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.fm-nav-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--fm-light-blue);
    border-left-color: var(--fm-light-blue);
}

/* ===== MAIN CONTENT ===== */
.fm-content {
    flex: 1;
    padding: 40px;
    background-color: white;
    margin: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fm-content h1, 
.fm-content h2, 
.fm-content h3 {
    color: var(--fm-dark-blue);
    border-bottom: 2px solid var(--fm-light-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.fm-content h1 {
    font-size: 32px;
    font-weight: 600;
}

.fm-content h2 {
    font-size: 24px;
    font-weight: 600;
}

.fm-content h3 {
    font-size: 18px;
    font-weight: 600;
}

.fm-content p {
    line-height: 1.6;
    color: #555;
}

/* ===== FOOTER ===== */
.fm-footer {
    background-color: var(--fm-dark-blue);
    color: var(--fm-text-light);
    margin-top: auto;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
}

.fm-footer-title {
    color: var(--fm-light-blue);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fm-footer-icon {
    color: var(--fm-light-blue);
    margin-right: 5px;
}

.fm-footer p {
    margin-bottom: 8px;
    font-size: 14px;
}

.fm-footer-link {
    color: var(--fm-light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.fm-footer-link:hover {
    color: white;
    text-decoration: underline;
}

.fm-footer-bottom {
    border-top: 1px solid rgba(52, 152, 219, 0.2);
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.fm-footer-bottom p {
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .fm-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .fm-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
    }

    .fm-nav-list {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .fm-nav-link {
        padding: 12px 15px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .fm-nav-link:hover {
        border-left: none;
        border-bottom-color: var(--fm-light-blue);
    }

    .fm-content {
        padding: 20px;
        margin: 10px;
    }

    .fm-title {
        font-size: 24px;
    }

    .fm-subtitle {
        font-size: 12px;
    }

    .fm-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .fm-footer-bottom .text-end {
        text-align: center !important;
    }
}

/* ===== FOCUS E ACCESSIBILITY ===== */
.btn:focus, 
.btn:active:focus, 
.btn-link.nav-link:focus, 
.form-control:focus, 
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--fm-light-blue);
}

/* ===== FORM ELEMENTS ===== */
.form-floating > .form-control-plaintext::placeholder, 
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, 
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== PAGINA CHI SIAMO ===== */
.chisiamo-container {
    max-width: 900px;
    margin: 0 auto;
}

.chisiamo-container h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--fm-dark-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--fm-light-blue);
}

.chisiamo-section {
    margin-bottom: 40px;
}

.chisiamo-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fm-light-blue);
}

.chisiamo-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.chisiamo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chisiamo-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.chisiamo-list li:before {
    content: "?";
    position: absolute;
    left: 0;
    color: var(--fm-light-blue);
    font-weight: bold;
    font-size: 20px;
}

.chisiamo-section a {
    color: var(--fm-light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.chisiamo-section a:hover {
    color: var(--fm-dark-blue);
    text-decoration: underline;
}

/* ===== PAGINA SERVIZI ===== */
.servizi-container {
    max-width: 1000px;
    margin: 0 auto;
}

.servizi-container h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--fm-dark-blue);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--fm-light-blue);
}

.servizi-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.servizio-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.servizio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    border-color: var(--fm-light-blue);
}

.servizio-icon {
    font-size: 48px;
    color: var(--fm-light-blue);
    margin-bottom: 15px;
}

.servizio-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 15px;
}

.servizio-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.servizi-details {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.servizi-details h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fm-light-blue);
}

.servizi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servizi-list li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.servizi-list li:before {
    content: "?";
    position: absolute;
    left: 0;
    color: var(--fm-light-blue);
    font-weight: bold;
    font-size: 20px;
}

.servizi-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--fm-light-blue);
}

.servizi-cta h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 15px;
}

.servizi-cta p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

/* ===== RESPONSIVE SERVIZI ===== */
@media (max-width: 768px) {
    .servizi-grid {
        grid-template-columns: 1fr;
    }

    .servizi-container h1 {
        font-size: 28px;
    }

    .servizio-card {
        padding: 20px;
    }

    .servizio-icon {
        font-size: 36px;
    }

    .servizio-card h3 {
        font-size: 18px;
    }
}

/* ===== PAGINA CORSI ===== */
.corsi-container {
    max-width: 1000px;
    margin: 0 auto;
}

.corsi-container h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--fm-dark-blue);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--fm-light-blue);
}

.corsi-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
}

.corsi-list {
    margin-bottom: 50px;
}

.corso-item {
    background: white;
    border-left: 4px solid var(--fm-light-blue);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.corso-item:hover {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    transform: translateX(5px);
}

.corso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.corso-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin: 0;
}

.corso-durata {
    background: var(--fm-light-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.corso-descrizione {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 15px 0;
}

.corso-dettagli {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.corso-livello {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.corso-prezzo {
    font-size: 18px;
    font-weight: 700;
    color: var(--fm-light-blue);
}

.corsi-info {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.corsi-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fm-light-blue);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.info-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border-top: 3px solid var(--fm-light-blue);
}

.info-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-box h4 i {
    color: var(--fm-light-blue);
}

.info-box p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.corsi-cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--fm-light-blue);
}

.corsi-cta h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 15px;
}

.corsi-cta p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

/* ===== RESPONSIVE CORSI ===== */
@media (max-width: 768px) {
    .corsi-container h1 {
        font-size: 28px;
    }

    .corso-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .corso-durata {
        width: 100%;
        justify-content: center;
    }

    .corso-dettagli {
        flex-direction: column;
        gap: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGINA CONTATTI ===== */
.contatti-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contatti-container h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--fm-dark-blue);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--fm-light-blue);
}

.contatti-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.contatti-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* FORM CONTATTI */
.contatti-form-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fm-light-blue);
}

.contatti-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--fm-light-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--fm-light-blue);
}

.form-check-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
    cursor: pointer;
}

.form-check-label a {
    color: var(--fm-light-blue);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

/* INFO SEZIONE DESTRA */
.contatti-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contatti-info-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid var(--fm-light-blue);
}

.contatti-info-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contatti-info-box h3 i {
    color: var(--fm-light-blue);
    font-size: 20px;
}

.contatti-info-box p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.contatti-info-box p:last-child {
    margin-bottom: 0;
}

.contatti-info-box a {
    color: var(--fm-light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contatti-info-box a:hover {
    color: var(--fm-dark-blue);
    text-decoration: underline;
}

.contatti-orari {
    background: white;
    padding: 12px;
    border-radius: 4px;
    margin-top: 10px !important;
    font-size: 13px !important;
}

/* SOCIAL LINKS */
.contatti-social {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
    padding: 25px;
    border-radius: 6px;
    text-align: center;
}

.contatti-social h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fm-light-blue);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    background: var(--fm-dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* MAPPA */
.contatti-mappa {
    margin-bottom: 30px;
}

.contatti-mappa h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fm-light-blue);
}

.mappa-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.mappa-placeholder i {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #ccc;
}

.mappa-placeholder p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mappa-placeholder small {
    font-size: 12px;
    display: block;
    color: #bbb;
}

/* MAPPA CON IFRAME */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

/* ===== RESPONSIVE CONTATTI ===== */
@media (max-width: 768px) {
    .contatti-container h1 {
        font-size: 28px;
    }

    .contatti-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contatti-form-section h2 {
        font-size: 20px;
    }

    .contatti-info-section {
        gap: 20px;
    }

    .contatti-info-box {
        padding: 20px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ===== PAGINA REGISTRAZIONE ===== */
.registrazione-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.registrazione-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.registrazione-tab-btn {
    background: white;
    border: 2px solid #ccc;
    color: var(--fm-dark-blue);
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.registrazione-tab-btn:hover {
    border-color: var(--fm-light-blue);
    color: var(--fm-light-blue);
}

.registrazione-tab-btn.active {
    background: var(--fm-light-blue);
    color: white;
    border-color: var(--fm-light-blue);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.registrazione-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
}

.registrazione-form-wrapper.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registrazione-form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--fm-light-blue);
}

.registrazione-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--fm-dark-blue);
    margin: 0;
}

.registrazione-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #bbb;
}

.form-control:focus {
    outline: none;
    border-color: var(--fm-light-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-actions .btn-success {
    background: #28a745;
    color: white;
}

.form-actions .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.form-actions .btn-secondary {
    background: #999;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #777;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(153, 153, 153, 0.3);
}

.form-actions .btn-primary {
    background: var(--fm-light-blue);
    color: white;
    text-decoration: none;
}

.form-actions .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--fm-dark-blue) 0%, var(--fm-light-blue) 100%);
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--fm-dark-blue);
    font-size: 28px;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--fm-light-blue);
    font-size: 14px;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form .form-group label {
    font-weight: 600;
    color: var(--fm-text-dark);
    font-size: 14px;
}

.login-form .form-control {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--fm-light-blue);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.login-form .form-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0 0 0;
    padding: 0;
    border: none;
}

.login-form .form-actions .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.login-form .btn-success {
    background: #28a745;
    color: white;
    flex: 1;
}

.login-form .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.login-form .btn-secondary {
    background: #999;
    color: white;
    flex: 1;
}

.login-form .btn-secondary:hover {
    background: #777;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 153, 153, 0.3);
}

.login-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-links p {
    margin: 10px 0;
    font-size: 13px;
    color: #666;
}

.login-links a {
    color: var(--fm-light-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--fm-dark-blue);
    text-decoration: underline;
}

.form-validation-message {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
}

/* ===== ADMIN LINK IN SIDEBAR ===== */
.fm-nav-link.admin-link {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
    font-weight: 600;
    border-left-color: #dc3545;
}

.fm-nav-link.admin-link:hover {
    background-color: rgba(220, 53, 69, 0.2);
    color: #c82333 !important;
    border-left-color: #c82333;
}

.fm-nav-link.admin-link i {
    color: #dc3545;
}

/* ===== ADMIN PRIORITY BADGE (DASHBOARD) ===== */
.priority-level {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

#priority-1 {
    background-color: #dc3545;
    color: white;
}

#priority-1:hover {
    background-color: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

#priority-2 {
    background-color: #fd7e14;
    color: white;
}

#priority-2:hover {
    background-color: #e06c00;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

#priority-3 {
    background-color: #28a745;
    color: white;
}

#priority-3:hover {
    background-color: #218838;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

#priority-4 {
    background-color: #6c757d;
    color: white;
}

#priority-4:hover {
    background-color: #5a6268;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* ===== NOTIFICHE MESSAGGI ===== */
.admin-user-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    color: var(--fm-dark-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
}

.notification-badge:hover {
    background-color: #e9ecef;
    border-color: var(--fm-light-blue);
    color: var(--fm-light-blue);
    text-decoration: none;
}

.notification-badge.has-notification {
    background-color: #dc3545;
    border-color: #c82333;
    color: white;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.notification-badge.has-notification:hover {
    background-color: #c82333;
    border-color: #a02830;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ffc107;
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}
}

#priority-3:hover {
    background-color: #218838;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.priority-level i {
    margin-right: 8px;
    font-size: 16px;
}
    margin-top: 5px;
}

.form-validation-message.valid {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.form-validation-message.invalid {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.form-validation-message.loading {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

/* ===== RESPONSIVE LOGIN ===== */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-form .form-actions {
        flex-direction: column;
    }

    .login-form .form-actions .btn {
        width: 100%;
    }
}
}

.form-actions .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* ===== RESPONSIVE REGISTRAZIONE ===== */
@media (max-width: 768px) {
    .registrazione-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .registrazione-tabs {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .registrazione-tab-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 4px;
    }

    .registrazione-form-wrapper {
        padding: 25px 15px;
        border-radius: 4px;
    }

    .registrazione-form-header h2 {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }

    .privacy-checkbox label {
        font-size: 12px;
    }
}

/* ===== PASSWORD REQUIREMENTS ===== */
.password-requirements {
    background: #f8f9fa;
    border-left: 4px solid var(--fm-light-blue);
    padding: 15px;
    border-radius: 4px;
    margin-top: 12px;
}

.password-requirements h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--fm-dark-blue);
    margin: 0 0 10px 0;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    font-size: 13px;
    padding: 6px 0;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.requirements-list li i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    transition: color 0.3s ease;
}

.requirements-list li.met {
    color: #28a745;
}

.requirements-list li.met i {
    color: #28a745;
}

.password-match-message {
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    min-height: 20px;
}

.password-match-message.match {
    color: #28a745;
}

.password-match-message.mismatch {
    color: #dc3545;
}

.form-validation-message {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    min-height: 18px;
    display: none;
    animation: slideIn 0.3s ease;
}

.form-validation-message.valid {
    display: block;
    color: #28a745;
}

.form-validation-message.invalid {
    display: block;
    color: #dc3545;
}

.form-validation-message.loading {
    display: block;
    color: #666;
    font-style: italic;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.form-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--fm-light-blue);
    flex-shrink: 0;
}

.form-radio-option label {
    font-size: 14px;
    color: var(--fm-text-dark);
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.privacy-checkbox {
    flex-direction: row;
    gap: 10px;
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--fm-light-blue);
    flex-shrink: 0;
}

.privacy-checkbox label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
}

.privacy-checkbox label a {
    color: var(--fm-light-blue);
    text-decoration: none;
    font-weight: 600;
}

.privacy-checkbox label a:hover {
    text-decoration: underline;
}

/* ===== REQUISITI PASSWORD (DASHBOARD UTENTE) ===== */
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    font-size: 13px;
    padding: 6px 0;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.requirements-list li i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    transition: all 0.3s ease;
    color: #dc3545;
}

.requirements-list li.met {
    color: #28a745;
}

.requirements-list li.met i {
    color: #28a745;
}

.requirements-list li.not-met {
    color: #dc3545;
}

.requirements-list li.not-met i {
    color: #dc3545;
}