/* v0.9.14 — Rassegne e footer informativo */
[data-te-classic] .te-series-section {
  margin: clamp(44px, 6vw, 78px) 0 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(41, 96, 112, .16);
  border-radius: var(--te-super-radius, 30px);
  background: rgba(255, 252, 243, .78);
  box-shadow: 0 14px 35px rgba(77, 63, 38, .06);
}
[data-te-classic] .te-series-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
[data-te-classic] .te-series-heading .te-eyebrow { margin: 0 0 4px; }
[data-te-classic] .te-series-heading h3 { margin: 0; color: #296070; font-family: Barriecito, sans-serif; font-size: clamp(32px, 4vw, 48px); line-height: 1; }
[data-te-classic] .te-series-heading > p { margin: 0 0 3px; color: #895835; font-weight: 700; }
[data-te-classic] .te-series-track { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding: 3px 2px 14px; scrollbar-color: #895835 transparent; }
[data-te-classic] .te-series-card { position: relative; flex: 0 0 clamp(218px, 22vw, 290px); min-height: 252px; padding: 0; overflow: hidden; border: 1px solid rgba(41, 96, 112, .18); border-radius: 28px; background: #fffaf0; color: #296070; text-align: left; cursor: pointer; scroll-snap-align: start; transition: transform .18s ease, box-shadow .18s ease; }
[data-te-classic] .te-series-card:hover, [data-te-classic] .te-series-card:focus-visible { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 12px 25px rgba(41, 96, 112, .17); outline: none; }
[data-te-classic] .te-series-card-poster { display: grid; place-items: center; height: 142px; overflow: hidden; background: linear-gradient(135deg, #296070, #4b8492); color: #f7ebcc; font-size: 34px; }
[data-te-classic] .te-series-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-te-classic] .te-series-card-copy { display: flex; min-height: 110px; padding: 15px 17px 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
[data-te-classic] .te-series-card-copy strong { color: #296070; font-family: Barriecito, sans-serif; font-size: 25px; line-height: 1.02; }
[data-te-classic] .te-series-card-copy span { color: #895835; font-weight: 700; font-size: 15px; }
[data-te-classic] .te-series-card-copy small { margin-top: auto; color: #296070; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.te-series-dialog { width: min(1040px, 94vw); max-height: min(860px, 90vh); padding: 0; overflow: auto; border: 0; border-radius: 32px; background: #fffaf0; color: #296070; box-shadow: 0 22px 80px rgba(14, 43, 49, .45); }
.te-series-dialog::backdrop { background: rgba(18, 48, 52, .72); backdrop-filter: blur(3px); }
.te-series-close { position: absolute; z-index: 2; top: 18px; right: 18px; width: 48px; height: 48px; border: 1px solid rgba(41,96,112,.17); border-radius: 50%; background: #fffaf0; color: #296070; font-size: 36px; line-height: .9; cursor: pointer; }
.te-series-dialog-grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); min-height: 520px; }
.te-series-dialog-poster { display: grid; place-items: center; overflow: hidden; background: #296070; color: #f7ebcc; font-size: 52px; }
.te-series-dialog-poster img { display: block; width: 100%; height: 100%; object-fit: contain; background: #1e5665; }
.te-series-dialog-copy { padding: clamp(34px, 5vw, 70px); }
.te-series-dialog-copy .te-eyebrow { margin: 0 0 12px; }
.te-series-dialog-copy h2 { margin: 0 0 14px; color: #296070; font-family: Barriecito, sans-serif; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.te-series-range { margin: 0 0 10px; color: #895835; font-weight: 700; }
.te-series-organiser, .te-series-summary { margin: 12px 0 0; font-size: 19px; line-height: 1.45; }
.te-series-dialog-copy h3 { margin: 30px 0 12px; color: #895835; font-family: Barriecito, sans-serif; font-size: 29px; }
.te-series-events { display: grid; gap: 9px; }
.te-series-events button { display: grid; grid-template-columns: minmax(105px, .68fr) minmax(0, 1.5fr); gap: 4px 12px; width: 100%; padding: 14px 16px; border: 1px solid rgba(41,96,112,.16); border-radius: 22px; background: #fffef9; color: #296070; text-align: left; cursor: pointer; }
.te-series-events button:hover, .te-series-events button:focus-visible { border-color: #895835; background: #f7ebcc; outline: none; }
.te-series-events button span { grid-row: span 2; color: #895835; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.te-series-events button strong { line-height: 1.15; }
.te-series-events button small { color: #59727a; }
[data-te-classic] .te-classic-footer { margin-top: clamp(40px, 6vw, 72px); overflow: hidden; border-radius: var(--te-super-radius, 30px); background: #fffaf0; text-align: center; }
[data-te-classic] .te-classic-footer-notice { display: flex; align-items: center; gap: 13px; margin: 0; padding: 18px 24px; background: #f4e2b8; color: #4a6973; text-align: left; font-size: 17px; line-height: 1.4; }
[data-te-classic] .te-classic-footer-notice span { color: #895835; font-size: 26px; }
[data-te-classic] .te-classic-footer-body { display: grid; justify-items: center; gap: 12px; padding: clamp(38px, 6vw, 72px) 24px; color: #296070; }
[data-te-classic] .te-classic-footer-body p { margin: 0; font-size: 18px; }
[data-te-classic] .te-classic-footer-body > span { color: #895835; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
[data-te-classic] .te-classic-footer-body strong { color: #296070; font-family: Barriecito, sans-serif; font-size: clamp(28px, 4vw, 42px); }
[data-te-classic] .te-classic-footer-body strong i { color: #895835; font-style: normal; }
[data-te-classic] .te-classic-footer-body a { color: #895835; font-weight: 800; }
@media (max-width: 720px) { .te-series-dialog-grid { grid-template-columns: 1fr; } .te-series-dialog-poster { min-height: 230px; } .te-series-dialog-copy { padding: 34px 24px 40px; } .te-series-events button { grid-template-columns: 1fr; } .te-series-events button span { grid-row: auto; } [data-te-classic] .te-series-heading { align-items: start; flex-direction: column; gap: 7px; } }
/* Force compact rectangular series cards even when the theme styles all buttons as circles. */
#ajax-content-wrap .container.main-content [data-te-classic] button.te-series-card,
#main [data-te-classic] button.te-series-card {
  display: flex !important;
  flex: 0 0 clamp(230px, 23vw, 300px) !important;
  width: clamp(230px, 23vw, 300px) !important;
  min-width: 230px !important;
  min-height: 258px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  border-radius: 30px !important;
  clip-path: none !important;
  transform-origin: center !important;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-poster,
#main [data-te-classic] .te-series-card-poster {
  width: 100% !important;
  height: 142px !important;
  border-radius: 29px 29px 0 0 !important;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-copy,
#main [data-te-classic] .te-series-card-copy {
  width: 100% !important;
  min-height: 116px !important;
  border-radius: 0 0 29px 29px !important;
}
/* Event groups use the same horizontal browsing rhythm as series. */
#ajax-content-wrap .container.main-content [data-te-classic] .te-event-group .te-grid,
#main [data-te-classic] .te-event-group .te-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 18px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 3px 2px 20px !important;
  scrollbar-color: #895835 transparent;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-event-group .te-classic-card,
#main [data-te-classic] .te-event-group .te-classic-card {
  flex: 0 0 clamp(280px, 28vw, 360px) !important;
  width: clamp(280px, 28vw, 360px) !important;
  min-width: 280px !important;
  max-width: none !important;
  scroll-snap-align: start;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-event-group,
#main [data-te-classic] .te-event-group { margin-bottom: clamp(36px, 5vw, 62px) !important; }
@media (max-width: 620px) {
  #ajax-content-wrap .container.main-content [data-te-classic] .te-event-group .te-classic-card,
  #main [data-te-classic] .te-event-group .te-classic-card {
    flex-basis: min(84vw, 340px) !important;
    width: min(84vw, 340px) !important;
    min-width: min(84vw, 340px) !important;
  }
}
/* Keep venue labels fully readable on compact event cards. */
#ajax-content-wrap .container.main-content [data-te-classic] .te-classic-card .te-venue,
#main [data-te-classic] .te-classic-card .te-venue {
  text-overflow: clip !important;
  white-space: nowrap !important;
  letter-spacing: .025em;
}
/* Restore the hand-drawn, organic category badge on posters. */
#ajax-content-wrap .container.main-content [data-te-classic] .te-poster-type,
#main [data-te-classic] .te-poster-type {
  right: 17px !important;
  bottom: 13px !important;
  min-width: 104px !important;
  height: 48px !important;
  padding: 0 14px !important;
  border: 2px solid #f7ebcc !important;
  border-radius: 50% 48% 45% 55% !important;
  background: transparent !important;
  color: #fff6d9 !important;
  font: 700 14px/1 "Dosis", Arial, sans-serif !important;
  transform: rotate(-5deg) !important;
}
/* v0.9.21 — compact, readable series cards and self-contained series dialogs. */
#ajax-content-wrap .container.main-content [data-te-classic] button.te-series-card,
#main [data-te-classic] button.te-series-card {
  display: grid !important;
  grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr) !important;
  grid-template-rows: minmax(216px, 1fr) !important;
  width: clamp(260px, 27vw, 330px) !important;
  min-width: 260px !important;
  min-height: 216px !important;
  height: 216px !important;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-poster,
#main [data-te-classic] .te-series-card-poster {
  grid-column: 1;
  width: auto !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 29px 0 0 29px !important;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-copy,
#main [data-te-classic] .te-series-card-copy {
  grid-column: 2;
  display: flex !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 17px 16px !important;
  border-radius: 0 29px 29px 0 !important;
  gap: 7px !important;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-copy strong,
#main [data-te-classic] .te-series-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #296070 !important;
  font-size: clamp(20px, 1.8vw, 25px) !important;
  line-height: 1.08 !important;
  letter-spacing: .01em !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-dates,
#main [data-te-classic] .te-series-card-dates {
  color: #895835 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-meta,
#main [data-te-classic] .te-series-card-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  min-height: 0 !important;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-meta span,
#main [data-te-classic] .te-series-card-meta span {
  display: inline-block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #486871 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#ajax-content-wrap .container.main-content [data-te-classic] .te-series-card-copy small,
#main [data-te-classic] .te-series-card-copy small {
  overflow: hidden !important;
  margin-top: auto !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.te-series-dialog {
  height: min(860px, 90vh) !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}
.te-series-dialog-grid { min-height: 0 !important; height: 100% !important; }
.te-series-dialog-copy {
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
}
[data-te-classic] .te-footer-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.3vw, 24px);
  min-height: 68px;
}
[data-te-classic] .te-footer-brands > i { color: #895835; font-size: 28px; font-style: normal; }
[data-te-classic] .te-footer-brand { display: inline-flex; align-items: center; justify-content: center; color: #296070; font-family: Barriecito, sans-serif; font-size: clamp(26px, 3.3vw, 42px); line-height: 1; }
[data-te-classic] .te-footer-brand img.te-footer-logo { display: block; width: auto; height: 62px; max-width: min(35vw, 210px); object-fit: contain; }
[data-te-classic] .te-footer-brand-tds { color: #296070; letter-spacing: .04em; }
@media (max-width: 620px) {
  #ajax-content-wrap .container.main-content [data-te-classic] button.te-series-card,
  #main [data-te-classic] button.te-series-card { width: min(86vw, 330px) !important; min-width: min(86vw, 330px) !important; }
  .te-series-dialog { height: min(920px, calc(100dvh - 20px)) !important; }
  .te-series-dialog-grid { grid-template-rows: minmax(190px, 35%) minmax(0, 1fr) !important; }
  [data-te-classic] .te-footer-brand img.te-footer-logo { height: 48px; }
}