/* ================================================================
   VARIABILI CSS — palette completa portale
   ================================================================ */
:root {
  /* categorie eventi.css legacy */
  --ev-sala: #ffdd00;
  --ev-caffe: #c8793a;
  --ev-gala: #b8960c;
  --ev-live: #dd3333;
  --ev-generic: #5a6475;
  --ev-sala-bg: #fffbe6;
  --ev-caffe-bg: #fdf4ec;
  --ev-gala-bg: #fdf8e6;
  --ev-live-bg: #fff0f0;
  --ev-generic-bg: #f0f2f5;
  /* portale GdB */
  --ev-book: #e63946;
  --ev-book-hover: #c1121f;
  --ev-book-shadow: rgba(230, 57, 70, 0.3);
  --ev-free-green: #2d6a4f;
  --ev-free-bg: #d8f3dc;
  --ev-cluster-acc: #ffdd00;
}

/* .ev-page-header si accorcia (position: sticky) quando il JS in
   navbar.html attiva --compact: il resize sposta il contenuto sotto,
   e lo scroll anchoring del browser compenserebbe spostando scrollTop,
   ri-attraversando la soglia di attivazione in loop (header che
   sfarfalla). Va disattivato sul documento (non basta sul solo header:
   il browser sceglie comunque un altro nodo come anchor) e la soglia
   di attivazione va guidata da un sentinel fisso, non dallo scrollY
   "osservato" — vedi il commento nello script di navbar.html. */
html {
  overflow-anchor: none;
}

.ev-navbar {
  z-index: 1030;
}

.ev-scroll-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
  pointer-events: none;
  visibility: hidden;
}

/*HEAD */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: #000;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
  flex-shrink: 0;
}

.user-icon {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
}

.user-avatar__icon--logged {
  color: #fff;
}

.user-avatar__icon--guest {
  color: #ffdd00;
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.ev-page-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 1.75rem 0 1.5rem;
  position: sticky;
  top: var(--ev-navbar-h, 76px);
  z-index: 1020;
  transition: padding 0.2s ease;
}
.ev-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.ev-page-header-title {
  font-family: 'Days One', sans-serif;
  font-size: 2rem;
  color: #111;
  margin: 0 0 0.25rem;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: font-size 0.2s ease;
}
.ev-page-header-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #888;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  overflow: hidden;
  max-height: 1.5rem;
  opacity: 1;
  transition:
    max-height 0.2s ease,
    opacity 0.15s ease,
    margin 0.2s ease;
}
.ev-page-header--compact {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.ev-page-header--compact .ev-page-header-title {
  font-size: 1.25rem;
  margin-bottom: 0;
}
.ev-page-header--compact .ev-page-header-sub {
  max-height: 0;
  opacity: 0;
  margin-top: -0.25rem;
}

@media (max-width: 991.98px) {
  .ev-page-header-title {
    font-size: 1.5rem;
  }
  .ev-page-header-sub {
    white-space: normal;
  }
}

/* ================================================================
   MOBILE MENU
   ================================================================ */
.ev-mobile-menu-btn {
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 1rem;
  color: #111;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
  flex-shrink: 0;
  align-items: center;
}
.ev-mobile-menu-btn:hover {
  background: #f5f5f5;
}
.ev-mobile-menu-header {
  border-bottom: 1.5px solid #f0f0f0;
  padding: 1rem 1.25rem;
}
.ev-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.5rem;
  font-family: 'Days One', sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.ev-mobile-nav-link:last-child {
  border-bottom: none;
}
.ev-mobile-nav-link i {
  color: #888;
  font-size: 0.875rem;
  width: 18px;
  text-align: center;
}
.ev-mobile-nav-link:hover {
  background: #fffbe6;
  color: #111;
  text-decoration: none;
}
.ev-mobile-nav-link.active {
  background: #fffbe6;
  color: #111;
  border-left: 3px solid #ffdd00;
}
.ev-mobile-nav-link.active i {
  color: #111;
}

/* ================================================================
   HEADER SEARCH
   ================================================================ */
.ev-header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f5f5f5;
  border: 1.5px solid #e8e8e8;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.ev-header-search:focus-within {
  border-color: #ffdd00;
  background: #fff;
}
.ev-header-search i {
  color: #888;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.ev-header-search input {
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #333;
  outline: none;
  width: 190px;
}
.ev-header-search input::placeholder {
  color: #999;
}

