/* ═══════════════════════════════════════════════
   GOLDEN SERVAL – style.css
   Logo: metti logo.png nella stessa cartella
   Font Google caricati via <link> direttamente in HTML
   (più veloce dell'@import che blocca il rendering).

   NOTA MANUTENZIONE:
   Caricato in HOME e RICHIESTE-LIVE, NON in FORUM.
   Una quarantina di selettori (footer, post-modal, news-card,
   newsletter-*, event-card, ecc.) sono RISCRITTI in
   style-additions.css con !important e quindi sovrascrivono
   quello che leggi qui. Se modifichi quei blocchi, modifica
   anche style-additions.css o il cambio sparirà.
   ═══════════════════════════════════════════════ */

/* ── VARIABILI COLORE (tema più chiaro del precedente) ── */
:root {
  --gold:         #e8a820;
  --gold-light:   #f5c842;
  --gold-dark:    #b07d10;
  --purple:       #7040b0;       /* più chiaro del precedente #5b2d8e */
  --purple-mid:   #9055cc;
  --purple-light: #b87ee8;
  --purple-dark:  #3d1860;
  --purple-bg:    #2a1650;       /* più chiaro del precedente #1a0d2e */
  --black:        #12091e;       /* meno nero */
  --dark:         #1c1030;       /* sezioni scure ma leggibili */
  --dark2:        #241540;
  --dark3:        #2e1c4a;
  --text:         #ede5ff;
  --text-dim:     #9e8cbf;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* ── Fix anchor scroll con nav fissa ─────────────────────────
   Ogni sezione con id viene spostata di 70px (altezza nav)
   così il browser non la nasconde sotto la navbar */
#hero, #news, #calendario, #newsletter, #ingaggi, #forum {
  scroll-margin-top: 80px;
}

html { scroll-behavior: smooth; }

body {
  background: transparent;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Grain overlay leggero */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.3;
}

/* ═══ NAV ═══
   Lo stile della navbar è in nav.css per essere condiviso con forum.html.
   Modifica nav.css per cambiare il menu ovunque. */

/* ═══ HERO ═══ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(110px + env(safe-area-inset-top, 0px)) 20px 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(112,64,176,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(36,21,64,0.92) 0%, var(--black) 80%);
}

.hero-glow {
  position: absolute; width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,168,32,0.09) 0%, rgba(112,64,176,0.16) 40%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.7; }
  50%      { transform: translate(-50%,-50%) scale(1.12); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  width: min(100%, 980px);
}

/* ── Logo ── */
/* Se usi il file esterno: */
.hero-serval-svg {
  width: clamp(360px, 48vw, 660px);
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  animation: float 6s ease-in-out infinite;
  display: block;
}

@keyframes float {
  0%   { transform: translateY(0);     filter: drop-shadow(0 0 18px rgba(232,168,32,0.42)) drop-shadow(0 0 42px rgba(232,168,32,0.18)); }
  50%  { transform: translateY(-16px); filter: drop-shadow(0 0 32px rgba(232,168,32,0.85)) drop-shadow(0 0 70px rgba(232,168,32,0.40)); }
  100% { transform: translateY(0);     filter: drop-shadow(0 0 18px rgba(232,168,32,0.42)) drop-shadow(0 0 42px rgba(232,168,32,0.18)); }
}

/* Su mobile riduci ulteriormente - le drop-shadow animate sono pesanti */
@media (max-width: 768px) {
  @keyframes float {
    0%   { transform: translateY(0);    filter: drop-shadow(0 0 14px rgba(232,168,32,0.45)); }
    50%  { transform: translateY(-14px); filter: drop-shadow(0 0 26px rgba(232,168,32,0.80)); }
    100% { transform: translateY(0);    filter: drop-shadow(0 0 14px rgba(232,168,32,0.45)); }
  }
}

h1.hero-title {
  display: none;
}

.hero-divider {
  width: 150px; height: 1px;
  background: linear-gradient(to right, transparent, var(--purple-light), var(--gold), var(--purple-light), transparent);
}

.hero-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 10px; color: var(--text-dim);
}

.hero-cta { display: flex; gap: 20px; margin-top: 14px; }

.btn-gold {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 3px; padding: 13px 34px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black); border: none; cursor: pointer;
  text-decoration: none; transition: all 0.25s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

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

