.elementor-770 .elementor-element.elementor-element-e114560{--display:flex;--min-height:315px;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--justify-content:flex-end;--margin-top:-5px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:12em;--padding-bottom:4em;--padding-left:2em;--padding-right:2em;}.elementor-770 .elementor-element.elementor-element-e114560:not(.elementor-motion-effects-element-type-background), .elementor-770 .elementor-element.elementor-element-e114560 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:transparent;background-image:linear-gradient(314deg, var( --e-global-color-secondary ) 0%, var( --e-global-color-345c75c ) 100%);}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-770 .elementor-element.elementor-element-62a63a0 .elementor-heading-title{color:var( --e-global-color-a520cdc );}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-770 .elementor-element.elementor-element-eebfc0e p{margin-block-end:0px;}.elementor-770 .elementor-element.elementor-element-eebfc0e{color:var( --e-global-color-a520cdc );}.elementor-770 .elementor-element.elementor-element-f42901c{margin:20px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;}.elementor-770 .elementor-element.elementor-element-27ea112{margin:20px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;}/* Start custom CSS for shortcode, class: .elementor-element-f42901c */● /* ========================================
     CRITICO: NASCONDI SINGOLI EVENT-CONTAINER
     ======================================== */
  .mptt-shortcode-wrapper .mptt-shortcode-table .mptt-event-container.mptt-hidden-event,
  .mptt-shortcode-wrapper .mptt-shortcode-table .mptt-event-container.mptt-hidden-event * {
      display: none !important;
      max-width: 0 !important;
      max-height: 0 !important;
      opacity: 0 !important;
      visibility: hidden !important;
      pointer-events: none !important;
      overflow: hidden !important;
      margin: 0 !important;
      padding: 0 !important;
  }

  /* ========================================
     WRAPPER PRINCIPALE
     ======================================== */
  .mptt-shortcode-wrapper {
      background: rgba(10, 10, 10, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      margin-bottom: 2rem;
      padding: 15px;
      /* overflow: hidden rimosso — clippava il dropdown assoluto */
  }

  /* ========================================
     NASCONDI IL SELECT NATIVO
     ======================================== */
  .mptt-shortcode-wrapper .mptt-navigation-select,
  .mptt-shortcode-wrapper .mptt-menu.mptt-navigation-select {
      display: none !important;
  }

  /* ========================================
     CONTROLS CONTAINER (Multiselect + PDF)
     ======================================== */
  .mptt-controls-container {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      width: 100%;
      max-width: 600px;
      margin-bottom: 1.5rem;
  }

  /* ========================================
     MULTISELECT WRAPPER
     ======================================== */
  .mptt-multiselect-wrapper {
      position: relative;
      flex: 1;
      min-width: 0;
  }

  /* ========================================
     PDF EXPORT BUTTON
     ======================================== */
  .mptt-pdf-export-btn {
      padding: 12px 20px;
      background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
      color: #ffffff;
      border: 2px solid #9B1B30;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.25s ease;
      white-space: nowrap;
      box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
      flex-shrink: 0;
      height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
  }

  .mptt-pdf-export-btn:hover {
      background: linear-gradient(135deg, #9B1B30 0%, #DC143C 100%);
      border-color: #DC143C;
      transform: translateY(-1px);
      box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
  }

  .mptt-pdf-export-btn:active {
      transform: translateY(0);
  }

  .mptt-pdf-export-btn:focus {
      outline: none;
      box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.20), 0 10px 18px rgba(0, 0, 0, 0.25);
  }

  /* ========================================
     MULTISELECT BUTTON
     ======================================== */
  .mptt-multiselect-button {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 18px;
      height: 48px;
      background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
      color: #ffffff;
      border: 2px solid #9B1B30;
      border-radius: 12px;
      cursor: pointer;
      user-select: none;
      transition: all 0.25s ease;
      box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  }

  .mptt-multiselect-button:hover {
      border-color: #DC143C;
      transform: translateY(-1px);
      box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
  }

  .mptt-multiselect-button:active {
      transform: translateY(0);
  }

  .mptt-multiselect-button:focus {
      outline: none;
      border-color: #DC143C;
      box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.20), 0 10px 18px rgba(0, 0, 0, 0.25);
  }

  .mptt-multiselect-text {
      flex: 1;
      font-size: 14.5px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.95);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  .mptt-multiselect-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 28px;
      height: 28px;
      padding: 0 10px;
      margin-left: 12px;
      background: linear-gradient(135deg, #9B1B30 0%, #DC143C 100%);
      color: #ffffff;
      font-size: 13px;
      font-weight: 800;
      border-radius: 999px;
      box-shadow: 0 8px 14px rgba(0, 0, 0, 0.22);
  }

  /* ========================================
     DROPDOWN
     ======================================== */
  .mptt-multiselect-dropdown {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      max-height: 450px;
      background: #ffffff;
      border: 2px solid #9B1B30;
      border-radius: 12px;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
      z-index: 1000;
      overflow: hidden;
  }

  /* ========================================
     SEARCH BOX
     ======================================== */
  .mptt-multiselect-search {
      padding: 12px;
      background: #f8f8f8;
      border-bottom: 1px solid #e5e5e5;
  }

  .mptt-multiselect-search input {
      width: 100%;
      padding: 10px 14px;
      background: #ffffff;
      border: 2px solid #e5e5e5;
      border-radius: 10px;
      font-size: 14px;
      color: #1a1a1a;
      box-sizing: border-box;
      transition: all 0.25s ease;
  }

  .mptt-multiselect-search input:focus {
      outline: none;
      border-color: #9B1B30;
      box-shadow: 0 0 0 4px rgba(155, 27, 48, 0.12);
  }

  .mptt-multiselect-search input::placeholder {
      color: #999;
  }

  /* ========================================
     ACTION BUTTONS (Tutti/Nessuno)
     ======================================== */
  .mptt-multiselect-actions {
      display: flex;
      gap: 8px;
      padding: 10px 12px;
      background: #f8f8f8;
      border-bottom: 1px solid #e5e5e5;
  }

  .mptt-multiselect-action-btn {
      flex: 1;
      padding: 8px 16px;
      background: #ffffff;
      color: #1a1a1a;
      border: 2px solid #e5e5e5;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
  }

  .mptt-multiselect-action-btn:hover {
      background: #9B1B30;
      color: #ffffff;
      border-color: #9B1B30;
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  }

  .mptt-multiselect-action-btn:active {
      transform: translateY(0);
      box-shadow: none;
  }

  /* ========================================
     OPTIONS LIST
     ======================================== */
  .mptt-multiselect-options {
      max-height: 300px;
      overflow-y: auto;
      margin: 0;
      padding: 0;
      list-style: none;
      background: #ffffff;
  }

  .mptt-multiselect-option {
      display: flex;
      align-items: center;
      padding: 12px 16px;
      cursor: pointer;
      transition: all 0.18s ease;
      user-select: none;
      border-bottom: 1px solid #f2f2f2;
  }

  .mptt-multiselect-option:last-child {
      border-bottom: none;
  }

  .mptt-multiselect-option:hover {
      background: linear-gradient(90deg, #f8f8f8 0%, #ffffff 100%);
  }

  .mptt-multiselect-option.selected {
      background: linear-gradient(90deg, #ffe8ec 0%, #fff5f6 100%);
      border-left: 4px solid #9B1B30;
  }

  /* ========================================
     CHECKBOX PERSONALIZZATA
     ======================================== */
  .mptt-multiselect-checkbox {
      width: 20px;
      height: 20px;
      margin-right: 12px;
      border: 2px solid #4a4a4a;
      border-radius: 6px;
      flex-shrink: 0;
      position: relative;
      transition: all 0.2s ease;
      background: #ffffff;
  }

  .mptt-multiselect-option:hover .mptt-multiselect-checkbox {
      border-color: #9B1B30;
  }

  .mptt-multiselect-option.selected .mptt-multiselect-checkbox {
      background: linear-gradient(135deg, #9B1B30 0%, #DC143C 100%);
      border-color: #9B1B30;
      box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
  }

  .mptt-multiselect-option.selected .mptt-multiselect-checkbox::after {
      content: '';
      position: absolute;
      left: 6px;
      top: 2px;
      width: 5px;
      height: 10px;
      border: solid #ffffff;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
  }

  /* ========================================
     LABEL
     ======================================== */
  .mptt-multiselect-label {
      font-size: 14px;
      color: #1a1a1a;
      font-weight: 600;
      line-height: 1.4;
      flex: 1;
  }

  .mptt-multiselect-option.selected .mptt-multiselect-label {
      color: #9B1B30;
      font-weight: 800;
  }

  /* ========================================
     EMPTY STATE
     ======================================== */
  .mptt-multiselect-empty {
      padding: 30px 20px;
      text-align: center;
      color: #999;
      font-size: 14px;
      font-style: italic;
  }

  /* ========================================
     SCROLLBAR PERSONALIZZATA
     ======================================== */
  .mptt-multiselect-options::-webkit-scrollbar {
      width: 10px;
  }

  .mptt-multiselect-options::-webkit-scrollbar-track {
      background: #f8f8f8;
  }

  .mptt-multiselect-options::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, #9B1B30 0%, #DC143C 100%);
      border-radius: 999px;
      border: 2px solid #f8f8f8;
  }

  .mptt-multiselect-options::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, #DC143C 0%, #9B1B30 100%);
  }

  /* ========================================
     TABELLA
     ======================================== */

  /* Reset background: previene sovrascritture del tema */
  .mptt-shortcode-wrapper .mptt-shortcode-table,
  .mptt-shortcode-wrapper .mptt-shortcode-table thead,
  .mptt-shortcode-wrapper .mptt-shortcode-table tbody,
  .mptt-shortcode-wrapper .mptt-shortcode-table tr,
  .mptt-shortcode-wrapper .mptt-shortcode-table th,
  .mptt-shortcode-wrapper .mptt-shortcode-table td {
      background: transparent !important;
  }

  .mptt-shortcode-wrapper .mptt-shortcode-table {
      table-layout: fixed !important;
      width: 100% !important;
      border-collapse: separate !important;
      border-spacing: 0 !important;
      background: rgba(15, 15, 15, 0.55) !important;
      overflow: hidden;
      border-radius: 14px;
  }

  /* Header giorni */
  .mptt-shortcode-wrapper .mptt-shortcode-table thead th {
      background: rgba(18, 18, 18, 0.95) !important;
      color: rgba(255, 255, 255, 0.92) !important;
      font-weight: 800 !important;
      text-transform: uppercase !important;
      font-size: 12px !important;
      letter-spacing: 0.12em !important;
      padding: 12px 10px !important;
      border: 1px solid rgba(255, 255, 255, 0.10) !important;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .mptt-shortcode-wrapper .mptt-shortcode-table thead th:first-child {
      width: 84px !important;
      border-top-left-radius: 14px !important;
      vertical-align: middle !important;
      text-align: center !important;
  }

  .mptt-shortcode-wrapper .mptt-shortcode-table thead th:last-child {
      border-top-right-radius: 14px !important;
  }

  /* Colonna orari */
  .mptt-shortcode-wrapper .mptt-shortcode-table .mptt-shortcode-hours {
      background: rgba(16, 16, 16, 0.95) !important;
      color: rgba(255, 255, 255, 0.92) !important;
      font-weight: 800 !important;
      font-size: 13px !important;
      border: 1px solid rgba(255, 255, 255, 0.10) !important;
      border-right: 1px solid rgba(155, 27, 48, 0.65) !important;
      padding: 10px 8px !important;
      width: 84px !important;
      font-variant-numeric: tabular-nums !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
  }

  /* Celle giorni */
  .mptt-shortcode-wrapper .mptt-shortcode-table tbody td {
      background: rgba(255, 255, 255, 0.045) !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      padding: 6px !important;
      vertical-align: top !important;
      min-height: 36px !important;
      height: auto !important;
      position: static !important;
  }

  .mptt-shortcode-wrapper .mptt-shortcode-table tbody td:empty {
      background: rgba(255, 255, 255, 0.035) !important;
  }

  /* Pulizia background su elementi annidati nelle celle */
  .mptt-shortcode-wrapper .mptt-shortcode-table td * {
      background-color: transparent !important;
  }

  /* ========================================
     EVENTI
     ======================================== */
  .mptt-shortcode-wrapper .mptt-event-container {
      background: linear-gradient(135deg, rgba(155, 27, 48, 0.95) 0%, rgba(220, 20, 60, 0.88) 100%) !important;
      color: rgba(255, 255, 255, 0.98) !important;
      border-radius: 8px !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      padding: 7px 8px !important;
      margin: 4px 0 !important;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22) !important;
      transition: transform 0.18s ease, box-shadow 0.18s ease !important;
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      bottom: auto !important;
      width: 100% !important;
      height: auto !important;
      min-height: auto !important;
      max-height: none !important;
      display: block !important;
      overflow: hidden !important;
  }

  .mptt-shortcode-wrapper .mptt-event-container:hover {
      transform: translateY(-1px) !important;
      box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28) !important;
  }

  .mptt-shortcode-wrapper .mptt-event-container .event-title {
      font-weight: 900 !important;
      font-size: 11.5px !important;
      color: rgba(255, 255, 255, 0.98) !important;
      display: block !important;
      margin: 0 0 4px 0 !important;
      line-height: 1.2 !important;
  }

  .mptt-shortcode-wrapper .mptt-event-container .timeslot {
      font-size: 10.5px !important;
      color: rgba(255, 255, 255, 0.90) !important;
      margin: 0 !important;
      line-height: 1.15 !important;
      font-variant-numeric: tabular-nums !important;
  }

  /* ========================================
     RESPONSIVE
     ======================================== */
  @media (max-width: 768px) {
      .mptt-controls-container {
          overflow: visible !important;
      }

      .mptt-multiselect-wrapper {
          overflow: visible !important;
      }

      .mptt-multiselect-dropdown {
          position: static;   /* <-- esce dal flusso assoluto, nessun clipping possibile */
          margin-top: 8px;
          max-height: 350px;
          left: auto;
          right: auto;
          top: auto;
          width: 100%;
      }

      .mptt-multiselect-options {
          max-height: 250px;
      }

      .mptt-multiselect-button {
          padding: 10px 14px;
      }

      .mptt-multiselect-text {
          font-size: 14px;
      }

      .mptt-shortcode-wrapper .mptt-shortcode-table thead th {
          padding: 10px 8px !important;
          font-size: 11px !important;
      }

      .mptt-shortcode-wrapper .mptt-shortcode-table tbody td {
          padding: 5px !important;
          min-height: 34px !important;
      }

      .mptt-shortcode-wrapper .mptt-event-container {
          padding: 6px 7px !important;
          border-radius: 7px !important;
      }

      .mptt-shortcode-wrapper .mptt-event-container .event-title {
          font-size: 11px !important;
      }
  }

  @media (max-width: 480px) {
      .mptt-multiselect-actions {
          flex-direction: column;
          gap: 6px;
      }

      .mptt-multiselect-action-btn {
          width: 100%;
      }
  }/* End custom CSS */