/* ================================================================
   FILTER BAR & PILLS
   ================================================================ */

.ev-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #555;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  user-select: none;
}
.ev-filter-pill:hover {
  border-color: #ccc;
  background: #f9f9f9;
  color: #111;
  text-decoration: none;
}
.ev-filter-pill.active {
  background: #111;
  border-color: #111;
  color: #ffdd00;
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.ev-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.ev-section-hdr-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ev-section-hdr-accent {
  width: 4px;
  height: 1.4rem;
  background: #ffdd00;
  border-radius: 4px;
  flex-shrink: 0;
}
.ev-section-title {
  font-family: 'Days One', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #111;
  margin: 0;
  line-height: 1.2;
}
.ev-section-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.ev-section-link:hover {
  color: #111;
  text-decoration: none;
}

/* ================================================================
   EVENT CARD
   ================================================================ */
.ev-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e8e8e8;
  transition:
    box-shadow 0.25s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.ev-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.ev-card-media {
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
}
.ev-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ev-card:hover .ev-card-img {
  transform: scale(1.06);
}
.ev-card-badges {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}
.ev-card-body {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}
.ev-card-title {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
  margin: 0;
  flex: 1;
}
.ev-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.ev-card-date,
.ev-card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #888;
}
.ev-card-date i,
.ev-card-location i {
  font-size: 0.7rem;
}

/* Card category border modifiers */
.ev-card--caffe {
  border-top: 3px solid var(--ev-caffe);
}
.ev-card--generic {
  border-top: 3px solid var(--ev-generic);
}

/* ================================================================
   CATEGORY BADGES
   ================================================================ */
.ev-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.ev-cat-badge--sala {
  background: #ffdd00;
  color: #111;
}

.ev-cat-badge--live {
  background: #dd3333;
  color: #fff;
  border: none;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ev-cat-badge--neutral {
  background: #f0f0f0;
  color: #555;
  border: none;
}

/* Live badge animated dot */
.ev-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: ev-live-pulse 1.4s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 1px;
}
@keyframes ev-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* ================================================================
   STATUS BADGES
   ================================================================ */
.ev-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.ev-status-badge--online {
  background: #cce5ff;
  color: #004085;
}

/* ================================================================
   DATE STAMP
   ================================================================ */
.ev-date-stamp {
  position: absolute;
  bottom: 0.625rem;
  left: 0.625rem;
  background: rgba(10, 10, 10, 0.82);
  border-radius: 8px;
  padding: 0.3rem 0.6rem 0.35rem;
  text-align: center;
  line-height: 1;
  z-index: 2;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 38px;
}
.ev-date-stamp-day {
  font-family: 'Days One', sans-serif;
  font-size: 1.4rem;
  display: block;
  color: #ffdd00;
  line-height: 1.05;
}
.ev-date-stamp-month {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  display: block;
}

/* ================================================================
   COUNTDOWN
   ================================================================ */
.ev-countdown {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}
.ev-countdown-label-pre {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #999;
  flex-shrink: 0;
}
.ev-countdown-blocks {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
.ev-countdown-unit {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.15rem;
}
.ev-countdown-number {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  line-height: 1;
}
.ev-countdown-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: #999;
}
.ev-countdown-sep {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: #ccc;
  padding: 0 0.1rem;
}

/* ================================================================
   BTN PRIMARY
   ================================================================ */
.ev-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffdd00;
  color: #111;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  border: none;
  cursor: pointer;
}
.ev-btn-primary:hover {
  background: #f5d200;
  color: #111;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ================================================================
   FORM ELEMENTS (usati in onboarding e altri)
   ================================================================ */

.ev-form-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.35rem;
  display: block;
}
.ev-form-control {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #111;
  background: #fafafa;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.ev-form-control:focus {
  border-color: #ffdd00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 221, 0, 0.18);
}
.ev-form-control::placeholder {
  color: #999;
}