.btn-outline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 3px; padding: 13px 34px;
  background: transparent; color: var(--purple-light);
  border: 1px solid var(--purple);
  cursor: pointer; text-decoration: none; transition: all 0.25s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-outline:hover {
  background: rgba(112,64,176,0.2);
  border-color: var(--purple-light); color: var(--text);
}

.hero-scroll {
  position: absolute; bottom: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 4px; font-size: 0.72rem;
  animation: scrollbounce 2s infinite;
}

@keyframes scrollbounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ═══ SECTIONS GENERICO ═══ */
section { padding: 100px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section-header { text-align: center; margin-bottom: 64px; }

.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.72rem; letter-spacing: 8px;
  color: var(--purple-light); display: block; margin-bottom: 12px;
}

.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--gold); line-height: 1.1;
  text-shadow: 0 0 30px rgba(232,168,32,0.25);
}

.section-line {
  width: 80px; height: 2px;
  background: linear-gradient(to right, var(--purple), var(--gold), var(--purple));
  margin: 22px auto 0;
}

/* ═══ NEWS ═══ */
#news { background: transparent; position: relative; }

#news::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(61,24,96,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px; position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto;
  justify-items: center;
}

.post-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.88); z-index: 600;
  align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.post-modal-overlay.active { display: flex; }

.post-modal {
  background: linear-gradient(180deg, rgba(44,25,69,.98), rgba(17,10,28,.99));
  border: 1px solid rgba(161,107,224,0.28);
  border-radius: 28px;
  max-width: 1120px; width: 94vw;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 100px rgba(0,0,0,.62);
}

.post-modal-header {
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(61,24,96,.98), rgba(112,64,176,.88));
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(232,168,32,.16);
}
.post-modal-title { font-family: 'Dancing Script',cursive; font-size: 2rem; color: var(--gold); line-height: 1.1; }
.post-modal-close { background: none; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; width: 44px; height: 44px; font-size: 1.4rem; color: var(--text-dim); cursor: pointer; }
.post-modal-close:hover { color: var(--gold); border-color: rgba(232,168,32,.4); }

.post-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(92vh - 86px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(18,9,30,0.65);
}
.post-modal-body::-webkit-scrollbar { width: 8px; }
.post-modal-body::-webkit-scrollbar-track { background: rgba(18,9,30,0.65); border-radius: 999px; }
.post-modal-body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold), var(--purple-light)); border-radius: 999px; border: 2px solid rgba(18,9,30,.85); }

/* media frame dentro la modale post */
#pm-img-wrap {
  position: relative;
  background: #050505;
  border: 1px solid rgba(161,107,224,.18);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 24px;
}
#pm-img-wrap.post-modal-media-frame.empty { display: none; }
#pm-img-wrap img,
#pm-img-wrap video,
.post-modal-media-main {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  background: #050505;
}

.post-modal-date { font-family:'Bebas Neue',sans-serif; font-size:0.78rem; letter-spacing:4px; color:var(--purple-light); margin-bottom:14px; }
.post-modal-text { white-space: pre-wrap; font-size: 1rem; color: #d5cbe3; line-height: 2; max-width: 900px; }


.news-card {
  position: relative;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(112,64,176,0.18), transparent 70%),
    linear-gradient(160deg, rgba(28,14,52,0.95) 0%, rgba(14,8,28,0.98) 100%);
  border: 1px solid rgba(184,126,232,0.18);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
  cursor: pointer; width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.news-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(240,184,48,0.04) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
  transition: opacity 0.3s;
  opacity: 0;
}

.news-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(240,184,48,0.35);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.5),
    0 0 0 1px rgba(240,184,48,0.08),
    0 0 40px rgba(112,64,176,0.25);
}
.news-card:hover::before { opacity: 1; }

/* Immagine più alta */
.news-card-img { width: 100%; height: 240px; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.news-card:hover .news-card-img { transform: scale(1.04); }

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

/* Body con padding generoso */
.news-card-body {
  padding: 22px 24px 26px;
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}
/* APRI ARTICOLO sempre in fondo */
.news-card-body .read-more-link {
  margin-top: auto;
  padding-top: 14px;
  align-self: flex-start;
}

/* Meta riga: data + tag affiancati */
.news-card-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 12px;
}

