/* Background generale */
        body {
            background: #f4f6f9;
            font-family: "Segoe UI", Arial, sans-serif;
        }
        
        .corsi-aperti-box {
            background: linear-gradient(135deg, #0d6efd, #3b82f6);
            color: white;
            border: none;
            border-radius: 16px;
            padding: 20px 25px;
            box-shadow: 0 8px 20px rgba(13,110,253,.20);
        }

        .corsi-aperti-box strong {
            display: block;
            font-size: 20px;
            margin-bottom: 15px;
        }

        .corsi-aperti-box .alert-link {
            color: #fff;
            font-weight: 600;
            text-decoration: none;
        }

        .corsi-aperti-box .alert-link:hover {
            text-decoration: underline;
        }

        .corsi-aperti-box .corso-item {
            padding: 8px 0;
            border-top: 1px solid rgba(255,255,255,.20);
        }

        .corsi-aperti-box .corso-item:first-of-type {
            border-top: none;
        }

        .corsi-aperti-box .close {
            color: white;
            opacity: 0.8;
        }


        /* Sidebar */
        .side-nav {
            background: #1f2937;
        }

        .side-nav > li > a {
            color: #d1d5db !important;
            transition: all .3s;
        }

        .side-nav > li > a:hover {
            background: #374151 !important;
            color: #fff !important;
            padding-left: 25px;
        }

        .side-nav > li.active > a {
            background: #c8102e !important;
            color: white !important;
        }

        /* Page wrapper */
        #page-wrapper {
            background: #f4f6f9;
        }

        /* Alert corsi aperti */
        .alert-info {
            background: white;
            border-left: 5px solid #c8102e;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,.05);
            color: #333;
        }

        /* Pannelli corsi */
        .panel {
            border: none;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 6px 18px rgba(0,0,0,.08);
            transition: all .3s ease;
        }

        .panel:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 28px rgba(0,0,0,.15);
        }

        /* Corso standard */
        .panel-soi .panel-heading {
            background: linear-gradient(135deg,#c8102e,#e53935);
            color: white;
        }

        /* GMS/Sanatoria */
        .panel-green .panel-heading {
            background: linear-gradient(135deg,#198754,#20c997);
            color: white;
        }
    
        .panel-blue .panel-heading {
            background: linear-gradient(135deg,#0d6efd,#0d6efd);
            color: white;
        }

        /* Numero posti */
        .huge {
            font-size: 42px;
            font-weight: bold;
        }

        /* Footer card */
        .panel-footer {
            background: #ffffff;
            padding: 8px 15px;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.3;
            border-top: 1px solid #ececec;
            transition: .3s;
        }


        .panel-footer:hover {
            background: #f8f9fa;
        }

        /* Loghi disciplina */
        .panel-heading img {
            max-width: 75px;
            transition: .3s;
        }

        .panel:hover img {
            transform: scale(1.05);
        }

        /* Tabella */
        .table {
            background: white;
        }

        .table thead {
            background: #c8102e;
            color: white;
        }

        .table-hover tbody tr:hover {
            background: #f8f9fa;
        }

        .table-responsive {
            border-radius: 12px;
            overflow: hidden;
        }

        /* Panel tabella */
        .panel-default {
            border: none;
            border-radius: 16px;
            box-shadow: 0 6px 18px rgba(0,0,0,.08);
        }

        .panel-default .panel-heading {
            background: white;
            border-bottom: 1px solid #eee;
            padding: 15px 20px;
        }

        
        .corsi-erogati-panel {
            border: none;
            border-radius: 18px;
            box-shadow: 0 10px 30px rgba(0,0,0,.10);
            overflow: hidden;
            margin-top: 30px;
        }

        .corsi-erogati-panel .panel-heading {
            background: linear-gradient(135deg,#c8102e,#e53935);
            color: #fff;
            padding: 20px 25px;
            border: none;
        }

        .corsi-erogati-panel .panel-title {
            font-size: 22px;
            font-weight: 700;
        }

        .corsi-erogati-panel .panel-title i {
            margin-right: 10px;
        }

        .corsi-erogati-panel .panel-body {
            background: #fff;
        }

        .corsi-erogati-panel table thead {
            background: #1f2937;
            color: white;
        }

        .corsi-erogati-panel table thead th {
            border: none !important;
            text-transform: uppercase;
            font-size: 12px;
            letter-spacing: 1px;
        }

        .corsi-erogati-panel tbody tr:hover {
            background: #f8f9fa;
        }

        /* Background generale */
        body {
            background: #f4f6f9;
            font-family: "Segoe UI", Arial, sans-serif;
        }
        
        .corsi-aperti-box {
            background: linear-gradient(135deg, #0d6efd, #3b82f6);
            color: white;
            border: none;
            border-radius: 16px;
            padding: 20px 25px;
            box-shadow: 0 8px 20px rgba(13,110,253,.20);
        }

        .corsi-aperti-box strong {
            display: block;
            font-size: 20px;
            margin-bottom: 15px;
        }

        .corsi-aperti-box .alert-link {
            color: #fff;
            font-weight: 600;
            text-decoration: none;
        }

        .corsi-aperti-box .alert-link:hover {
            text-decoration: underline;
        }

        .corsi-aperti-box .corso-item {
            padding: 8px 0;
            border-top: 1px solid rgba(255,255,255,.20);
        }

        .corsi-aperti-box .corso-item:first-of-type {
            border-top: none;
        }

        .corsi-aperti-box .close {
            color: white;
            opacity: 0.8;
        }


        /* Sidebar */
        .side-nav {
            background: #1f2937;
        }

        .side-nav > li > a {
            color: #d1d5db !important;
            transition: all .3s;
        }

        .side-nav > li > a:hover {
            background: #374151 !important;
            color: #fff !important;
            padding-left: 25px;
        }

        .side-nav > li.active > a {
            background: #c8102e !important;
            color: white !important;
        }

        /* Page wrapper */
        #page-wrapper {
            background: #f4f6f9;
        }

        /* Alert corsi aperti */
        .alert-info {
            background: white;
            border-left: 5px solid #c8102e;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,.05);
            color: #333;
        }


        .panel:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 28px rgba(0,0,0,.15);
        }

    

        /* Numero posti */
        .huge {
            font-size: 42px;
            font-weight: bold;
        }

        /* Footer card */
        .panel-footer {
            background: white;
            font-weight: 600;
            transition: .3s;
        }

        .panel-footer:hover {
            background: #f8f9fa;
        }

        /* Loghi disciplina */
        .panel-heading img {
            max-width: 75px;
            transition: .3s;
        }

        .panel:hover img {
            transform: scale(1.05);
        }

        /* Tabella */
        .table {
            background: white;
        }

        .table thead {
            background: #c8102e;
            color: white;
        }

        .table-hover tbody tr:hover {
            background: #f8f9fa;
        }

        .table-responsive {
            border-radius: 12px;
            overflow: hidden;
        }

        /* Panel tabella */
        .panel-default {
            border: none;
            border-radius: 16px;
            box-shadow: 0 6px 18px rgba(0,0,0,.08);
        }

        .panel-default .panel-heading {
            background: white;
            border-bottom: 1px solid #eee;
            padding: 15px 20px;
        }

        
        /* Always set the map height explicitly to define the size of the div
       * element that contains the map. */
      #map {
        height: 100%;
      }
      
      #description {
        font-family: Roboto;
        font-size: 15px;
        font-weight: 300;
      }

      #infowindow-content .title {
        font-weight: bold;
      }

      #infowindow-content {
        display: none;
      }

      #map #infowindow-content {
        display: inline;
      }

      .pac-card {
        margin: 10px 10px 0 0;
        border-radius: 2px 0 0 2px;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        outline: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        background-color: #fff;
        font-family: Roboto;
      }

      #pac-container {
        padding-bottom: 12px;
        margin-right: 12px;
      }

      .pac-controls {
        display: inline-block;
        padding: 5px 11px;
      }

      .pac-controls label {
        font-family: Roboto;
        font-size: 13px;
        font-weight: 300;
      }

      #pac-input {
        background-color: #fff;
        font-family: Roboto;
        font-size: 15px;
        font-weight: 300;
        margin-left: 12px;
        padding: 0 11px 0 13px;
        text-overflow: ellipsis;
        width: 400px;
      }
       
    .list-group-item {
        border-radius: 12px !important;
        margin-bottom: 10px;
        border: 1px solid #eaeaea !important;
    }
        
    .panel-default {
        border: none;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

    .panel-default .panel-heading {
        background: #ffffff;
        border-bottom: 1px solid #ececec;
    }

    .panel-default .panel-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 20px;
}
    .main-form-panel {
        border: none;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 10px 28px rgba(0,0,0,.08);
    }

    .main-form-panel .panel-heading {
        background: linear-gradient(135deg,#c8102e,#e53935);
        color: white;
        padding: 20px;
    }

.main-form-panel .panel-title {
    font-size: 22px;
    font-weight: 700;
}    
    
      #pac-input:focus {
        border-color: #4d90fe;
      }

      #title {
        color: #fff;
        background-color: #4d90fe;
        font-size: 25px;
        font-weight: 500;
        padding: 6px 12px;
      }
        
    body {
        background: #f4f6f9;
        font-family: "Segoe UI", Arial, sans-serif;
    }
    
    .page-header-container {
        background: linear-gradient(90deg,#f0f4ff,#ffffff);
        border-left: 6px solid #c8102e;
        border-radius: 16px;
        padding: 25px 35px;
        margin-top: 30px;
        margin-bottom: 25px;
        box-shadow: 0 8px 20px rgba(0,0,0,.06);
    }
        
    .form-message {
        background: linear-gradient(135deg,#0d6efd,#3b82f6);
        color: white;
        border: none;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(13,110,253,.2);
    }

    .form-message .close {
        color: white;
    }
        
    .page-header-container h1 {
        margin: 0;
        color: #1f2937;
        font-weight: 700;
    }

    .page-header-container small {
        display: block;
        margin-top: 5px;
        color: #6b7280;
    }
    #page-wrapper {
        background: #f4f6f9;
    }

    /* Sidebar */
    .side-nav {
        background: #1f2937;
    }

    .side-nav > li > a {
        color: #d1d5db !important;
        transition: all .3s;
    }

    .side-nav > li > a:hover {
        background: #374151 !important;
        color: #fff !important;
        padding-left: 25px;
    }

    .side-nav > li.active > a {
        background: #c8102e !important;
        color: white !important;
    }
        
    #map {
        height: 500px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }
    
    input[type=text],
    input[type=email],
    input[type=number],
    input[type=date],
    input[type=file],
    select,
    textarea {
        width: 100%;
        margin-top: 8px;
        padding: 10px 12px;
        border: 1px solid #dcdcdc;
        border-radius: 10px;
        background: #fff;
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #c8102e;
        box-shadow: 0 0 0 3px rgba(200,16,46,.15);
        outline: none;
    }
        
        .page-header-container {
            background: linear-gradient(90deg,#f0f4ff,#ffffff);
            border-left: 6px solid #c8102e;
            border-radius: 16px;
            padding: 25px 35px;
            margin-top: 30px;
            margin-bottom: 25px;
            box-shadow: 0 8px 20px rgba(0,0,0,.06);
        }

        .page-header-container h1 {
            margin: 0;
            color: #1f2937;
            font-weight: 700;
        }

        .page-header-container small {
            display: block;
            margin-top: 5px;
            color: #6b7280;
        }

.btn-soi {
    background: linear-gradient(135deg,#c8102e,#e53935);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 35px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(200,16,46,.25);
    transition: all .3s ease;
}

.btn-soi:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200,16,46,.35);
}

