/* =======================================
   HERO LINK (page-specific)
   (se vuoi mantenere la geometria attuale)
======================================= */
.hero-link{
  position: absolute;
  width: 40%;
  height: 50%;
  top: 0;
  left: 30%;
  cursor: pointer;
  z-index: 5;
}

/* =======================================
   EVENTI (page-specific)
======================================= */

.event-section{
  margin-top: 30px;
}

.event-subtitle{
  font-family: "UnifrakturCook", serif;
  font-size: 1.7rem;
  text-align: center;
  margin: 0 0 18px;
  padding-bottom: 8px;
  color: #209c88c4;
  border-bottom: 1px solid #555;
  letter-spacing: 1px;
}

.event-subtitle.upcoming{
  color: #209c88c4;
}

/* Griglia */
.events-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

/* Card evento */
.event-card{
  display: flex;
  align-items: center;
  gap: 15px;
  background: #050505;
  border: 1px solid #151515;
  border-radius: 12px;
  padding: 15px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

.event-card-img{
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.85;
}

.event-card-details{
  flex: 1 1 auto;
}

.event-card-date{
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.event-card-venue{
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 4px 0 0;
}

.event-card-city{
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.event-card-actions{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Nessun evento */
.no-events{
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--br);
  border-radius: 8px;
}

/* =======================================
   PULSANTI (eventi: come prima)
======================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #555;
  background: #181818;
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  text-decoration: none;
}

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

.btn[disabled]{
  opacity: 0.4;
  cursor: not-allowed;
}

.btn.secondary{
  background: transparent;
  color: #ddd;
}

.btn.secondary:hover:not([disabled]){
  background: #222;
}

.btn.primary{
  background: #666;
  color: #fff;
  border-color: #666;
}

.btn.primary:hover:not([disabled]){
  background: #000;
  border-color: #000;
}

/* =======================================
   MODALE EVENTO
======================================= */
body.modal-open{ overflow: hidden; }
.modal-overlay{
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;

  /* deve stare sopra la nav pinned */
  z-index: 2147483647;

  backdrop-filter: blur(5px);
}
.modal-content{
  background-color: #0d0d0d;
  border: 2px solid #b3261e;
  width: 90%;
  max-width: 650px;
  padding: 20px 22px 22px;
  border-radius: 10px;
  color: var(--fg);
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  max-height: 80vh;
  overflow-y: auto;
}

.modal-close{
  position: absolute;
  top: 10px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #444;
  background: #111;
  color: #b3261e;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover{
  background: #222;
}

.modal-content h3{
  font-size: 1.15rem;
  margin: 0 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--br);
}

.modal-date{
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 10px;
}

.modal-place{
  color: var(--fg);
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.modal-content h4{
  margin: 10px 0 4px;
  font-size: 0.95rem;
}

.modal-content p{
  margin: 4px 0;
  font-size: 0.95rem;
}

.fb-btn{
  margin-top: 18px;
}

.modal-image{
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  margin: 12px 0 8px;
  border-radius: 8px;
  border: 1px solid #151515;
}

/* =======================================
   RESPONSIVE (page-specific)
======================================= */
@media (max-width: 600px){
  .events-grid{
    grid-template-columns: 1fr;
  }
}

/* ======================================= SOLO pagina membri: box esterna a 800px 
.eventi-page .page-content{
  max-width: 800px;}
#ovl, #mdl { z-index: 2147483647; }
======================================= */