/* Data */
.news-card-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(184,126,232,0.75);
  margin-bottom: 0;
}

/* Tag categoria */
.news-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.62rem; letter-spacing: 2px;
  padding: 3px 10px; border-radius: 20px;
  background: rgba(240,184,48,0.08);
  color: var(--gold);
  border: 1px solid rgba(240,184,48,0.22);
  transition: background 0.2s;
}
.news-card:hover .news-tag {
  background: rgba(240,184,48,0.14);
  border-color: rgba(240,184,48,0.4);
}

/* Titolo */
.news-card-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.65rem; line-height: 1.2;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(240,184,48,0.2);
}

/* Testo preview */
.news-card-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem; color: rgba(220,210,240,0.75);
  line-height: 1.7; margin-bottom: 14px;
}

/* ── APRI ARTICOLO → ── */
.news-card-meta .news-card-date { margin-bottom: 0; }

/* ═══ CALENDARIO ═══ */
#calendario { background: transparent; position: relative; overflow: hidden; }

#calendario::before { display: none; }

.events-list {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 860px; margin: 0 auto; position: relative; z-index: 1;
  overflow: visible;
}

.event-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  background:
    radial-gradient(ellipse 120% 100% at 0% 50%, rgba(136,72,204,0.20), transparent 60%),
    linear-gradient(135deg, rgba(26,12,52,0.95) 0%, rgba(14,8,30,0.98) 100%);
  border: 1px solid rgba(184,126,232,0.18);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
  align-items: stretch;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  position: relative;
  min-height: 110px;
}

.event-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(240,184,48,0.3));
  border-radius: 18px 0 0 18px;
}

.event-card:hover {
  transform: translateY(-4px) translateX(4px);
  border-color: rgba(240,184,48,0.30);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.45),
    0 0 0 1px rgba(240,184,48,0.06),
    -4px 0 20px rgba(240,184,48,0.15);
}

/* Box data — colonna sinistra */
.event-date-box {
  background:
    linear-gradient(160deg, rgba(136,72,204,0.60) 0%, rgba(80,20,140,0.80) 100%);
  color: var(--gold);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 12px; min-height: 100px;
  gap: 2px;
  position: relative;
}

.event-date-box::after {
  content: '';
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(240,184,48,0.25), transparent);
}

.event-day {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem; line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(240,184,48,0.4);
}

.event-month {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; letter-spacing: 2px;
  color: rgba(240,184,48,0.72);
  text-transform: uppercase;
  line-height: 1;
}

/* Info centrali */
.event-info {
  padding: 20px 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
}

.event-venue {
  font-family: 'Dancing Script', cursive;
  font-size: 1.55rem; line-height: 1.2;
  color: var(--text);
  text-shadow: 0 0 15px rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.event-card:hover .event-venue { color: var(--gold); }

.event-location-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  color: rgba(184,126,232,0.70);
}

.event-location-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.event-maps-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  flex-shrink: 0;

  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.30);
  border-radius: 8px;
  padding: 5px 10px;
  height: 28px;
  box-sizing: border-box;

  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: rgba(140, 190, 255, 0.90);

  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.event-maps-link svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  fill: rgba(140, 190, 255, 0.85);
  transition: fill 0.2s;
}

.event-maps-link:hover {
  background: rgba(66, 133, 244, 0.22);
  border-color: rgba(66, 133, 244, 0.55);
  color: #a8d0ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.20);
}

.event-maps-link:hover svg { fill: #a8d0ff; }

/* Action buttons row (Maps + Promemoria) */
.event-action-btns {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-top: 6px;
}

.event-maps-link,
.event-reminder-btn {
  height: 32px;
  flex: none;
  width: auto;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  padding: 0 16px;
  line-height: 32px;
}

.event-reminder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid rgba(80, 200, 120, 0.30);
  border-radius: 8px;
  padding: 0 16px;
  height: 32px;
  box-sizing: border-box;
  background: rgba(80, 200, 120, 0.10);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  color: rgba(120, 220, 150, 0.90);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
}

.event-reminder-btn svg {
  width: 13px; height: 13px;
  fill: rgba(120, 220, 150, 0.85);
  flex-shrink: 0;
}

