:root {
  --bg: #0c0b0a;
  --bg-elev: #161311;
  --bg-soft: #1e1a16;
  --ink: #f4efe6;
  --muted: #a89f93;
  --gold: #c6a35a;
  --gold-soft: #e2c889;
  --danger: #c45c4a;
  --ok: #6f9e7a;
  --seat-free: #3d9a5f;
  --seat-selected: #ffffff;
  --seat-sold: #c62828;
  --seat-held: #e53935;
  --seat-blocked: #c6a35a;
  --seat-admin: #c6a35a;
  --seat-accessible: #9ec9e8;
  --line: rgba(244, 239, 230, 0.12);
  --radius: 2px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(198, 163, 90, 0.14), transparent 60%),
    linear-gradient(180deg, #14110e 0%, var(--bg) 40%, #090807 100%);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 10, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--ink);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand__place {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
}

.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: var(--gold);
  color: #1a140b;
}
.btn-primary:hover { background: var(--gold-soft); color: #1a140b; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-danger {
  background: transparent;
  border-color: rgba(196, 92, 74, 0.45);
  color: #efb0a5;
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0c0b0a;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: heroZoom 18s ease-out forwards;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,7,6,0.35) 0%, rgba(8,7,6,0.2) 35%, rgba(8,7,6,0.88) 78%, rgba(8,7,6,0.98) 100%),
    radial-gradient(circle at 70% 30%, rgba(198,163,90,0.16), transparent 42%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 4.5rem;
  max-width: 38rem;
  animation: rise 0.95s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  text-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.hero__city {
  margin: 0 0 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-size: 0.78rem;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: rgba(244, 239, 230, 0.82);
  font-size: 1.08rem;
  max-width: 28rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}
.hero__actions .btn {
  min-height: 3rem;
  min-width: min(100%, 11.5rem);
  padding: 0.9rem 1.35rem;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}
.hero__actions .btn-ghost {
  background: rgba(12, 11, 10, 0.42);
  backdrop-filter: blur(4px);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hero__actions .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(12, 11, 10, 0.55);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.02); }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bandReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.photo-band {
  position: relative;
  min-height: clamp(280px, 48vw, 520px);
  overflow: hidden;
  isolation: isolate;
}

.photo-band img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.photo-band--facade {
  min-height: clamp(240px, 38vw, 420px);
}

.photo-band--facade img {
  animation: bandReveal 1s ease both;
}

.photo-band__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 2;
  pointer-events: none;
}

.photo-band__caption p {
  margin: 0;
  display: inline-block;
  padding: 0.45rem 0.75rem;
  background: rgba(8,7,6,0.72);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-soft);
}

.photo-band--street {
  min-height: clamp(420px, 70vh, 720px);
}

.photo-band--street img {
  object-position: center 35%;
  filter: saturate(0.92) contrast(1.05);
}

.map-section {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  isolation: isolate;
  overflow: hidden;
  background: #0c0b0a;
}

.map-section__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.map-section__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05) brightness(0.88);
}

.map-section__overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  align-items: end;
  padding: 0 0 3.25rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,7,6,0.15) 0%, rgba(8,7,6,0.25) 40%, rgba(8,7,6,0.88) 100%);
}

.map-section__overlay .wrap {
  pointer-events: auto;
}

.map-section__overlay h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.35rem 0 0.6rem;
  font-weight: 550;
}

.map-section__overlay p {
  margin: 0;
  max-width: 34rem;
  color: rgba(244, 239, 230, 0.85);
}

.map-section__actions {
  margin-top: 1.1rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.map-section__overlay .btn-ghost {
  background: rgba(12, 11, 10, 0.42);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.photo-band__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 0 0 3.5rem;
  background: linear-gradient(180deg, rgba(8,7,6,0.15), rgba(8,7,6,0.82) 70%);
}

.photo-band__overlay h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.35rem 0 0.6rem;
  font-weight: 550;
}

.photo-band__overlay p {
  margin: 0;
  max-width: 34rem;
  color: rgba(244, 239, 230, 0.85);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-size: 0.75rem;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-split__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0.4rem 0 1rem;
  font-weight: 550;
}

