/* ═══════════════════════════════════════════════════════════════
   GOLDEN SERVAL — style-additions.css
   Da includere DOPO style.css.
   Contiene:
   - override modale post (dimensione fissa, frecce navigazione foto)
   - admin più larga + ricerca + paginazione + edit
   - datepicker / timepicker custom dark+gold
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════
   1. MODALE POST HOME — dimensione fissa
   Prima la modale "respirava" in base alla foto.
   Adesso è sempre uguale, le foto si adattano.
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════
   1. MODALE POST HOME E FORUM — dimensione fissa
   Definizioni COMPLETE (overlay + modale + body + media + testo).
   Servono qui in style-additions.css perché forum.html NON carica style.css
   originale, quindi senza queste regole la modale non sarebbe centrata.
   ═══════════════════════════════════════════════ */

.post-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.92);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

@media (max-width: 768px) {
  .post-modal-overlay {
    background: rgba(5, 2, 15, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.post-modal-overlay.active { display: flex; }

/* Modale post — design galassia moderno */
.post-modal {
  position: relative;
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%,  rgba(180,20,140,0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%,  rgba(20,60,180,0.20), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(110,40,200,0.22), transparent 60%),
    linear-gradient(160deg, #12082a 0%, #0e0620 50%, #130830 100%);
  border: 1px solid rgba(184,126,232,0.22);
  border-radius: 24px;
  width: min(1120px, 94vw);
  max-width: min(1120px, 94vw);
  height: min(860px, 92vh);
  max-height: min(860px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,.7),
    0 0 0 1px rgba(240,184,48,.06),
    inset 0 1px 0 rgba(255,255,255,.05);
}

/* Header modale — barra titolo pulita */
.post-modal-header {
  flex: 0 0 auto;
  padding: 20px 28px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(184,126,232,0.15);
  background: rgba(0,0,0,0.15);
  gap: 16px;
}

.post-modal-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1.2;
  text-shadow: 0 0 30px rgba(240,184,48,0.3);
  flex: 1;
}

/* Meta info (data + tag) sotto il titolo */
.post-modal-header .pm-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.post-modal-close {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-modal-close:hover {
  color: var(--gold);
  border-color: rgba(240,184,48,0.4);
  background: rgba(240,184,48,0.08);
  transform: rotate(90deg);
}

/* Body modale */
.post-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 28px 36px 36px;
  scrollbar-width: thin;
  scrollbar-color: rgba(240,184,48,0.4) transparent;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
.post-modal-body::-webkit-scrollbar { width: 6px; }
.post-modal-body::-webkit-scrollbar-track { background: transparent; }
.post-modal-body::-webkit-scrollbar-thumb {
  background: rgba(240,184,48,0.3);
  border-radius: 999px;
}
.post-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(240,184,48,0.6);
}

/* Testo post — leggibile e moderno */
.post-modal-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #e8e0f8;
  line-height: 1.85;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  /* Testo leggibile con massima larghezza */
  max-width: 72ch;
}

/* Data */
.post-modal-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(184,126,232,0.8);
  margin-bottom: 20px;
  padding: 4px 12px;
  background: rgba(184,126,232,0.08);
  border: 1px solid rgba(184,126,232,0.18);
  border-radius: 20px;
}

/* Frame della foto a dimensione fissa, contenitore relativo per le frecce */
#pm-img-wrap {
  position: relative;
  width: 100%;
  /* altezza fissa indipendente dal contenuto */
  height: 460px;
  background: #050505;
  border: 1px solid rgba(161, 107, 224, .18);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pm-img-wrap.post-modal-media-frame.empty {
  display: none;
}

#pm-img-wrap img,
#pm-img-wrap video,
.post-modal-media-main {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;  /* immagine si adatta SENZA tagliare */
  display: block;
  background: #050505;
}

/* ─── Frecce navigazione tra foto dello stesso post ─── */
.pm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(232, 168, 32, .35);
  color: var(--gold);
  font-size: 1.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 5;
  user-select: none;
  line-height: 1;
}

.pm-nav:hover {
  background: rgba(232, 168, 32, .85);
  color: #1a0d2e;
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.05);
}

.pm-nav-prev { left: 12px; }
.pm-nav-next { right: 12px; }

.pm-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.pm-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}

.pm-dots button.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(232, 168, 32, .8);
}


/* AUDIO mode nel modale home (post-modal) */
.post-modal-media-frame.audio-mode {
  height: auto;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(80,200,160,.08), rgba(20,12,32,.6));
  padding: 28px 24px;
}
.post-modal-media-frame.audio-mode .audio-player-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.post-modal-media-frame.audio-mode .audio-player-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 24px rgba(127,220,180,.25));
}
.post-modal-media-frame.audio-mode audio {
  width: 100%;
  max-width: 540px;
}


/* ═══════════════════════════════════════════════
   4. DATEPICKER / TIMEPICKER CUSTOM
   ═══════════════════════════════════════════════ */

.gs-picker-input {
  width: 100%;
  background: var(--dark3);
  border: 1px solid rgba(112, 64, 176, 0.3);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  padding: 10px 36px 10px 14px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
}