/* Start custom CSS for shortcode, class: .elementor-element-27ea112 *//**
 * MP Timetable - Multiselect COMPLETO
 * Tema: Nero, Rosso, Grigio + Multiselect Moderno
 * VERSIONE COMPLETA + TABELLA FIXATA (coerente, contrastata, ordinata)
 * - Nessun :has()
 * - Celle uniformi (no bianco/nero a caso)
 * - Eventi più compatti
 * - Orari centrati verticalmente
 */

/* ========================================
   VARIABILI COLORE (commento)
   ======================================== */
/*
   Nero: #1a1a1a
   Rosso principale: #9B1B30
   Rosso hover: #DC143C
   Grigio scuro: #2c2c2c
   Grigio medio: #4a4a4a
   Grigio chiaro: #e5e5e5
   Bianco: #ffffff
*/

/* ========================================
   🔥 CRITICO: NASCONDI SINGOLI EVENT-CONTAINER
   (mantengo la tua versione completa, è più robusta)
   ======================================== */
.mptt-shortcode-wrapper .mptt-shortcode-table .mptt-event-container.mptt-hidden-event,
.mptt-shortcode-wrapper .mptt-shortcode-table .mptt-event-container.mptt-hidden-event * {
    display: none !important;
    max-width: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   WRAPPER PRINCIPALE (coerente col tema dark)
   ======================================== */
.mptt-shortcode-wrapper {
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 2rem;
    overflow: hidden;
    padding:15px;
}

/* ========================================
   NASCONDI IL SELECT NATIVO (importante!)
   ======================================== */
.mptt-shortcode-wrapper .mptt-navigation-select,
.mptt-shortcode-wrapper .mptt-menu.mptt-navigation-select {
    display: none !important;
}

/* ========================================
   CONTROLS CONTAINER (Multiselect + PDF)
   ======================================== */
.mptt-controls-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

/* ========================================
   MULTISELECT WRAPPER
   ======================================== */
.mptt-multiselect-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* ========================================
   PDF EXPORT BUTTON
   ======================================== */
.mptt-pdf-export-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #ffffff;
    border: 2px solid #9B1B30;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mptt-pdf-export-btn:hover {
    background: linear-gradient(135deg, #9B1B30 0%, #DC143C 100%);
    border-color: #DC143C;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
}

.mptt-pdf-export-btn:active {
    transform: translateY(0);
}

.mptt-pdf-export-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.20), 0 10px 18px rgba(0, 0, 0, 0.25);
}

