/* ===========================================================
   Piacere DiVino — XII Edizione
   Foldout festival program (libretto), established-world build.
   =========================================================== */

:root {
  /* ---- Palette: drenched plum/magenta night, gold linework ---- */
  --ink: #170b26;
  --plum-950: #1c0e2c;
  --plum-900: #26113a;
  --plum-800: #341a4c;

  --gold-500: #c08f3a;
  --gold-400: #d9a94b;
  --gold-300: #eac479;
  --gold-100: #f6e6c4;

  --cream-50: #faf4e7;
  --cream-100: #f1e3c9;

  --maroon: #a3284c;
  --olive: #74803f;

  --rb-red: #d1402f;
  --rb-orange: #e08a2e;
  --rb-yellow: #eec346;
  --rb-green: #337d55;
  --rb-blue: #2f7fae;
  --rb-indigo: #4a3f7a;

  /* ---- Type ---- */
  --font-display: "FT Milky", "Cinzel Var", "Cinzel", "Georgia", serif;
  --font-body: "Archivo Var", "Archivo", system-ui, sans-serif;

  /* ---- Hero overlay ---- */
  --overlay-purple: rgba(43, 15, 66, 0.68);

  /* ---- Rhythm ---- */
  --edge: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body, h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

body {
  background: var(--plum-950);
  color: var(--cream-50);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Home page only: lock touch panning to vertical, so pinch-zoom in/out on
   mobile can never leave the page free to pan/bounce horizontally. Scoped
   to .page-home (index.html) so it never touches the map page's own
   pan/pinch behavior on mappa.html. */
body.page-home {
  touch-action: pan-y;
}

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-300);
  color: var(--ink);
  padding: 0.75em 1.25em;
  font-weight: 700;
  z-index: 200;
}
.skip-link:focus {
  left: var(--edge);
  top: var(--edge);
}

/* ---------- Type helpers ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--gold-300);
  text-wrap: balance;
}
.body-lg {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  max-width: 62ch;
  line-height: 1.7;
  letter-spacing: 0.015em;
  color: var(--cream-100);
}
.note {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--gold-100);
  opacity: 0.85;
  font-style: italic;
}

/* Breathing room: consistent vertical rhythm between stacked text elements */
.about__text > * + *,
.merch__text > * + *,
.footer__info > * + *,
.section__head > * + *,
.section__inner--narrow > * + * {
  margin-top: 1.1rem;
}

.section__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--edge);
}
.section__inner--narrow { max-width: 720px; text-align: center; }
.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
}
.section__head { margin-bottom: clamp(2rem, 5vw, 3rem); max-width: 62ch; margin-inline: auto; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.1rem;
  padding: 0.5em 1.1em;
  border: 1px solid var(--gold-400);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--gold-300);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s var(--ease-out-expo), background-color 0.25s;
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--ink);
  box-shadow: 0 8px 22px -8px rgba(217, 169, 75, 0.55);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(217, 169, 75, 0.7); }
.btn--gold:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 14px -6px rgba(217, 169, 75, 0.6);
  transition-duration: 0.1s;
}
.btn--ghost {
  border: 1.5px solid var(--gold-400);
  color: var(--gold-200, var(--gold-300));
}
.btn--ghost:hover { background: rgba(217, 169, 75, 0.12); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0) scale(0.96); transition-duration: 0.1s; }

/* ---------- Link-arrow: the quiet secondary action (text + underline + arrow) ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-100);
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(246, 230, 196, 0.4);
  transition: gap 0.3s var(--ease-out-expo), border-color 0.25s, color 0.25s, opacity 0.1s;
}
.link-arrow:hover { gap: 0.8em; border-color: var(--gold-100); color: var(--gold-300); }
.link-arrow:active { opacity: 0.7; transition-duration: 0.1s; }
.link-arrow svg { flex: none; }

/* ---------- Reveal: a developing-photograph rise, staggered by group ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo),
    filter 0.7s var(--ease-out-expo);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ---------- Section-break flourish: a thin gold rule that draws itself in ---------- */