.gs-picker-input:focus,
.gs-picker-input.open {
  border-color: var(--purple-light);
}

.gs-picker-input.empty {
  color: var(--text-dim);
}

/* ─── Pannello del calendario ─── */
.gs-cal-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--dark2), var(--dark));
  border: 1px solid rgba(232, 168, 32, .35);
  border-radius: 12px;
  padding: 14px;
  width: 290px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
  display: none;
  user-select: none;
}

.gs-cal-panel.open {
  display: block;
  animation: gsCalFade .15s ease-out;
}

@keyframes gsCalFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gs-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gs-cal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--gold);
}

.gs-cal-nav {
  background: none;
  border: 1px solid rgba(112, 64, 176, .35);
  color: var(--purple-light);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.gs-cal-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.gs-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.gs-cal-weekdays span {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 4px 0;
}

.gs-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.gs-cal-day {
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all .12s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-cal-day:hover:not(:disabled):not(.other-month) {
  background: rgba(112, 64, 176, .35);
  border-color: var(--purple-light);
}

.gs-cal-day.other-month {
  color: rgba(158, 140, 191, .35);
  cursor: default;
}

.gs-cal-day.today {
  border-color: var(--gold);
  color: var(--gold);
}

.gs-cal-day.selected {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 600;
}

.gs-cal-day:disabled {
  opacity: .25;
  cursor: not-allowed;
}

.gs-cal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(112, 64, 176, .2);
}

.gs-cal-actions button {
  background: none;
  border: none;
  color: var(--purple-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .15s;
}

.gs-cal-actions button:hover {
  color: var(--gold);
}

/* ─── Pannello del timepicker ─── */
.gs-time-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--dark2), var(--dark));
  border: 1px solid rgba(232, 168, 32, .35);
  border-radius: 12px;
  padding: 14px;
  width: 200px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
  display: none;
  user-select: none;
}

.gs-time-panel.open {
  display: block;
  animation: gsCalFade .15s ease-out;
}

.gs-time-cols {
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
}

.gs-time-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(112, 64, 176, .25);
  border-radius: 8px;
  overflow: hidden;
}

.gs-time-col-label {
  background: rgba(112, 64, 176, .2);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-align: center;
  padding: 6px 0;
  color: var(--purple-light);
}

.gs-time-list {
  height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--dark);
}

.gs-time-list::-webkit-scrollbar {
  width: 4px;
}

.gs-time-list::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 999px;
}

.gs-time-list button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  padding: 6px 0;
  cursor: pointer;
  transition: background .15s;
}

.gs-time-list button:hover {
  background: rgba(112, 64, 176, .25);
}

.gs-time-list button.selected {
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}

.gs-time-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.gs-time-actions button {
  background: var(--purple);
  border: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: 2px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s;
  border-radius: 4px;
}

.gs-time-actions button:hover {
  background: var(--purple-mid);
}


/* ═══════════════════════════════════════════════
   5. RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 720px) {
  .post-modal {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-width: 100%;
    border-radius: 0;
  }

  #pm-img-wrap {
    height: 300px;
  }

  .pm-nav {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .overlay .modal {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
  }

  .overlay .modal-body {
    padding: 20px 16px;
  }

  .admin-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-list-actions {
    justify-content: flex-end;
  }

  .gs-cal-panel,
  .gs-time-panel {
    width: 100%;
    left: 0;
  }
}


/* ═══════════════════════════════════════════════
   6. TAG DINAMICI POST (home + forum)
   ═══════════════════════════════════════════════ */

.news-tag,
.forum-post-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-tag .tag-icon,
.forum-post-tag .tag-icon {
  font-size: .95rem;
  line-height: 1;
}

.news-tag.tag-photo,
.forum-post-tag.tag-photo {
  background: rgba(106, 54, 168, .22) !important;
  border: 1px solid rgba(161, 107, 224, .36) !important;
  color: var(--purple-light) !important;
}
.news-tag.tag-video,
.forum-post-tag.tag-video {
  background: rgba(232, 80, 80, .18) !important;
  border: 1px solid rgba(232, 80, 80, .42) !important;
  color: #ff8a8a !important;
}
.news-tag.tag-audio,
.forum-post-tag.tag-audio {
  background: rgba(80, 200, 160, .18) !important;
  border: 1px solid rgba(80, 200, 160, .42) !important;
  color: #7fdcb4 !important;
}
.news-tag.tag-story,
.forum-post-tag.tag-story {
  background: rgba(232, 168, 32, .18) !important;
  border: 1px solid rgba(232, 168, 32, .42) !important;
  color: var(--gold) !important;
}
.news-tag.tag-live,
.forum-post-tag.tag-live {
  background: rgba(255, 90, 130, .18) !important;
  border: 1px solid rgba(255, 90, 130, .45) !important;
  color: #ff96ad !important;
}
.news-tag.tag-announce,
.forum-post-tag.tag-announce {
  background: rgba(120, 160, 255, .18) !important;
  border: 1px solid rgba(120, 160, 255, .42) !important;
  color: #aac4ff !important;
}
.news-tag.tag-event,
.forum-post-tag.tag-event {
  background: linear-gradient(135deg, rgba(232, 168, 32, .18), rgba(106, 54, 168, .22)) !important;
  border: 1px solid rgba(232, 168, 32, .38) !important;
  color: var(--gold) !important;
}