.alert-soi-info {
    background: #e8f4ff;
    border: 1px solid #b6ddff;
    border-left: 6px solid #0d6efd;
    color: #0b3d91;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 4px 10px rgba(13,110,253,.08);
}

.alert-soi-warning {
    background: #fff8e6;
    border: 1px solid #ffe3a1;
    border-left: 6px solid #ff9800;
    color: #7a5200;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 4px 10px rgba(255,152,0,.08);
}

.panel-soi > .panel-heading{
    background:#c8102e !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-blue > .panel-heading{
    background:#0d6efd !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-yellow > .panel-heading{
    background:#ff7f00 !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-pink > .panel-heading{
    background:#c27ba0 !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-grey > .panel-heading{
    background:#c27ba0 !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-grey > .panel-heading{
    background:#c27ba0 !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-shade > .panel-heading{
    background:#a2c4c9 !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-skin > .panel-heading{
    background:#ea9999 !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-purple > .panel-heading{
    background:#8e7cc3 !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-green > .panel-heading{
    background:#198754 !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-red > .panel-heading{
    background:#c8102e !important;
    background-image:none !important;
    color:#fff !important;
}

.panel-primary > .panel-heading{
    background:#0d6efd !important;
    color:#fff !important;
}

.event-card {
    width: 100%;
    margin: 0;
}

.event-card .panel-heading {
    min-height: auto;
}

.row-flex {
    display: flex;
    flex-wrap: wrap;
}

.row-flex > [class*='col-'] {
    display: flex;
    margin-bottom: 30px;
}

.events-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:30px;
    padding:20px;
}

.event-card-wrapper{
    width:100%;
}

.event-card{
    width:100%;
    margin:0;
}

@media (max-width: 992px){
    .events-grid{
        grid-template-columns:1fr;
    }
}

.panel-soi > a {
    color: #333 !important;
}

.panel-soi > a:hover {
    color: #333 !important;
}