.about-split__text p {
  margin: 0 0 1rem;
  color: rgba(244, 239, 230, 0.88);
}

.about-split__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  min-height: 320px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.about-split__photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.about-split__photo:hover img {
  transform: scale(1.04);
}

.section--gallery {
  padding-top: 3rem;
}

.gallery-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-rail figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  min-height: 220px;
  background: #111;
}

.gallery-rail img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: brightness(0.92);
}

.gallery-rail figure:hover img {
  transform: scale(1.05);
  filter: brightness(1);
}

@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; }
  .gallery-rail { grid-template-columns: 1fr; }
  .gallery-rail img { min-height: 200px; }
}

.section {
  padding: 4.5rem 0;
}

.section__head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  font-weight: 550;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.event-list {
  display: grid;
  gap: 1.25rem;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  animation: fadein 0.7s ease both;
}

.event-row--poster {
  grid-template-columns: 110px 1fr auto;
  align-items: center;
}

.event-row:last-child { border-bottom: 1px solid var(--line); }

.event-row__poster {
  display: block;
  width: 110px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
}

.event-row__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-row__poster:hover img {
  transform: scale(1.05);
}

.event-row__meta {
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.event-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 550;
}

.event-row p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.event-banner {
  display: block;
}

.event-banner--with-poster {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: end;
}

.event-poster {
  width: min(180px, 36vw);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-preview img {
  width: 120px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line);
}

.admin-poster-thumb {
  width: 42px;
  height: 63px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Booking */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0 3rem;
}

.booking-map { min-width: 0; order: 1; }
.booking-cart { order: 2; }

@media (max-width: 960px) {
  .booking-layout { grid-template-columns: 1fr; }
}

.panel {
  background: rgba(22, 19, 17, 0.88);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
}

.event-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.2rem 0 0.4rem;
}

.event-banner .muted { color: var(--muted); margin: 0; }

.map-shell {
  overflow: hidden;
  padding: 0.75rem;
  background: #050505;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.seat-map-fit {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.seat-map {
  --seat: 28px;
  --gap: 3px;
  --row-label: 36px;
  width: max-content;
  margin: 0 auto;
  user-select: none;
  color: #ddd;
}