/* Il bottone "VEDI TUTTI I POST" sotto la home usa la classe .btn-outline
   già definita in style.css (stesso stile di INGAGGIACI nell'hero) per
   coerenza visiva con il resto del sito. */


/* ── Carosello >5 media: frecce grandi ── */
.pm-nav-lg {
  width: 56px !important;
  height: 56px !important;
  font-size: 2.2rem !important;
  background: rgba(0,0,0,0.55) !important;
  border: 2px solid rgba(240,184,48,0.5) !important;
  color: var(--gold) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(8px);
}
.pm-nav-lg:hover {
  background: rgba(240,184,48,0.15) !important;
  border-color: var(--gold) !important;
  transform: scale(1.08);
}

/* Contatore media (es. 3/8) */
.pm-counter {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
  z-index: 5;
}


/* ── Miglioramenti modale post aperto ── */

/* Linea decorativa oro sotto il titolo */
.post-modal-title::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 8px;
  border-radius: 2px;
}

/* Tag categoria nel modale */
.pm-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.78rem; letter-spacing: 2px;
  padding: 3px 12px; border-radius: 20px;
  background: rgba(240,184,48,0.10);
  color: var(--gold);
  border: 1px solid rgba(240,184,48,0.25);
  margin-left: 4px;
}

/* Separatore tra data/tag e testo */
.pm-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(184,126,232,0.3), transparent);
  margin: 18px 0 22px;
}

/* Testo post — paragrafi ben spaziati */
.post-modal-text p {
  margin-bottom: 1.2em;
}

/* drop cap rimossa */

/* Numero media nell'header modale */
.pm-media-count {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem; font-weight: 500;
  color: rgba(184,126,232,0.6);
  letter-spacing: 1px;
}

/* Foto nel modale: bordi arrotondati */
#pm-img-wrap img,
#pm-img-wrap video {
  border-radius: 4px;
}


/* ══════════════════════════════════════════════════════
   FORUM CARD — design moderno allineato alle news card
   ══════════════════════════════════════════════════════ */

.forum-post {
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(112,64,176,0.14), transparent 65%),
    linear-gradient(160deg, rgba(28,14,52,0.92) 0%, rgba(14,8,28,0.96) 100%) !important;
  border: 1px solid rgba(184,126,232,0.16) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35) !important;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s !important;
  overflow: hidden !important;
}

.forum-post:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(240,184,48,0.30) !important;
  box-shadow:
    0 18px 45px rgba(0,0,0,0.45),
    0 0 0 1px rgba(240,184,48,0.06),
    0 0 35px rgba(112,64,176,0.20) !important;
}

/* Immagine thumbnail forum */
.forum-post-img {
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1) !important;
}
.forum-post:hover .forum-post-img {
  transform: scale(1.04) !important;
}

/* Meta: data + tag */
.forum-post-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 10px !important;
}

.forum-post-date {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: rgba(184,126,232,0.75) !important;
}

.forum-post-tag {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.62rem !important;
  letter-spacing: 2px !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  background: rgba(240,184,48,0.08) !important;
  color: var(--gold) !important;
  border: 1px solid rgba(240,184,48,0.22) !important;
}

.forum-post-count {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.65rem !important;
  color: rgba(184,126,232,0.5) !important;
  letter-spacing: 1px !important;
}

/* Titolo */
.forum-post-title {
  font-family: 'Dancing Script', cursive !important;
  font-size: 1.9rem !important;
  color: var(--gold) !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
  text-shadow: 0 0 20px rgba(240,184,48,0.18) !important;
}

/* Testo preview */
.forum-post-text {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.9rem !important;
  color: rgba(220,210,240,0.7) !important;
  line-height: 1.7 !important;
}

/* Footer apri articolo */
.forum-post-footer {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 0.72rem !important;
  letter-spacing: 3px !important;
  color: rgba(240,184,48,0.65) !important;
  margin-top: 14px !important;
  border-bottom: 1px solid rgba(240,184,48,0.18) !important;
  display: inline-block !important;
  padding-bottom: 2px !important;
  transition: color 0.2s, border-color 0.2s !important;
}
.forum-post:hover .forum-post-footer {
  color: var(--gold) !important;
  border-color: rgba(240,184,48,0.45) !important;
  transform: translateX(4px) !important;
}


/* ══════════════════════════════════════════════════════
   AUDIO PLAYER STAGE — sfondo visivo per post audio
   ══════════════════════════════════════════════════════ */

.audio-player-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  gap: 20px;
  overflow: hidden;
}

/* Sfondo con gradienti colorati */
.audio-visual-bg {
  position: absolute; inset: 0;
  /* Logo come sfondo centrato, mantiene le proporzioni */
  background-image: url('../img/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* Overlay galassia sopra il logo */
  background-color: #0d0520;
  /* Nebulosa colorata sopra il logo */
  box-shadow: inset 0 0 80px rgba(110,40,200,0.4);
}
/* Nebulosa in pseudo-element sopra il logo */
.audio-visual-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(180,20,140,0.30), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 25%, rgba(20,60,180,0.25), transparent 60%);
  pointer-events: none;
}