.section-break {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px;
  position: relative;
  z-index: 3;
}
.section-break::before {
  content: "";
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  transition: width 1.1s var(--ease-out-expo);
}
.section-break.is-visible::before { width: min(280px, 60%); }

/* ---------- Native cross-document view transitions (page nav) ---------- */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: pdv-fade-out 0.45s var(--ease-out-expo) both;
}
::view-transition-new(root) {
  animation: pdv-fade-in 0.5s var(--ease-out-expo) both;
}
@keyframes pdv-fade-out {
  to { opacity: 0; transform: scale(0.99) translateY(-6px); }
}
@keyframes pdv-fade-in {
  from { opacity: 0; transform: scale(1.01) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { filter: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .hero__logo, .hero__title, .hero__date, .hero__place, .hero__tagline, .hero__ctas {
    animation: none;
  }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 14, 44, 0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(217, 169, 75, 0);
  transition: background-color 0.4s var(--ease-out-expo), backdrop-filter 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}
.site-header.is-scrolled {
  background: rgba(28, 14, 44, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(217, 169, 75, 0.14);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.55);
}
.site-header__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0.85rem var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__mark { border-radius: 50%; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--cream-50);
  letter-spacing: 0.02em;
}
.brand__word em { color: var(--gold-300); font-style: normal; }

.site-nav {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream-100);
  position: relative;
  padding-block: 0.3rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--gold-300); }
.site-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-toggle {
  border: 1px solid rgba(217, 169, 75, 0.5);
  color: var(--gold-300);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.4em 0.75em;
  border-radius: 999px;
}
.lang-toggle:hover { background: rgba(217, 169, 75, 0.12); }
.nav-toggle { display: none; padding: 0.3rem; color: var(--cream-50); }
.nav-toggle__bar { transform-origin: 12px 12px; transition: transform 0.3s var(--ease-out-expo), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--top { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar--bot { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 62px 0 auto 0;
    flex-direction: column;
    background: var(--plum-900);
    border-bottom: 1px solid rgba(217, 169, 75, 0.2);
    padding: 1.2rem var(--edge) 1.6rem;
    gap: 0.2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .site-nav a { padding-block: 0.65rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 16vh, 9rem) var(--edge) 5rem;
  overflow: hidden;
  background: var(--plum-950);
}
.hero__bg {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  object-position: 50% 42%;
  filter: blur(3px) saturate(105%) brightness(0.9);
  transform: scale(1.04);
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--overlay-purple) 0%, var(--overlay-purple) 55%, var(--plum-950) 100%);
  z-index: 1;
}
/* Starfield: still used by the plain-gradient .page-hero (mappa.html); the
   homepage .hero moved to a photographic background and no longer needs it. */
.hero__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, var(--gold-300) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 62%, var(--gold-200, #eac479) 0, transparent 60%),
    radial-gradient(2px 2px at 82% 22%, var(--gold-300) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 68%, var(--gold-300) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 12%, var(--gold-300) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 82%, var(--gold-300) 0, transparent 60%);
  opacity: 0.55;
}
.hero__rainbow {
  position: absolute;
  left: 50%;
  bottom: -46%;
  width: min(1100px, 150vw);
  aspect-ratio: 1 / 0.5;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.4;
  z-index: 1;
}
.hero__rainbow::before,
.hero__rainbow span {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-style: solid;
  border-bottom: 0;
}
.hero__rainbow::before { border-width: 10px; border-color: var(--rb-indigo); }
.hero__rainbow span { display: block; }
.hero__rainbow span:nth-child(1) { inset: 26px 26px 0 26px; border-width: 9px; border-color: var(--rb-blue); }
.hero__rainbow span:nth-child(2) { inset: 50px 50px 0 50px; border-width: 9px; border-color: var(--rb-green); }
.hero__rainbow span:nth-child(3) { inset: 74px 74px 0 74px; border-width: 9px; border-color: var(--rb-yellow); }
.hero__rainbow span:nth-child(4) { inset: 98px 98px 0 98px; border-width: 9px; border-color: var(--rb-orange); }
.hero__rainbow span:nth-child(5) { inset: 122px 122px 0 122px; border-width: 9px; border-color: var(--rb-red); }

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
}