.ev-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: #111;
  color: #ffdd00;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  width: 100%;
}
.ev-form-submit:hover {
  background: #222;
  transform: translateY(-1px);
}

/* ================================================================
   INFO BOX — sidebar dettaglio evento
   ================================================================ */
.ev-info-box {
  background: #fff;
  border: 1.5px solid #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
  margin-top: 1.25rem;
}
.ev-info-box-header {
  background: #111;
  padding: 0.875rem 1.25rem;
}
.ev-info-box-header h3 {
  font-family: 'Days One', sans-serif;
  font-size: 0.875rem;
  color: #fff;
  margin: 0;
}

/* ================================================================
   SIDEBAR STICKY
   ================================================================ */
.ev-sidebar-sticky {
  position: sticky;
  top: 105px;
}
@media (max-width: 991.98px) {
  .ev-sidebar-sticky {
    position: static;
  }
}

/* ================================================================
   FEATURED EVENT — hero card grande
   ================================================================ */

.ev-featured {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border: 1.5px solid #e8e8e8;
  transition:
    box-shadow 0.25s,
    transform 0.2s;
  text-decoration: none;
  color: inherit;
  margin-bottom: 2.5rem;
}

.ev-featured:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.ev-featured-media {
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
}

/* Impone il ratio 3/2 come altezza minima.
   Se il body destro cresce oltre, il media si allunga e l'img copre tutto. */
.ev-featured-media::before {
  content: '';
  display: block;
  padding-bottom: calc(100% * 2 / 3);
}

.ev-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.ev-featured:hover .ev-featured-img {
  transform: scale(1.04);
}

.ev-featured-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.ev-featured-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.ev-featured-title {
  font-size: 1.7rem;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  line-height: 1.9rem;
  color: #111;
  margin: 0.6rem 0;
}

.ev-featured-title a {
  color: #333;
  text-decoration: none;
}

.ev-featured-title a:hover {
  color: #111;
  text-decoration: underline;
}

.ev-featured-lead {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
}

.ev-featured-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #555;
}

.ev-featured-meta-row i {
  color: #ffdd00;
  width: 14px;
  text-align: center;
  font-size: 0.75rem;
}

.ev-featured-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffdd00;
  color: #111;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  align-self: flex-start;
}

.ev-featured-cta:hover {
  background: #f5d200;
  color: #111;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .ev-featured {
    grid-template-columns: 1fr;
  }
  .ev-featured-media {
    /* il ::before mantiene il 3/2 anche su colonna singola */
  }
  .ev-featured-body {
    padding: 1.5rem 1.25rem;
  }
  .ev-featured-title {
    font-size: 1.2rem;
  }
}

/* ================================================================
   BTN PRENOTA ORA — CTA principale prenotazione
   ================================================================ */
.ev-btn-book {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ev-book);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 4px 14px var(--ev-book-shadow);
}

.ev-btn-book:hover {
  background: var(--ev-book-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.ev-btn-book:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

/* ================================================================
   MAPPA INTERATTIVA — ev-map-section
   ================================================================ */

#ev-leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

@media (max-width: 991.98px) {
  #ev-leaflet-map {
    min-height: 260px;
  }
}

/* ================================================================
   UTILITY
   ================================================================ */
.ev-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 2rem 0;
}

/* ================================================================
   HERO EDITORIALE — wrapper pagine di dettaglio evento
   ================================================================ */
.ev-hero-editorial {
  background: #f8f9fa;
  border-bottom: 1px solid #ededed;
}

/* Titolo principale evento (Merriweather, dettaglio) */
.ev-detail-title {
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 0.625rem;
  line-height: 1.25;
  border-left: #ffdd00 4px solid;
  padding-left: 20px;
}
@media (max-width: 767.98px) {
  .ev-detail-title {
    font-size: 1.6rem;
  }
}

/* Testo lead sotto il titolo evento */
.ev-detail-lead {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #555;
  margin: 0 0 1.25rem;
  line-height: 1.7;
}