/* Nascondi il div logo separato — ora è nello sfondo */
.audio-logo { display: none; }

/* Onde animate */
.audio-wave {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.audio-wave span {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), rgba(240,184,48,0.3));
  animation: wave-bar 1.4s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { height: 16px; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 32px; animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { height: 28px; animation-delay: 0.4s; }
.audio-wave span:nth-child(6) { height: 40px; animation-delay: 0.3s; }
.audio-wave span:nth-child(7) { height: 20px; animation-delay: 0.2s; }
.audio-wave span:nth-child(8) { height: 32px; animation-delay: 0.1s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* Icona musicale sopra il player */
.audio-player-icon {
  font-size: 2.5rem;
  position: relative; z-index: 2;
  filter: drop-shadow(0 0 16px rgba(240,184,48,0.4));
  animation: pulse-icon 2.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%       { transform: scale(1.08); opacity: 1; }
}

/* Player audio stilizzato */
.audio-player-stage audio {
  position: relative; z-index: 2;
  width: min(480px, 85%);
  border-radius: 30px;
  background: rgba(0,0,0,0.4);
  outline: none;
}


/* ═══════════════════════════════════════════════
   STANDARD MEDIA POST — formato 16:9
   Aggiunto:
   - le anteprime dei post usano tutte lo stesso formato 16:9
   - vale sia per foto caricate sia per placeholder senza foto
   - l'immagine viene ritagliata visivamente con object-fit: cover
   - il file originale caricato non viene modificato
   ═══════════════════════════════════════════════ */

/* Le variabili --gs-post-media-ratio e --gs-soft-radius sono definite
   nel blocco :root unico in fondo a questo file. */

/* HOME / NEWS CARD */
.news-card-media,
.news-card-img,
.news-card-img-placeholder {
  width: 100% !important;
  aspect-ratio: var(--gs-post-media-ratio) !important;
  height: auto !important;
  min-height: 0 !important;
}

.news-card-media {
  position: relative !important;
  overflow: hidden !important;
  background: #050505 !important;
}

.news-card-img,
.news-card-media img,
.news-card-media video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.news-card-img-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(112,64,176,0.35), transparent 70%),
    linear-gradient(135deg, #1a0836 0%, #0e0620 100%) !important;
}

/* FORUM / POST CARD */
.forum-post {
  height: auto !important;
  min-height: 0 !important;
  align-items: stretch !important;
}

.forum-post-media {
  width: 100% !important;
  aspect-ratio: var(--gs-post-media-ratio) !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(112,64,176,0.26), transparent 70%),
    linear-gradient(135deg, #181222, #0a0712) !important;
}

.forum-post-img,
.forum-post-video,
.forum-post-media img,
.forum-post-media video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.forum-post-placeholder {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: var(--gs-post-media-ratio) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Forum desktop: mantieni layout immagine + testo, ma con immagine 16:9 */
@media (min-width: 901px) {
  .forum-post,
  .forum-post.reverse {
    grid-template-columns: minmax(340px, 42%) 1fr !important;
  }

  .forum-post.reverse {
    grid-template-columns: 1fr minmax(340px, 42%) !important;
  }

  .forum-post-content {
    min-height: 240px !important;
  }
}

/* Forum mobile: immagine sopra sempre 16:9 */
@media (max-width: 900px) {
  .forum-post,
  .forum-post.reverse {
    grid-template-columns: 1fr !important;
  }

  .forum-post-media,
  .forum-post.reverse .forum-post-media {
    height: auto !important;
    aspect-ratio: var(--gs-post-media-ratio) !important;
    border-radius: 24px 24px 0 0 !important;
  }
}


/* ═══════════════════════════════════════════════
   INGAGGI — fix select mobile + freccetta pulita
   - rimuove la freccia nativa del browser
   - usa una freccetta CSS stabile
   - evita glitch/animazioni strane su mobile
   ═══════════════════════════════════════════════ */

#ingaggi .form-field select,
.ingaggi-form .form-field select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  padding-right: 48px !important;

  background-color: rgba(36,21,64,0.86) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(232,168,32,0.95) 50%),
    linear-gradient(135deg, rgba(232,168,32,0.95) 50%, transparent 50%),
    linear-gradient(180deg, rgba(112,64,176,0.26), rgba(36,21,64,0.10)) !important;
  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 16px) 50%,
    100% 0 !important;
  background-size:
    8px 8px,
    8px 8px,
    44px 100% !important;
  background-repeat: no-repeat !important;

  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
  transform: none !important;
}

#ingaggi .form-field select:hover,
.ingaggi-form .form-field select:hover {
  background-color: rgba(46,28,74,0.92) !important;
}