.hero__logo {
  border-radius: 50%;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,0.6);
}
.hero__title {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--gold-300);
  text-wrap: balance;
}
.hero__title em { color: var(--cream-50); font-style: normal; }
.hero__date {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: var(--gold-300);
  letter-spacing: 0.02em;
}
.hero__place {
  margin-top: 0.7rem;
  font-size: 1rem;
  color: var(--cream-100);
  letter-spacing: 0.04em;
}
.hero__tagline {
  margin-top: 1.5rem;
  max-width: 46ch;
  color: var(--cream-50);
  font-size: 1.05rem;
  letter-spacing: 0.015em;
  line-height: 1.7;
  opacity: 0.92;
}
.hero__ctas {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Hero load-in: fade + subtle upward settle, once, on arrival ---------- */
@keyframes hero-settle {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__logo,
.hero__title,
.hero__date,
.hero__place,
.hero__tagline,
.hero__ctas {
  animation: hero-settle 0.7s var(--ease-out-expo) backwards;
}
.hero__logo { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.14s; }
.hero__date { animation-delay: 0.22s; }
.hero__place { animation-delay: 0.28s; }
.hero__tagline { animation-delay: 0.34s; }
.hero__ctas { animation-delay: 0.42s; }

/* =========================================================
   OFFICIAL POSTER — transitional section, layered over the hero seam
   ========================================================= */
.section--poster {
  position: relative;
  z-index: 3;
  margin-top: clamp(-56px, -5vh, -24px);
  padding-block: 0 clamp(3rem, 7vw, 5rem);
  background: transparent;
  overflow: visible;
}
.poster-transition__glow {
  position: absolute;
  left: 50%;
  top: -6%;
  width: min(900px, 140vw);
  aspect-ratio: 1 / 0.7;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217, 169, 75, 0.16), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.poster-transition {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.poster-official__frame {
  border-radius: var(--radius);
  padding: 8px;
  background: linear-gradient(155deg, var(--gold-400), var(--gold-500) 60%, var(--gold-400));
  box-shadow: 0 34px 70px -18px rgba(0,0,0,0.65);
  transform: rotate(-2.5deg);
  transition: transform 0.5s var(--ease-out-expo);
}
.poster-official__frame img {
  width: min(300px, 62vw);
  height: auto;
  display: block;
  border-radius: 12px;
}
.poster-transition figcaption {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--gold-100);
  opacity: 0.85;
}
@media (min-width: 861px) {
  .poster-transition { align-items: flex-end; text-align: right; margin-inline-end: 8%; }
  .poster-official__frame:hover { transform: rotate(0deg) scale(1.02); }
}

.scroll-cue {
  position: absolute;
  bottom: clamp(1.2rem, 4vh, 2.2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bob 2.6s ease-in-out infinite;
}
.scroll-cue__ring {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  animation: spin 14s linear infinite;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.6);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* =========================================================
   PAGE HERO (secondary pages, e.g. Mappa e Indicazioni)
   ========================================================= */
.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.15;
  letter-spacing: 0.035em;
  color: var(--gold-300);
  text-wrap: balance;
}
.page-hero {
  position: relative;
  padding: clamp(6.5rem, 16vh, 9rem) var(--edge) clamp(3rem, 7vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--plum-800) 0%, var(--plum-950) 62%), var(--plum-950);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.page-hero .body-lg { margin-inline: auto; margin-top: 1rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-100);
  opacity: 0.85;
  margin-bottom: 1.3rem;
  transition: opacity 0.25s, transform 0.25s var(--ease-out-expo);
}
.back-link:hover { opacity: 1; transform: translateX(-3px); }

/* =========================================================
   ABOUT / STASERA
   ========================================================= */
.section--about { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section__inner--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.section__inner--split-rev { direction: rtl; }
.section__inner--split-rev > * { direction: ltr; }

.about__text,
.merch__text {
  text-align: center;
}
.about__text .body-lg,
.merch__text .body-lg {
  margin-inline: auto;
}

/* ---------- Chips: scannable practical facts, pulled out of prose ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.55em 1em;
  border-radius: 12px;
  background: rgba(217, 169, 75, 0.1);
  border: 1px solid rgba(217, 169, 75, 0.25);
  color: var(--cream-100);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.chip__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-300);
  line-height: 1;
}
.chip__icon { color: var(--gold-300); flex: none; }
.chip__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--plum-800);
  border: 1px solid rgba(217, 169, 75, 0.5);
  flex: none;
}

@media (max-width: 860px) {
  .section__inner--split { grid-template-columns: 1fr; }
  .section__inner--split-rev { direction: ltr; }
  .section__inner--split-rev .merch__figure { order: -1; }
}

/* =========================================================
   MAP TEASER (home page card linking to the dedicated page)
   ========================================================= */
.section--map-teaser { background: var(--plum-900); }
.map-teaser {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(217, 169, 75, 0.3);
  box-shadow: 0 30px 65px -22px rgba(0,0,0,0.55);
  min-height: 360px;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}
.map-teaser:hover,
.map-teaser:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -22px rgba(0,0,0,0.65);
}
.map-teaser__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 0.9s var(--ease-out-expo);
}
.map-teaser:hover .map-teaser__img,
.map-teaser:focus-visible .map-teaser__img { transform: scale(1.05); }
.map-teaser__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,14,44,0.15) 0%, rgba(28,14,44,0.55) 55%, rgba(28,14,44,0.92) 100%);
}
.map-teaser__content {
  position: relative;
  z-index: 2;
  padding: clamp(1.6rem, 4vw, 3rem);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.map-teaser__content .h2 { margin-top: 0.7rem; }
.map-teaser__content .body-lg { margin-top: 0.5rem; max-width: 52ch; }
.map-teaser__cta {
  margin-top: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  width: fit-content;
  font-weight: 700;
  color: var(--gold-300);
  padding-bottom: 2px;
  border-bottom: 1.5px solid rgba(217, 169, 75, 0.5);
  transition: gap 0.3s var(--ease-out-expo), border-color 0.3s;
}
.map-teaser:hover .map-teaser__cta,
.map-teaser:focus-visible .map-teaser__cta {
  gap: 0.8em;
  border-color: var(--gold-300);
}

/* =========================================================
   MAP
   ========================================================= */
.section--map { background: var(--plum-900); }

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(217, 169, 75, 0.25);
  box-shadow: 0 30px 70px -24px rgba(0,0,0,0.6);
  background: var(--ink);
}
.map-viewer {
  width: 100%;
  aspect-ratio: 3508 / 2480;
  max-height: 74vh;
  background: var(--ink);
  /* pan-y (not none): reserves single-finger vertical swipe for native page
     scroll so it can never get trapped inside the viewer; pinch-zoom and
     horizontal/diagonal drag-to-pan stay available to OpenSeadragon's touch
     handlers. Same trade-off embedded Google Maps makes. */
  touch-action: pan-y;
}
.map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--ink);
  color: var(--gold-200, var(--gold-300));
  font-size: 0.9rem;
  transition: opacity 0.4s, visibility 0.4s;
}
.map-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.spinner {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(217, 169, 75, 0.25);
  border-top-color: var(--gold-300);
  animation: spin 0.9s linear infinite;
}
.map-controls {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 5;
}
.map-controls button {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: rgba(28, 14, 44, 0.82);
  border: 1px solid rgba(217, 169, 75, 0.35);
  color: var(--gold-300);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}