/* ========================================
   MULTISELECT BUTTON (Nero con accento rosso)
   ======================================== */
.mptt-multiselect-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    height: 48px;

    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #ffffff;
    border: 2px solid #9B1B30;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.mptt-multiselect-button:hover {
    border-color: #DC143C;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
}

.mptt-multiselect-button:active {
    transform: translateY(0);
}

.mptt-multiselect-button:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.20), 0 10px 18px rgba(0, 0, 0, 0.25);
}

.mptt-multiselect-text {
    flex: 1;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mptt-multiselect-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    margin-left: 12px;
    background: linear-gradient(135deg, #9B1B30 0%, #DC143C 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.22);
}

/* ========================================
   DROPDOWN
   ======================================== */
.mptt-multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 450px;
    background: #ffffff;
    border: 2px solid #9B1B30;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    overflow: hidden;
}

/* ========================================
   SEARCH BOX
   ======================================== */
.mptt-multiselect-search {
    padding: 12px;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
}

.mptt-multiselect-search input {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.mptt-multiselect-search input:focus {
    outline: none;
    border-color: #9B1B30;
    box-shadow: 0 0 0 4px rgba(155, 27, 48, 0.12);
}

.mptt-multiselect-search input::placeholder {
    color: #999;
}

/* ========================================
   ACTION BUTTONS (Tutti/Nessuno)
   ======================================== */
.mptt-multiselect-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
}