.event-reminder-btn:hover {
  background: rgba(80, 200, 120, 0.22);
  border-color: rgba(80, 200, 120, 0.55);
  color: #8fffb0;
  transform: translateY(-1px);
}
.event-reminder-btn:hover svg { fill: #8fffb0; }

/* Badge ora — colonna destra */
.event-time-badge {
  background: rgba(240,184,48,0.06);
  border-left: 1px solid rgba(240,184,48,0.12);
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  white-space: nowrap;
  transition: background 0.3s;
  gap: 2px;
}

.event-time-label {
  font-size: 0.62rem; letter-spacing: 3px;
  color: rgba(240,184,48,0.50);
}

.event-time-value {
  font-size: 1.6rem; letter-spacing: 2px;
}

/* Ora mobile — visibile solo su mobile tramite media query */
.event-time-mobile { display: none; }

/* Bottoni inline — visibili su desktop, nascosti su mobile (usa drawer) */
.event-action-btns.desktop-only { display: flex; }

.event-card:hover .event-time-badge {
  background: rgba(240,184,48,0.10);
  border-left-color: rgba(240,184,48,0.25);
}

.no-events {
  text-align: center; color: var(--text-dim);
  font-style: italic; padding: 50px;
  border: 1px dashed rgba(112,64,176,0.3);
}

/* ═══ NEWSLETTER ═══ */
#newsletter { background: transparent; position: relative; overflow: hidden; }

#newsletter::before { display: none; }

.newsletter-box { max-width: 620px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.newsletter-desc { color: var(--text-dim); margin-bottom: 36px; line-height: 1.8; font-size: 0.95rem; }
.newsletter-perks { display: flex; justify-content: center; gap: 44px; margin-bottom: 40px; flex-wrap: wrap; }

.perk {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 2px; color: var(--text-dim);
  font-family: 'Bebas Neue', sans-serif;
}

.perk-icon {
  width: 48px; height: 48px;
  background: rgba(112,64,176,0.18);
  border: 1px solid var(--purple); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--gold); transition: all 0.2s;
}
.perk:hover .perk-icon { background: rgba(112,64,176,0.38); box-shadow: 0 0 20px rgba(112,64,176,0.45); }

.newsletter-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; }

.newsletter-input {
  flex: 1; background: var(--dark2);
  border: 1px solid rgba(112,64,176,0.4); border-right: none;
  color: var(--text); font-family: 'Raleway', sans-serif;
  font-size: 0.9rem; padding: 14px 20px; outline: none; transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: var(--purple-light); }
.newsletter-input::placeholder { color: var(--text-dim); }

.newsletter-btn {
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 3px;
  padding: 14px 28px;
  background: linear-gradient(to right, var(--purple), var(--purple-mid));
  color: var(--text); border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.newsletter-btn:hover {
  background: linear-gradient(to right, var(--purple-mid), var(--purple-light));
  box-shadow: 0 4px 20px rgba(112,64,176,0.5);
}

/* ═══ BOOKING / CONTATTI LIVE ═══ */
#ingaggi { background: transparent; position: relative; overflow: hidden; }

#ingaggi::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 50%, rgba(232,168,32,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.ingaggi-layout {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px;
  align-items: start; position: relative; z-index: 1;
}

.ingaggi-info h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.9rem; color: var(--gold); margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(232,168,32,0.22);
}

.ingaggi-info p { color: var(--text-dim); line-height: 1.8; font-size: 0.9rem; margin-bottom: 32px; }

.contact-items { display: flex; flex-direction: column; gap: 12px; }

/* Bottoni-link di contatto: cliccabili, con icona SVG dorata
   e hover coerente col resto del sito */
.contact-item {
  display: flex; align-items: center; gap: 14px; font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px 8px 8px;
  margin-left: -8px;                 /* compensa il padding: testo allineato */
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
}
a.contact-item:hover {
  color: var(--gold-light);
  border-color: rgba(232,168,32,0.28);
  background: rgba(112,64,176,0.12);
  transform: translateX(5px);
}
a.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(232,168,32,0.4);
}

.contact-icon {
  width: 40px; height: 40px;
  background: rgba(112,64,176,0.22); border: 1px solid var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold); flex-shrink: 0;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
}
.contact-icon svg { width: 18px; height: 18px; fill: currentColor; display: block; }