.map-controls button:hover { background: rgba(217, 169, 75, 0.18); transform: translateY(-1px); }

.stand-list-block { margin-top: 1.6rem; }
.stand-list-toggle {
  font-weight: 700;
  color: var(--gold-300);
  border-bottom: 1.5px dashed var(--gold-400);
  padding-bottom: 0.15em;
}
.stand-list-toggle:hover { color: var(--gold-100); }
.stand-list-wrap { margin-top: 1.2rem; }
.stand-list-note { font-size: 0.85rem; color: var(--cream-100); opacity: 0.7; margin-bottom: 1rem; }
.stand-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.6rem 1.4rem;
}
.stand-item {
  display: flex;
  gap: 0.7rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stand-item__num {
  flex: none;
  width: 1.8em; height: 1.8em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 169, 75, 0.16);
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 700;
}
.stand-item__body { display: flex; flex-direction: column; gap: 0.1rem; }
.stand-item__name { font-weight: 700; font-size: 0.92rem; color: var(--cream-50); }
.stand-item__dish { font-size: 0.85rem; color: var(--cream-100); opacity: 0.75; }

/* =========================================================
   IL PROGRAMMA — silkscreen bill
   ========================================================= */
.section--lineup {
  position: relative;
  background: var(--maroon);
  color: var(--cream-50);
  overflow: hidden;
}
.lineup-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.4px);
  background-size: 6px 6px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.section--lineup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28,14,44,0.15), transparent 30%, transparent 70%, rgba(28,14,44,0.25));
}
.h2--poster { color: var(--cream-50); text-shadow: 3px 3px 0 rgba(28,14,44,0.35); }
.section--lineup .body-lg { color: var(--cream-100); }

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  padding-left: 2rem;
  max-width: 760px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--cream-50), rgba(250, 244, 231, 0.25));
  opacity: 0.5;
}
.timeline__item { position: relative; }
.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 1.35rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cream-50);
  box-shadow: 0 0 0 4px var(--maroon), 0 0 0 5px rgba(250, 244, 231, 0.4);
}
.timeline__item--finale .timeline__marker {
  background: var(--gold-300);
  box-shadow: 0 0 0 4px var(--maroon), 0 0 0 5px rgba(234, 196, 121, 0.6);
}
.timeline__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  background: rgba(28, 14, 44, 0.26);
  border: 1px solid rgba(250, 244, 231, 0.16);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.timeline__item--finale .timeline__card {
  background: rgba(28, 14, 44, 0.4);
  border-color: rgba(217, 169, 75, 0.4);
}
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}
.timeline__meta > * + *::before { content: "·"; margin-right: 0.5em; opacity: 0.5; }
.timeline__time,
.timeline__location {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.timeline__time { color: var(--gold-300); }
.timeline__location { color: var(--cream-100); opacity: 0.7; }
.timeline__name {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.2vw, 1.8rem);
  letter-spacing: 0.02em;
}
.timeline__detail {
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--cream-100);
  opacity: 0.85;
}
.timeline__mood {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--gold-100);
  opacity: 0.9;
}