.mptt-multiselect-action-btn {
    flex: 1;
    padding: 8px 16px;
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mptt-multiselect-action-btn:hover {
    background: #9B1B30;
    color: #ffffff;
    border-color: #9B1B30;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.mptt-multiselect-action-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ========================================
   OPTIONS LIST
   ======================================== */
.mptt-multiselect-options {
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #ffffff;
}

.mptt-multiselect-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    border-bottom: 1px solid #f2f2f2;
}

.mptt-multiselect-option:last-child {
    border-bottom: none;
}

.mptt-multiselect-option:hover {
    background: linear-gradient(90deg, #f8f8f8 0%, #ffffff 100%);
}

.mptt-multiselect-option.selected {
    background: linear-gradient(90deg, #ffe8ec 0%, #fff5f6 100%);
    border-left: 4px solid #9B1B30;
}

/* ========================================
   CHECKBOX PERSONALIZZATA
   ======================================== */
.mptt-multiselect-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 2px solid #4a4a4a;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

.mptt-multiselect-option:hover .mptt-multiselect-checkbox {
    border-color: #9B1B30;
}

.mptt-multiselect-option.selected .mptt-multiselect-checkbox {
    background: linear-gradient(135deg, #9B1B30 0%, #DC143C 100%);
    border-color: #9B1B30;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
}

.mptt-multiselect-option.selected .mptt-multiselect-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ========================================
   LABEL
   ======================================== */
.mptt-multiselect-label {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
}

.mptt-multiselect-option.selected .mptt-multiselect-label {
    color: #9B1B30;
    font-weight: 800;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.mptt-multiselect-empty {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* ========================================
   SCROLLBAR PERSONALIZZATA
   ======================================== */
.mptt-multiselect-options::-webkit-scrollbar {
    width: 10px;
}

.mptt-multiselect-options::-webkit-scrollbar-track {
    background: #f8f8f8;
}

.mptt-multiselect-options::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9B1B30 0%, #DC143C 100%);
    border-radius: 999px;
    border: 2px solid #f8f8f8;
}

.mptt-multiselect-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #DC143C 0%, #9B1B30 100%);
}

/* =========================================================
   TABELLA – FIX COMPLETO (coerente, contrasto, uniforme)
   ========================================================= */

/* Reset controllato: evitiamo background “random” da tema/plugin */
.mptt-shortcode-wrapper .mptt-shortcode-table,
.mptt-shortcode-wrapper .mptt-shortcode-table thead,
.mptt-shortcode-wrapper .mptt-shortcode-table tbody,
.mptt-shortcode-wrapper .mptt-shortcode-table tr,
.mptt-shortcode-wrapper .mptt-shortcode-table th,
.mptt-shortcode-wrapper .mptt-shortcode-table td {
    background: transparent !important;
}

/* Tabella */
.mptt-shortcode-wrapper .mptt-shortcode-table {
    table-layout: fixed !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: rgba(15,15,15,.55) !important;
}

/* Header giorni */
.mptt-shortcode-wrapper .mptt-shortcode-table thead th {
    background: rgba(18,18,18,.95) !important;
    color: rgba(255,255,255,.92) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.12em !important;
    padding: 12px 10px !important;

    border: 1px solid rgba(255,255,255,.10) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

/* Colonna orari (header in alto a sx) */
.mptt-shortcode-wrapper .mptt-shortcode-table thead th:first-child {
    width: 84px !important;
    border-top-left-radius: 14px !important;
    vertical-align: middle !important;
    text-align: center !important;
}

/* Angolo in alto a dx */
.mptt-shortcode-wrapper .mptt-shortcode-table thead th:last-child {
    border-top-right-radius: 14px !important;
}

/* Colonna orari (celle) – centratura verticale perfetta */
.mptt-shortcode-wrapper .mptt-shortcode-table .mptt-shortcode-hours {
    background: rgba(16,16,16,.95) !important;
    color: rgba(255,255,255,.92) !important;
    font-weight: 800 !important;
    font-size: 13px !important;

    border: 1px solid rgba(255,255,255,.10) !important;
    border-right: 1px solid rgba(155,27,48,.65) !important;

    padding: 10px 8px !important;
    width: 84px !important;

    font-variant-numeric: tabular-nums !important;

    /* centratura */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Celle giorni (uniformi e leggibili) */
.mptt-shortcode-wrapper .mptt-shortcode-table tbody td {
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    padding: 6px !important;
    vertical-align: top !important;
    min-height: 36px !important;
    height: auto !important;

    /* impedisce layout “assoluto” dentro la cella */
    position: static !important;
}

/* Celle vuote */
.mptt-shortcode-wrapper .mptt-shortcode-table tbody td:empty {
    background: rgba(255,255,255,.035) !important;
}

/* Anti-zebra: evita alternanze del tema */
.mptt-shortcode-wrapper .mptt-shortcode-table tbody tr:nth-child(odd) td,
.mptt-shortcode-wrapper .mptt-shortcode-table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,.045) !important;
}

/* Eventi: compatti e ordinati */
.mptt-shortcode-wrapper .mptt-event-container {
    background: linear-gradient(135deg, rgba(155,27,48,.95) 0%, rgba(220,20,60,.88) 100%) !important;
    color: rgba(255,255,255,.98) !important;

    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,.14) !important;

    padding: 7px 8px !important;
    margin: 4px 0 !important;

    box-shadow: 0 8px 16px rgba(0,0,0,.22) !important;
    transition: transform .18s ease, box-shadow .18s ease !important;

    /* CRITICAL: blocca posizionamento assoluto plugin */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;

    display: block !important;
    overflow: hidden !important;
}

.mptt-shortcode-wrapper .mptt-event-container:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 22px rgba(0,0,0,.28) !important;
}

.mptt-shortcode-wrapper .mptt-event-container .event-title {
    font-weight: 900 !important;
    font-size: 11.5px !important;
    color: rgba(255,255,255,.98) !important;
    display: block !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
}

.mptt-shortcode-wrapper .mptt-event-container .timeslot {
    font-size: 10.5px !important;
    color: rgba(255,255,255,.90) !important;
    margin: 0 !important;
    line-height: 1.15 !important;
    font-variant-numeric: tabular-nums !important;
}

/* Pulizia: alcuni temi mettono background su wrapper interni dentro le td.
   Lo annulliamo solo nella tabella, senza toccare il resto del sito. */
.mptt-shortcode-wrapper .mptt-shortcode-table td * {
    background-color: transparent !important;
}

/* Manteniamo “intatto” il look degli eventi */
.mptt-shortcode-wrapper .mptt-event-container,
.mptt-shortcode-wrapper .mptt-event-container * {
    background-color: transparent;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .mptt-multiselect-dropdown {
        max-height: 350px;
    }

    .mptt-multiselect-options {
        max-height: 250px;
    }

    .mptt-multiselect-button {
        padding: 10px 14px;
    }

    .mptt-multiselect-text {
        font-size: 14px;
    }

    .mptt-shortcode-wrapper .mptt-shortcode-table thead th {
        padding: 10px 8px !important;
        font-size: 11px !important;
    }

    .mptt-shortcode-wrapper .mptt-shortcode-table tbody td {
        padding: 5px !important;
        min-height: 34px !important;
    }

    .mptt-shortcode-wrapper .mptt-event-container {
        padding: 6px 7px !important;
        border-radius: 7px !important;
    }

    .mptt-shortcode-wrapper .mptt-event-container .event-title {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .mptt-multiselect-actions {
        flex-direction: column;
        gap: 6px;
    }

    .mptt-multiselect-action-btn {
        width: 100%;
    }
}


/* =========================================================
   FIX BUG: allineamento verticale colonna orari (NO flex)
   ========================================================= */

/* Header in alto a sx (cella vuota) */
.mptt-shortcode-wrapper .mptt-shortcode-table thead th:first-child{
  vertical-align: middle !important;
}

/* Celle orario (13:00, 14:00, ecc.) */
.mptt-shortcode-wrapper .mptt-shortcode-table .mptt-shortcode-hours{
  /* ripristina comportamento tabella */
  display: table-cell !important;
  vertical-align: middle !important;

  /* evita “falsi centraggi” dati da padding/line-height */
  line-height: 1 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: auto !important;
}
/* =========================================================
   PDF / STAMPA – Titoli eventi in grassetto
   ========================================================= */
@media print {

  /* Titolo evento */
  .mptt-event-container .event-title {
    font-weight: 700 !important;
  }

}/* End custom CSS */