:root {
            --unime-blue: #68949f;
            --unime-light-blue: #0066cc;
            --unime-gold: #c5a572;
            --unime-dark: #1a1a1a;
            --unime-gray: #5c6f82;
            --unime-footer-blue: #004871;
            --unime-header-blue: #006ec0;
        }
        
        body {
            font-family: 'Titillium Web', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            display: flex;
            flex-direction: column;
            min-height: 100vh; /* Altezza pari alla viewport */
            margin: 0;
        }
        
        .bg-unime-blue {
            background-color: var(--unime-blue) !important;
        }
        
        .bg-unime-light {
            background-color: var(--unime-light-blue) !important;
        }
        
        .text-unime-gold {
            color: var(--unime-gold) !important;
        }
        
        .hero-section {
            background: linear-gradient(135deg, var(--unime-header-blue) 0%, var(--unime-light-blue) 100%);
            color: white;
            padding: 80px 0;
            margin-bottom: 60px;
        }
        
        .hero-section h1 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 20px;
        }
        
        .hero-section p {
            font-size: 1.3rem;
            opacity: 0.95;
        }

        .container.mb-5 {
            margin-bottom: 5rem !important;
            margin-top: 5rem !important;
        }
        
        .access-card {
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0, 61, 122, 0.1);
            transition: all 0.3s ease;
            height: 100%;
            overflow: hidden;
        }
        
        .access-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0, 61, 122, 0.2);
        }
        
        .card-header-custom {
            background: var(--unime-blue);
            color: white;
            padding: 30px;
            text-align: center;
        }
        
        .card-header-custom.admin {
            background: var(--unime-light-blue);
        }
        
        .card-header-custom h3 {
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .card-icon {
            font-size: 4rem;
            margin-bottom: 15px;
            opacity: 0.9;
        }
        
        .card-body-custom {
            padding: 40px 30px;
        }
        
        .btn-unime {
            background-color: var(--unime-blue);
            border: none;
            color: white;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 4px;
            transition: all 0.3s;
            width: 100%;
            margin-top: 20px;
        }
        
        .btn-unime:hover {
            background-color: var(--unime-light-blue);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
        }

        .btn-unime-dashboard {
            background-color: var(--unime-light-blue);
           
        }

        .btn-unime-ricerca {
            background-color: var(--unime-blue);
           
        }

        .btn-unime-ricerca:hover {
            background-color: var(--unime-blue);
           
        }
        
        .features-list {
            list-style: none;
            padding: 0;
            margin: 25px 0;
        }
        
        .features-list li {
            padding: 12px 0;
            font-size: 1.05rem;
            color: var(--unime-gray);
            border-bottom: 1px solid #e9ecef;
        }
        
        .features-list li:last-child {
            border-bottom: none;
        }
        
        .features-list li i {
            color: var(--unime-light-blue);
            margin-right: 12px;
            font-weight: bold;
        }
        
               
        .navbar-unime {
            background-color: var(--unime-header-blue) !important;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .navbar-unime .nav-link {
            border-bottom: 2px solid transparent;
            transition: border-color 0.3s ease;
        }

        .navbar-unime .nav-link:hover {
            border-bottom-color: white;
            color: white !important;
        }

        .nav-item .btn {
            background: var(--unime-header-blue);
            transition: background 0.3s ease;
        }
        
        .nav-item .btn:hover {
            background: var(--unime-light-blue);
        }
        
        .nav-item .btn:focus {
            box-shadow: 0 0 0 0.2rem rgba(0, 110, 192, 0.25);
        }
        
        .nav-item .btn:active {
            background: var(--unime-light-blue);
        }
        
        .navbar-brand-unime {
            color: white !important;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .nav-link {
            color: white !important;
            font-weight: 600;
            font-family: 'Titillium Web', sans-serif;
            margin-right: 20px;
            transition: color 0.3s;
        }

        .nav-link-evento{
            color: rgb(0, 0, 0) !important;
            
        }

        .unime-logo {
            height: 50%;
            width: 50%;
        }
        .login-container {
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 0;
        }

        .login-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 61, 122, 0.15);
            overflow: hidden;
            max-width: 900px;
            width: 100%;
        }

        .login-header {
            background: linear-gradient(135deg, var(--unime-blue) 0%, var(--unime-light-blue) 100%);
            color: white;
            padding: 50px 40px;
            text-align: center;
        }

        .login-header h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .login-header .icon-lock {
            font-size: 4rem;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .login-body {
            padding: 50px 40px;
        }

        /*.form-group {
            margin-bottom: 25px;
        }*/

        .form-label {
            font-weight: 600;
            color: var(--unime-blue);
            margin-bottom: 8px;
        }

        /*.form-control {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 12px 15px;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: var(--unime-light-blue);
            box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
        }*/

        .input-group-icon {
            position: relative;
        }

        .input-group-icon .icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--unime-gray);
            z-index: 10;
        }

        .input-group-icon .form-control {
            padding-left: 45px;
        }

        @media (max-width: 768px) {
            .input-with-buttons {
                flex-direction: column;
            }
            .input-group-append {
                width: 100%;
            }
            .input-group-append .btn {
                border-radius: 0 !important;
            }
        }

        .btn-login {
            background: linear-gradient(135deg, var(--unime-blue) 0%, var(--unime-light-blue) 100%);
            border: none;
            color: white;
            padding: 15px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 8px;
            width: 100%;
            transition: all 0.3s ease;
            margin-top: 10px;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 61, 122, 0.3);
            color: white;
        }

        .alert-login {
            border-radius: 8px;
            border-left: 4px solid;
            padding: 15px 20px;
            margin-bottom: 25px;
        }

        .alert-login.alert-danger {
            background-color: #fff5f5;
            border-left-color: #dc3545;
            color: #721c24;
        }

        .login-footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 25px;
            border-top: 2px solid #f0f0f0;
        }

        .login-footer a {
            color: var(--unime-light-blue);
            text-decoration: none;
            font-weight: 600;
        }

        .login-footer a:hover {
            text-decoration: underline;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-check-input:checked {
            background-color: var(--unime-light-blue);
            border-color: var(--unime-light-blue);
        }

        .info-box {
            background: #f8f9fa;
            border-left: 4px solid var(--unime-light-blue);
            padding: 20px;
            border-radius: 8px;
            margin-top: 30px;
        }

        .info-box h5 {
            color: var(--unime-blue);
            margin-bottom: 10px;
        }

        .info-box ul {
            margin-bottom: 0;
            padding-left: 20px;
        }

        .info-box li {
            color: var(--unime-gray);
            margin-bottom: 5px;
        }

        .search-hero {
            background: white;
            color: black;
            padding: 20px;
        }
        
        .search-box {
            max-width: 800px;
            margin: 30px auto 0;
        }
        
        .search-input-group {
            position: relative;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        }
        
        .search-input {
            border: none;
            padding: 20px 60px 20px 25px;
            font-size: 1.1rem;
            border-radius: 50px;
        }
        
        .search-input:focus {
            box-shadow: 0 0 0 0.3rem rgba(255, 255, 255, 0.3);
        }
        
        .search-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--unime-blue);
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            color: white;
            transition: all 0.3s;
            pointer-events: none;
        }
        
        .search-loading {
            position: absolute;
            right: 70px;
            top: 50%;
            transform: translateY(-50%);
            display: none;
        }
        
        .search-loading.active {
            display: block;
        }
        
        .spinner {
            border: 3px solid rgba(0, 102, 204, 0.2);
            border-top: 3px solid var(--unime-light-blue);
            border-radius: 50%;
            width: 25px;
            height: 25px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .results-header {
            background: white;
            border-bottom: 2px solid #f0f0f0;
            margin-bottom: 30px;
        }
        
        .docenti-table {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        }
        
        .table-modern {
            margin-bottom: 0;
        }
        
        .table-modern thead {
            background: linear-gradient(135deg, var(--unime-blue) 0%, var(--unime-light-blue) 100%);
            color: white;
        }
        
        .table-modern thead th {
            border: none;
            padding: 18px 15px;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 0.5px;
        }
        
        .table-modern tbody tr {
            cursor: pointer;
            transition: all 0.3s ease;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .table-modern tbody tr:hover {
            background: linear-gradient(90deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 61, 122, 0.08) 100%);
            transform: translateX(5px);
            box-shadow: 0 2px 10px rgba(0, 61, 122, 0.1);
        }
        
        .table-modern tbody td {
            padding: 20px 15px;
            vertical-align: middle;
        }
        
        .docente-nome {
            font-weight: 600;
            color: var(--unime-blue);
            font-size: 1.05rem;
        }
        
        .docente-email {
            color: var(--unime-gray);
            font-size: 0.9rem;
        }
        
        .badge-meeting {
            background: #28a745;
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .badge-no-meeting {
            background: #6c757d;
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
        }
        
        .pagination-modern {
            margin-top: 40px;
        }
        
        .pagination-modern .page-link {
            border: 2px solid var(--unime-light-blue);
            color: var(--unime-blue);
            margin: 0 3px;
            border-radius: 8px;
            padding: 10px 18px;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .pagination-modern .page-link:hover {
            background: var(--unime-light-blue);
            color: white;
            transform: translateY(-2px);
        }
        
        .pagination-modern .page-item.active .page-link {
            background: var(--unime-blue);
            border-color: var(--unime-blue);
        }
        
        .no-results {
            text-align: center;
            padding: 80px 20px;
        }
        
        .no-results-icon {
            font-size: 5rem;
            opacity: 0.3;
            margin-bottom: 20px;
        }
        
        .results-container {
            transition: opacity 0.3s ease;
        }
        
        .results-container.loading {
            opacity: 0.5;
            pointer-events: none;
        }

        .docente-hero {
            background: white;
            color: black;
            padding: 5px 0;
        }
        
        .docente-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--unime-blue);
            margin: 0 auto;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        }
        
        .badge-docente {
            background: var(--unime-gold);
            color: var(--unime-dark);
            padding: 8px 20px;
            border-radius: 25px;
            font-weight: 600;
            display: inline-block;
            margin-top: 10px;
        }
        
        .info-card {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
            margin-bottom: 25px;
        }
        
        .info-card h4 {
            color: var(--unime-blue);
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 3px solid var(--unime-light-blue);
        }
        
        .info-item {
            display: flex;
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .info-item:last-child {
            border-bottom: none;
        }
        
        .info-label {
            font-weight: 600;
            color: var(--unime-gray);
            min-width: 150px;
        }
        
        .info-value {
            color: #333;
            flex: 1;
        }
        
        /* Meeting Card - NO Meeting */
        .meeting-create-card {
            background: white;
            border: 3px dashed var(--unime-light-blue);
            border-radius: 12px;
            padding: 40px;
            text-align: center;
        }
        
        .meeting-create-card .icon-meeting {
            font-size: 4rem;
            color: var(--unime-light-blue);
            opacity: 0.7;
            margin-bottom: 20px;
        }
        
        .meeting-create-card h4 {
            color: var(--unime-blue);
            margin-bottom: 20px;
        }
        
        .meeting-create-card p {
            color: var(--unime-gray);
            line-height: 1.8;
            margin-bottom: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .btn-create-meeting {
            background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
            color: white;
            border: none;
            padding: 18px 40px;
            font-size: 1.1rem;
            font-weight: 700;
            border-radius: 8px;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
        }
        
        .btn-create-meeting:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4);
            color: white;
        }
        
        .btn-create-meeting:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .btn-create-meeting .spinner-border {
            display: none;
            width: 20px;
            height: 20px;
            margin-right: 10px;
        }
        
        .btn-create-meeting.loading .spinner-border {
            display: inline-block;
        }
        
        /* Meeting Card - Active Meeting */
        .meeting-active-card {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            border-radius: 12px;
            padding: 40px;
            text-align: center;
            box-shadow: 0 5px 25px rgba(40, 167, 69, 0.3);
        }
        
        .meeting-active-card h3 {
            margin-bottom: 25px;
        }
        
        .meeting-active-card .meeting-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            opacity: 0.9;
        }
        
        .meeting-link-box {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 20px;
            margin: 25px 0;
        }
        
        .meeting-link {
            color: white;
            font-size: 1rem;
            word-break: break-all;
            text-decoration: underline;
        }
        
        .meeting-link:hover {
            color: white;
            opacity: 0.8;
        }
        
        .btn-access-meeting {
            background: white;
            color: #28a745;
            border: none;
            padding: 18px 40px;
            font-size: 1.2rem;
            font-weight: 700;
            border-radius: 8px;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
        }
        
        .btn-access-meeting:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            color: #28a745;
        }
        
        .meeting-info-text {
            margin-top: 25px;
            padding-top: 20px;
            border-top: 2px solid rgba(255, 255, 255, 0.3);
            font-size: 0.95rem;
            opacity: 0.95;
        }
        
        .btn-delete-meeting {
            background: transparent;
            border: 2px solid rgba(255, 255, 255, 0.5);
            color: white;
            padding: 10px 25px;
            border-radius: 6px;
            margin-top: 15px;
            transition: all 0.3s;
        }
        
        .btn-delete-meeting:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: white;
            color: white;
        }
        
        .alert-dashboard {
            border-radius: 8px;
            border-left: 4px solid;
            padding: 15px 20px;
        }
        
        .insegnamenti-list {
            list-style: none;
            padding: 0;
        }
        
        .insegnamenti-list li {
            padding: 15px;
            background: #f8f9fa;
            margin-bottom: 10px;
            border-radius: 8px;
            border-left: 4px solid var(--unime-light-blue);
        }
        
        .insegnamenti-list li strong {
            color: var(--unime-blue);
        }

            .login-container {
            min-height: calc(100vh - 200px);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }
        
        .login-card {
            max-width: 500px;
            width: 100%;
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .login-header {
            background: linear-gradient(135deg, var(--unime-blue) 0%, var(--unime-light-blue) 100%);
            color: white;
            padding: 40px;
            text-align: center;
        }
        
        .login-body {
            padding: 40px;
        }
        
        .btn-microsoft {
            background: #0078d4;
            color: white;
            padding: 15px 30px;
            border: none;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: all 0.3s;
        }
        
        .btn-microsoft:hover {
            background: #005a9e;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 120, 212, 0.3);
        }
        
        .microsoft-icon {
            width: 24px;
            height: 24px;
        }
        
        .divider {
            text-align: center;
            margin: 30px 0;
            position: relative;
        }
        
        .divider::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            width: 100%;
            height: 1px;
            background: #ddd;
        }
        
        .divider span {
            background: white;
            padding: 0 15px;
            position: relative;
            color: #999;
            font-size: 0.9rem;
        }

        /* Pulsante con icona Microsoft */
        .btn-unime svg {
            display: inline-block;
            vertical-align: middle;
        }

        .btn-unime:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
        }

        /* ========================================
        SEZIONE INSEGNAMENTI 
        ======================================== */

        .insegnamenti-section {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
            margin-top: 30px;
        }

        .insegnamenti-section h4 {
            color: var(--unime-blue);
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 3px solid var(--unime-light-blue);
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
        }

        .insegnamenti-section h4 .icon {
            width: 24px;
            height: 24px;
        }

        /* Grid degli insegnamenti */
        .insegnamenti-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        /* Card singolo insegnamento */
        .insegnamento-card {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 20px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .insegnamento-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
            background: linear-gradient(180deg, var(--unime-blue) 0%, var(--unime-light-blue) 100%);
        }

        .insegnamento-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
            border-color: var(--unime-light-blue);
            background: white;
        }

        /* Header della card insegnamento */
        .insegnamento-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
            gap: 10px;
        }

        .insegnamento-nome {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--unime-blue);
            line-height: 1.4;
            flex: 1;
        }

        .insegnamento-codice {
            background: var(--unime-light-blue);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            white-space: nowrap;
            flex-shrink: 0;
        }

        /* Dettagli insegnamento */
        .insegnamento-details {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .insegnamento-detail-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--unime-gray);
            font-size: 0.9rem;
            line-height: 1.4;
        }

        .insegnamento-detail-item .icon {
            width: 16px;
            height: 16px;
            color: var(--unime-light-blue);
            flex-shrink: 0;
        }

        /* Badge informativi */
        .insegnamento-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
        }

        .badge-cfu,
        .badge-semestre,
        .badge-anno {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            color: white;
        }

        .badge-cfu {
            background: #28a745;
        }

        .badge-semestre {
            background: var(--unime-gray);
        }

        .badge-anno {
            background: var(--unime-gold);
            color: var(--unime-dark);
        }

        /* Stato vuoto */
        .no-insegnamenti {
            text-align: center;
            padding: 60px 20px;
            color: var(--unime-gray);
        }

        .no-insegnamenti-icon {
            font-size: 4rem;
            opacity: 0.3;
            margin-bottom: 20px;
        }

        .no-insegnamenti h5 {
            color: var(--unime-blue);
            margin-bottom: 10px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .insegnamenti-grid {
                grid-template-columns: 1fr;
            }
            
            .insegnamento-header {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .insegnamento-codice {
                align-self: flex-start;
            }
        }

        @media (max-width: 576px) {
            .insegnamenti-section {
                padding: 20px 15px;
            }
            
            .insegnamento-card {
                padding: 15px;
            }
        }
        .btn-back {
                transition: all 0.3s ease;
            }

            .btn-back:hover {
                transform: translateX(-5px);
            }

            .btn-back .icon {
                transition: transform 0.3s ease;
            }

            .btn-back:hover .icon {
                transform: translateX(-3px);
            }
        
        /* Tabella Insegnamenti */
            .table-responsive {
                border-radius: 8px;
                overflow: hidden;
            }

            .table-hover tbody tr {
                transition: all 0.3s ease;
            }

            .table-hover tbody tr:hover {
                background-color: #f0f6ff;
                transform: scale(1.01);
                box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            }

            .table thead th {
                font-weight: 600;
                text-transform: uppercase;
                font-size: 0.875rem;
                letter-spacing: 0.5px;
                border-bottom: 2px solid #0066cc;
                
            }

            .table td {
                vertical-align: middle;
                padding: 1rem;
            }

            /* Badge personalizzati */
            .badge-pill {
                border-radius: 50px;
                padding: 0.35rem 0.75rem;
                font-weight: 500;
                font-size: 0.75rem;
            }

            /* Card teaser AGID */
            .card-teaser {
                border: none;
                transition: all 0.3s ease;
            }

            .card-teaser:hover {
                transform: translateY(-2px);
                box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
            }

            /* Responsive - Mobile */
            @media (max-width: 768px) {
                .table thead {
                    display: none;
                }
                
                .table tbody tr {
                    display: block;
                    margin-bottom: 1rem;
                    border: 1px solid #dee2e6;
                    border-radius: 8px;
                    padding: 1rem;
                }
                
                .table tbody td {
                    display: block;
                    text-align: left !important;
                    padding: 0.5rem 0;
                    border: none;
                }
                
                .table tbody td:before {
                    content: attr(data-label);
                    font-weight: 600;
                    display: block;
                    margin-bottom: 0.25rem;
                    color: #0066cc;
                }
            }

            /* Note Content */
            .note-content {
                background: #f8f9fa;
                border-left: 4px solid #0066cc;
                padding: 1rem;
                border-radius: 4px;
                font-size: 0.95rem;
                line-height: 1.6;
            }

            .note-preview {
                background: #fff3cd;
                border: 1px dashed #ffc107;
                padding: 1rem;
                border-radius: 4px;
            }

            /* Form Textarea */
            .form-control:focus {
                border-color: #0066cc;
                box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
            }

            /* ==========================================
            PULSANTE MICROSOFT TEAMS
            ========================================== */

            .btn-teams {
                background: linear-gradient(135deg, #5558AF 0%, #464EB8 100%) !important;
                border: none !important;
                color: white !important;
                font-weight: 600;
                font-size: 1.1rem;
                padding: 0.875rem 1.5rem;
                border-radius: 8px;
                transition: all 0.3s ease;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 4px 15px rgba(85, 88, 175, 0.35);
                text-decoration: none !important;
            }

            .btn-teams:hover {
                background: linear-gradient(135deg, #464EB8 0%, #3d45a0 100%) !important;
                color: white !important;
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(85, 88, 175, 0.45);
            }

            .btn-teams:active,
            .btn-teams:focus {
                background: linear-gradient(135deg, #3d45a0 0%, #5558AF 100%) !important;
                color: white !important;
                transform: translateY(0);
                box-shadow: 0 2px 10px rgba(85, 88, 175, 0.35);
            }

            .teams-logo {
                flex-shrink: 0;
            }

            /* ==========================================
            MEETING ITEM
            ========================================== */

            .meeting-item {
                transition: all 0.3s ease;
            }

            .meeting-item:hover {
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            }

            /* ==========================================
            NOTE CONTENT
            ========================================== */

            .note-content {
                border-left: 4px solid #17a2b8;
                line-height: 1.6;
            }

            /* ==========================================
            RESPONSIVE
            ========================================== */

            @media (max-width: 991px) {
                .btn-teams {
                    font-size: 1rem;
                    padding: 0.75rem 1.25rem;
                }
                
                .teams-logo {
                    width: 20px;
                    height: 20px;
                }
            }

            /* ==========================================
            BADGE INSEGNAMENTI
            ========================================== */

            .docente-insegnamenti-wrapper {
                display: flex;
                flex-wrap: wrap;
                gap: 0.25rem;
                align-items: center;
            }

            .docente-insegnamenti-wrapper .badge {
                font-size: 0.75rem;
                font-weight: 500;
                padding: 0.35rem 0.6rem;
                white-space: nowrap;
                max-width: 180px;
                overflow: hidden;
                text-overflow: ellipsis;
                display: inline-block;
            }

            .docente-insegnamenti-wrapper .badge.bg-light {
                background-color: #f8f9fa !important;
                border: 1px solid #dee2e6 !important;
                color: #495057 !important;
            }

            .docente-insegnamenti-wrapper .badge.bg-secondary {
                background-color: #6c757d !important;
                border: 1px solid #6c757d !important;
                cursor: help;
            }

            /* Responsive */
            @media (max-width: 768px) {
                .docente-insegnamenti-wrapper .badge {
                    font-size: 0.7rem;
                    padding: 0.25rem 0.5rem;
                    max-width: 120px;
                }
            }

            /* ==========================================
            DROPDOWN INSEGNAMENTI
            ========================================== */

            .docente-insegnamenti-wrapper {
                display: flex;
                flex-wrap: wrap;
                gap: 0.25rem;
                align-items: center;
            }

            .docente-insegnamenti-wrapper .badge {
                font-size: 0.75rem;
                font-weight: 500;
                padding: 0.35rem 0.6rem;
                white-space: nowrap;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                display: inline-block;
            }

            .docente-insegnamenti-wrapper .badge.bg-light {
                background-color: #f8f9fa !important;
                border: 1px solid #dee2e6 !important;
                color: #495057 !important;
            }

            .docente-insegnamenti-wrapper .dropdown-menu {
                max-height: 300px;
                overflow-y: auto;
                font-size: 0.85rem;
                z-index: 1050; /* Assicura che stia sopra la tabella */
            }

            .docente-insegnamenti-wrapper .dropdown-item-text {
                padding: 0.5rem 1rem;
                display: block;
                color: #495057;
                white-space: normal;
                word-wrap: break-word;
                line-height: 1.4;
            }

            .docente-insegnamenti-wrapper .dropdown-item-text:hover {
                background-color: #f8f9fa;
            }

            .docente-insegnamenti-wrapper .dropdown-header {
                padding: 0.5rem 1rem;
                font-size: 0.875rem;
                color: #6c757d;
            }

            /* Badge dropdown button */
            .docente-insegnamenti-wrapper .badge.dropdown-toggle {
                cursor: pointer;
            }

            .docente-insegnamenti-wrapper .badge.dropdown-toggle::after {
                margin-left: 0.3rem;
                vertical-align: middle;
            }

            /* Hover effect sul badge dropdown */
            .docente-insegnamenti-wrapper .badge.dropdown-toggle:hover {
                background-color: #5a6268 !important;
                transform: translateY(-1px);
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
                transition: all 0.2s ease;
            }

            /* ✅ Previeni click-through su dropdown */
            .docente-insegnamenti-wrapper .btn-group {
                position: relative;
                z-index: 10;
            }

             

            /* Responsive */
            @media (max-width: 768px) {
                .docente-insegnamenti-wrapper .badge {
                    font-size: 0.7rem;
                    padding: 0.25rem 0.5rem;
                    max-width: 120px;
                }
                
                .docente-insegnamenti-wrapper .dropdown-menu {
                    max-width: 280px;
                    font-size: 0.8rem;
                }
            }

            /* ==========================================
            SEARCH BOX - SUGGERIMENTO
            ========================================== */

            .search-box small.text-muted {
                font-size: 0.85rem;
                display: inline-flex;
                align-items: center;
            }

            .search-box small.text-muted strong {
                color: #495057;
                font-weight: 600;
            }

            /* ==========================================
            SEARCH LOADING SPINNER
            ========================================== */

            .search-loading {
                position: absolute;
                right: 60px;
                top: 50%;
                transform: translateY(-50%);
                display: none;  /* ✅ Nascosto di default */
                z-index: 10;
            }

            .search-loading.active {
                display: block;  /* ✅ Visibile quando ha classe active */
            }

            .search-loading .spinner {
                width: 20px;
                height: 20px;
                border: 2px solid #f3f3f3;
                border-top: 2px solid #0066CC;
                border-radius: 50%;
                animation: spin 1s linear infinite;
            }

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

            /* ==========================================
            PAGINAZIONE CLIENT-SIDE
            ========================================== */

            .pagination-modern {
                margin-top: 2rem;
                margin-bottom: 2rem;
            }

            .pagination-modern .pagination {
                gap: 0.5rem;
            }

            .pagination-modern .page-item .page-link {
                border-radius: 8px;
                padding: 0.5rem 1rem;
                color: #0066CC;
                border: 1px solid #dee2e6;
                transition: all 0.2s ease;
            }

            .pagination-modern .page-item .page-link:hover {
                background-color: #f8f9fa;
                border-color: #0066CC;
                transform: translateY(-2px);
                box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
            }

            .pagination-modern .page-item.active .page-link {
                background-color: #0066CC;
                border-color: #0066CC;
                color: white;
                font-weight: 600;
            }

            .pagination-modern .page-item.disabled .page-link {
                opacity: 0.5;
                cursor: not-allowed;
            }

            /* Responsive */
            @media (max-width: 768px) {
                .pagination-modern .page-item .page-link {
                    padding: 0.4rem 0.8rem;
                    font-size: 0.9rem;
                }
            }

            /* ==========================================
            PULSANTI NOTE
            ========================================== */

            .btn-group .btn-outline-primary,
            .btn-group .btn-outline-danger {
                padding: 0.375rem 0.75rem;
                font-size: 0.875rem;
            }

            .btn-group .btn-outline-primary:hover {
                background-color: #0066CC;
                color: white;
            }

            .btn-group .btn-outline-danger:hover {
                background-color: #dc3545;
                color: white;
            }

            .btn-outline-warning {
                border-color: #ffc107;
                color: #ffc107;
            }

            .btn-outline-warning:hover {
                background-color: #ffc107;
                color: #212529;
            }

           

            /* ==========================================
            NOTE CONTENT
            ========================================== */

            .note-content {
                padding: 1rem;
                background-color: #f8f9fa;
                border-radius: 8px;
                border-left: 4px solid #0066CC;
                min-height: 80px;
            }

            .note-content p:last-child {
                margin-bottom: 0;
            }

            /* Textarea */
            #id_note {
                font-family: inherit;
                font-size: 0.95rem;
                line-height: 1.6;
                border: 2px solid #dee2e6;
                border-radius: 8px;
                padding: 1rem;
                transition: border-color 0.2s ease;
            }

            #id_note:focus {
                border-color: #0066CC;
                box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
            }

            /* Responsive */
            @media (max-width: 768px) {
                .btn-group {
                    flex-direction: column;
                    width: 100%;
                }
                
                .btn-group .btn {
                    width: 100%;
                    margin-bottom: 0.5rem;
                }
                
                .d-flex.justify-content-between {
                    flex-direction: column;
                    gap: 1rem;
                }
                
                .d-flex.justify-content-between > div {
                    width: 100%;
                }
                
                .d-flex.justify-content-between .btn {
                    width: 100%;
                }
            }

            /* ============================================
            FOOTER UNIME
            ============================================ */

            .footer-unime {
                background-color: #1a3a5c;
                color: #ffffff;
                margin-top: auto;
            }

            /* ─── Sezione principale ─────────────────────── */
            .footer-main {
                padding: 2.5rem 0 2rem;
            }

            .footer-col {
                padding: 0.75rem 1rem;
            }

            .footer-col-center {
                border-left: 1px solid rgba(255, 255, 255, 0.15);
                border-right: 1px solid rgba(255, 255, 255, 0.15);
            }

            .footer-col-right {
                display: flex;
                align-items: flex-start;
                justify-content: left;
            }

            /* ─── Brand (logo + testo) ───────────────────── */
            .footer-brand {
                display: flex;
                flex-direction: column;   /* ← verticale invece di row */
                align-items: flex-start;
                gap: 0.75rem;
                
            }

            .footer-logo-unime {
                width: 200px;
                height: auto;
                flex-shrink: 0;
                filter: brightness(0) invert(1); /* Forza bianco se logo è scuro */
            }

            .footer-logo-ciam {
                width: 120px;
                height: auto;
                flex-shrink: 0;
            }

            .footer-brand-text {
                display: flex;
                flex-direction: column;
                gap: 0.35rem;
                font-size: 0.875rem;
                line-height: 1.4;
                color: #ffffff;
            }

            .footer-brand-text strong {
                font-weight: 600;
                font-size: 0.9rem;
            }

            /* ─── Link footer ────────────────────────────── */
            .footer-link {
                color: rgba(255, 255, 255, 0.75);
                text-decoration: underline;
                font-size: 0.82rem;
                transition: color 0.2s ease;
            }

            .footer-link:hover,
            .footer-link:focus {
                color: #ffffff;
                text-decoration: underline;
                outline: 2px solid rgba(255, 255, 255, 0.6);
                outline-offset: 2px;
                border-radius: 2px;
            }

            /* ─── Link supporto ──────────────────────────── */
            .footer-support-link {
                display: inline-flex;
                align-items: center;
                gap: 0.35rem;
                color: rgba(255, 255, 255, 0.85);
                text-decoration: underline;
                font-size: 0.9rem;
                transition: color 0.2s ease;
                padding: 0.25rem 0;
            }

            .footer-support-link:hover,
            .footer-support-link:focus {
                color: #ffffff;
                outline: 2px solid rgba(255, 255, 255, 0.6);
                outline-offset: 2px;
                border-radius: 2px;
            }

            .footer-support-link .icon {
                fill: currentColor;
                width: 1rem;
                height: 1rem;
            }

            /* ─── Divider ────────────────────────────────── */
            .footer-divider {
                border-top: 1px solid rgba(255, 255, 255, 0.2);
                margin: 0 1.5rem;
            }

            /* ─── Footer bottom: social ──────────────────── */
            .footer-bottom {
                padding: 1.25rem 0;
            }

            .footer-social {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 1.75rem;
                flex-wrap: wrap;
            }

            .footer-social-link {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 36px;
                height: 36px;
                color: #ffffff;
                transition: opacity 0.2s ease, outline 0.2s ease;
                border-radius: 4px;
            }

            .footer-social-link svg {
                width: 22px;
                height: 22px;
                fill: #ffffff;
                stroke: none;
            }

            /* Instagram: icona con bordo e interno vuoto */
            .footer-social-link:nth-child(2) svg rect {
                fill: none;
                stroke: #ffffff;
                stroke-width: 1.5;
            }
            .footer-social-link:nth-child(2) svg circle:first-of-type {
                fill: none;
                stroke: #ffffff;
                stroke-width: 1.5;
            }

            .footer-social-link:hover,
            .footer-social-link:focus {
                opacity: 0.75;
                outline: 2px solid rgba(255, 255, 255, 0.6);
                outline-offset: 3px;
            }

            /* ─── Responsive ─────────────────────────────── */
            @media (max-width: 768px) {
                .footer-col-center {
                    border-left: none;
                    border-right: none;
                    border-top: 1px solid rgba(255, 255, 255, 0.15);
                    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
                    padding: 1.25rem 1rem;
                    margin: 0.5rem 0;
                }

                .footer-col-right {
                    justify-content: flex-start;
                    padding-top: 0.75rem;
                }

                .footer-social {
                    gap: 1.25rem;
                }
            }


            /* ============================================
            HERO BANNER HOMEPAGE
            ============================================ */

            .hero-banner {
                width: 100%;
            }

            .hero-banner-img-wrapper {
                position: relative;
                width: 100%;
            }

            /* ─── Immagine responsive ────────────────────── */
            .hero-banner-img {
                width: 100%;
                height: 300px;
                max-height: 480px;
                object-fit: cover;
                object-position: center;
                display: block;
            }

            /* ─── Overlay scuro semi-trasparente ─────────── */
            .hero-banner-overlay {
                position: absolute;
                inset: 0;
                background: linear-gradient(
                    to bottom,
                    rgba(13, 35, 64, 0.35) 0%,
                    rgba(13, 35, 64, 0.55) 100%
                );
            }

            /* ─── Testo sovrapposto ──────────────────────── */
            .hero-banner-text {
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .hero-banner-text h1 {
                color: #ffffff;
                font-size: clamp(1.8rem, 5vw, 3.5rem);
                font-weight: 800;
                text-align: center;
                line-height: 1.2;
                letter-spacing: -0.01em;
                text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
                margin: 0;
            }

            /* ─── Responsive ─────────────────────────────── */
            @media (max-width: 768px) {
                .hero-banner-img {
                    max-height: 280px;
                }
            }

            @media (max-width: 480px) {
                .hero-banner-img {
                    max-height: 200px;
                }
            }

            /* Icona + testo sulla stessa linea */
            .info-label {
                display: flex;
                align-items: center;      /* allinea verticalmente icona e testo */
                gap: 0.4rem;              /* spazio tra icona e testo */
            }

            /* Spazio tra le due righe */
            .alert-mic-off {
                padding: 0.5rem 1rem;
            }

            .alert-video-off {
                padding: 0.5rem 1rem;
                margin-top: 0.25rem;      /* spazio tra prima e seconda riga */
            }

            /* Se avevi icone troppo schiacciate, puoi regolare la dimensione */
            .info-label .icon {
                width: 1rem;
                height: 1rem;
            }

            .card-info-teams{

                display: inherit;
            }

            .it-hero-wrapper{
                background-color: white;
                display: flex;
            }

           


            

            
