/* Discovery Sicilia · Calendario responsive 2026-10-10.
   Desktop: full seven-column overview. Mobile/tablet: accessible date picker
   plus readable chronological agenda, without horizontal scrolling. */
.calendar-section .calendar-desktop .calendar-scroll{max-width:100%}
.calendar-section .calendar-desktop .event-calendar{max-width:100%}
.calendar-section .calendar-desktop .calendar-week,
.calendar-section .calendar-desktop .calendar-weekdays{grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-section .calendar-desktop .calendar-day{min-width:0}
.calendar-section .calendar-desktop .calendar-event{min-width:0;overflow-wrap:anywhere;word-break:normal}
.calendar-section .calendar-desktop .calendar-event span{display:block;overflow-wrap:anywhere}
.calendar-section .calendar-day-more summary{padding:6px 4px;color:#075b80;font-size:11px;font-weight:800;cursor:pointer}
.calendar-section .calendar-day-more summary:hover{text-decoration:underline}
.calendar-section .calendar-day-more .calendar-event{margin-top:7px}
.calendar-section .calendar-mobile{display:none}

@media(max-width:900px){
  .calendar-section .calendar-desktop{display:none}
  .calendar-section .calendar-mobile{display:block;width:100%;min-width:0}
  .calendar-section .calendar-title{align-items:center;flex-wrap:wrap;gap:14px}
  .calendar-section .calendar-title h2{font-size:clamp(26px,6vw,40px);overflow-wrap:anywhere}
  .calendar-section .calendar-nav{flex-shrink:0}
  .calendar-section .calendar-nav a{width:46px;height:46px}
  .calendar-section .calendar-mobile-help{margin:0 0 14px;font-size:13px;line-height:1.5;color:#526e7e}
  .calendar-section .calendar-mobile-month{
    max-width:100%;min-width:0;background:#fff;border:1px solid #dce8ee;
    border-radius:18px;overflow:hidden;box-shadow:0 7px 24px rgba(7,43,77,.055)
  }
  .calendar-section .calendar-mobile-weekdays,
  .calendar-section .calendar-mobile-week{
    display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:0
  }
  .calendar-section .calendar-mobile-weekdays{background:#073957;color:#fff}
  .calendar-section .calendar-mobile-weekdays span{
    text-align:center;display:grid;place-items:center;min-height:40px;
    font-size:12px;font-weight:850;letter-spacing:.01em
  }
  .calendar-section .calendar-mobile-week{border-bottom:1px solid #edf3f6}
  .calendar-section .calendar-mobile-week:last-child{border-bottom:0}
  .calendar-section .calendar-mobile-cell{
    display:flex;align-items:center;justify-content:center;flex-direction:column;
    gap:1px;min-width:0;min-height:55px;
    border-right:1px solid #eaf0f4;
    background:#fff;color:#38556a;font-size:15px;
    position:relative;outline-offset:-3px
  }
  .calendar-section .calendar-mobile-cell:last-child{border-right:0}
  .calendar-section .calendar-mobile-cell.is-empty{background:#f7f9fa}
  .calendar-section .calendar-mobile-cell.is-today{
    background:#fff8e9;box-shadow:inset 0 0 0 2px #d2a85a;color:#6e4b10
  }
  .calendar-section .calendar-mobile-cell.has-events{
    color:#044d77;background:#eef7fa;font-weight:900;cursor:pointer;
    transition:background .15s,color .15s
  }
  .calendar-section .calendar-mobile-cell.has-events:hover,
  .calendar-section .calendar-mobile-cell.has-events:focus-visible{
    background:#07597d;color:#fff;text-decoration:none
  }
  .calendar-section .calendar-mobile-cell.has-events.is-today{
    box-shadow:inset 0 0 0 2px #d2a85a;background:#eaf2f1
  }
  .calendar-section .calendar-mobile-number{font-size:15px;line-height:1.05;font-weight:850}
  .calendar-section .calendar-mobile-count{
    display:grid;place-items:center;min-width:17px;height:17px;
    padding:0 4px;border-radius:999px;background:#0a7299;color:#fff;
    font-size:10px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums
  }
  .calendar-section .calendar-mobile-cell.has-events:hover .calendar-mobile-count,
  .calendar-section .calendar-mobile-cell.has-events:focus-visible .calendar-mobile-count{
    background:#fff;color:#07597d
  }
  .calendar-section .calendar-mobile-legend{
    display:flex;align-items:center;gap:8px;margin:12px 0 26px;
    font-size:11px;line-height:1.4;color:#66818f
  }
  .calendar-section .calendar-mobile-legend-dot{
    width:14px;height:14px;flex-shrink:0;background:#0a7299;border-radius:999px
  }
  .calendar-section .calendar-mobile-agenda{display:grid;gap:14px;min-width:0}
  .calendar-section .calendar-mobile-agenda-heading{
    display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap
  }
  .calendar-section .calendar-mobile-agenda-heading h3{
    font-size:clamp(19px,4.5vw,25px);line-height:1.2;letter-spacing:-.5px;
    color:#092e49;margin:0
  }
  .calendar-section .calendar-mobile-agenda-heading>span{
    border:1px solid #cddfe8;border-radius:999px;padding:6px 10px;
    color:#33647c;background:#fff;white-space:nowrap;
    font-size:11px;font-weight:800
  }
  .calendar-section .calendar-mobile-day-group{
    background:#fff;border:1px solid #dce8ee;border-radius:16px;overflow:hidden;
    min-width:0;scroll-margin-top:125px
  }
  .calendar-section .calendar-mobile-day-group:target{
    border-color:#137da0;box-shadow:0 0 0 3px rgba(18,139,179,.13)
  }
  .calendar-section .calendar-mobile-day-heading{
    display:flex;align-items:center;justify-content:space-between;
    gap:10px;padding:14px 16px;border-bottom:1px solid #edf2f5;background:#f7fafc
  }
  .calendar-section .calendar-mobile-date{display:flex;align-items:center;gap:10px;min-width:0}
  .calendar-section .calendar-mobile-date>strong{
    display:grid;place-items:center;width:49px;height:49px;border-radius:12px;
    background:#073c5a;color:#fff;flex-shrink:0;font-size:22px
  }
  .calendar-section .calendar-mobile-date>span{
    font-size:14px;font-weight:850;color:#173d56;line-height:1.2
  }
  .calendar-section .calendar-mobile-date small{display:block;font-size:11px;font-weight:600;color:#6c8290;margin-top:4px}
  .calendar-section .calendar-mobile-badge{
    font-size:11px;font-weight:800;color:#155779;background:#e2f2f7;
    border-radius:999px;padding:6px 9px;white-space:nowrap
  }
  .calendar-section .calendar-mobile-entries{padding:0 14px}
  .calendar-section .calendar-mobile-entry{
    display:grid;grid-template-columns:48px minmax(0,1fr) 18px;gap:12px;
    align-items:start;padding:16px 0;min-width:0;border-bottom:1px solid #edf2f5;
    text-decoration:none;color:#0f3a56
  }
  .calendar-section .calendar-mobile-entry:last-child{border-bottom:0}
  .calendar-section .calendar-mobile-entry>time{
    font-variant-numeric:tabular-nums;font-size:12px;font-weight:850;color:#086890;
    background:#eef6fa;padding:5px 2px;border-radius:7px;text-align:center
  }
  .calendar-section .calendar-mobile-entry-body{min-width:0;overflow-wrap:anywhere}
  .calendar-section .calendar-mobile-entry-body strong{
    display:block;font-size:15px;line-height:1.35;font-weight:850
  }
  .calendar-section .calendar-mobile-entry-body small{
    display:block;margin-top:6px;color:#667f90;font-size:12px;line-height:1.45
  }
  .calendar-section .calendar-mobile-entry:hover .calendar-mobile-entry-body strong,
  .calendar-section .calendar-mobile-entry:focus-visible .calendar-mobile-entry-body strong{
    color:#086d92;text-decoration:underline
  }
  .calendar-section .calendar-mobile-arrow{font-size:17px;color:#2586a4;text-align:right}
  .calendar-section .calendar-mobile-none{
    padding:23px 17px;border:1px dashed #bfd4de;border-radius:16px;background:#fff
  }
  .calendar-section .calendar-mobile-none strong{display:block;font-size:16px;color:#133c55}
  .calendar-section .calendar-mobile-none p{font-size:13px;color:#647f8e;margin:8px 0 0}
  .calendar-section .calendar-mobile-back{
    display:inline-flex;justify-content:center;margin-top:6px;
    padding:13px 15px;border:1px solid #c7dce6;border-radius:11px;
    background:#fff;color:#096487;font-weight:800;font-size:12px
  }
}
@media(max-width:390px){
  .calendar-section .calendar-mobile-cell{min-height:50px}
  .calendar-section .calendar-mobile-weekdays span{min-height:38px}
  .calendar-section .calendar-mobile-day-heading{padding:12px}
  .calendar-section .calendar-mobile-entries{padding:0 11px}
  .calendar-section .calendar-mobile-entry{grid-template-columns:45px minmax(0,1fr) 13px;gap:9px}
}
@media(prefers-reduced-motion:reduce){
  .calendar-section .calendar-mobile-cell{transition:none}
}