@media (min-width: 640px) {
  .timeline { padding-left: 2.6rem; }
  .timeline::before { left: 9px; }
  .timeline__marker { left: -2.6rem; width: 19px; height: 19px; }
  .timeline__card { padding: 1.5rem 1.8rem; }
}

/* =========================================================
   MERCH
   ========================================================= */
.section--merch { background: var(--plum-950); }
.merch__figure {
  position: relative;
  background: var(--cream-50);
  padding: clamp(1.6rem, 3.4vw, 2.4rem) clamp(1rem, 2.6vw, 1.8rem);
  border-radius: var(--radius);
  border: 1px solid rgba(217, 169, 75, 0.4);
  box-shadow: 0 34px 70px -22px rgba(0,0,0,0.6);
  transform: rotate(-1.5deg);
  transition: transform 0.5s var(--ease-out-expo);
}
.merch__figure:hover { transform: rotate(0deg) scale(1.015); }
.merch__tag {
  position: absolute;
  top: 1.1rem;
  right: -0.4rem;
  z-index: 1;
  padding: 0.4em 1em;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-radius: 999px 0 0 999px;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,0.4);
  transform: rotate(3deg);
}
.merch__figure img {
  margin-inline: auto;
}

/* =========================================================
   CONTEST (landing CTA section)
   ========================================================= */
