/**
 * Guest consulta prenotazione — copertina evento, codice evidenza, griglia contatti, tabella Q/A/prezzo.
 */

.guest-fest {
  --fest-orange: #f58220;
  --fest-purple: #602d91;
  --fest-navy: #15265c;
  --fest-muted: #6b7280;
  --fest-surface: #f0f2f8;
  --fest-card: #ffffff;
  --fest-border: #e2e6ef;
  --fest-radius: 0.5rem;
  --fest-radius-card: 0.85rem;
  --bs-primary: var(--fest-orange);
  --bs-primary-rgb: 245, 130, 32;
  --bs-link-color: var(--fest-purple);
  --bs-link-hover-color: #4a2270;
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.guest-fest-bg {
  min-height: 100%;
  background: var(--fest-surface);
  background-image:
    radial-gradient(ellipse 100% 60% at 100% 0%, rgba(245, 130, 32, 0.09) 0%, transparent 42%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(96, 45, 145, 0.07) 0%, transparent 40%);
}

.guest-fest-page {
  max-width: 42rem;
}

.guest-fest-card.guest-fest-card--ticket {
  border: 1px solid rgba(21, 38, 92, 0.08);
  border-radius: var(--fest-radius-card);
  box-shadow:
    0 1px 3px rgba(21, 38, 92, 0.05),
    0 8px 18px rgba(21, 38, 92, 0.06);
  overflow: hidden;
}

.guest-fest-ticket-bar {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--fest-orange) 0%,
    var(--fest-purple) 50%,
    var(--fest-navy) 100%
  );
}

/* Copertina */
.guest-fest-cover-wrap {
  position: relative;
  width: 100%;
  background: #dee3ec;
}

.guest-fest-cover-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

@media (min-width: 576px) {
  .guest-fest-cover-img {
    height: 220px;
  }
}

.guest-fest-cover-fallback {
  height: 160px;
  background: linear-gradient(125deg, var(--fest-navy) 0%, var(--fest-purple) 55%, var(--fest-orange) 100%);
  opacity: 0.9;
}

.guest-fest-card-body--compact {
  padding: 0.75rem 0.75rem 0.55rem;
}

@media (min-width: 576px) {
  .guest-fest-card-body--compact {
    padding: 0.85rem 1rem 0.65rem;
  }
}

.guest-fest-page-title {
  color: var(--fest-navy);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.guest-fest-page-title--compact {
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
}

/* Info evento */
.guest-fest-event-info {
  font-size: 0.8125rem;
  color: var(--fest-muted);
}

.guest-fest-event-line {
  margin-bottom: 0.25rem;
}

.guest-fest-event-line i {
  color: var(--fest-purple);
  opacity: 0.85;
}

.guest-fest-event-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #374151;
}

/* Codice grande */
.guest-fest-codice-block {
  text-align: center;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f8 100%);
  border: 2px solid rgba(245, 130, 32, 0.35);
  border-radius: var(--fest-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* QR codice (SVG da endroid/qr-code) */
.guest-fest-qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.guest-fest-qr-wrap svg {
  display: block;
  max-width: 168px;
  width: 100%;
  height: auto;
  border-radius: var(--fest-radius);
  background: #fff;
  padding: 0.35rem;
  box-shadow: inset 0 0 0 1px var(--fest-border);
}

.guest-fest-codice-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fest-muted);
  margin-bottom: 0.35rem;
}

.guest-fest-codice-big {
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--fest-navy);
  line-height: 1.15;
}

/* Accordion Dettagli */
.guest-fest-accordion {
  --bs-accordion-border-radius: var(--fest-radius);
  --bs-accordion-inner-border-radius: var(--fest-radius);
}

.guest-fest-accordion .accordion-item {
  background: transparent;
}

.guest-fest-accordion-btn {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--fest-navy) !important;
  background: #f3f5f9 !important;
  box-shadow: none !important;
  border: 1px solid var(--fest-border) !important;
}