/* ================================================================
   KEY INFO LIST — data / luogo / orario / costo
   ================================================================ */
.ev-key-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ev-key-info-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #efefef;
}
.ev-key-info-item:last-child {
  border-bottom: none;
}

/* Icona quadrata colorata */
.ev-key-info-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ev-key-info-icon i {
  font-size: 1.5rem;
  color: #333;
}

/* Testi label e value */
.ev-key-info-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  display: block;
}
.ev-key-info-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
}
.ev-key-info-value--green {
  color: #2d6a4f;
}

/* ================================================================
   HERO MEDIA — immagine 3:2 con badge overlay
   ================================================================ */
.ev-hero-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.ev-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================================================
   BOTTONE SALVA / BOOKMARK — icona 44×44
   ================================================================ */
.ev-btn-save {
  min-width: 44px;
  height: 44px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #888;
  transition: border-color 0.15s;
  flex-shrink: 0;
}
.ev-btn-save:hover {
  border-color: #ffdd00;
}

/* Variante piccola ev-btn-book */
.ev-btn-book--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* Variante secondaria (gestione prenotazione esistente) */
.ev-btn-book--secondary {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.15);
}
.ev-btn-book--secondary:hover {
  background: #333;
  color: #fff;
  box-shadow: 0 6px 20px rgba(17, 17, 17, 0.3);
  transform: translateY(-2px);
}
/* ================================================================
   TESTO CORPO — paragrafi editoriali
   ================================================================ */
.ev-body-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.8;
}

.ev-body-text a {
  color: #333;
  font-weight: 600;
  text-decoration: underline;
}

.ev-body-text a:hover {
  color: #111;
  text-decoration: underline;
}

/* Titoletto h3 di sottosezioni */
.ev-subsection-title {
  font-family: 'Days One', sans-serif;
  font-size: 1rem;
  color: #111;
}

/* ================================================================
   CARD APPUNTAMENTI RICORRENTI
   ================================================================ */

.ev-appt-title {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0.2rem 0 0.3rem;
  line-height: 1.35;
}
.ev-appt-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #888;
  margin: 0 0 1rem;
}

/* Badge disponibilità appuntamento */
.ev-avail-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ev-avail-badge--lg {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}
.ev-avail-badge--ok {
  background: #d8f3dc;
  color: #2d6a4f;
}
.ev-avail-badge--few {
  background: #fff3cd;
  color: #856404;
}
.ev-avail-badge--gray {
  background: #888;
  color: #fff;
}
.ev-avail-badge--none {
  background: #e63946;
  color: #fff;
}
.ev-avail-badge--booked {
  background: #ffdd00;
  color: #111;
}
.ev-avail-badge--plus {
  background: #111;
  color: #ffdd00;
}
/* ================================================================
   NOTICE — messaggi di feedback inline (success / error)
   ================================================================ */
.ev-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 1.25rem 0;
}
.ev-notice-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.ev-notice--success {
  background: #d8f3dc;
  color: #1b4332;
  border-left: 4px solid #40916c;
}
.ev-notice--success .ev-notice-icon {
  color: #40916c;
}
.ev-notice--error {
  background: #fff0f0;
  color: #7a1c1c;
  border-left: 4px solid #e63946;
}
.ev-notice--error .ev-notice-icon {
  color: #e63946;
}

/* ================================================================
   BREADCRUMB LINK + OFFCANVAS TITLE
   ================================================================ */

.ev-offcanvas-title {
  font-family: 'Days One', sans-serif;
  font-size: 0.875rem;
  color: #111;
}

/* Filtro avanzato archivio */
.ev-advanced-filter {
  background: #f7f7f7;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

/* Label filtro tag */
.ev-filter-tag-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 0.25rem;
  flex-shrink: 0;
}