.section--contest {
  background: radial-gradient(120% 140% at 50% 0%, var(--plum-800), var(--plum-950) 70%);
  text-align: center;
}
.section--contest .h2 { margin-bottom: 0.9rem; }
.section--contest .body-lg { margin-inline: auto; }
.section--contest .note { display: block; margin-top: 0.6rem; opacity: 0.75; }
.section--contest .btn { margin-top: 1.6rem; }

.contest-countdown {
  margin-top: 1.4rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 169, 75, 0.35);
  background: rgba(217, 169, 75, 0.07);
}
.contest-countdown__label {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--cream-100);
  opacity: 0.85;
}
.contest-countdown__value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--gold-300);
}
.contest-countdown[data-state="closed"] {
  border-color: rgba(163, 40, 76, 0.5);
  background: rgba(163, 40, 76, 0.1);
}
.contest-countdown[data-state="closed"] .contest-countdown__label {
  color: var(--cream-50);
  opacity: 1;
}
.section--contest .btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
  transform: none !important;
}

/* =========================================================
   DIRECTIONS & PARKING (Mappa e Indicazioni page)
   ========================================================= */
.section--directions { background: var(--plum-950); }

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.route-card {
  position: relative;
  background: var(--plum-800);
  border: 1px solid rgba(217, 169, 75, 0.22);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  box-shadow: 0 20px 45px -24px rgba(0,0,0,0.55);
}
.route-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--gold-300);
  margin-bottom: 0.7rem;
}
.route-card p {
  font-size: 0.95rem;
  color: var(--cream-100);
  line-height: 1.6;
}
.route-card__time {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--gold-100) !important;
  font-size: 0.88rem !important;
  font-style: italic;
}
.route-card--arce {
  background: linear-gradient(160deg, var(--maroon), var(--plum-800) 75%);
  border-color: rgba(217, 169, 75, 0.4);
}
.route-card__flourish { display: block; color: var(--gold-400); margin-bottom: 0.6rem; opacity: 0.85; }

.parking-card {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--plum-900);
  border: 1px solid rgba(217, 169, 75, 0.22);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 1.7rem);
}
.parking-card__icon { flex: none; color: var(--gold-300); margin-top: 0.2rem; }
.parking-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--gold-300);
  margin-bottom: 0.4rem;
}
.parking-card p { font-size: 0.95rem; color: var(--cream-100); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer__directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--gold-300);
  border-bottom: 1.5px solid rgba(217, 169, 75, 0.5);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.25s, transform 0.25s var(--ease-out-expo);
}
.footer__directions-link:hover { border-color: var(--gold-300); transform: translateX(3px); }

.site-footer {
  background: var(--ink);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
  border-top: 1px solid rgba(217, 169, 75, 0.18);
}
.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.footer__info { text-align: center; }
.footer__info .h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.8rem; }
.footer__info .body-lg { margin-bottom: 0.7rem; margin-inline: auto; }
.footer__social { display: flex; flex-direction: column; gap: 0.7rem; align-items: center; text-align: center; }
.footer__social-label { font-size: 0.85rem; color: var(--gold-100); opacity: 0.75; letter-spacing: 0.04em; }
.social-links { display: flex; gap: 0.7rem; }
.social-links a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(217, 169, 75, 0.35);
  color: var(--gold-300);
  transition: background 0.2s, transform 0.2s;
}
.social-links a:hover { background: rgba(217, 169, 75, 0.15); transform: translateY(-2px); }

.footer__bottom {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--cream-100);
  opacity: 0.7;
}
.footer__bottom img { border-radius: 50%; }

/* =========================================================
   Responsive tune-ups
   ========================================================= */
@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; width: 100%; }
  .hero__ctas .btn { width: 100%; }
}