.ingaggi-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-family: 'Bebas Neue', sans-serif; font-size: 0.72rem;
  letter-spacing: 3px; color: var(--purple-light);
}

.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(36,21,64,0.8);
  border: 1px solid rgba(112,64,176,0.35);
  border-bottom: 2px solid var(--purple);
  color: var(--text); font-family: 'Raleway', sans-serif;
  font-size: 0.9rem; padding: 12px 16px; outline: none;
  transition: border-color 0.2s, background 0.2s; resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--purple-light); background: rgba(46,28,74,0.9);
}

.form-field select option { background: #2a1650; }
.form-field textarea { min-height: 140px; }
.form-submit { align-self: flex-start; }

/* ═══ FOOTER ═══ */
footer {
  background: linear-gradient(180deg, rgba(18,9,30,1), #0c0614 70%);
  border-top: 1px solid rgba(112,64,176,0.22);
  padding: 60px 0 32px;
}

.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: 'Dancing Script', cursive;
  color: var(--gold); font-size: 1.9rem; margin-bottom: 12px;
  text-shadow: 0 0 15px rgba(232,168,32,0.3);
}

.footer-brand p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.social-btn {
  width: 40px; height: 40px;
  background: rgba(112,64,176,0.18); border: 1px solid rgba(112,64,176,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 1rem; text-decoration: none; transition: all 0.2s;
}
.social-btn:hover {
  background: var(--purple); color: var(--text);
  border-color: var(--purple-light); box-shadow: 0 0 15px rgba(112,64,176,0.4);
}

.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 3px;
  font-size: 0.82rem; color: var(--purple-light); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding: 24px 40px 0;
  border-top: 1px solid rgba(112,64,176,0.12);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text-dim);
}