/* ── Data e ora ──────────────────────────────────────────── */
.ev-live-datetime {
  background: #111;
  overflow: hidden;
  border-radius: 12px;
}
.ev-live-dt-inner {
  display: flex;
  align-items: stretch;
  min-height: 110px;
}
.ev-live-dt-calendar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #ffdd00;
  flex-shrink: 0;
}
.ev-live-dt-day {
  font-family: 'Days One', sans-serif;
  font-size: 4rem;
  color: #111;
  line-height: 1;
  flex-shrink: 0;
}
.ev-live-dt-month-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ev-live-dt-month {
  font-family: 'Days One', sans-serif;
  font-size: 1rem;
  color: #111;
  line-height: 1;
  text-transform: uppercase;
}
.ev-live-dt-weekday {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ev-live-dt-sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  align-self: stretch;
}
.ev-live-dt-time-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 2rem;
  flex-shrink: 0;
}
.ev-live-dt-time-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.2rem;
}
.ev-live-dt-time {
  font-family: 'Days One', sans-serif;
  font-size: 2.25rem;
  color: #fff;
  line-height: 1;
}
.ev-live-dt-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0.8;
}
.ev-live-dt-detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.ev-live-dt-detail-item i {
  color: #ffdd00;
  font-size: 0.7rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .ev-live-dt-inner {
    flex-wrap: wrap;
  }
  .ev-live-dt-calendar {
    width: 100%;
    padding: 1.25rem 1.5rem;
  }
  .ev-live-dt-day {
    font-size: 3rem;
  }
  .ev-live-dt-sep {
    display: none;
  }
  .ev-live-dt-time-block {
    padding: 1rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ev-live-dt-details {
    padding: 1rem 1.5rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-basis: 100%;
  }
}

/* ── Tipografia contenuto ────────────────────────────────── */
.ev-live-event-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: #111;
  line-height: 1.25;
  margin: 0.75rem 0 1rem;
  border-left: 4px solid #ffdd00;
  padding-left: 1rem;
}
.ev-live-event-lead {
  font-family: 'Merriweather', serif;
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}

/* ── Placeholder pre-diretta ─────────────────────────────── */
.ev-prelive-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #0a0a14;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
}
.ev-prelive-wrapper-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0a14;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
}
.ev-prelive-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  filter: blur(2px) brightness(0.65);
  background-repeat: no-repeat;
}
.ev-prelive-no {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ev-prelive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 20, 0.1) 0%,
    rgba(10, 10, 20, 0.25) 55%,
    rgba(10, 10, 20, 0.65) 100%
  );
}
.ev-prelive-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 240px;
  text-align: center;
}
@media (max-width: 767.98px) {
  .ev-prelive-content {
    padding: 50px;
  }
}
.ev-hero-media-gdb {
  font-size: 0.8rem;
}
.ev-hero-media.ev-hero-media-gdb .ev-prelive-content {
  padding: 40px;
}
.ev-prelive-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(239 49 49);
  border: 1px solid rgba(221, 51, 51, 0.45);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}
.ev-prelive-badge-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: prelive-pulse 1.4s ease-in-out infinite;
}
@keyframes prelive-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}
.ev-prelive-title {
  font-family: 'Days One', sans-serif;
  font-size: clamp(0.9em, 2.5vw, 1.5em);
  color: #fff;
  line-height: 1.25em;
  max-width: 600px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.ev-prelive-datetime {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75em, 1.6vw, 0.9375em);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}
.ev-prelive-datetime strong {
  color: #ffdd00;
  font-weight: 700;
}
.ev-prelive-countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.5em, 2vw, 1.25em);
}
.ev-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.ev-cd-number {
  font-family: 'Days One', sans-serif;
  font-size: clamp(1.5em, 4.5vw, 2.75em);
  color: #fff;
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}
.ev-cd-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.55em, 1vw, 0.65em);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ev-cd-sep {
  font-family: 'Days One', sans-serif;
  font-size: clamp(1.25em, 3.5vw, 2em);
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  margin-top: 0.1em;
}

/* ================================================================
   EVENT DETAIL — content area
   ================================================================ */

.ev-event-cat {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 0.25rem;
}
/* ================================================================
   RELATED EVENTS
   ================================================================ */

.ev-related-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  padding-bottom: 3rem;
}

/* ----------------------------------------------------------------
   INFO BOX — sidebar informazioni pratiche evento
   ---------------------------------------------------------------- */