#ingaggi .form-field select:focus,
.ingaggi-form .form-field select:focus {
  border-color: var(--gold, #e8a820) !important;
  box-shadow: 0 0 0 3px rgba(232,168,32,0.10) !important;
  transform: none !important;
}

/* IE/vecchi Edge: nasconde freccia nativa */
#ingaggi .form-field select::-ms-expand,
.ingaggi-form .form-field select::-ms-expand {
  display: none;
}

/* Mobile: evita zoom/glitch sul select e mantiene altezza comoda al tap */
@media (max-width: 768px) {
  #ingaggi .form-field select,
  .ingaggi-form .form-field select {
    min-height: 48px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
    border-radius: 10px !important;
    background-position:
      calc(100% - 24px) 50%,
      calc(100% - 16px) 50%,
      100% 0 !important;
  }
}


/* ═══════════════════════════════════════════════
   GOLDEN SERVAL — Premium UX parziale
   Mantiene SOLO:
   - Calendario concerti
   - Newsletter
   - Ingaggi
   Tutto il resto torna come prima.
   ═══════════════════════════════════════════════ */

:root {
  --gs-soft-radius: 22px;
  --gs-post-media-ratio: 16 / 9;
}

/* ═══ CALENDARIO CONCERTI — look premium mantenuto ═══ */
.event-card {
  border-radius: var(--gs-soft-radius) !important;
  background:
    radial-gradient(ellipse 120% 100% at 0% 50%, rgba(136,72,204,0.16), transparent 62%),
    linear-gradient(135deg, rgba(26,12,52,0.88) 0%, rgba(14,8,30,0.96) 100%) !important;
}

/* Badge "PROSSIMO CONCERTO" — inline accanto al venue */
.event-card-wrap {
  position: relative;
}

.event-next-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.3px;
  color: #0e0720;
  background: linear-gradient(135deg, #f5c842, #e8a820);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(232,168,32,0.60), 0 0 24px rgba(232,168,32,0.28);
  animation: badge-pulse 2.6s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(232,168,32,0.60), 0 0 24px rgba(232,168,32,0.28); }
  50%       { box-shadow: 0 0 18px rgba(232,168,32,0.95), 0 0 42px rgba(232,168,32,0.50); }
}

/* ═══ NEWSLETTER — look premium mantenuto ═══ */
.newsletter-box {
  background: rgba(18,9,30,0.12);
  border: 1px solid rgba(184,126,232,0.10);
  border-radius: 30px;
  padding: clamp(18px, 4vw, 32px);
}

.newsletter-form {
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

.newsletter-input {
  border-radius: 999px 0 0 999px !important;
}

.newsletter-btn {
  border-radius: 0 999px 999px 0 !important;
  clip-path: none !important;
}

/* ═══ INGAGGI — look premium mantenuto ═══ */
.ingaggi-form {
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(112,64,176,0.10), transparent 72%),
    rgba(18, 9, 30, 0.16);
  border: 1px solid rgba(184,126,232,0.12);
  border-radius: 28px;
  padding: clamp(18px, 4vw, 28px);
}

.form-field input,
.form-field textarea,
.form-field select,
.newsletter-input {
  border-radius: 14px !important;
  background: rgba(20, 10, 40, 0.72) !important;
  border: 1px solid rgba(184,126,232,0.18) !important;
  border-bottom: 1px solid rgba(184,126,232,0.26) !important;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.newsletter-input:focus {
  border-color: rgba(232,168,32,0.50) !important;
  box-shadow: 0 0 0 3px rgba(232,168,32,0.10) !important;
}

.form-submit {
  border-radius: 999px !important;
  clip-path: none !important;
  box-shadow:
    0 10px 28px rgba(232, 168, 32, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

/* Mobile: SOLO calendario/newsletter/ingaggi */
@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 78px 1fr !important;
    border-radius: 22px !important;
  }

  .event-time-value {
    font-size: 1.3rem !important;
  }

  .event-time-badge {
    grid-column: 1 / -1;
    justify-content: flex-start !important;
    padding: 12px 22px !important;
    border-left: none !important;
    border-top: 1px solid rgba(240,184,48,0.10);
  }

  .event-card:first-child::after {
    position: static;
    grid-column: 1 / -1;
    margin: 0 18px 16px;
    width: fit-content;
  }

  .newsletter-form {
    flex-direction: column !important;
    border-radius: 22px !important;
    overflow: visible !important;
    box-shadow: none !important;
    gap: 10px !important;
  }

  .newsletter-input,
  .newsletter-btn {
    border-radius: 999px !important;
    width: 100% !important;
  }

  .ingaggi-layout {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }

  .ingaggi-form {
    border-radius: 24px;
    padding: 20px;
  }

  .form-submit {
    width: 100% !important;
    text-align: center !important;
  }
}


/* ═══════════════════════════════════════════════
   GOLDEN SERVAL — Footer polish
   Obiettivo:
   - footer più premium
   - più leggibile da telefono
   - social più belli
   - chiusura pagina più elegante
   ═══════════════════════════════════════════════ */

footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 15% 0%, rgba(112,64,176,0.22), transparent 68%),
    radial-gradient(ellipse 70% 60% at 85% 25%, rgba(232,168,32,0.08), transparent 65%),
    linear-gradient(180deg, rgba(18,9,30,0.96) 0%, #090511 78%) !important;
  border-top: 1px solid rgba(184,126,232,0.16) !important;
  padding: 72px 0 34px !important;
}

footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(900px, 86vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(184,126,232,0.55), rgba(232,168,32,0.65), rgba(184,126,232,0.55), transparent);
  pointer-events: none;
}

footer::after {
  content: "GOLDEN SERVAL";
  position: absolute;
  right: -24px;
  bottom: 18px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 10px;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  white-space: nowrap;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1.6fr) 1fr 1fr !important;
  gap: clamp(34px, 5vw, 64px) !important;
  align-items: start;
}

.footer-brand {
  max-width: 440px;
}

.footer-brand h3 {
  font-size: clamp(2.1rem, 4vw, 2.8rem) !important;
  line-height: 0.95 !important;
  margin-bottom: 16px !important;
  text-shadow:
    0 0 18px rgba(232,168,32,0.28),
    0 0 40px rgba(112,64,176,0.12) !important;
}

.footer-brand h3::after {
  content: "Rock Band · Ticino · Switzerland";
  display: block;
  margin-top: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: rgba(184,126,232,0.88);
  text-shadow: none;
}

.footer-brand h3 img {
  display: block;
  height: clamp(40px, 6vw, 52px);
  width: auto;
  filter: drop-shadow(0 0 16px rgba(232,168,32,0.30));
}

.footer-brand p {
  color: rgba(237,229,255,0.68) !important;
  font-size: 0.92rem !important;
  line-height: 1.85 !important;
}

.footer-brand p::after {
  content: "Dal Ticino al palco.";
  display: block;
  margin-top: 14px;
  color: rgba(232,168,32,0.86);
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem;
}

.footer-social {
  gap: 12px !important;
  margin-top: 24px !important;
}

.social-btn {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 35% 20%, rgba(232,168,32,0.16), transparent 48%),
    rgba(112,64,176,0.16) !important;
  border: 1px solid rgba(184,126,232,0.26) !important;
  color: var(--text) !important;
  font-size: 1.05rem !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 22px rgba(0,0,0,0.16);
  transform: translateY(0);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

.social-btn:hover {
  transform: translateY(-3px);
  background:
    radial-gradient(circle at 35% 20%, rgba(232,168,32,0.28), transparent 50%),
    rgba(112,64,176,0.30) !important;
  border-color: rgba(232,168,32,0.46) !important;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.26),
    0 0 24px rgba(112,64,176,0.22) !important;
}

/* Icone SVG dentro i bottoni social: contrasto forte, diventano oro in hover.
   NB: uso fill diretto (non currentColor) perché su alcuni client/font-stack
   currentColor sui path può venire ereditato dal default browser invece che
   dal color del <a>, restituendo nero. Con fill esplicito siamo blindati. */
