.st-calendar{color:#2e100d;font-family:Arial,Helvetica,sans-serif;max-width:1160px;margin:auto}.st-calendar [hidden]{display:none!important}.st-tabs{display:flex;gap:20px;margin:0 0 32px}.st-tab{cursor:pointer;background:transparent;border:1px solid #624b45;color:#2e100d;border-radius:5px;padding:12px 30px;font-size:15px;font-weight:700}.st-tab.is-active{background:#2e100d;color:#fff}.st-heading{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:40px;align-items:center;margin-bottom:45px}.st-eyebrow{color:#ff3c00;font-weight:800;font-size:15px;margin:0 0 10px}.st-heading h2{font-size:34px!important;line-height:1.12!important;font-weight:700!important;color:#2e100d!important;padding:0!important;margin:0 0 12px}.st-location{font-size:17px}.st-map{width:190px;height:170px;border:1px solid #ff3c00;border-radius:15px}.st-event{border:2px solid #ff3c00;border-radius:15px;display:grid;grid-template-columns:94px minmax(0,1fr) 180px 150px;gap:26px;align-items:center;padding:6px;margin:16px 0;min-height:125px;transition:opacity .2s}.st-event.is-past{opacity:.42}.st-date{height:110px;border-radius:13px;background:#ff3c00;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.st-date strong{font-size:43px;line-height:.95}.st-date b{font-size:20px;line-height:1}.st-date small{font-size:10px;font-weight:700;margin-top:8px}.st-event-body h3{font-size:25px!important;color:#2e100d!important;line-height:1.12!important;margin:0 0 6px;padding:0}.st-event-desc,.st-event-desc p{font-size:13px;line-height:1.3;margin:0}.st-partner{text-align:center}.st-partner img{max-width:160px;max-height:65px;object-fit:contain}.st-partner span{border:1px solid #977b70;border-radius:4px;padding:8px;display:inline-block;font-size:14px}.st-action{text-align:center;font-size:12px;font-weight:700}.st-book{display:inline-block;background:#ff3c00;border-radius:30px;color:white!important;padding:14px 21px;text-decoration:none}.st-finished,.st-soldout,.st-cancelled{font-weight:700}.st-empty{padding:20px 0}@media(max-width:980px){.st-event{grid-template-columns:83px minmax(0,1fr) 120px;gap:14px}.st-action{grid-column:2/4;text-align:left;padding-bottom:10px}.st-partner img{max-width:115px}.st-heading h2{font-size:28px!important}}@media(max-width:650px){.st-tabs{gap:10px}.st-tab{padding:10px 20px}.st-heading{grid-template-columns:1fr;gap:18px}.st-map{width:100%;max-width:330px;height:160px}.st-event{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:7px;align-items:start}.st-date{height:91px}.st-date strong{font-size:34px}.st-date b{font-size:17px}.st-event-body h3{font-size:21px!important}.st-partner{grid-column:2;text-align:left}.st-action{grid-column:2;text-align:left}.st-heading h2{font-size:27px!important}}

/* Three-event chronological navigator */
.st-navigation{display:flex;justify-content:center;margin:8px 0 10px}
.st-arrow{border:0;background:transparent;color:#2e100d;font-size:28px;line-height:1;cursor:pointer;padding:9px 30px}
.st-arrow:hover:not(:disabled){color:#ff3c00}
.st-arrow:focus-visible{outline:2px solid #ff3c00;outline-offset:2px}
.st-arrow:disabled{opacity:.2;cursor:default}
/* Design controls v0.3 — CSS variables scoped to each shortcode instance */
.st-calendar{max-width:var(--st-calendar-width,1160px);font-family:var(--st-font-family,Arial,Helvetica,sans-serif);color:var(--st-text-color,#2e100d);background:var(--st-background-color,#fff)}
.st-calendar .st-tabs{gap:var(--st-tab-gap,20px);margin-bottom:var(--st-tabs-bottom,32px)}
.st-calendar .st-tab{padding-top:var(--st-tab-padding,12px);padding-bottom:var(--st-tab-padding,12px);border-radius:var(--st-tab-radius,5px);font-size:var(--st-tab-font,15px);color:var(--st-text-color,#2e100d)}
.st-calendar .st-tab.is-active{background:var(--st-text-color,#2e100d);color:#fff}
.st-calendar .st-heading{grid-template-columns:minmax(0,1fr) var(--st-map-width,190px);gap:var(--st-heading-gap,40px);margin-bottom:var(--st-heading-bottom,45px)}
.st-calendar .st-heading h2{font-size:var(--st-heading-size,34px)!important;color:var(--st-text-color,#2e100d)!important}
.st-calendar .st-eyebrow{color:var(--st-accent-color,#ff3c00);font-size:var(--st-eyebrow-size,15px)}
.st-calendar .st-location{font-size:var(--st-address-size,17px)}
.st-calendar .st-map{width:var(--st-map-width,190px);height:var(--st-map-height,170px);border:var(--st-map-border,1px) solid var(--st-accent-color,#ff3c00);border-radius:var(--st-map-radius,15px)}
.st-calendar .st-event{grid-template-columns:var(--st-date-width,94px) minmax(0,1fr) var(--st-partner-col-width,180px) var(--st-action-col-width,150px);gap:var(--st-event-columns-gap,26px);padding:var(--st-event-padding,6px);margin:var(--st-event-gap,16px) 0;min-height:var(--st-event-min-height,125px);border:var(--st-event-border,2px) solid var(--st-accent-color,#ff3c00);border-radius:var(--st-event-radius,15px);background:var(--st-event-bg,#fff)}
.st-calendar .st-event.is-past{opacity:var(--st-past-opacity,42%)}
.st-calendar .st-date{height:var(--st-date-height,110px);border-radius:var(--st-date-radius,13px);background:var(--st-accent-color,#ff3c00)}
.st-calendar .st-date strong{font-size:var(--st-date-day-size,43px)}
.st-calendar .st-date b{font-size:var(--st-date-month-size,20px)}
.st-calendar .st-date small{font-size:var(--st-date-time-size,10px)}
.st-calendar .st-event-body h3{font-size:var(--st-event-title-size,25px)!important;color:var(--st-text-color,#2e100d)!important}
.st-calendar .st-event-desc,.st-calendar .st-event-desc p{font-size:var(--st-event-desc-size,13px);line-height:var(--st-event-desc-line,130%)}
.st-calendar .st-partner img{max-width:var(--st-partner-width,160px);max-height:var(--st-partner-height,65px)}
.st-calendar .st-book{background:var(--st-button-bg,#ff3c00);color:var(--st-button-text,#fff)!important;border-radius:var(--st-button-radius,30px);font-size:var(--st-button-font,12px);padding:var(--st-button-pad-y,14px) var(--st-button-pad-x,21px)}
.st-calendar .st-arrow{font-size:var(--st-arrow-size,28px);color:var(--st-text-color,#2e100d)}
.st-calendar .st-navigation{margin:var(--st-arrow-spacing,8px) 0 10px}
.st-calendar .st-arrow:hover:not(:disabled){color:var(--st-accent-color,#ff3c00)}
@media(max-width:980px){.st-calendar .st-event{grid-template-columns:83px minmax(0,1fr) 120px;gap:14px}.st-calendar .st-heading h2{font-size:clamp(20px,var(--st-heading-size-mobile,27px),var(--st-heading-size,34px))!important}}
@media(max-width:650px){.st-calendar .st-heading{grid-template-columns:1fr;gap:18px}.st-calendar .st-map{width:100%;max-width:330px;height:var(--st-map-height-mobile,160px)}.st-calendar .st-event{grid-template-columns:76px minmax(0,1fr);gap:var(--st-mobile-card-gap,12px);padding:var(--st-mobile-card-padding,7px)}.st-calendar .st-date{height:91px}.st-calendar .st-date strong{font-size:34px}.st-calendar .st-date b{font-size:17px}.st-calendar .st-event-body h3{font-size:var(--st-event-title-mobile,21px)!important}.st-calendar .st-heading h2{font-size:var(--st-heading-size-mobile,27px)!important}}

/* Smooth vertical event movement (v0.5). Clipped only during navigation. */
.st-calendar .st-events-viewport{position:relative;overflow:hidden;width:100%;}
.st-calendar .st-events-old-layer{position:absolute;top:0;left:0;width:100%;pointer-events:none;}

/* v0.7: contain card margins so measurements do not change on wrapper removal. */
.st-calendar .st-events{display:flow-root;}

/* v0.8: independent font selectors; only the font family is overridden. */
.st-calendar .st-tab{font-family:var(--st-font-tabs,inherit)!important}
.st-calendar .st-eyebrow{font-family:var(--st-font-eyebrow,inherit)!important}
.st-calendar .st-heading h2{font-family:var(--st-font-heading,inherit)!important}
.st-calendar .st-location,.st-calendar .st-address{font-family:var(--st-font-address,inherit)!important}
.st-calendar .st-date strong{font-family:var(--st-font-date-day,inherit)!important}
.st-calendar .st-date b{font-family:var(--st-font-date-month,inherit)!important}
.st-calendar .st-date small{font-family:var(--st-font-date-time,inherit)!important}
.st-calendar .st-event-body h3{font-family:var(--st-font-event-title,inherit)!important}
.st-calendar .st-event-desc,.st-calendar .st-event-desc p,.st-calendar .st-event-desc li{font-family:var(--st-font-event-desc,inherit)!important}
.st-calendar .st-partner span{font-family:var(--st-font-partner,inherit)!important}
.st-calendar .st-book{font-family:var(--st-font-button,inherit)!important}
.st-calendar .st-finished,.st-calendar .st-soldout,.st-calendar .st-cancelled{font-family:var(--st-font-status,inherit)!important}
.st-calendar .st-arrow{font-family:var(--st-font-arrows,inherit)!important}

/* Editable per-city introductory copy. Preserve user-entered line breaks. */
.st-calendar .st-calendar-intro { white-space: pre-line; margin: 12px 0; }

/* v1.4: location label on its own line, address linked to Google Maps */
.st-calendar .st-location .st-location-label,
.st-calendar .st-location .st-location-address {
  display: block;
  margin: 0;
  padding: 0;
  line-height: inherit;
  font: inherit;
}
.st-calendar .st-location .st-location-address { margin-top: 2px; }
.st-calendar .st-location .st-address {
  display: inline-block;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.st-calendar .st-location .st-address:hover,
.st-calendar .st-location .st-address:focus-visible { text-decoration-thickness: 2px; }
.st-calendar .st-location .st-address:not([href]) { text-decoration: none; cursor: default; }

/* v1.6: no partner, no placeholder or empty grid column. */
.st-calendar .st-event.no-partner {
  grid-template-columns:var(--st-date-width,94px) minmax(0,1fr) var(--st-action-col-width,150px);
}
@media (min-width:651px) and (max-width:980px) {
  .st-calendar .st-event.no-partner {grid-template-columns:83px minmax(0,1fr);}
  .st-calendar .st-event.no-partner .st-action {grid-column:2;text-align:left;}
}
@media (max-width:650px) {
  .st-calendar .st-event.no-partner {grid-template-columns:76px minmax(0,1fr);}
  .st-calendar .st-event.no-partner .st-action {grid-column:2;text-align:left;}
}

/* v1.6.1 - Mobile-only event layout fixes.
   Desktop (>= 768px) and all calendar functionality remain unchanged. */
@media screen and (max-width: 767px) {
  .st-calendar .st-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 22px;
  }
  .st-calendar .st-heading > div { min-width: 0; }
  .st-calendar .st-map {
    display: block;
    width: 100%;
    max-width: 100%;
    height: var(--st-map-height-mobile, 160px);
    box-sizing: border-box;
  }
  .st-calendar .st-navigation { margin: 4px 0 8px; }
  .st-calendar .st-arrow { padding: 8px 22px; }

  /* Prevent desktop CSS variables and tablet grid rules from widening cards. */
  .st-calendar .st-event,
  .st-calendar .st-event.no-partner {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
    min-width: 0;
    min-height: 0;
    height: auto;
    box-sizing: border-box;
    padding: 10px;
    margin: 12px 0;
  }
  .st-calendar .st-date {
    grid-column: 1;
    grid-row: 1;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 92px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .st-calendar .st-date strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    padding: 0;
    margin: 0;
  }
  .st-calendar .st-date b {
    display: block;
    font-size: 16px;
    line-height: 1.1;
    padding: 0;
    margin: 1px 0 0;
  }
  .st-calendar .st-date small {
    display: block;
    font-size: 9px;
    line-height: 1.25;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.15px;
    margin: 8px 0 0;
    padding: 0;
  }
  .st-calendar .st-event-body {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .st-calendar .st-event-body h3 {
    font-size: 19px !important;
    line-height: 1.2 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    overflow-wrap: anywhere;
  }
  .st-calendar .st-event-desc,
  .st-calendar .st-event-desc p {
    font-size: 12px;
    line-height: 1.35;
  }
  .st-calendar .st-partner,
  .st-calendar .st-action,
  .st-calendar .st-event.no-partner .st-action {
    grid-column: 2;
    grid-row: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    text-align: left;
  }
  .st-calendar .st-partner img { max-width: 100%; height: auto; }
  .st-calendar .st-book { display: inline-block; max-width: 100%; box-sizing: border-box; }
  .st-calendar .st-book[hidden] { display: none; }
}

@media screen and (max-width: 380px) {
  .st-calendar .st-event,
  .st-calendar .st-event.no-partner {
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 10px;
    padding: 8px;
  }
  .st-calendar .st-date { min-height: 88px; }
  .st-calendar .st-date strong { font-size: 31px; }
  .st-calendar .st-date small { font-size: 8px; }
  .st-calendar .st-event-body h3 { font-size: 18px !important; }
}

/* v1.6.2 - Colori indipendenti per gli elementi del blocco data. */
.st-calendar .st-date strong { color:var(--st-date-day-color,#fff) !important; }
.st-calendar .st-date b { color:var(--st-date-month-color,#fff) !important; }
.st-calendar .st-date small { color:var(--st-date-time-color,#fff) !important; }


/* v1.6.3 — Three independent colours for the city calendar page. */
.st-calendar .st-heading h2.st-calendar-headline {
  color: var(--st-page-title-color, var(--st-text-color,#2e100d)) !important;
}
.st-calendar .st-event .st-event-body h3 {
  color: var(--st-event-title-color, var(--st-text-color,#2e100d)) !important;
}
.st-calendar .st-event .st-event-desc,
.st-calendar .st-event .st-event-desc p,
.st-calendar .st-event .st-event-desc li,
.st-calendar .st-event .st-event-desc span {
  color: var(--st-event-description-color, var(--st-text-color,#2e100d)) !important;
}

/* Day + month share one horizontal row, with the time on the second row. */
.st-calendar .st-date {
  min-width: 0;
}
.st-calendar .st-date .st-date-main {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: baseline;
  gap: 3px;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}
.st-calendar .st-date .st-date-main strong,
.st-calendar .st-date .st-date-main b {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
/* Apply after the existing responsive rules, including <=380px overrides. */
@media screen and (max-width: 767px) {
  .st-calendar .st-date .st-date-main strong {
    font-size: var(--st-date-day-size-mobile,28px) !important;
    line-height: 1 !important;
  }
  .st-calendar .st-date .st-date-main b {
    font-size: var(--st-date-month-size-mobile,14px) !important;
    line-height: 1.1 !important;
  }
  .st-calendar .st-date small {
    font-size: var(--st-date-time-size-mobile,9px) !important;
  }
}

/* v1.6.4: independently configurable date/time spacing and city intro styling.
   Specificity ensures Divi/theme styles cannot override these per-calendar controls. */
.st-calendar .st-date > small {
  margin-top: var(--st-date-time-gap,8px) !important;
}
.st-calendar .st-eyebrow {
  color: var(--st-calendar-eyebrow-color,#ff3c00) !important;
}
.st-calendar .st-heading .st-calendar-intro {
  font-family: var(--st-calendar-intro-font,inherit) !important;
  font-size: var(--st-calendar-intro-size,16px) !important;
  font-weight: var(--st-calendar-intro-weight,400) !important;
  color: var(--st-calendar-intro-color,#2e100d) !important;
  white-space: pre-line;
}
@media screen and (max-width:767px) {
  .st-calendar .st-date > small {
    margin-top: var(--st-date-time-gap-mobile,8px) !important;
  }
  .st-calendar .st-heading .st-calendar-intro {
    font-size: var(--st-calendar-intro-mobile,16px) !important;
  }
}

/* v1.6.5 — Controls for city intro, location label and navigation arrows.
   Explicit selectors win over older Divi 4 and plugin declarations. */
.st-calendar .st-heading p.st-calendar-intro:not([hidden]) {
  font-family: var(--st-calendar-intro-font,inherit) !important;
  font-size: var(--st-calendar-intro-size,16px) !important;
  font-weight: var(--st-calendar-intro-weight,400) !important;
  color: var(--st-calendar-intro-color,#2e100d) !important;
  white-space: pre-line;
}
.st-calendar .st-heading .st-location p.st-location-label {
  font-family: var(--st-calendar-location-font,inherit) !important;
  font-size: var(--st-calendar-location-size,17px) !important;
  font-weight: var(--st-calendar-location-weight,400) !important;
  color: var(--st-calendar-location-color,#2e100d) !important;
}
.st-calendar .st-navigation button.st-arrow,
.st-calendar .st-navigation button.st-arrow span {
  color: var(--st-arrow-color,var(--st-text-color,#2e100d)) !important;
}
.st-calendar .st-navigation button.st-arrow:hover:not(:disabled),
.st-calendar .st-navigation button.st-arrow:hover:not(:disabled) span,
.st-calendar .st-navigation button.st-arrow:focus-visible:not(:disabled),
.st-calendar .st-navigation button.st-arrow:focus-visible:not(:disabled) span {
  color: var(--st-arrow-hover-color,var(--st-accent-color,#ff3c00)) !important;
}
/* Gap belongs to the actual time element, not the image/date wrapper. */
.st-calendar .st-event .st-date > small {
  margin-top: var(--st-date-time-gap,8px) !important;
}
@media screen and (max-width:767px) {
  .st-calendar .st-heading p.st-calendar-intro:not([hidden]) {
    font-size: var(--st-calendar-intro-mobile,16px) !important;
  }
  .st-calendar .st-heading .st-location p.st-location-label {
    font-size: var(--st-calendar-location-mobile,17px) !important;
  }
  .st-calendar .st-event .st-date > small {
    margin-top: var(--st-date-time-gap-mobile,8px) !important;
  }
}