.ev-info-box-header-title {
  font-family: 'Days One', sans-serif;
  font-size: 0.8rem;
  color: #fff;
  margin: 0;
  letter-spacing: 0.03em;
}
.ev-info-box-header i {
  color: #ffdd00;
  font-size: 0.8rem;
}
.ev-info-box-row {
  border-bottom: 1px solid #f4f4f4;
  transition: background 0.15s;
}
.ev-info-box-row:last-child {
  border-bottom: none;
}
.ev-info-box-row[href]:hover {
  background: #fafafa;
}
.ev-info-box-row-icon {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  background: #f5f5f5;
  color: #555;
}
.ev-info-box-row-text {
  gap: 0.1rem;
  min-width: 0;
}
.ev-info-box-row-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #999;
}
.ev-info-box-row-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #222;
  line-height: 1.3;
}

/* ================================================================
   PRENOTAZIONI — area personale utente (lista delle prenotazioni)
   Composizione: ev-section-hdr + ev-booking-card; riusa
   ev-featured-meta-row / ev-cat-badge / ev-btn-primary.
   ================================================================ */
.ev-account-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.ev-account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111;
  color: #ffdd00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ev-account-name {
  font-family: 'Days One', sans-serif;
  font-size: 1.05rem;
  color: #111;
  line-height: 1.2;
}
.ev-account-mail {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #999;
}

/* Card prenotazione — immagine a sinistra, contenuto a destra */
.ev-booking-card {
  display: block;
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s;
}
.ev-booking-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
}
.ev-booking-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
}
.ev-booking-img {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #1a1a2e;
  border-radius: 8px;
}
.ev-booking-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ev-booking-title {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
  margin: 0;
}
.ev-booking-title a {
  color: inherit;
  text-decoration: none;
}
.ev-booking-title a:hover {
  text-decoration: underline;
}
.ev-booking-lead {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ev-booking-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.ev-booking-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

/* Lista biglietti per posto (eventi GdB con biglietto scaricabile) */
.ev-ticket-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #eee;
}
.ev-ticket-line:first-child {
  border-top: 1px dashed #eee;
}
.ev-seat-index {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  min-width: 46px;
}

/* Riga azioni (download / elimina) */
.ev-booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.ev-booking-actions--end {
  justify-content: flex-end;
}

/* Bottoni secondari coerenti col sistema ev-btn-* */
.ev-btn-outline,
.ev-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
.ev-btn-outline {
  background: #fff;
  color: #111;
  border: 1.5px solid #e0e0e0;
}
.ev-btn-outline:hover {
  border-color: #111;
  background: #111;
  color: #ffdd00;
  text-decoration: none;
}
.ev-btn-danger {
  background: #fff;
  color: var(--ev-book);
  border: 1.5px solid rgba(230, 57, 70, 0.4);
}
.ev-btn-danger:hover {
  background: var(--ev-book);
  border-color: var(--ev-book);
  color: #fff;
  text-decoration: none;
}
.ev-btn-sm {
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
}

/* Stato vuoto — nessuna prenotazione */
.ev-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1.5px dashed #e4e4e4;
  border-radius: 16px;
  background: #fafafa;
}
.ev-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ececec;
  color: #ccc;
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.ev-empty-title {
  font-family: 'Days One', sans-serif;
  font-size: 1.15rem;
  color: #111;
  margin: 0 0 0.4rem;
}
.ev-empty-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #999;
  margin: 0 0 1.5rem;
}

@media (max-width: 575.98px) {
  .ev-booking-inner {
    flex-direction: column;
    padding: 1rem;
  }
  .ev-booking-img {
    width: 100%;
    border-radius: 0;
    margin: -1rem -1rem 0;
    width: calc(100% + 2rem);
  }
  .ev-booking-footer {
    padding: 0.65rem 1rem;
  }
}