.social-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: #ede5ff !important;
  transition: fill 0.2s ease;
}
.social-btn svg path {
  fill: #ede5ff !important;
}
.social-btn:hover svg,
.social-btn:hover svg path {
  fill: var(--gold, #e8a820) !important;
}

.footer-col {
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(184,126,232,0.08);
  border-radius: 22px;
  padding: 22px 22px 20px;
}

.footer-col h4 {
  position: relative;
  color: var(--gold) !important;
  font-size: 0.9rem !important;
  letter-spacing: 3.5px !important;
  margin-bottom: 20px !important;
}

.footer-col h4::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.footer-col ul {
  gap: 12px !important;
}

.footer-col ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(237,229,255,0.66) !important;
  font-size: 0.9rem !important;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.footer-col ul a::before {
  content: "›";
  color: rgba(232,168,32,0.72);
  font-size: 1.1rem;
  line-height: 1;
}

.footer-col ul a:hover {
  color: var(--gold) !important;
  transform: translateX(3px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1120px !important;
  margin-top: 8px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(184,126,232,0.10) !important;
  color: rgba(237,229,255,0.52) !important;
}

.footer-bottom span:first-child {
  letter-spacing: 0.3px;
}

.footer-bottom span:last-child {
  color: rgba(184,126,232,0.86) !important;
}

/* Mobile footer */
@media (max-width: 768px) {
  footer {
    padding: 56px 0 28px !important;
  }

  footer::after {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 20px !important;
    text-align: left !important;
  }

  .footer-brand {
    max-width: none;
    text-align: center;
    background:
      radial-gradient(ellipse 90% 70% at 50% 0%, rgba(112,64,176,0.12), transparent 70%),
      rgba(255,255,255,0.018);
    border: 1px solid rgba(184,126,232,0.08);
    border-radius: 24px;
    padding: 26px 20px 24px;
  }

  .footer-brand h3 {
    font-size: 2.4rem !important;
  }

  .footer-brand h3::after {
    font-size: 0.66rem;
    letter-spacing: 3px;
  }

  .footer-brand p {
    font-size: 0.9rem !important;
  }

  .footer-social {
    justify-content: center !important;
  }

  .footer-col {
    padding: 20px;
  }

  .footer-col h4 {
    margin-bottom: 16px !important;
  }

  .footer-col ul {
    gap: 10px !important;
  }

  .footer-col ul a {
    min-height: 36px;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
    padding: 22px 20px 0 !important;
    font-size: 0.76rem !important;
  }
}


/* ═══════════════════════════════════════════════
   GOLDEN SERVAL — Footer compact override
   Mantiene il nuovo look del footer, ma lo rende meno grande.
   ═══════════════════════════════════════════════ */

footer {
  padding: 46px 0 24px !important;
}

footer::after {
  font-size: clamp(3rem, 8vw, 6rem) !important;
  letter-spacing: 7px !important;
  bottom: 10px !important;
  opacity: 0.75;
}

.footer-inner {
  gap: clamp(22px, 4vw, 40px) !important;
  margin-bottom: 28px !important;
}

.footer-brand h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  margin-bottom: 10px !important;
}

.footer-brand h3::after {
  margin-top: 7px !important;
  font-size: 0.62rem !important;
  letter-spacing: 3px !important;
}

.footer-brand p {
  font-size: 0.82rem !important;
  line-height: 1.65 !important;
}

.footer-brand p::after {
  margin-top: 9px !important;
  font-size: 1.05rem !important;
}

.footer-social {
  margin-top: 16px !important;
  gap: 9px !important;
}

.social-btn {
  width: 38px !important;
  height: 38px !important;
  font-size: 0.95rem !important;
}

.footer-col {
  border-radius: 18px !important;
  padding: 17px 18px 16px !important;
}

.footer-col h4 {
  font-size: 0.78rem !important;
  margin-bottom: 13px !important;
}

.footer-col h4::after {
  margin-top: 7px !important;
  width: 36px !important;
}

.footer-col ul {
  gap: 7px !important;
}

.footer-col ul a {
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
}

.footer-bottom {
  margin-top: 0 !important;
  padding-top: 18px !important;
  font-size: 0.72rem !important;
}

/* Mobile footer compatto */
@media (max-width: 768px) {
  footer {
    padding: 38px 0 22px !important;
  }

  .footer-inner {
    gap: 14px !important;
    padding: 0 18px !important;
    margin-bottom: 24px !important;
  }

  .footer-brand {
    border-radius: 20px !important;
    padding: 20px 18px 18px !important;
  }

  .footer-brand h3 {
    font-size: 2rem !important;
  }

  .footer-brand h3::after {
    font-size: 0.58rem !important;
    letter-spacing: 2.4px !important;
  }

  .footer-brand p {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }

  .footer-brand p::after {
    font-size: 1rem !important;
  }

  .footer-social {
    margin-top: 14px !important;
  }

  .social-btn {
    width: 38px !important;
    height: 38px !important;
  }

  .footer-col {
    border-radius: 18px !important;
    padding: 16px 18px !important;
  }

  .footer-col ul a {
    min-height: 30px !important;
    font-size: 0.82rem !important;
  }

  .footer-bottom {
    padding: 16px 18px 0 !important;
    font-size: 0.7rem !important;
  }
}


/* ═══════════════════════════════════════════════
   INGAGGI — ripristino tasto "INVIA RICHIESTA"
   Mantiene lo stile precedente con taglio obliquo.
   ═══════════════════════════════════════════════ */

#ingaggi .form-submit,
.ingaggi-form .form-submit {
  border-radius: 0 !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%) !important;

  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  color: var(--black) !important;

  box-shadow: none !important;
}

#ingaggi .form-submit:hover,
.ingaggi-form .form-submit:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,168,32,0.4) !important;
}

/* Mobile: resta largo, ma con lo stesso taglio obliquo */
@media (max-width: 768px) {
  #ingaggi .form-submit,
  .ingaggi-form .form-submit {
    width: 100% !important;
    border-radius: 0 !important;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%) !important;
  }
}


/* ═══════════════════════════════════════════════
   NEWS — testo massimo 3 righe
   ═══════════════════════════════════════════════ */