.map-help {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.seat-map__sides {
  display: flex;
  justify-content: space-between;
  padding: 0 var(--row-label);
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #f0f0f0;
}

.seat-map__zone {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  padding: 0.55rem 0.75rem;
  background: #3a3a3a;
  border: 1px solid #5a5a5a;
  border-radius: 2px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: #fff;
}

.seat-map__grid {
  display: grid;
  gap: var(--gap);
  align-items: center;
  justify-items: center;
}

.seat-map__row-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #e8e8e8;
  line-height: 1;
  width: var(--row-label);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.seat-map__row-label.is-blank { visibility: hidden; }
.seat-map__row-label small {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #9a9a9a;
  margin-bottom: 1px;
}

.seat {
  width: var(--seat);
  height: var(--seat);
  border: 0;
  padding: 0;
  border-radius: 3px;
  background: var(--seat-free);
  color: #0d2818;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.seat--numbered {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--seat-font, 0.78rem);
  font-weight: 800;
  line-height: 1;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.seat:hover:not(:disabled) {
  transform: scale(1.14);
  box-shadow: 0 0 0 2px rgba(61, 154, 95, 0.9);
}

.seat.is-selected {
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(61, 154, 95, 0.85);
}
.seat.is-sold,
.seat.is-held {
  background: var(--seat-sold) !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 1;
}
.seat.is-held { background: var(--seat-held) !important; }
.seat.is-blocked,
.seat.is-admin-only {
  background: var(--seat-blocked) !important;
  color: #1a140b !important;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(226, 200, 137, 0.65);
  font-weight: 700;
}
.seat.is-admin-reserved:not(.is-selected) {
  background: var(--seat-admin) !important;
  color: #1a140b !important;
  box-shadow: 0 0 0 2px rgba(226, 200, 137, 0.95);
  opacity: 1;
}

/* Posti accessibili (come piantina ufficiale) — blu, non verde */
.seat.seat--accessible {
  background: var(--seat-accessible) !important;
  color: #0b2a3d !important;
}
.seat.seat--accessible.is-sold,
.seat.seat--accessible.is-held {
  background: var(--seat-sold) !important;
  color: #fff !important;
}
.seat.seat--accessible.is-blocked,
.seat.seat--accessible.is-admin-only {
  background: var(--seat-blocked) !important;
  color: #1a140b !important;
}
.seat.seat--accessible.is-selected {
  background: #ffffff !important;
  color: #0b2a3d !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(158, 201, 232, 0.95);
}

.seat.is-empty {
  background: transparent;
  pointer-events: none;
  cursor: default;
  color: transparent;
}

.stage-bar {
  margin-top: 1.15rem;
  margin-left: var(--row-label);
  margin-right: var(--row-label);
  text-align: center;
  background: #c8c2b8;
  color: #111;
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  border: 1px solid #9a948a;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}
.swatch-free { background: var(--seat-free); }
.swatch-selected { background: #ffffff; box-shadow: inset 0 0 0 1px #3d9a5f; }
.swatch-sold { background: var(--seat-sold); }
.swatch-reduced { background: #9a958c; }
.swatch-accessible { background: var(--seat-accessible); }
.swatch-admin { background: var(--seat-blocked); box-shadow: inset 0 0 0 1px rgba(226, 200, 137, 0.8); }

.cart h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.cart-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-bar__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
}

.cart-bar__total {
  color: var(--gold-soft);
  font-weight: 700;
}

.cart-bar__timer {
  flex-basis: 100%;
  margin: 0 !important;
  font-size: 0.82rem;
}

.cart-bar__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.65rem 0.85rem;
  min-height: 2.6rem;
}

.cart-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cart-panel__title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.event-banner--compact {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 0 0.65rem;
  align-items: center;
}
.event-banner--compact.event-banner--with-poster {
  grid-template-columns: 52px 1fr;
}
.event-banner--compact .event-poster {
  width: 52px;
  margin: 0;
}
.event-banner--compact h1 {
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  margin: 0;
}

.page-booking {
  overflow-x: hidden;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-height: 280px;
  overflow: auto;
}

.cart-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.cart-list .price { color: var(--gold-soft); }

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.cart-timer {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.cart-timer.is-urgent { color: #efb0a5; }

.form-stack {
  display: grid;
  gap: 0.9rem;
}

.form-stack label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0f0d0b;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.alert-error { background: rgba(196,92,74,0.15); border: 1px solid rgba(196,92,74,0.4); color: #efb0a5; }
.alert-ok { background: rgba(111,158,122,0.15); border: 1px solid rgba(111,158,122,0.4); color: #b8d7c0; }
.alert-info { background: rgba(198,163,90,0.12); border: 1px solid rgba(198,163,90,0.35); color: var(--gold-soft); }

.muted { color: var(--muted); }
.page-plain {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.install-panel { width: min(480px, 100%); }

.confirm-card {
  width: min(640px, 100%);
  margin: 1.5rem auto 5rem;
  animation: rise 0.6s ease both;
}

.confirm-card h1,
.ticket-title {
  font-family: var(--font-display);
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.2;
}

.ticket-page .wrap {
  width: min(var(--max), calc(100% - 1.25rem));
}

.ticket-code {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  margin: 0.35rem 0 0.85rem;
  word-break: break-all;
}

.ticket-brand {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.ticket-when,
.ticket-who {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.ticket-status { margin: 0 0 0.25rem; font-size: 0.9rem; }

.ticket-mobile-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ticket-qr-wrap {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 0;
}

.ticket-qr-img {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
  background: #fff;
}

.ticket-qr-hint {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: #444;
  font-weight: 600;
}

.ticket-checked { margin-top: 0.75rem !important; text-align: left; }

.ticket-seats { margin: 1rem 0 !important; }

.ticket-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
  position: sticky;
  bottom: 0.75rem;
  z-index: 20;
  padding: 0.65rem;
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.ticket-actions .btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 0.75rem;
}

.ticket-actions .btn-ghost:last-child {
  grid-column: 1 / -1;
}

.ticket-pdf-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .ticket-mobile-stack {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .ticket-qr-wrap { flex: 0 0 auto; }
  .ticket-meta { flex: 1; min-width: 0; }
  .ticket-qr-img { width: 220px; }
  .ticket-actions {
    display: flex;
    flex-wrap: wrap;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    backdrop-filter: none;
  }
  .ticket-actions .btn-ghost:last-child { grid-column: auto; }
  .confirm-card { margin: 3rem auto; }
}

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .site-header,
  .site-footer,
  .grain,
  .no-print,
  .ticket-actions,
  .ticket-pdf-hint {
    display: none !important;
  }
  .ticket-page {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }
  #ticket-print {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
    color: #111 !important;
  }
  .ticket-code { color: #111 !important; }
  .ticket-qr-wrap { border-color: #ccc; }
  .ticket-mobile-stack { flex-direction: row; }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th { color: var(--muted); font-weight: 600; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--line);
}
.badge-pending { color: var(--gold-soft); }
.badge-confirmed { color: #b8d7c0; }
.badge-cancelled { color: #efb0a5; }

.admin-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.empty-state {
  padding: 2rem 0;
  color: var(--muted);
}

.pay-options {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.pay-options legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.pay-option {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  cursor: pointer;
  color: var(--ink) !important;
}
.pay-option input { margin-top: 0.25rem; }

@media (max-width: 720px) {
  .seat-map { --seat: 22px; --gap: 2px; --row-label: 30px; }
  .seat--numbered { font-size: 0.65rem; }
  .seat-map__zone { font-size: 0.75rem; letter-spacing: 0.2em; padding: 0.45rem; }
  .stage-bar { font-size: 0.85rem; letter-spacing: 0.2em; padding: 0.7rem; }
  .event-row,
  .event-row--poster { grid-template-columns: 1fr; }
  .event-row__poster { width: 140px; }
  .event-banner { grid-template-columns: 1fr; }
  .nav { gap: 0.8rem; font-size: 0.85rem; }
}

/* —— Adaptive mobile (stesso look, solo layout) —— */
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.map-scroll-hint {
  display: none;
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: #9a9a9a;
  text-align: center;
}

input, select, textarea, button {
  font-size: 1rem;
}
.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px; /* evita zoom iOS */
}

@media (max-width: 860px) {
  .site-header__inner,
  .site-footer__inner,
  .wrap,
  .hero__content {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .site-header__inner {
    flex-wrap: wrap;
    min-height: 3.6rem;
    padding: 0.35rem 0;
    gap: 0.5rem;
  }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 0 0.65rem;
    border-top: 1px solid var(--line);
  }
  body.nav-open .nav { display: flex; }
  .nav a {
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1rem;
  }

  .hero {
    min-height: min(78vh, 640px);
  }
  .hero__content {
    margin-bottom: max(1.75rem, env(safe-area-inset-bottom));
    text-align: center;
  }
  .hero__lead {
    font-size: 1rem;
    margin-inline: auto;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
    justify-items: stretch;
  }
  .hero__actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    white-space: normal;
  }

  .section { padding: 2.75rem 0; }
  .section__head { margin-bottom: 1.35rem; }

  .photo-band { min-height: clamp(200px, 58vw, 360px); }

  .event-row {
    gap: 0.85rem;
    padding: 1.1rem 0;
  }
  .event-row--poster {
    grid-template-columns: 88px 1fr;
    align-items: start;
  }
  .event-row__poster { width: 88px; }
  .event-row .btn,
  .event-row a.btn,
  .event-row__cta {
    grid-column: 1 / -1;
    width: 100%;
  }
  .event-row__cta .btn {
    width: 100%;
    min-height: 2.75rem;
  }

  .booking-layout {
    padding: 0.5rem 0 5.5rem;
    gap: 0.75rem;
    display: flex;
    flex-direction: column;
  }

  .booking-map { order: 1; }
  .booking-cart { order: 2; }

  .booking-wrap {
    width: 100%;
    max-width: 100%;
    padding-inline: 0.4rem;
    box-sizing: border-box;
  }

  .map-shell {
    padding: 0.4rem 0.15rem;
    overflow: hidden;
    max-width: 100%;
  }

  .seat-map-fit {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .seat-map {
    --seat: 14px;
    --gap: 1px;
    --row-label: 16px;
    --seat-font: 8px;
  }
  .seat--numbered { font-size: var(--seat-font, 0.6rem); }
  .seat-map__sides { font-size: 0.72rem; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
  .seat-map__row-label { font-size: 0.65rem; font-weight: 800; }
  .seat-map__zone { font-size: 0.72rem; padding: 0.4rem; margin: 0.25rem 0; }
  .stage-bar {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    padding: 0.55rem;
    letter-spacing: 0.16em;
  }

  .panel.cart,
  .booking-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    margin: 0;
    border-radius: 14px 14px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -8px 28px rgba(0,0,0,0.45);
    padding: 0.85rem 0.85rem max(0.85rem, env(safe-area-inset-bottom));
    max-height: 42vh;
    overflow: auto;
    background: rgba(18, 15, 13, 0.97);
  }

  .booking-cart .cart-panel {
    display: none;
  }

  .booking-cart.is-checkout-open {
    max-height: min(88vh, 720px);
  }

  .booking-cart.is-checkout-open .cart-panel {
    display: block;
  }

  .booking-cart.is-checkout-open .cart-list {
    max-height: 120px;
  }

  .panel.cart .btn {
    min-height: 2.75rem;
    width: 100%;
  }

  body.checkout-open {
    overflow: hidden;
  }

  .site-footer {
    padding: 1.75rem 0 max(2rem, env(safe-area-inset-bottom));
  }
  .site-footer__inner {
    flex-direction: column;
    gap: 0.85rem;
  }
}

@media (max-width: 420px) {
  .seat-map {
    --seat: 18px;
    --row-label: 24px;
  }
  .brand__name { font-size: 1.15rem; }
  .hero__brand { font-size: clamp(2.35rem, 12vw, 3.2rem); }
}

/* Modale donazione PayPal post-checkout */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
}
.pay-modal[hidden] { display: none !important; }
.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.78);
  backdrop-filter: blur(8px);
}
.pay-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  background: var(--panel, #14110f);
  border: 1px solid var(--line, rgba(244, 239, 230, 0.12));
  border-radius: 18px;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}
.pay-modal__eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-soft, #e2c889);
}
.pay-modal__title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.55rem;
  font-weight: 550;
}
.pay-modal__amount {
  margin: 0.85rem 0 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-soft, #e2c889);
}
.pay-modal__text {
  margin: 0.75rem 0 0;
  color: var(--muted, #9e958a);
  font-size: 0.95rem;
  line-height: 1.45;
}
.pay-modal__code { margin: 0.85rem 0 0; font-size: 0.85rem; }
.pay-modal__actions {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
}
.pay-modal__actions .btn {
  width: 100%;
  min-height: 46px;
}
body.pay-modal-open { overflow: hidden; }



/* Filarmonica contacts + WhatsApp */
.btn-whatsapp {
  background: #1faa55;
  color: #fff !important;
  border-color: #1faa55;
}
.btn-whatsapp:hover { filter: brightness(1.05); }

.section--contacts { padding-bottom: 4rem; }
.contacts-card {
  background: rgba(22, 19, 17, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem 1.5rem 2rem;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}
@media (min-width: 900px) {
  .contacts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.contact-tile {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0,0,0,0.25);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.contact-tile:hover {
  border-color: rgba(226, 200, 137, 0.55);
  transform: translateY(-1px);
}
.contact-tile__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact-tile strong { font-size: 1.02rem; word-break: break-word; }
.contact-tile--wa {
  background: rgba(31, 170, 85, 0.18);
  border-color: rgba(31, 170, 85, 0.45);
}

.wa-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border-radius: 999px;
  background: #25d366;
  color: #06240f !important;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.wa-fab:hover { filter: brightness(1.05); }
.wa-fab__icon { display: inline-flex; }
.wa-fab__text { display: none; }

@media (max-width: 800px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 19, 17, 0.72);
  padding: 0.85rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold-soft);
  font-weight: 500;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0.75rem 0 0.15rem;
  color: rgba(244, 239, 230, 0.82);
  line-height: 1.55;
}
.faq-item a { color: var(--gold-soft); }