.sl-play-btn {
  position: absolute;
  bottom: 0.625rem;
  right: 0.625rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 221, 0, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #111;
  z-index: 2;
  transition:
    transform 0.2s,
    background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.sl-play-btn i {
  font-size: 0.75rem;
}

/* ---- SPOTLIGHT ---- */
.ev-spotlight {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.ev-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: #111;
  flex-wrap: wrap;
}
.ev-spotlight-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.ev-spotlight-body {
  padding: 1.25rem 1.5rem;
}
.ev-spotlight-full-date {
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.ev-spotlight-full-date::first-letter {
  text-transform: uppercase;
}

/* Elenco dei fatti dell'occorrenza (orario, luogo, posti per prenotazione):
   una riga per fatto, larghezza piena, invece di celle a griglia di uguale
   ampiezza — ogni informazione ha un peso e una lunghezza diversi (un'ora
   contro un indirizzo completo) e una lista verticale li rende leggibili
   senza forzarli in colonne strette. */
.ev-spotlight-facts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid #efefef;
  border-radius: 10px;
  overflow: hidden;
}
.ev-spotlight-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #efefef;
}
.ev-spotlight-fact:last-child {
  border-bottom: none;
}
.ev-spotlight-fact-icon {
  width: 1rem;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #999;
  text-align: center;
  flex-shrink: 0;
}
.ev-spotlight-fact-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.2rem;
  min-width: 0;
}
.ev-spotlight-fact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #999;
}
.ev-spotlight-fact-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}
.ev-spotlight-fact-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #888;
  line-height: 1.35;
}

.ev-spotlight-cta-area {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1.5px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}
/* Testo che invoglia alla prenotazione, mostrato solo quando l'occorrenza è
   prenotabile: occupa lo spazio libero a sinistra del pulsante, che resta
   sempre ancorato a destra grazie a justify-content: flex-end sul
   contenitore (fallback corretto anche senza claim, es. "Gestisci
   prenotazione"). */
.ev-spotlight-cta-claim {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111;
  line-height: 1.35;
}

.ev-spotlight-cta-action {
  flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .ev-spotlight-cta-area {
    flex-direction: column;
    align-items: stretch;
  }
  .ev-spotlight-cta-claim {
    margin-bottom: 0.15rem;
  }
}

/* ---- APPOINTMENT CARDS v2 ---- */
.ev-appt-card-v2 {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: stretch;
}
.ev-appt-card-v2:hover {
  border-color: #ccc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.ev-appt-card-v2--active {
  border-color: #111 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}
/* Appuntamento passato: resta pienamente cliccabile (hover attivo, testo a
   pieno contrasto). Il "concluso" si comunica desaturando l'accento del
   badge-data — grigio invece di nero+giallo — non con l'opacity, che lo
   farebbe sembrare disabilitato. */
.ev-appt-card-v2--past {
  background: #fafafa;
}
.ev-appt-card-v2--past .ev-appt-card-v2-date {
  background: #ffdd00;
}
.ev-appt-card-v2--past .ev-appt-card-v2-day {
  color: #111;
}
.ev-appt-card-v2--past .ev-appt-card-v2-month {
  color: rgba(0, 0, 0, 0.7);
}
.ev-appt-card-v2-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.875rem;
  background: #111;
  color: #fff;
  text-align: center;
  flex-shrink: 0;
  min-width: 64px;
}
.ev-appt-card-v2-day {
  font-family: 'Days One', sans-serif;
  font-size: 1.75rem;
  color: #ffdd00;
  line-height: 1;
}
.ev-appt-card-v2-month {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}
.ev-appt-card-v2-body {
  flex: 1;
  padding: 0.875rem 1rem;
  min-width: 0;
}
.ev-appt-card-v2-time,
.ev-appt-card-v2-location {
  font-size: 0.8rem;
  color: #444;
}
.ev-appt-card-v2-time i,
.ev-appt-card-v2-location i {
  font-size: 0.72rem;
  color: #999;
  width: 16px;
}
.ev-appt-card-v2-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
/* Pulsante "Accedi per prenotare" */
.ev-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111;
  background: #ffdd00;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
}
.ev-btn-login:hover {
  background: #f5d200;
  color: #111;
  text-decoration: none;
  transform: translateY(-1px);
}
/* Nota sotto l'azione di prenotazione (requisiti account/abbonamento) */
.ev-booking-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #999;
  margin: 0.625rem 0 0;
}
.ev-booking-note i {
  font-size: 0.65rem;
  margin-right: 0.25rem;
}
.ev-booking-note a {
  color: inherit;
  font-weight: 600;
}