.news-card-text {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* ═══════════════════════════════════════════════
   POST MODAL MOBILE — fix menu sopra X + swipe UX
   ═══════════════════════════════════════════════ */

/* Il popup post deve stare sopra alla navbar mobile */
.post-modal-overlay {
  z-index: 2147483000 !important;
}

/* Evita che il contenuto sotto/nav intercetti tocchi quando la modale è aperta */
/* scroll lock gestito via JS (Safari-safe) */

/* La foto diventa una superficie swipe */
#pm-img-wrap {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

#pm-img-wrap img,
#pm-img-wrap video,
.post-modal-media-main {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Frecce/dots più centrati e stabili */
.pm-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.pm-dots {
  align-items: center !important;
  justify-content: center !important;
}

.pm-dots button {
  flex: 0 0 auto !important;
}

/* Mobile: modale sopra tutto, X sempre visibile e cliccabile */
@media (max-width: 768px) {
  .post-modal-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: rgba(5, 2, 15, 0.94) !important;
  }

  .post-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  .post-modal-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 2147483001 !important;
    padding:
      calc(env(safe-area-inset-top, 0px) + 14px)
      16px
      14px !important;
    align-items: center !important;
    background:
      linear-gradient(180deg, rgba(8,3,19,0.98), rgba(14,6,32,0.94)) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }

  .post-modal-title {
    font-size: 1.72rem !important;
    line-height: 1.08 !important;
    padding-right: 8px !important;
  }

  .post-modal-header .pm-meta {
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 5px !important;
  }

  .post-modal-date,
  .pm-tag,
  .pm-media-count {
    font-size: 0.62rem !important;
    letter-spacing: 2px !important;
  }

  .post-modal-close {
    position: relative !important;
    z-index: 2147483002 !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    color: var(--gold, #e8a820) !important;
    background: rgba(0,0,0,0.36) !important;
    border-color: rgba(232,168,32,0.34) !important;
    font-size: 1.05rem !important;
  }

  .post-modal-body {
    padding: 18px 14px 28px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #pm-img-wrap {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    max-height: 58vh !important;
    border-radius: 18px !important;
    margin-bottom: 18px !important;
  }

  .pm-nav {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.45rem !important;
    background: rgba(0,0,0,0.50) !important;
  }

  .pm-nav-prev {
    left: 10px !important;
  }

  .pm-nav-next {
    right: 10px !important;
  }

  .pm-dots {
    bottom: 10px !important;
    gap: 7px !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.32) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .pm-dots button {
    width: 8px !important;
    height: 8px !important;
  }

  .pm-counter {
    bottom: 10px !important;
    font-size: 0.72rem !important;
  }
}


/* ═══════════════════════════════════════════════
   CONCERTI — badge "PROSSIMO LIVE" fisso in alto a destra anche da mobile
   ═══════════════════════════════════════════════ */

.event-card {
  position: relative !important;
}

/* nessun override necessario — badge è inline nel DOM */


/* Bacheca — sottotitolo leggero */
.section-subcopy {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 768px) {
  .section-subcopy {
    font-size: 0.86rem;
    padding: 0 10px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   DRAWER CONCERTO
   ═══════════════════════════════════════════════════════════════ */

.edr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 800;
  backdrop-filter: none;
}
.edr-overlay.active { display: block; }

.edr-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 801;
  background: linear-gradient(180deg, #1a0d38 0%, #0e0720 100%);
  border-top: 1px solid rgba(184,126,232,0.22);
  border-radius: 24px 24px 0 0;
  padding: 12px 24px 40px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.55);

  transform: translateY(100%);
  /* visibility: serve a non far "spuntare" il drawer in basso su iOS
     quando il transform da solo non basta (es. durante scroll inerzia
     o cambi di altezza della barra browser). */
  visibility: hidden;
  transition:
    transform 0.35s cubic-bezier(.3,0,.2,1),
    visibility 0s linear 0.35s;
  will-change: transform;

  max-width: 680px;
  margin: 0 auto;
}

.edr-drawer.active {
  transform: translateY(0);
  visibility: visible;
  transition:
    transform 0.35s cubic-bezier(.3,0,.2,1),
    visibility 0s linear 0s;
}

/* Handle */
.edr-handle {
  width: 40px; height: 4px;
  border-radius: 999px;
  background: rgba(184,126,232,0.35);
  margin: 0 auto 20px;
}

/* Data row */
.edr-date-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.edr-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, rgba(112,64,176,0.45), rgba(72,24,128,0.35));
  border: 1px solid rgba(184,126,232,0.25);
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 60px;
  flex-shrink: 0;
}

.edr-day {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.edr-month {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  color: rgba(240,184,48,0.70);
  letter-spacing: 2px;
}

.edr-date-full {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  color: rgba(184,126,232,0.75);
  line-height: 1.4;
  text-transform: capitalize;
}

/* Venue */
.edr-venue {
  font-family: 'Dancing Script', cursive;
  font-size: 1.9rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}

/* Location + time */
.edr-location,
.edr-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: rgba(200,180,240,0.80);
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Bottoni azioni */
.edr-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.edr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  height: 48px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.edr-btn svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.edr-btn:active { transform: scale(0.97); }

.edr-btn-maps {
  background: rgba(66,133,244,0.18);
  border: 1px solid rgba(66,133,244,0.40);
  color: rgba(160,200,255,0.95);
}
.edr-btn-maps svg { fill: rgba(160,200,255,0.90); }
.edr-btn-maps:hover {
  background: rgba(66,133,244,0.30);
  box-shadow: 0 4px 18px rgba(66,133,244,0.25);
}

.edr-btn-reminder {
  background: rgba(80,200,120,0.14);
  border: 1px solid rgba(80,200,120,0.35);
  color: rgba(130,230,160,0.95);
}
.edr-btn-reminder svg { fill: rgba(130,230,160,0.90); }
.edr-btn-reminder:hover {
  background: rgba(80,200,120,0.26);
  box-shadow: 0 4px 18px rgba(80,200,120,0.22);
}

/* Mobile: full width bottom padding per home indicator iPhone */
@media (max-width: 768px) {
  .edr-drawer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
  }
  .edr-venue { font-size: 1.65rem; }
  .edr-btn { height: 52px; font-size: 0.95rem; }
}
