/* Popup evento (locandina + dettagli) e pulsante che lo apre. Vedi assets/js/eventi-popup.js */

.na-evt-open {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.5rem; padding: 0.3rem 0.85rem;
  font: 700 0.8rem/1.2 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  color: #f2cc8f; background: transparent;
  border: 1px solid rgba(242, 204, 143, 0.55); border-radius: 999px;
  cursor: pointer; align-self: flex-start;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.na-evt-open:hover { background: rgba(242, 204, 143, 0.14); border-color: #f2cc8f; }
.na-evt-open:focus-visible { outline: 2px solid #f2cc8f; outline-offset: 2px; }

/* Prenota online: stessa pillola del tasto CTA del popup (terracotta) */
.na-evt-book {
  display: inline-flex; align-items: center; margin: 0.5rem 0 0 0.4rem; padding: 0.3rem 0.85rem;
  font: 700 0.8rem/1.2 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  color: #1a1c28; background: #e07a5f; border: 1px solid #e07a5f; border-radius: 999px;
  text-decoration: none; transition: background-color 0.18s ease;
}
.na-uscire__what .na-evt-book { align-self: flex-start; margin-left: 0; }
.na-evt-book:hover { background: #e98f77; }
.na-evt-book:focus-visible { outline: 2px solid #f2cc8f; outline-offset: 2px; }
.na-evt__book .na-evt-book { display: flex; width: fit-content; margin: 0.6rem 0 0; padding: 0.55rem 1.1rem; font-size: 0.9rem; text-decoration: none; color: #1a1c28; font-weight: 700; }
.na-evt__book:has(> .na-evt-book:only-child) { background: none; border: 0; padding: 0; }

html.na-evt-lock { overflow: hidden; }

.na-evt {
  width: min(92vw, 480px); max-height: 92vh; max-height: 92dvh;
  margin: auto; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px;
  overflow-y: auto; overscroll-behavior: contain;
  background: #0c241d; color: #fff;
  font-family: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.na-evt::backdrop { background: rgba(6, 18, 14, 0.78); }

/* Il tasto resta visibile mentre il popup scorre */
.na-evt__close {
  position: sticky; top: 0.6rem; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin: 0.6rem 0.6rem -48px auto;
  color: #fff; background: rgba(12, 36, 29, 0.72); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; cursor: pointer;
}
.na-evt__close:hover { background: rgba(12, 36, 29, 0.92); }
.na-evt__close:focus-visible { outline: 2px solid #f2cc8f; outline-offset: 2px; }
.na-evt__close svg { width: 16px; height: 16px; }

/* Locandina in alto, a larghezza piena, proporzioni originali (width/height nell'HTML + height:auto) */
.na-evt__poster { display: block; width: 100%; height: auto; }

.na-evt__body { padding: 1.4rem 1.5rem 1.6rem; }
.na-evt__title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.25; margin: 0 0 1rem; color: #fff; }
.na-evt__title:has(+ .na-evt__sub:not([hidden])) { margin-bottom: 0.3rem; }
.na-evt__sub { margin: 0 0 1rem; font-size: 0.97rem; line-height: 1.4; font-style: italic; color: #f2cc8f; }

.na-evt__facts { margin: 0 0 1.1rem; display: grid; gap: 0.55rem; }
.na-evt__fact { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0.75rem; font-size: 0.92rem; }
.na-evt__fact dt { color: #f2cc8f; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; padding-top: 0.2rem; }
.na-evt__fact dd { margin: 0; }

.na-evt__desc { margin: 0 0 1.2rem; font-size: 0.97rem; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.na-evt__desc p { margin: 0 0 0.75rem; }
.na-evt__desc p:last-child { margin-bottom: 0; }

.na-evt__book { margin: 0; padding: 0.8rem 1rem; font-size: 0.92rem; background: rgba(224, 122, 95, 0.14); border: 1px solid rgba(224, 122, 95, 0.5); border-radius: 10px; }
.na-evt__book a { color: #f2cc8f; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Freccia "scorri": zero altezza, agganciata al fondo dell'area visibile del popup */
.na-evt__more { position: sticky; bottom: 0; height: 0; z-index: 2; pointer-events: none; }
.na-evt__morebtn {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.1rem 0.6rem 1.25rem; white-space: nowrap;
  font: 700 0.9rem/1 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  color: #1a1c28; background: #e07a5f;
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s;
}
.na-evt__morebtn svg { width: 18px; height: 18px; }
.na-evt__morebtn:hover { background: #ea9174; }
.na-evt__morebtn:focus-visible { outline: 2px solid #f2cc8f; outline-offset: 3px; }
.na-evt--hint .na-evt__morebtn { opacity: 1; visibility: visible; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  .na-evt--hint .na-evt__morebtn svg { animation: na-evt-nudge 1.4s ease-in-out infinite; }
  @keyframes na-evt-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
}

@media (prefers-reduced-motion: no-preference) {
  .na-evt[open] { animation: na-evt-in 0.22s ease-out; }
  @keyframes na-evt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 480px) {
  .na-evt__fact { grid-template-columns: 1fr; gap: 0.1rem; }
  .na-evt__body { padding: 1.2rem 1.15rem 1.4rem; }
}