/* Etichetta del blocco "Argomenti" nel dettaglio evento
   (event_topics.html) */
.ev-topics-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 0.25rem;
}

/* Mappa Leaflet del box informazioni pratiche (event_info_box.html) */
#ev-location-map {
  height: 160px;
  border-radius: 0 0 8px 8px;
}

/* Nota secondaria accanto al valore di una key info del dettaglio GdB
   (es. "· prenotazione obbligatoria") */
.ev-key-info-note {
  font-weight: 400;
  color: #888;
  font-size: 0.8rem;
}

/* Fascia "noleggio sala" in fondo alla home (blocks/index/ospita_evento.html) */
.ev-venue-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  border: 1.5px solid #e8e8e8;
  border-radius: 14px;
  background: #fafafa;
}
.ev-venue-cta-title {
  font-family: 'Days One', sans-serif;
  font-size: 1.15rem;
  color: #111;
  margin: 0 0 0.4rem;
}
.ev-venue-cta-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  max-width: 46ch;
}
.ev-venue-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
@media (max-width: 575.98px) {
  .ev-venue-cta {
    padding: 1.25rem;
  }
  .ev-venue-cta-actions {
    width: 100%;
  }
  .ev-venue-cta-actions > * {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* NAVIGATION */
.page-link {
  color: #333;
}

.page-item.active .page-link {
  z-index: 1;
  color: #333;
  font-weight: 600;
  background-color: #fceb7fff;
  border-color: #727272ff;
}

/* ---- BLOCCO POSTI DEL MODALE DI PRENOTAZIONE ----
   (public/reservation/modale/form.html) Il campo esprime il totale che si sta
   prenotando: stepper + chip con il tetto per-utente come informazione a
   corredo dell'etichetta, riepilogo in parole sotto il selettore. */
.ev-seats {
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  background: #fafafa;
  padding: 1rem 1.125rem 1.125rem;
}
.ev-seats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.ev-seats-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.ev-seats-max {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #555;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  cursor: help;
}
.ev-seats-max i {
  font-size: 0.68rem;
  color: #999;
}
.ev-seats-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 50px;
  padding: 0.25rem;
}
.ev-seats-step {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #ffdd00;
  font-size: 0.75rem;
  cursor: pointer;
  transition:
    background 0.15s,
    opacity 0.15s;
}
.ev-seats-step:hover:not(:disabled) {
  background: #333;
}
.ev-seats-step:disabled {
  background: #e8e8e8;
  color: #aaa;
  cursor: not-allowed;
}
.ev-seats-input {
  width: 3.25rem;
  border: none;
  background: transparent;
  text-align: center;
  font-family: 'Days One', sans-serif;
  font-size: 1.125rem;
  color: #111;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ev-seats-input::-webkit-outer-spin-button,
.ev-seats-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ev-seats-recap {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: #555;
  margin: 0.7rem 0 0;
}
.ev-seats-recap strong {
  color: #111;
}
.ev-seats-names {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid #e8e8e8;
}
/* Nessun nominativo da raccogliere (1 solo posto): via il separatore. */
.ev-seats-names:empty {
  display: none;
}
.ev-seats-subhead {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin: 0 0 0.5rem;
}
.ev-seats-name + .ev-seats-name {
  margin-top: 0.5rem;
}
.ev-seats-name .ev-form-control {
  background: #fff;
}
@media (max-width: 575.98px) {
  .ev-seats-head {
    flex-wrap: wrap;
  }
}

/* Bersaglio dell'ancora #prenotazione (blocks/event_booking_area.html): lo
   scroll si ferma sotto TUTTO lo stack sticky (navbar + page header), la cui
   altezza reale è pubblicata da blocks/navbar.html in --ev-sticky-h. Il
   fallback copre il caso in cui il JS non abbia ancora misurato. */
.ev-booking-area {
  scroll-margin-top: calc(var(--ev-sticky-h, 180px) + 1rem);
}