.guest-fest-accordion-btn:not(.collapsed) {
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.1), rgba(96, 45, 145, 0.08)) !important;
  border-color: rgba(245, 130, 32, 0.35) !important;
}

.guest-fest-accordion-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 130, 32, 0.2) !important;
}

.guest-fest-accordion-body {
  padding: 0.85rem 0.65rem 0.75rem;
  background: #fafbfd;
  border: 1px solid var(--fest-border);
  border-top: 0;
  border-radius: 0 0 var(--fest-radius) var(--fest-radius);
}

.guest-fest-event-external-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fest-purple);
  text-decoration: none;
  line-height: 1.3;
}

.guest-fest-event-external-link:hover {
  color: var(--fest-orange);
  text-decoration: underline;
}

.guest-fest-event-link-text {
  word-break: break-word;
}

.guest-fest-subsection-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fest-purple);
  padding-left: 0.4rem;
  border-left: 2px solid var(--fest-orange);
}

/* Riga prenotazione / pagamento */
.guest-fest-prenot-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--fest-muted);
}

.guest-fest-prenot-hash {
  font-weight: 600;
  color: var(--fest-navy);
}

.guest-fest-prenot-sep {
  opacity: 0.45;
}

.guest-fest-prenot-meta {
  font-weight: 500;
  color: var(--fest-navy);
}

/* Griglia 2×2 contatti */
.guest-fest-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

@media (max-width: 400px) {
  .guest-fest-contact-grid {
    grid-template-columns: 1fr;
  }
}

.guest-fest-contact-cell {
  border: 1px solid var(--fest-border);
  border-radius: var(--fest-radius);
  padding: 0.4rem 0.5rem;
  background: #f8f9fc;
}

.guest-fest-contact-k {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fest-muted);
  margin-bottom: 0.15rem;
}

.guest-fest-contact-v {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fest-navy);
  line-height: 1.3;
  word-break: break-word;
}

/* Sezione dettagli */
.guest-fest-section-title--compact {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fest-purple);
  padding-left: 0.4rem;
  border-left: 2px solid var(--fest-orange);
}

/* Tabella domanda | risposta | prezzo (header solo per screen reader) */
.guest-fest .guest-fest-qa-wrap {
  border: 1px solid var(--fest-border);
  border-radius: var(--fest-radius);
  overflow: hidden;
}

.guest-fest .guest-fest-qa-table thead.visually-hidden th {
  padding: 0;
  border: 0;
}

.guest-fest .guest-fest-qa-table tbody tr:nth-child(odd) td {
  background: rgba(21, 38, 92, 0.02);
}

.guest-fest .guest-fest-qa-table tbody td {
  font-size: 0.75rem;
  vertical-align: top;
  padding: 0.4rem 0.45rem !important;
  border-color: var(--fest-border);
  color: #374151;
}

.guest-fest .guest-fest-qa-q {
  font-weight: 600;
  color: var(--fest-navy);
  width: 36%;
}

.guest-fest .guest-fest-qa-a {
  width: 49%;
}

.guest-fest .guest-fest-qa-p {
  width: 15%;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--fest-muted);
}

.guest-fest-empty {
  font-size: 0.75rem;
  color: var(--fest-muted);
  padding: 0.35rem 0.5rem;
  background: #f3f4f8;
  border-radius: var(--fest-radius);
  border: 1px dashed var(--fest-border);
}

.guest-fest-actions {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0;
  margin-top: 0.35rem;
  border-top: 1px solid var(--fest-border);
}

.guest-fest .btn-fest-soft {
  border: 1px solid var(--fest-border);
  color: var(--fest-navy);
  background: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

@media (max-width: 575.98px) {
  .guest-fest .btn-fest-soft {
    width: 100%;
  }
}

.guest-fest .btn-fest-soft:hover {
  border-color: rgba(245, 130, 32, 0.55);
  color: var(--fest-orange);
  background: rgba(245, 130, 32, 0.07);
}