/* ═══ ALERT (usato per feedback newsletter e ingaggi) ═══ */
.alert { padding: 10px 16px; font-size: 0.85rem; }
.alert-success { background: rgba(40,140,40,0.12); border: 1px solid rgba(40,200,40,0.25); color: #5ebd5e; }
.alert-error   { background: rgba(180,40,40,0.12); border: 1px solid rgba(180,40,40,0.25); color: #e05555; }

/* ═══ TOAST ═══ */
#toast {
  position: fixed; bottom: 32px; right: 32px;
  background: linear-gradient(to right, var(--purple), var(--purple-mid));
  color: var(--text); font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem; letter-spacing: 2px; padding: 14px 28px;
  z-index: 9999; transform: translateY(80px); opacity: 0; transition: all 0.3s;
  border-left: 3px solid var(--gold);
}
#toast.show { transform: translateY(0); opacity: 1; }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--purple); }


/* ═══ STACCHI SEZIONI PIÙ ARMONICI ═══ */
section:not(#hero) { padding: 112px 0; margin-top: -1px; }
#news { background: transparent; }
#calendario { background: transparent; }
#newsletter { background: transparent; }
#ingaggi { background: transparent; }
#news .container, #calendario .container, #newsletter .container, #ingaggi .container { position: relative; z-index: 5; }

/* ═══ STRUMENTI STATICI AI BORDI ═══ */
.site-instruments { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.site-instrument { position: absolute; width: 160px; opacity: 0.75; filter: drop-shadow(0 0 28px rgba(232,168,32,0.25)); transform: rotate(var(--rot, 0deg)); transition: opacity .3s; }
.site-instrument svg { width: 100%; height: auto; display: block; }
.site-instrument .inst-fill { fill: rgba(112,64,176,0.82); }
.site-instrument .inst-small { fill: rgba(61,24,96,0.9); }
.site-instrument .inst-stroke { fill: none; stroke: rgba(232,168,32,0.86); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.site-instrument .thin { stroke-width: 2; opacity: 0.75; }
.site-instrument .inst-gold { fill: rgba(232,168,32,0.9); }
.site-instrument .soft { opacity: 0.62; }
.site-instrument .keys rect { fill: rgba(237,229,255,0.18); stroke: rgba(232,168,32,0.35); stroke-width: 1; }
.site-instrument .black-keys rect { fill: rgba(18,9,30,0.95); }
/* Posizioni strumenti — alternanza pulita sinistra/destra con ritmo
   regolare (60vh tra uno e l'altro) e maggior stacco dai bordi.
   Schema: L → R → L → R → L → R → L */
.instrument-guitar-left  { left: 40px;  top: 120vh; width: 130px; --rot: -12deg; }
.instrument-keys-right   { right: 38px; top: 180vh; width: 200px; --rot: 7deg;  }
.instrument-mic-left     { left: 46px;  top: 240vh; width: 110px; --rot: 9deg;  }
.instrument-drum-right   { right: 42px; top: 300vh; width: 180px; --rot: -8deg; }
.instrument-note-left    { left: 44px;  top: 360vh; width: 140px; --rot: -6deg; }
.instrument-bass-right   { right: 40px; top: 420vh; width: 130px; --rot: 10deg; }
.instrument-amp-left     { left: 38px;  top: 480vh; width: 170px; --rot: -5deg; }
@media (max-width: 1200px) {
  .site-instrument { opacity: 0.55; }
  /* Su schermi medi, sporgono ancora un po' fuori per non rubare spazio al contenuto,
     ma in modo più contenuto rispetto a prima */
  .instrument-guitar-left  { left: -4px; }
  .instrument-keys-right   { right: -40px; }
  .instrument-mic-left     { left: -6px; }
  .instrument-drum-right   { right: -36px; }
  .instrument-note-left    { left: -8px; }
  .instrument-bass-right   { right: -20px; }
  .instrument-amp-left     { left: -12px; }
}
@media (max-width: 900px) { .site-instruments { display: none; } section:not(#hero) { padding: 82px 0; } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 64px; }
  .nav-links { display: none !important; }
  .nav-burger { display: flex !important; }
  #hero { padding: 105px 18px 72px; }
  .hero-serval-svg {
    width: min(92vw, 500px);
    max-height: 300px;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 6px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .btn-gold,
  .btn-outline {
    width: min(100%, 320px);
    text-align: center;
  }
  .ingaggi-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row  { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 78px 1fr; }
  .event-time-badge { display: none; }

  /* Mostra ora sotto la data nella colonna sinistra */
  .event-date-box { flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-bottom: 8px; }
  .event-time-mobile {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: rgba(240,184,48,0.75);
    line-height: 1;
  }

  /* Mobile: nasconde bottoni inline — ci pensa il drawer */
  .event-action-btns.desktop-only { display: none !important; }

  /* Mobile: card cliccabile */
  .event-card { cursor: pointer; }

  /* Mobile: venue più piccolo così badge sta sulla stessa riga */
  .event-venue {
    font-size: 1.25rem !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* Mobile: badge stesso allineamento del titolo */
  .event-next-badge {
    font-size: 0.58rem !important;
    padding: 2px 7px !important;
    flex-shrink: 0 !important;
  }
}


/* (Vecchio blocco ingaggi-home-* / ingaggi-page-* / db-status-pill / admin-muted-note
    rimosso: classi non più referenziate da nessun file HTML/PHP/JS.) */


/* Media nei post (card home) */
.news-card-video {
  width: 100%;
  display: block;
  background: #050505;
  height: 220px;
  object-fit: cover;
}




/* ═══ MIGLIORIA SELECT / DATE / TIME ═══ */
.form-field select,
.form-field input[type="date"],
.form-field input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(180deg, rgba(56,34,88,0.92), rgba(36,21,64,0.92)),
    radial-gradient(circle at 88% 50%, rgba(232,168,32,0.08), transparent 28%);
  border: 1px solid rgba(184,126,232,0.28);
  border-bottom: 2px solid rgba(112,64,176,0.75);
  border-radius: 10px;
  color: var(--text);
  min-height: 46px;
}

.form-field select {
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%),
    linear-gradient(180deg, rgba(56,34,88,0.92), rgba(36,21,64,0.92));
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 15px) 50%,
    0 0;
  background-size:
    7px 7px,
    7px 7px,
    100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
}

.form-field select:hover,
.form-field input[type="date"]:hover,
.form-field input[type="time"]:hover {
  border-color: rgba(232,168,32,0.45);
  background-color: rgba(61,36,96,0.96);
}

.form-field select:focus,
.form-field input[type="date"]:focus,
.form-field input[type="time"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(232,168,32,0.09);
}

.form-field select option {
  background: #241540;
  color: var(--text);
}

/* ═══ POLISH NEWS / MODALE POST / FEEDBACK ═══ */
.alert-success {
  background: rgba(40,140,40,0.14) !important;
  border: 1px solid rgba(94,189,94,0.28) !important;
  color: #8fe08f !important;
}

.news-card {
  border-radius: 26px;
  overflow: hidden;
}

.news-card-media {
  position: relative;
  overflow: hidden;
}

.media-count-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  font-size: .74rem;
  background: rgba(5,5,5,.62);
  color: var(--gold);
  border: 1px solid rgba(232,168,32,.28);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(8px);
}

.read-more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.72rem; letter-spacing: 3px;
  color: rgba(240,184,48,0.7);
  margin-top: 4px;
  border-bottom: 1px solid rgba(240,184,48,0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.news-card:hover .read-more-link {
  color: var(--gold);
  border-color: rgba(240,184,48,0.5);
}


/* ═══ FOOTER PIÙ LEGGIBILE + DISISCRIZIONE NEWSLETTER ═══ */
.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.92rem;
  letter-spacing: 4px;
  text-shadow: 0 0 14px rgba(232,168,32,0.18);
  margin-bottom: 22px;
}

.footer-col a {
  color: #d8caec;
  font-size: 1.02rem;
  line-height: 1.9;
}

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

.unsubscribe-box {
  max-width: 520px;
  margin: 18px auto 0;
  text-align: center;
}

.unsubscribe-toggle {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.unsubscribe-toggle:hover {
  color: var(--gold);
}

.unsubscribe-form {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.unsubscribe-form.active {
  display: grid;
}

.unsubscribe-input {
  min-width: 0;
}

.unsubscribe-btn {
  background: rgba(112,64,176,0.42);
}

.unsubscribe-btn:hover {
  background: var(--purple-mid);
}

@media (max-width: 640px) {
  .unsubscribe-form {
    grid-template-columns: 1fr;
  }
}



/* ═══ MODALE ARTICOLO HOME: SCROLL INTERNO + SCROLLBAR BELLA ═══ */
/* scroll lock gestito via JS (Safari-safe) */

.post-modal-overlay.active {
  overflow: hidden;
}

.read-more-link {
  font-size: 0.75rem;
  color: var(--purple-light);
  margin-top: 10px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}

/* ═══ GALASSIA ═══ */
#galaxy {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
  background: linear-gradient(160deg, #0d0520 0%, #110630 40%, #0d0428 70%, #130520 100%);
}
#galaxy .g-n { position: absolute; border-radius: 50%; filter: blur(70px); }
#galaxy .g-n1 { width:60vw; height:50vh; top:-10vh;  left:-15vw;  background:rgba(180,20,140,0.55); }
#galaxy .g-n2 { width:55vw; height:45vh; top:-5vh;   left:35vw;   background:rgba(20,60,180,0.50); }
#galaxy .g-n3 { width:40vw; height:55vh; top:15vh;   right:-8vw;  background:rgba(0,160,200,0.40); }
#galaxy .g-n4 { width:65vw; height:55vh; top:40vh;   left:10vw;   background:rgba(110,40,200,0.48); }
#galaxy .g-n5 { width:50vw; height:40vh; bottom:5vh; left:20vw;   background:rgba(200,120,10,0.32); }
#galaxy .g-n6 { width:45vw; height:50vh; bottom:-5vh;right:-5vw;  background:rgba(210,50,150,0.42); }

/* Mobile: riduci blur drasticamente per non sovraccaricare GPU iOS Safari */
@media (max-width: 768px) {
  #galaxy .g-n { filter: blur(40px); opacity: 0.85; }
}


/* ═══ HAMBURGER & MENU MOBILE ═══
   Lo stile dell'hamburger e del menu mobile a tendina è in nav.css,
   condiviso tra home e forum. */

html, body { margin: 0; padding: 0; }

/* ── Fix bordi bianchi mobile ── */
html {
  background: var(--black);
  min-height: 100%;
  min-height: -webkit-fill-available;
}
body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overscroll-behavior: none;
}
/* Fix colore barra browser iOS/Android */
:root {
  color-scheme: dark;
}
