﻿:root {
  --ink: #201916;
  --muted: #6d625d;
  --paper: #fffaf3;
  --surface: #ffffff;
  --line: #eadfd2;
  --ember: #e84b2a;
  --ember-dark: #bd3219;
  --teal: #087f8c;
  --olive: #5f7b3f;
  --gold: #f3b63f;
  --charcoal: #161412;
  --blue: #325f91;
  --shadow: 0 20px 60px rgba(32, 25, 22, 0.12);
  color-scheme: light;
  font-family:
    "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 19em;
  }
}

@keyframes typingLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes downloadArrow {
  0%, 100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes blink {
  0%, 95% {
    border-right-color: #f7f3ed;
  }
  96%, 100% {
    border-right-color: transparent;
  }
}

@keyframes blinkLine {
  0%, 92% {
    border-right-color: #f7f3ed;
  }
  93%, 100% {
    border-right-color: transparent;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(255, 236, 222, 0.92), rgba(236, 244, 235, 0.88) 42%, rgba(255, 250, 243, 0.96)),
    var(--paper);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

main {
  position: relative;
  min-height: calc(100vh - 96px);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.app-footer {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: clamp(64px, 10vw, 128px);
  padding: 26px 12px 0;
  color: rgba(32, 25, 22, 0.42);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.app-footer span + span {
  color: rgba(32, 25, 22, 0.34);
  font-size: 0.66rem;
  font-weight: 650;
}

.topbar {
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 20;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  background: rgba(22, 20, 18, 0.82);
  color: #fffaf3;
  box-shadow: 0 18px 44px rgba(22, 20, 18, 0.2);
  backdrop-filter: blur(18px);
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.brand-mini img {
  width: 46px;
  height: 46px;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.brand-mini strong {
  display: grid;
  gap: 1px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
  white-space: normal;
}

.brand-mini strong span {
  display: block;
}

.premium-topbar .brand-mini strong span {
  display: block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #f7f3ed;
  animation: typingLine 1.1s steps(14, end) forwards, blinkLine 1.1s step-end forwards;
}

.premium-topbar .brand-mini strong span:nth-child(1) {
  animation-delay: 0.1s;
}

.premium-topbar .brand-mini strong span:nth-child(2) {
  animation-delay: 1.15s;
}

.premium-topbar .brand-mini strong span:nth-child(3) {
  animation-delay: 2.2s;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a,
.site-nav button,
.ghost-link,
.icon-button,
.notification-bell,
.install-button,
.primary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.site-nav a,
.site-nav button {
  color: rgba(255, 250, 243, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid transparent;
  background: transparent;
}

.site-nav a:hover,
.site-nav button:hover {
  border-color: rgba(255, 250, 243, 0.18);
  background: rgba(255, 250, 243, 0.1);
}

.site-nav a.is-active,
.site-nav button.is-active {
  border-color: rgba(243, 182, 63, 0.4);
  background: rgba(243, 182, 63, 0.16);
  color: white;
}

.app-view,
.app-view[hidden] {
  display: none !important;
}

.app-view.is-active {
  display: block !important;
  animation: viewReveal 0.28s ease both;
}

.topbar-actions,
.form-footer,
.filters,
.event-facts,
.staff-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-link,
.icon-button,
.install-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 250, 243, 0.08);
  color: inherit;
}

.notification-bell {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.08);
  color: inherit;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 3px auto;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.notification-bell.is-active {
  border-color: rgba(53, 173, 102, 0.34);
  background: rgba(39, 167, 95, 0.12);
  color: #58d287;
  box-shadow: none;
}

.notification-bell.is-active::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #35d07f;
  box-shadow: 0 0 0 2px rgba(13, 16, 15, 0.95);
}

.notification-bell.is-blocked {
  border-color: transparent;
  background: rgba(232, 75, 42, 0.12);
  color: #ff8a72;
}

.notification-bell.is-unavailable {
  opacity: 0.52;
  cursor: not-allowed;
}

.ghost-link.is-active {
  border-color: rgba(243, 182, 63, 0.42);
  background: rgba(243, 182, 63, 0.16);
  color: inherit;
}

.ghost-link.is-blocked {
  border-color: rgba(232, 75, 42, 0.28);
  background: rgba(232, 75, 42, 0.12);
  color: #ffd4c9;
}

.ghost-link.is-unavailable {
  opacity: 0.52;
  cursor: not-allowed;
}

.staff-topbar .notification-bell {
  margin-left: 0;
  box-shadow: none;
}

.staff-topbar .notification-bell:hover,
.staff-topbar .notification-bell:focus-visible {
  border-color: rgba(243, 182, 63, 0.22);
  background: rgba(243, 182, 63, 0.1);
}

.ghost-link.strong {
  border-color: rgba(255, 250, 243, 0.48);
  font-weight: 850;
}

.insta-orbit {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  position: relative;
  overflow: visible;
  flex: 0 0 auto;
  box-shadow: none;
}

.insta-orbit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 148, 51, 0.18), rgba(220, 39, 67, 0.22) 34%, rgba(188, 24, 136, 0.12) 58%, transparent 74%);
  transform: translate(-50%, -50%);
  filter: blur(8px);
  opacity: 1;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    filter 0.18s ease;
}

.insta-orbit:hover,
.insta-orbit:focus-visible {
  transform: translateY(-1px) scale(1.04);
  box-shadow: none;
}

.insta-orbit:hover::after,
.insta-orbit:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.16);
  filter: blur(9px);
}

.insta-orbit-text {
  display: none;
}

.insta-orbit-center {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
}

.insta-orbit-center svg {
  width: 36px;
  height: 36px;
  display: block;
  stroke: url(#instagramStroke);
  filter:
    drop-shadow(0 0 6px rgba(240, 148, 51, 0.16))
    drop-shadow(0 0 12px rgba(220, 39, 67, 0.2));
}

.icon-button {
  border-color: #d8cabd;
  background: white;
  color: var(--ink);
}

.install-button:not([hidden]) {
  display: inline-flex;
}

.primary-action {
  border: 1px solid rgba(255, 182, 157, 0.24);
  background: linear-gradient(180deg, #ef6240, #d84222);
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(232, 75, 42, 0.24);
}

.primary-action.large {
  min-width: 210px;
}

.site-nav a:hover,
.ghost-link:hover,
.icon-button:hover,
.notification-bell:hover,
.notification-bell:focus-visible,
.install-button:hover,
.primary-action:hover,
.mood-button:hover,
.small-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(32, 25, 22, 0.16);
}

.hero {
  padding: clamp(24px, 5vw, 54px);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.26), rgba(5, 5, 5, 0.14) 52%, rgba(5, 5, 5, 0.28)),
    url("sfondo ok.png");
  background-position: center 20%;
  background-size: cover;
  color: #fffaf3;
  box-shadow: 0 28px 76px rgba(22, 20, 18, 0.24);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.08) 52%, rgba(5, 5, 5, 0.18)),
    linear-gradient(180deg, rgba(5, 5, 5, 0.04), rgba(5, 5, 5, 0.34));
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(5, 5, 5, 0.38));
  z-index: 0;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 1;
  animation: revealUp 0.72s ease both;
}

.hero-event-meta {
  display: grid;
  gap: 10px;
  align-items: start;
}

.hero-event-line {
  width: fit-content;
  max-width: 100%;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.hero-event-dates {
  color: #fffaf3;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  line-height: 0.94;
}

.hero-event-place {
  color: #ffd371;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.hero-event-address {
  color: rgba(255, 250, 243, 0.9);
  font-size: clamp(0.98rem, 1.6vw, 1.16rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero-logo {
  display: none !important;
}

.brand-kicker,
.section-label {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(243, 182, 63, 0.16);
  color: #ffd371;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-kicker {
  background: rgba(255, 250, 243, 0.16);
  color: #fffaf3;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Archivo Black", "Arial Black", sans-serif;
}

h2 {
  margin-top: 8px;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-eyebrow {
  margin-top: 18px;
  color: rgba(255, 250, 243, 0.66);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}


.hero-countdown-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
  min-width: 0;
  margin-top: 38px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.82), rgba(14, 13, 12, 0.68));
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.16);
  animation: revealUp 0.82s ease 0.08s both;
  transform: translateY(18px);
}
.countdown-intro {
  display: grid;
  gap: 12px;
  align-content: start;
}

.live-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 127, 140, 0.24);
  color: #d9fbff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #42f5c5;
  box-shadow: 0 0 0 0 rgba(66, 245, 197, 0.55);
  animation: pulseDot 1.5s ease-out infinite;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 250, 243, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.countdown-heading {
  display: grid;
  gap: 8px;
}

.countdown-heading strong {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.countdown-heading span {
  color: #f3b63f;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-unit {
  position: relative;
  min-height: 90px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  background: rgba(20, 18, 16, 0.95);
  border-right: 1px solid rgba(255, 250, 243, 0.08);
  color: rgba(255, 250, 243, 0.8);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-transform: uppercase;
  padding: 12px 8px;
}

.countdown-unit:last-child {
  border-right: none;
}

.countdown-unit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.countdown-unit.seconds {
  background: rgba(20, 18, 16, 0.95);
  border-color: rgba(255, 250, 243, 0.08);
}

.countdown-grid strong {
  position: relative;
  color: #f7f3ed;
  font-variant-numeric: tabular-nums;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 2.8rem;
  line-height: 0.9;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
}

.countdown-grid strong.rolling {
  animation: rollNumber 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rollNumber {
  0% {
    opacity: 0;
    transform: translateY(-78%) rotateX(46deg);
  }

  58% {
    opacity: 1;
    transform: translateY(8%) rotateX(0deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 245, 197, 0.55);
  }

  100% {
    box-shadow: 0 0 0 9px rgba(66, 245, 197, 0);
  }
}

@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes viewReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / 3;
}

.hero-facts span,
.event-facts span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.16);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 850;
}

.hero-countdown-bar p {
  margin: 0;
  color: rgba(255, 250, 243, 0.76);
  font-size: 0.9rem;
  grid-column: auto;
}

.burger-progress {
  --burger-progress: 0%;
  --burger-progress-ratio: 0;
  --burger-firefly-left: 28px;
  --burger-progress-width: 0px;
  --progress-track-left: 32px;
  --progress-track-right: 64px;
  position: relative;
  grid-column: 1 / -1;
  height: 64px;
  margin-top: 10px;
  isolation: isolate;
  overflow: visible;
}

.burger-progress::before,
.burger-progress::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.burger-progress::before {
  left: var(--progress-track-left);
  right: var(--progress-track-right);
  top: 50%;
  z-index: 0;
  height: 13px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.28)),
    linear-gradient(90deg, rgba(255, 250, 243, 0.16), rgba(255, 250, 243, 0.08)),
    rgba(255, 250, 243, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 10px rgba(0, 0, 0, 0.42),
    0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
}

.burger-progress::after {
  left: var(--burger-firefly-left);
  top: 50%;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 18%, rgba(255, 225, 134, 0.7) 34%, rgba(232, 75, 42, 0.16) 62%, transparent 72%);
  filter: drop-shadow(0 0 5px rgba(255, 220, 130, 0.42));
  opacity: 0.82;
  transform: translate(-50%, -50%);
  animation: fireflyPulse 2.2s ease-in-out infinite;
}

.burger-progress-fill {
  position: absolute;
  left: var(--progress-track-left);
  right: auto;
  top: 50%;
  z-index: 1;
  width: var(--burger-progress-width);
  height: 13px;
  border: 1px solid rgba(255, 235, 180, 0.28);
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 42%),
    linear-gradient(90deg, #ffe38a 0%, #f5b643 26%, #ef7a2d 58%, #e84b2a 100%);
  box-shadow:
    0 0 24px rgba(232, 75, 42, 0.42),
    0 0 14px rgba(243, 182, 63, 0.34),
    inset 0 1px 0 rgba(255, 250, 243, 0.54),
    inset 0 -1px 8px rgba(113, 33, 10, 0.3);
  transform: translateY(-50%);
  transform-origin: left center;
  transition: width 0.8s cubic-bezier(0.2, 0.7, 0.22, 1);
}

.burger-progress-fill::before {
  content: "";
  position: absolute;
  inset: -10px -56px;
  background: linear-gradient(102deg, transparent 18%, rgba(255, 250, 220, 0.08) 34%, rgba(255, 255, 255, 0.8) 49%, rgba(255, 216, 112, 0.22) 59%, transparent 76%);
  mix-blend-mode: screen;
  opacity: 0.86;
  transform: translateX(-72%);
  animation: fireflySweep 3s cubic-bezier(0.42, 0, 0.22, 1) infinite;
}

.burger-progress-fill::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 2px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
  opacity: 0.72;
}

.burger-progress-emoji {
  position: absolute;
  top: 50%;
  left: clamp(22px, var(--burger-progress), calc(100% - 22px));
  z-index: 3;
  width: 58px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0;
  line-height: 1;
  box-shadow: none;
  filter: none;
  transform: translate(-50%, -50%);
  transition: left 0.8s linear;
}

.burger-progress-emoji::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 42px;
  height: 32px;
  border-radius: 19px 19px 9px 9px;
  background:
    radial-gradient(circle at 11px 7px, rgba(255, 244, 196, 0.96) 0 1.2px, transparent 1.7px),
    radial-gradient(circle at 20px 5px, rgba(255, 244, 196, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 29px 8px, rgba(255, 244, 196, 0.96) 0 1.1px, transparent 1.6px),
    radial-gradient(ellipse at 36% 10%, rgba(255, 255, 255, 0.4), transparent 34%),
    linear-gradient(180deg, #f5b85a 0 27%, #dc8b36 27% 35%, #7b3f25 35% 48%, #5b2e1f 48% 54%, #72a845 54% 63%, #f3c545 63% 72%, #c6552d 72% 83%, #e39945 83% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -2px 0 rgba(102, 43, 16, 0.24),
    0 7px 9px rgba(0, 0, 0, 0.34);
}

.burger-progress-emoji::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 38px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  filter: blur(2px);
  transform: translateX(-50%);
}

.burger-progress-flag {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 4;
  width: 48px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0;
  line-height: 1;
  filter: none;
  transform: translateY(-50%);
}

.burger-progress-flag::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  width: 3px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8efe3, #a79d91);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.28);
}

.burger-progress-flag::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 11px;
  width: 28px;
  height: 21px;
  border: 1px solid rgba(255, 250, 243, 0.28);
  border-radius: 2px 6px 6px 2px;
  background:
    conic-gradient(from 45deg, #f8f5ee 0 25%, #171412 0 50%, #f8f5ee 0 75%, #171412 0) 0 0 / 10px 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 6px 8px rgba(0, 0, 0, 0.26);
  transform: skewY(-4deg);
}

@keyframes fireflySweep {
  0% {
    transform: translateX(-78%);
    opacity: 0;
  }

  18% {
    opacity: 0.92;
  }

  72% {
    opacity: 0.72;
  }

  100% {
    transform: translateX(78%);
    opacity: 0;
  }
}

@keyframes fireflyPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.86);
  }

  45% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.98);
  }

  70% {
    opacity: 0.72;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

.home-hub {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-hub a,
.home-hub button {
  min-height: 118px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(10, 9, 8, 0.62);
  color: #fffaf3;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.home-hub a:hover,
.home-hub button:hover {
  border-color: rgba(243, 182, 63, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.home-hub span {
  color: rgba(255, 250, 243, 0.66);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hub strong {
  font-size: 1.02rem;
  line-height: 1.2;
}

.home-experience {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.view-hero {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 243, 0.72)),
    rgba(255, 250, 243, 0.86);
  box-shadow: 0 20px 60px rgba(32, 25, 22, 0.1);
}

.view-hero h2 {
  margin-top: 8px;
}

.booking-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-hero-title-row h2 {
  margin: 8px 0 0;
}

.booking-hero-table-shot {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(32, 25, 22, 0.1);
}

.taste-panel,
.route-panel,
.booking-panel,
.event-panel,
.map-panel,
.selected-truck-panel,
.truck-card,
.vote-form,
.leaderboard-panel,
.staff-votes-panel,
.staff-vote-detail,
.admin-login-panel,
.analytics-panel,
.analytics-metrics article,
.truck-admin-panel,
.program-grid article,
.review-form,
.reviews-feed,
.metrics-strip article,
.slots-panel,
.reservations-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 243, 0.92)),
    rgba(255, 250, 243, 0.95);
  box-shadow: 0 14px 44px rgba(32, 25, 22, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.taste-panel:hover,
.booking-panel:hover,
.map-panel:hover,
.selected-truck-panel:hover,
.truck-card:hover,
.vote-form:hover,
.leaderboard-panel:hover,
.staff-votes-panel:hover,
.program-grid article:hover,
.review-form:hover,
.reviews-feed:hover {
  border-color: rgba(8, 127, 140, 0.28);
  box-shadow: 0 18px 48px rgba(32, 25, 22, 0.11);
  transform: translateY(-1px);
}

.taste-panel,
.route-panel,
.booking-panel,
.map-panel,
.selected-truck-panel,
.vote-form,
.leaderboard-panel,
.staff-votes-panel,
.staff-vote-detail,
.admin-login-panel,
.analytics-panel,
.truck-admin-panel,
.slots-panel,
.reservations-panel,
.review-form,
.reviews-feed {
  padding: 24px;
}

.panel-heading,
.section-intro,
.staff-intro,
.reservations-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.booking-ops-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.booking-ops-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 16px 18px;
  cursor: pointer;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 239, 0.96)),
    white;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 30px rgba(32, 25, 22, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.booking-ops-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(32, 25, 22, 0.08);
}

.booking-ops-card.is-active {
  border-color: rgba(232, 75, 42, 0.22);
  box-shadow: 0 18px 36px rgba(232, 75, 42, 0.12);
}

.booking-ops-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-ops-card strong {
  color: #171412;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 0.95;
}

.booking-ops-card small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.panel-heading,
.section-intro {
  margin-bottom: 20px;
}

.section-intro {
  align-items: end;
}

.section-intro p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}

.compact {
  margin-bottom: 14px;
}

.mood-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #d8cabd;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 850;
}

.mood-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.taste-text {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.taste-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.taste-list span {
  min-height: 70px;
  display: grid;
  align-content: center;
  padding: 12px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 850;
}

.route-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  background: rgba(22, 20, 18, 0.94);
  color: #fffaf3;
}

.route-panel .section-label {
  background: rgba(243, 182, 63, 0.16);
  color: #ffd371;
}

.route-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 243, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.08);
}

.route-list span {
  color: rgba(255, 250, 243, 0.74);
  line-height: 1.45;
}

.festival-section,
.trucks-section,
.vote-section,
.booking-area,
.program-section,
.reviews-section,
.staff-section {
  padding-top: 12px;
  scroll-margin-top: 96px;
}

.map-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.map-panel {
  overflow-x: auto;
}

.festival-showcase-layout {
  display: grid;
  gap: 16px;
}

.festival-map-panel {
  padding-bottom: 20px;
}

.festival-map-panel .map-toolbar {
  margin-bottom: 18px;
}

.map-mobile-helper {
  display: none;
}

.map-image-modal[hidden] {
  display: none !important;
}

.map-image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.map-image-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 11, 10, 0.82);
}

.map-image-dialog {
  position: relative;
  z-index: 1;
  width: min(100vw - 24px, 760px);
  height: min(100vh - 24px, 980px);
  margin: 12px auto;
  padding: 52px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.map-image-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.9);
  color: #fffaf3;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.map-image-frame {
  width: 100%;
  height: 100%;
  overflow: auto;
  border: 1px solid rgba(216, 202, 189, 0.94);
  border-radius: 12px;
  background: #f8f1e6;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

.map-image-view {
  display: block;
  width: 100%;
  min-width: 920px;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.festival-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 1142;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d8cabd;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.04), rgba(10, 9, 8, 0.22)),
    url("mappa.jpeg?v=20260610-map-photo-1");
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: #0c0b0a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="mappa"] .map-marker {
  display: none !important;
}

.map-stage,
.map-entry {
  position: absolute;
  z-index: 2;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--charcoal);
  color: #fffaf3;
  font-size: 0.82rem;
  font-weight: 900;
}

.map-stage {
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.map-entry {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--teal);
}

.map-street {
  position: absolute;
  border-radius: 999px;
  background: rgba(216, 202, 189, 0.7);
}

.map-street.horizontal {
  left: 7%;
  right: 7%;
  top: 50%;
  height: 18px;
  transform: translateY(-50%);
}

.map-street.vertical {
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
}

.map-marker {
  position: absolute;
  z-index: 4;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: white;
  box-shadow: none;
  transform: translate(-50%, -50%);
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    opacity 0.16s ease;
}

.map-marker-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: var(--marker-color, var(--ember));
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(14, 12, 10, 0.34),
    0 0 16px color-mix(in srgb, var(--marker-color, var(--ember)) 42%, transparent);
  transform: translate(-50%, -50%);
}

.map-marker-core::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.18);
}

.map-marker-badge {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(14, 12, 10, 0.76);
  color: #fffaf3;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(14, 12, 10, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.map-marker.is-hidden {
  display: none;
}

.map-marker.is-active {
  filter: saturate(1.08);
  transform: translate(-50%, -50%) scale(1.08);
}

.map-marker.is-active .map-marker-core {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.2),
    0 10px 24px rgba(14, 12, 10, 0.36),
    0 0 22px color-mix(in srgb, var(--marker-color, var(--ember)) 55%, transparent);
}

.map-marker.is-active .map-marker-badge {
  border-color: rgba(243, 182, 63, 0.38);
  background: rgba(14, 12, 10, 0.88);
}

.map-marker:hover .map-marker-core,
.map-marker:focus-visible .map-marker-core {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    0 10px 22px rgba(14, 12, 10, 0.34),
    0 0 20px color-mix(in srgb, var(--marker-color, var(--ember)) 48%, transparent);
}

.selected-truck-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.festival-selected-panel {
  min-height: 0;
}

.festival-stands-panel {
  display: grid;
  gap: 14px;
}

.reach-card {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(243, 182, 63, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 243, 0.96)),
    rgba(255, 250, 243, 0.96);
  box-shadow: 0 14px 36px rgba(32, 25, 22, 0.08);
}

.reach-card-map {
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(243, 236, 225, 0.78)),
    #f4ede3;
}

.reach-card-map iframe {
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 0;
  display: block;
}

.selected-truck-card,
.truck-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  align-content: start;
  gap: 13px;
}

#selectedTruckCard,
.truck-card {
  border-left: 5px solid var(--truck-accent, var(--line));
}

#selectedTruckCard .truck-actions {
  margin-top: 12px;
}

.selected-truck-card h3,
.truck-card h3 {
  font-size: 1.35rem;
}

.truck-meta,
.truck-actions,
.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.truck-meta span,
.status-live {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f5eadc;
  color: #5c4f49;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.truck-meta-top {
  gap: 7px;
}

.truck-meta-top span {
  min-height: 24px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 780;
  white-space: nowrap;
}

.status-live.open {
  background: rgba(95, 123, 63, 0.15);
  color: var(--olive);
}

.truck-menu {
  color: var(--muted);
  line-height: 1.58;
}

.truck-menu-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

.truck-menu-list li::marker {
  color: var(--truck-accent, var(--muted));
}

.truck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.truck-card {
  min-height: 262px;
  padding: 20px;
}

.truck-actions {
  margin-top: auto;
}

.redirect-section {
  display: grid;
  gap: 18px;
}

.redirect-card {
  display: flex;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 243, 0.92)),
    rgba(255, 250, 243, 0.95);
  box-shadow: 0 14px 44px rgba(32, 25, 22, 0.08);
}

.vote-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.vote-form {
  display: grid;
  gap: 16px;
}

.vote-extra-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(232, 75, 42, 0.12);
  border-radius: 10px;
  background: rgba(255, 250, 243, 0.62);
}

.leaderboard-panel {
  min-height: 320px;
}

.vote-prize-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(243, 182, 63, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 238, 0.92)),
    rgba(255, 250, 243, 0.96);
}

.vote-prize-panel h3 {
  margin: 0;
  color: var(--ink);
}

.vote-prize-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.vote-prize-image-wrap {
  margin-top: auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 12px 28px rgba(32, 25, 22, 0.08);
}

.vote-prize-image-wrap img {
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.leaderboard-tabs {
  margin-bottom: 14px;
}

.leaderboard-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d8cabd;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.leaderboard-tab.active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
}

.leaderboard-list {
  display: grid;
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.leaderboard-rank {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 950;
}

.leaderboard-row strong {
  display: block;
}

.leaderboard-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.vote-count {
  color: var(--ember-dark);
  font-weight: 950;
  white-space: nowrap;
}

.truck-admin-layout {
  grid-template-columns: minmax(320px, 0.58fr) minmax(0, 1fr);
}

.truck-form {
  display: grid;
  gap: 14px;
}

.truck-admin-list table {
  min-width: 720px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.booking-form,
.review-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #4b403a;
  font-size: 0.92rem;
  font-weight: 820;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #cdbfb1;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
  font-size: 0.98rem;
  line-height: 1.45;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8b7c73;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.14);
}

label.field-invalid {
  color: #c2412d;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #d14b36;
  background: #fff5f2;
  box-shadow: 0 0 0 3px rgba(209, 75, 54, 0.16);
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  border-color: #c2412d;
  box-shadow: 0 0 0 3px rgba(194, 65, 45, 0.2);
}

.privacy-check {
  display: flex;
  align-items: start;
  gap: 12px;
  border: 1px solid rgba(8, 127, 140, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(8, 127, 140, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.privacy-check.field-invalid {
  border-color: rgba(194, 65, 45, 0.45);
  background: #fff5f2;
}

.privacy-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--teal);
}

.privacy-check span {
  display: block;
  min-width: 0;
}

.privacy-check a,
.legal-card a,
.consent-banner a,
.app-footer a {
  color: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section {
  display: grid;
  gap: 22px;
}

.legal-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(54, 42, 31, 0.14);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 250, 243, 0.94);
  box-shadow: var(--shadow-soft);
}

.legal-card h3 {
  margin-top: 10px;
  font-size: 1rem;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.68;
}

.privacy-preferences-button {
  justify-self: start;
  margin-top: 8px;
}

.status-pill,
.availability-readout {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.status-pill {
  background: rgba(8, 127, 140, 0.12);
  color: var(--teal);
}

.availability-readout {
  border-radius: 8px;
  background: #fff2d3;
  color: #7b4a02;
}

.form-footer {
  justify-content: space-between;
}

.booking-panel .form-footer {
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}

.booking-panel #availabilityReadout {
  margin-left: auto;
  white-space: nowrap;
}

.event-panel {
  overflow: hidden;
}

.event-photo {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(22, 20, 18, 0), rgba(22, 20, 18, 0.24)),
    url("https://calabriastraordinaria.it/storage/images/13056/Cosenza-super-street-food.jpg");
  background-position: center 38%;
  background-size: cover;
}

.event-copy {
  padding: 22px;
}

.event-copy p,
.program-grid p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.event-facts {
  margin-top: 18px;
}

.event-facts span {
  background: #f5eadc;
  color: #5c4f49;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.program-grid article {
  min-height: 210px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.program-grid span {
  color: var(--ember-dark);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.program-artist-ticker {
  position: relative;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(22, 20, 18, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(24, 21, 19, 0.98), rgba(36, 31, 28, 0.94)),
    #161412;
}

.program-artist-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 10px 0;
  animation: programArtistTicker 16s linear infinite;
}

.program-artist-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 8px;
  flex: 0 0 auto;
}

.program-artist-item {
  min-width: 280px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid rgba(255, 250, 243, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 250, 243, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.program-artist-item img {
  max-width: 220px;
  max-height: 82px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1.03) contrast(1.04);
  transform: scale(1.14);
  transform-origin: center;
}

.program-artist-logo-liganroll {
  transform: scale(1.28);
}

.program-artist-ticker:hover .program-artist-track {
  animation-play-state: paused;
}

@keyframes programArtistTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.reviews-layout {
  grid-template-columns: minmax(320px, 0.6fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.review-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.62);
  background:
    radial-gradient(circle at top left, rgba(243, 182, 63, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.84)),
    rgba(255, 250, 243, 0.86);
}

.review-hero-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.review-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.review-hero-meta span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(232, 75, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ember-dark);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.review-summary {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(232, 75, 42, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(243, 182, 63, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.94)),
    white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 32px rgba(32, 25, 22, 0.08);
}

.review-summary strong {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.85;
  color: var(--ember-dark);
}

.review-summary span {
  color: var(--muted);
  font-weight: 850;
}

.admin-review-summary {
  min-width: 160px;
  align-items: flex-end;
  text-align: right;
}

.review-form-head {
  display: grid;
  gap: 12px;
}

.review-form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(243, 182, 63, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.review-form-section-featured {
  position: relative;
  overflow: hidden;
  border-color: rgba(232, 75, 42, 0.14);
  background:
    radial-gradient(circle at top right, rgba(232, 75, 42, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(243, 182, 63, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.94)),
    white;
}

.review-form-section-featured::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243, 182, 63, 0.16), transparent 68%);
  pointer-events: none;
}

.review-section-head {
  display: grid;
  gap: 8px;
}

.review-section-kicker {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-section-head h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.08;
}

.review-form-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.review-form {
  position: sticky;
  top: 96px;
  gap: 16px;
  border-top: 4px solid rgba(232, 75, 42, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 243, 0.88)),
    white;
  box-shadow: 0 18px 42px rgba(32, 25, 22, 0.1);
}

.review-form .primary-action {
  min-height: 52px;
  margin-top: 4px;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.review-rating-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 14px;
}

.review-star-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-star-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-star-control label {
  width: 58px;
  min-width: 58px;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 0;
  border: 1px solid rgba(232, 75, 42, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.92)),
    white;
  box-shadow: 0 12px 24px rgba(32, 25, 22, 0.08);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.review-star-control label::before {
  content: "★";
  color: #d5c5b6;
  font-size: 2rem;
  line-height: 1;
  transition:
    color 0.18s ease,
    transform 0.18s ease,
    text-shadow 0.18s ease;
}

.review-star-control label:hover,
.review-star-control label:focus-visible,
.review-star-control label.is-active {
  border-color: rgba(243, 182, 63, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 245, 214, 0.96), rgba(255, 237, 184, 0.94)),
    white;
  box-shadow: 0 16px 28px rgba(243, 182, 63, 0.18);
  transform: translateY(-1px);
}

.review-star-control label.is-active::before,
.review-star-control label:hover::before,
.review-star-control label:focus-visible::before {
  color: var(--gold);
  text-shadow: 0 10px 24px rgba(243, 182, 63, 0.3);
  transform: scale(1.06);
}

.review-rating-caption {
  margin: 0;
  color: var(--ember-dark);
  font-size: 0.92rem;
  font-weight: 900;
}

.review-story-field {
  position: relative;
}

.review-story-field textarea {
  min-height: 168px;
  padding: 18px 18px 20px;
  border-color: rgba(232, 75, 42, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.94)),
    white;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.review-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.review-form-grid label:nth-last-child(1) {
  grid-column: 1 / -1;
}

.reviews-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.staff-review-insights-grid {
  margin-top: 1.4rem;
}

.staff-review-summary-panel {
  display: grid;
  gap: 1.2rem;
}

.staff-review-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.staff-review-summary-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-reviews-insights {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 0;
}

.staff-review-feed {
  display: grid;
  gap: 1rem;
}

.staff-review-feed-head {
  display: grid;
  gap: 0.35rem;
}

.staff-review-feed-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1rem;
}

.admin-reviews-list {
  gap: 0.55rem;
}

.review-card-compact {
  gap: 0.56rem;
  padding: 0.72rem 0.78rem 0.7rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 6px 16px rgba(32, 25, 22, 0.045);
}

.review-card-compact::after {
  font-size: 2.4rem;
  right: 10px;
  top: 7px;
}

.review-card-compact header {
  gap: 0.55rem;
}

.review-card-compact strong {
  font-size: 0.88rem;
  line-height: 1.18;
}

.review-card-compact .review-meta {
  font-size: 0.68rem;
}

.review-card-compact .review-stars span {
  font-size: 0.8rem;
}

.review-card-compact .review-rating-chip {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 0.62rem;
}

.review-card-compact .review-tags {
  gap: 0.28rem;
}

.review-card-compact .review-tags span {
  padding: 0.28rem 0.46rem;
  font-size: 0.62rem;
}

.review-card-compact p {
  font-size: 0.78rem;
  line-height: 1.45;
}

.reviews-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(32, 25, 22, 0.1);
}

.reviews-feed-header h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.04;
}

.reviews-feed-header p {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: right;
}

.reviews-feed-banner {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(8, 127, 140, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 127, 140, 0.96), rgba(50, 95, 145, 0.92) 54%, rgba(22, 20, 18, 0.96)),
    var(--charcoal);
  color: white;
  box-shadow: 0 18px 38px rgba(32, 25, 22, 0.14);
}

.reviews-feed-banner span {
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-feed-banner strong {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.35;
}

.review-insight-card,
.review-return-meter {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(243, 182, 63, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 233, 0.94)),
    var(--paper);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 34px rgba(32, 25, 22, 0.08);
}

.review-insight-card.main {
  background:
    linear-gradient(135deg, rgba(232, 75, 42, 0.98), rgba(243, 182, 63, 0.82) 44%, rgba(8, 127, 140, 0.94)),
    var(--ink);
  color: white;
}

.review-insight-card span,
.review-return-meter span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-insight-card.main span,
.review-insight-card.main small {
  color: rgba(255, 255, 255, 0.82);
}

.review-insight-card strong,
.review-return-meter strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1;
}

.review-insight-card.main strong {
  color: white;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.review-insight-card small,
.review-return-meter small {
  color: var(--muted);
  font-weight: 820;
}

.review-return-meter {
  grid-column: 1 / -1;
}

.review-return-meter div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 25, 22, 0.08);
}

.review-return-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--ember));
}

.reviews-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.reviews-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.reviews-more-button {
  min-width: 180px;
  justify-content: center;
}

.review-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(243, 182, 63, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.92)),
    white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 34px rgba(32, 25, 22, 0.07);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.review-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ember), var(--gold), var(--teal));
}

.review-card::after {
  content: "“";
  position: absolute;
  right: 16px;
  top: 10px;
  color: rgba(232, 75, 42, 0.12);
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 4rem;
  line-height: 1;
  pointer-events: none;
}

.review-card:hover {
  border-color: rgba(232, 75, 42, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 40px rgba(32, 25, 22, 0.1);
  transform: translateY(-1px);
}

.review-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.review-card-rating {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.review-card strong {
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.25;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.review-stars span {
  color: #dccfc2;
  font-size: 1rem;
  line-height: 1;
}

.review-stars span.is-filled {
  color: var(--gold);
}

.review-rating-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(243, 182, 63, 0.22);
  border-radius: 999px;
  background: rgba(243, 182, 63, 0.12);
  color: #80500a;
  font-size: 0.73rem;
  font-weight: 950;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.review-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(8, 127, 140, 0.14);
  border-radius: 999px;
  background: rgba(8, 127, 140, 0.07);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.review-card p {
  color: #5f5752;
  line-height: 1.7;
}

.review-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

#emptyReviews {
  margin-top: 18px;
  border: 1px dashed rgba(32, 25, 22, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.staff-intro {
  align-items: center;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metrics-strip article {
  min-height: 112px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.metrics-strip span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metrics-strip strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.slots-panel {
  margin-bottom: 14px;
}

.capacity-control {
  width: min(180px, 100%);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.slot-card {
  min-height: 156px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: default;
}

.slot-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.slot-card strong {
  font-size: 1rem;
}

.slot-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e5d8;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--olive);
  transition: width 0.25s ease;
}

.slot-card.warning .progress-fill {
  background: var(--gold);
}

.slot-card.full .progress-fill {
  background: var(--ember);
}

.slot-numbers {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.slot-capacity {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 20, 18, 0.42);
  backdrop-filter: blur(8px);
}

.booking-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 36px);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.98)),
    var(--surface);
  box-shadow: 0 28px 80px rgba(22, 20, 18, 0.26);
  overflow: auto;
  overscroll-behavior: contain;
}

.booking-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.booking-modal-heading .icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.booking-modal-panel p {
  color: var(--muted);
  line-height: 1.55;
}

#slotQuickForm {
  display: grid;
  gap: 16px;
}

#slotModalAvailability {
  width: fit-content;
  max-width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff2d3;
  color: #7b4a02;
  font-size: 0.88rem;
  line-height: 1.4;
}

.reservations-heading {
  align-items: center;
}

.filters {
  justify-content: flex-end;
}

.booking-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.booking-search-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 1rem;
}

.booking-search-toggle.is-active {
  border-color: rgba(232, 75, 42, 0.2);
  background: rgba(232, 75, 42, 0.08);
  color: var(--ember-dark);
}

.booking-search-panel {
  position: static;
  z-index: 6;
  width: min(360px, calc(100vw - 48px));
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.search-field {
  position: relative;
  display: block;
  width: min(360px, 100%);
}

.search-field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #8a7b72;
  font-size: 0.9rem;
  pointer-events: none;
}

.filters input,
.filters select {
  width: 190px;
}

.search-field input {
  width: 100%;
  padding-left: 40px;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

td {
  color: var(--ink);
  font-size: 0.88rem;
}

.customer-cell {
  display: grid;
  gap: 4px;
}

.customer-cell strong {
  font-size: 0.9rem;
}

.customer-cell span,
.note-line {
  color: var(--muted);
  font-size: 0.76rem;
}

.customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.06);
  color: #5e544e;
  font-size: 0.74rem;
  font-weight: 850;
}

.status-select {
  min-width: 150px;
  min-height: 38px;
  padding: 6px 9px;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.small-button {
  min-height: 36px;
  border: 1px solid #d8cabd;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 7px 10px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
}

.small-button.whatsapp {
  border-color: rgba(25, 181, 104, 0.28);
  background: rgba(25, 181, 104, 0.08);
  color: #157447;
}

.small-button.danger {
  border-color: rgba(232, 75, 42, 0.3);
  color: var(--ember-dark);
}

.field-optional {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 700;
}

.icon-button.danger {
  border-color: rgba(232, 75, 42, 0.3);
  color: var(--ember-dark);
}

.admin-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-login-panel p {
  margin-top: 12px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.staff-workspace[hidden],
.consent-banner[hidden] {
  display: none;
}

.analytics-panel {
  margin-bottom: 14px;
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.analytics-metrics article {
  min-height: 96px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.analytics-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-metrics strong {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analytics-chart-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.25fr) repeat(2, minmax(220px, 0.85fr));
  gap: 12px;
  margin-top: 12px;
}

.analytics-chart-card {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(32, 25, 22, 0.06);
}

.analytics-chart-card-wide {
  grid-column: span 2;
  border-top: 4px solid var(--olive);
  background:
    linear-gradient(135deg, rgba(22, 20, 18, 0.96), rgba(43, 57, 47, 0.94)),
    #161412;
  color: #fffaf3;
}

.analytics-session-card {
  border-top: 4px solid var(--gold);
}

.chart-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.chart-heading h3 {
  margin-top: 4px;
  font-size: 1rem;
}

.chart-heading strong {
  color: #171412;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.analytics-chart-card-wide .chart-heading strong,
.analytics-chart-card-wide .chart-heading h3 {
  color: #fffaf3;
}

.staff-app .analytics-chart-grid-simple .analytics-chart-card-wide .chart-heading strong,
.staff-app .analytics-chart-grid-simple .analytics-chart-card-wide .chart-heading h3,
.staff-app .analytics-chart-grid-simple .analytics-chart-card-wide .section-label {
  color: #171412;
}

.staff-app .analytics-chart-grid-simple .analytics-chart-card-wide .section-label {
  background: rgba(243, 182, 63, 0.14);
}

.analytics-line-chart,
.analytics-column-chart,
.analytics-horizontal-chart {
  min-height: 430px;
  overflow: visible;
}

.line-chart-shell {
  overflow: visible;
}

.line-chart-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
  margin-bottom: 10px;
  align-items: stretch;
}

.line-chart-summary-item {
  display: grid;
  gap: 3px;
  justify-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  text-align: center;
}

.line-chart-summary-item small {
  color: rgba(255, 250, 243, 0.68);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.line-chart-summary strong {
  color: #fffaf3;
  font-size: 1.02rem;
}

.line-chart-summary span {
  color: rgba(255, 250, 243, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
}

.staff-app .analytics-chart-grid-simple .line-chart-summary strong {
  color: #171412;
}

.staff-app .analytics-chart-grid-simple .line-chart-summary-item {
  background: rgba(255, 250, 243, 0.88);
  border-color: rgba(32, 25, 22, 0.07);
}

.staff-app .analytics-chart-grid-simple .line-chart-summary-item small {
  color: rgba(32, 25, 22, 0.52);
}

.staff-app .analytics-chart-grid-simple .line-chart-summary span {
  color: var(--muted);
}

.line-chart-svg {
  width: 100%;
  height: clamp(300px, 37vw, 390px);
  display: block;
  overflow: visible;
}

.line-chart-guide {
  stroke: rgba(255, 250, 243, 0.12);
  stroke-width: 1;
}

.line-chart-guide-label {
  fill: rgba(255, 250, 243, 0.58);
  font-size: 10px;
  font-weight: 700;
}

.staff-app .analytics-chart-grid-simple .line-chart-guide {
  stroke: rgba(32, 25, 22, 0.08);
}

.staff-app .analytics-chart-grid-simple .line-chart-guide-label {
  fill: rgba(32, 25, 22, 0.52);
}

.line-chart-area {
  fill: rgba(180, 196, 127, 0.18);
}

.line-chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.line-chart-svg circle {
  fill: #fffaf3;
  stroke: var(--gold);
  stroke-width: 3;
}

.chart-x-labels {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-left: 54px;
  padding-right: 12px;
  color: rgba(255, 250, 243, 0.66);
  font-size: 0.74rem;
  font-weight: 850;
}

.chart-x-labels span {
  text-align: center;
}

.staff-app .analytics-chart-grid-simple .chart-x-labels {
  color: rgba(32, 25, 22, 0.58);
}

#durationTrendChart.single-point .chart-x-labels {
  padding-left: 0;
  padding-right: 0;
}

#durationTrendChart.single-point .chart-x-labels span {
  text-align: center;
}

#durationTrendChart.single-point .line-chart-summary {
  justify-items: start;
  text-align: left;
}

.analytics-column-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.column-chart-item {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(110px, 1fr) auto;
  gap: 8px;
}

.column-chart-bar {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 127, 140, 0.12), rgba(32, 25, 22, 0.06));
}

.column-chart-bar i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--olive));
}

.column-chart-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.analytics-horizontal-chart {
  display: grid;
  align-content: center;
  gap: 12px;
}

.horizontal-chart-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
}

.horizontal-chart-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.horizontal-chart-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 25, 22, 0.08);
}

.horizontal-chart-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ember), var(--gold));
}

.horizontal-chart-row strong {
  color: var(--ember-dark);
  font-weight: 950;
  text-align: right;
}

.analytics-overview {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(132px, 0.55fr)) minmax(280px, 1.2fr);
  gap: 10px;
  margin-top: 12px;
}

.analytics-hero-card,
.analytics-kpi-card,
.analytics-mix-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 34px rgba(32, 25, 22, 0.06);
}

.analytics-hero-card {
  display: grid;
  align-content: center;
  border-top: 4px solid var(--olive);
  background:
    linear-gradient(135deg, rgba(22, 20, 18, 0.96), rgba(43, 57, 47, 0.94)),
    #161412;
  color: #fffaf3;
}

.analytics-hero-card strong {
  font-size: clamp(2.35rem, 4vw, 3.6rem);
  line-height: 0.92;
}

.analytics-hero-card p {
  margin: 4px 0 0;
  color: rgba(255, 250, 243, 0.68);
  font-weight: 800;
}

.analytics-kpi-card {
  display: grid;
  align-content: center;
  gap: 8px;
  border-top: 4px solid rgba(8, 127, 140, 0.72);
}

.analytics-kpi-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-kpi-card strong {
  color: #171412;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.analytics-mix-card {
  display: grid;
  gap: 12px;
  border-top: 4px solid var(--gold);
}

.analytics-mix-card strong {
  display: block;
  margin-top: 4px;
}

.analytics-mix-bars {
  display: grid;
  gap: 9px;
}

.analytics-mix-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.8fr) minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.analytics-mix-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-bar,
.stats-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 25, 22, 0.08);
}

.analytics-bar i,
.stats-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--olive);
}

.analytics-mix-row.teal .analytics-bar i {
  background: var(--teal);
}

.analytics-mix-row.ember .analytics-bar i {
  background: var(--ember);
}

.analytics-grid article {
  min-height: 230px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.analytics-grid h3 {
  margin-bottom: 12px;
}

.stats-list {
  display: grid;
  gap: 8px;
}

.stats-row {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1e8dd;
}

.stats-row:last-child {
  border-bottom: 0;
}

.stats-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.stats-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.stats-row span {
  color: var(--ember-dark);
  font-weight: 950;
}

.click-stat-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1e8dd;
}

.click-stat-card:last-child {
  border-bottom: 0;
}

.click-stat-rank {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  background: rgba(243, 182, 63, 0.14);
  color: #7b4a02;
  font-size: 0.82rem;
  font-weight: 950;
}

.click-stat-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.click-stat-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.click-stat-topline strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #171412;
}

.click-stat-topline span {
  color: var(--ember-dark);
  font-weight: 950;
}

.click-stat-body small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.stats-bar {
  height: 7px;
}

.stats-bar i {
  background: linear-gradient(90deg, var(--olive), var(--teal));
}

.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border: 1px solid rgba(32, 25, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(22, 20, 18, 0.18);
  backdrop-filter: blur(14px);
}

.consent-banner strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 950;
}

.consent-banner p {
  max-width: 560px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.consent-actions .ghost-link,
.consent-actions .primary-action {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
}

.consent-actions .ghost-link {
  border-color: rgba(32, 25, 22, 0.14);
  background: white;
  color: var(--ink);
}

.communication-panel {
  display: grid;
  gap: 18px;
}

.communication-form {
  display: grid;
  gap: 14px;
}

.communication-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
  color: var(--sand);
}

.communication-form input,
.communication-form textarea,
.communication-form select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 198, 79, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font: inherit;
}

.communication-form textarea {
  min-height: 110px;
  resize: vertical;
}

.communication-form select option {
  color: #161412;
}

.staff-work-area .analytics-panel,
.staff-work-area .analytics-chart-card,
.staff-work-area .reservations-panel,
.staff-work-area .leaderboard-panel,
.staff-work-area .staff-vote-detail,
.staff-work-area .staff-prize-table-panel {
  border-radius: 10px;
}

.staff-prize-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.78fr);
  align-items: start;
  gap: 16px;
}

.staff-prize-control-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
}

.staff-prize-table-heading {
  padding: 20px 20px 14px;
}

.staff-prize-table-heading h3 {
  margin-top: 8px;
  color: #171412;
}

.staff-prize-table-meta {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.staff-prize-table-meta strong {
  color: #171412;
}

.staff-prize-table-panel {
  padding: 0;
  overflow: hidden;
  min-height: 100%;
}

.staff-prize-table-panel table {
  min-width: 980px;
}

.staff-prize-winner {
  display: grid;
  gap: 6px;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 22px;
  border: 1px solid rgba(243, 182, 63, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(243, 182, 63, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 245, 0.98), rgba(247, 239, 220, 0.92));
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.staff-prize-winner strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.02;
}

.staff-prize-winner p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

.staff-prize-winner p:empty {
  display: none;
}

.staff-prize-winner.is-highlighted {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(243, 182, 63, 0.34);
  box-shadow: 0 14px 30px rgba(243, 182, 63, 0.18);
}

.prize-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.prize-summary-card {
  display: grid;
  gap: 8px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 239, 0.94)),
    white;
  box-shadow: 0 10px 24px rgba(32, 25, 22, 0.05);
}

.prize-summary-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prize-summary-card strong {
  color: #171412;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.2;
}

.staff-app .staff-prize-table-panel {
  border-top: 4px solid var(--gold);
}

.staff-app .staff-prize-control-panel {
  border-top: 4px solid var(--teal);
}

.customer-cell.compact {
  gap: 4px;
}

.staff-area-heading h2,
.reservations-heading h2 {
  letter-spacing: -0.03em;
}

.empty-state {
  display: none;
  min-height: 120px;
  place-items: center;
  border: 1px dashed #d8cabd;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.staff-app #emptyState {
  margin-top: 14px;
  min-height: 162px;
  border-radius: 18px;
}

.empty-state.visible {
  display: grid;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50;
  max-width: min(420px, calc(100% - 40px));
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--charcoal);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.staff-app {
  background:
    linear-gradient(135deg, rgba(248, 246, 239, 0.96), rgba(229, 238, 233, 0.92) 46%, rgba(245, 240, 231, 0.98)),
    #f7f3ea;
}

.staff-app .app-shell {
  width: min(1480px, calc(100% - 24px));
}

.staff-topbar {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(13, 16, 15, 0.9);
  box-shadow: 0 18px 54px rgba(13, 16, 15, 0.24);
  border-radius: 14px;
}

.staff-topbar .brand-mini strong {
  letter-spacing: 0.08em;
}

.staff-topbar .site-nav {
  justify-content: flex-start;
  gap: 10px;
}

.staff-topbar .site-nav a[href="index.html"] {
  border-color: rgba(255, 250, 243, 0.18);
}

.staff-public-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.staff-public-tools a[href="index.html"] {
  margin-left: 0;
}

.staff-public-tools .install-button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.08);
  color: #fffaf3;
  font-weight: 850;
}

.staff-topbar-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
}

.staff-topbar-actions .ghost-link {
  min-height: 42px;
  padding-inline: 14px;
  border-color: rgba(255, 250, 243, 0.12);
  background: rgba(255, 250, 243, 0.04);
}

.staff-app .staff-section {
  padding-top: 14px;
}

.staff-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  min-height: 0;
  padding: 24px 28px;
  border-radius: 18px;
  border-color: rgba(13, 16, 15, 0.08);
  background:
    linear-gradient(135deg, rgba(15, 18, 17, 0.96), rgba(36, 48, 42, 0.92) 54%, rgba(232, 75, 42, 0.84)),
    #161412;
  color: #fffaf3;
  box-shadow: 0 20px 52px rgba(13, 16, 15, 0.18);
}

.staff-hero .section-label {
  width: fit-content;
  background: rgba(243, 182, 63, 0.16);
  color: #ffd371;
}

.staff-hero h2 {
  max-width: 780px;
  margin-top: 6px;
  color: #fffaf3;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1;
}

.staff-hero p {
  max-width: 620px;
  margin-top: 10px;
  color: rgba(255, 250, 243, 0.76);
  line-height: 1.5;
}

.staff-hero-status {
  min-width: 184px;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.09);
  text-align: right;
}

.staff-hero-status span {
  color: rgba(255, 250, 243, 0.66);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-hero-status strong {
  color: #fffaf3;
  font-size: 1.05rem;
}

.staff-app .admin-login-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: 28px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 239, 228, 0.96)),
    #fffaf3;
  box-shadow: 0 16px 40px rgba(32, 25, 22, 0.08);
}

.staff-app .admin-login-panel form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 25, 22, 0.06);
}

.staff-app .admin-login-panel input,
.staff-app .admin-login-panel select,
.staff-app .admin-login-panel textarea,
.staff-app .communication-form input,
.staff-app .communication-form select,
.staff-app .communication-form textarea {
  border-color: rgba(32, 25, 22, 0.12);
  background: #fffdf9;
  color: #171412;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  min-height: 52px;
  padding: 0 14px;
  font-size: 0.98rem;
}

.staff-app .admin-login-panel input::placeholder,
.staff-app .communication-form input::placeholder,
.staff-app .communication-form textarea::placeholder {
  color: #8a7b72;
}

.staff-fallback {
  border: 1px solid rgba(61, 45, 31, 0.16);
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.58);
}

.staff-fallback summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.staff-fallback label {
  margin-top: 10px;
}

.auth-status {
  margin: 0;
  border-left: 3px solid rgba(217, 112, 45, 0.72);
  padding-left: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.login-copy {
  display: grid;
  gap: 10px;
}

.login-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.04;
}

.login-copy p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.58;
}

.staff-app #prenotazioni .booking-layout {
  grid-template-columns: 1fr;
}

.staff-app .staff-actions {
  justify-content: flex-end;
  margin: 8px 0 12px;
  gap: 10px;
}

.staff-actions.compact {
  margin: 0;
}

.staff-work-area {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 250, 243, 0.78)),
    #fffaf3;
  box-shadow: 0 14px 34px rgba(32, 25, 22, 0.06);
  scroll-margin-top: 110px;
}

.staff-area-bookings {
  border-top: 4px solid var(--ember);
}

.staff-area-votes {
  border-top: 4px solid var(--gold);
}

.staff-area-stats {
  border-top: 4px solid var(--olive);
}

.staff-area-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.staff-area-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #171412;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.05;
}

.staff-app .staff-area-bookings .staff-area-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 0.98;
}

.staff-count-badge {
  min-width: 36px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid rgba(232, 75, 42, 0.18);
  border-radius: 999px;
  background: rgba(232, 75, 42, 0.09);
  color: var(--ember-dark);
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
}

.staff-count-badge.gold {
  border-color: rgba(243, 182, 63, 0.3);
  background: rgba(243, 182, 63, 0.16);
  color: #7b4a02;
}

.staff-count-badge.olive {
  border-color: rgba(95, 123, 63, 0.24);
  background: rgba(95, 123, 63, 0.12);
  color: var(--olive);
}

.staff-vote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.staff-vote-detail {
  padding: 0;
  overflow: hidden;
}

.staff-vote-detail table {
  min-width: 760px;
}

.leaderboard-panel.compact {
  min-height: 0;
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 245, 236, 0.82)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 25, 22, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 40px rgba(32, 25, 22, 0.05);
}

.staff-app .booking-layout,
.staff-app .truck-admin-layout,
.staff-app .staff-votes-panel {
  margin-top: 12px;
  scroll-margin-top: 110px;
}

.staff-app .reservations-panel,
.staff-app .truck-admin-panel,
.staff-app .staff-votes-panel,
.staff-app .staff-vote-detail,
.staff-app .slots-panel,
.staff-app .analytics-panel,
.staff-app .analytics-grid article {
  border-color: rgba(32, 25, 22, 0.04);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  border-radius: 16px;
  border: 1px solid rgba(32, 25, 22, 0.05);
}

.staff-app .staff-work-area.staff-votes-panel {
  background: rgba(255, 250, 243, 0.58);
  box-shadow: none;
}

.staff-app .reservations-panel {
  border-top: 4px solid var(--ember);
}

.staff-app .slots-panel {
  border-top: 4px solid var(--gold);
}

.staff-app .truck-admin-panel {
  border-top: 4px solid var(--teal);
}

.staff-app .staff-votes-panel,
.staff-app .staff-vote-detail {
  border-top: 4px solid var(--gold);
}

.staff-app .staff-area-prize,
.staff-app .staff-prize-table-panel {
  border-top: 4px solid var(--teal);
}

.staff-app .analytics-panel,
.staff-app .analytics-grid article {
  border-top: 4px solid var(--olive);
}

.staff-app .communication-panel,
.staff-app .analytics-panel,
.staff-app .analytics-chart-card,
.staff-app .leaderboard-panel.compact {
  padding: 0;
}

.staff-app .reservations-heading h2,
.staff-app .truck-admin-panel h2,
.staff-app .staff-votes-panel h2,
.staff-app .analytics-grid h3 {
  color: #171412;
}

.staff-app .filters {
  padding: 6px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 14px;
  background: rgba(245, 240, 231, 0.92);
  gap: 8px;
}

.staff-app .search-field input {
  width: 100%;
  border-color: rgba(32, 25, 22, 0.1);
  background: white;
  border-radius: 10px;
  min-height: 46px;
}

.staff-app .search-field {
  width: min(360px, 100%);
}

.staff-app .booking-search-panel {
  padding: 0;
}

.staff-app .table-wrap {
  border: 1px solid rgba(32, 25, 22, 0.05);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 239, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 16px 34px rgba(32, 25, 22, 0.05);
  padding: 0;
  overflow: hidden;
}

.staff-app .reservations-panel,
.staff-app .truck-admin-panel,
.staff-app .slots-panel,
.staff-app .analytics-panel {
  padding: 0;
}

.staff-app .reservations-panel {
  padding: 16px 18px 18px;
  border: 1px solid rgba(32, 25, 22, 0.05);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(251, 247, 239, 0.74));
  box-shadow: 0 18px 40px rgba(32, 25, 22, 0.05);
}

.staff-app .reservations-heading,
.staff-app .communication-form,
.staff-app .analytics-overview,
.staff-app .analytics-chart-grid,
.staff-app .analytics-grid,
.staff-app .staff-vote-layout,
.staff-app .staff-prize-grid,
.staff-app .staff-prize-winner,
.staff-app .leaderboard-list {
  padding: 0;
}

.staff-app .reservations-heading {
  align-items: center;
  margin-bottom: 14px;
}

.staff-app .reservations-heading h2 {
  margin: 0;
}

.staff-app .communication-form,
.staff-app .analytics-overview,
.staff-app .analytics-chart-grid,
.staff-app .analytics-grid,
.staff-app .staff-prize-grid {
  margin-top: 12px;
}

.staff-app .communication-form {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 25, 22, 0.05);
  gap: 16px;
}

.bookings-export-actions {
  justify-content: space-between;
  align-items: flex-end;
  margin: 0;
  padding: 14px 0 0;
}

.bookings-export-actions .primary-action {
  min-width: 122px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.staff-app .bookings-export-actions .booking-toolbar {
  margin-left: auto;
  align-items: flex-end;
}

.staff-app .bookings-export-actions .booking-search-toggle {
  min-width: 36px;
  min-height: 36px;
  font-size: 0.82rem;
}

.staff-app .bookings-export-actions .booking-search-panel {
  width: min(420px, calc(100vw - 72px));
}

.staff-app .communicationStatus,
.staff-app #communicationStatus {
  margin-top: 12px;
}

.staff-app table {
  min-width: 1260px;
}

.staff-app #prenotazioni table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 0;
}

.staff-app th {
  color: #5d4c41;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: rgba(32, 25, 22, 0.06);
  padding-top: 16px;
  padding-bottom: 16px;
}

.staff-app thead th:first-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 28px;
}

.staff-app thead th:last-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-right: 28px;
}

.staff-app #prenotazioni thead th {
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(32, 25, 22, 0.06);
}

.staff-app #prenotazioni thead th + th {
  border-left: 0;
}

.staff-app td {
  background: rgba(255, 255, 255, 0.78);
  color: #171412;
  vertical-align: top;
}

.staff-app #prenotazioni td {
  vertical-align: middle;
}

.staff-app #prenotazioni td:nth-child(1) {
  min-width: 92px;
}

.staff-app #prenotazioni td:nth-child(2) {
  min-width: 220px;
}

.staff-app #prenotazioni td:nth-child(3) {
  min-width: 72px;
  padding-left: 20px;
  text-align: left;
}

.staff-app #prenotazioni td:nth-child(4) {
  min-width: 150px;
}

.staff-app #prenotazioni td:nth-child(5) {
  min-width: 170px;
}

.staff-app #prenotazioni td:nth-child(6) {
  min-width: 280px;
}

.staff-app .day-cell {
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: nowrap;
}

.staff-app .reservation-customer-cell .customer-cell {
  gap: 1px;
}

.staff-app .reservation-customer-cell .customer-inline-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.staff-app .reservation-customer-cell .customer-cell strong {
  font-size: 0.77rem;
}

.staff-app .reservation-customer-cell .customer-inline-meta {
  white-space: nowrap;
}

.staff-app .reservation-customer-cell .customer-cell span,
.staff-app .reservation-customer-cell .note-line {
  font-size: 0.66rem;
}

.staff-app #prenotazioni td:nth-child(3),
.staff-app #prenotazioni td:nth-child(4) {
  font-size: 0.9rem;
}

.staff-app #prenotazioni .row-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
}

.staff-app #prenotazioni .small-button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.78rem;
}

.staff-app tbody tr {
  position: static;
}

.staff-app #reservationsTable td:first-child {
  position: relative;
  padding-left: 28px;
}

.staff-app #reservationsTable tr td:first-child::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(32, 25, 22, 0.14);
}

.staff-app #reservationsTable tr[data-priority="high"] td:first-child::before {
  background: var(--ember);
}

.staff-app #reservationsTable tr[data-priority="medium"] td:first-child::before {
  background: var(--gold);
}

.staff-app #reservationsTable tr[data-priority="low"] td:first-child::before {
  background: var(--olive);
}

.staff-app tbody tr[data-status="cancelled"] {
  opacity: 0.62;
}

.staff-app .status-select {
  border-color: rgba(32, 25, 22, 0.1);
  font-weight: 850;
  min-width: 136px;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 0.8rem;
}

.staff-app .status-select[data-status="waiting"] {
  border-color: rgba(232, 75, 42, 0.28);
  background: rgba(232, 75, 42, 0.1);
  color: var(--ember-dark);
}

.staff-app .status-select[data-status="pending"] {
  border-color: rgba(243, 182, 63, 0.38);
  background: rgba(243, 182, 63, 0.15);
  color: #7b4a02;
}

.staff-app .status-select[data-status="confirmed"] {
  border-color: rgba(95, 123, 63, 0.28);
  background: rgba(95, 123, 63, 0.12);
  color: var(--olive);
}

.staff-app #reservationsTable tr[data-priority="high"] td {
  background: rgba(232, 75, 42, 0.035);
}

.staff-app #reservationsTable tr[data-priority="medium"] td {
  background: rgba(243, 182, 63, 0.05);
}

.staff-app #reservationsTable tr[data-priority="low"] td {
  background: rgba(95, 123, 63, 0.035);
}

.staff-app .analytics-grid {
  margin-top: 12px;
  scroll-margin-top: 110px;
}

.staff-app .analytics-grid .analytics-panel {
  min-height: 0;
}

.staff-app .analytics-chart-grid,
.staff-app .analytics-overview {
  scroll-margin-top: 110px;
}

.staff-app .app-footer {
  margin-top: 44px;
}

.staff-app label {
  display: grid;
  gap: 8px;
  color: #43362f;
  font-size: 0.9rem;
  font-weight: 800;
}

.staff-app .primary-action,
.staff-app .ghost-link {
  border-radius: 12px;
}

.staff-app .primary-action {
  box-shadow: 0 10px 24px rgba(243, 182, 63, 0.16);
}

.staff-app .analytics-kpi-card {
  min-height: 112px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 25, 22, 0.05);
  box-shadow: 0 12px 28px rgba(32, 25, 22, 0.05);
}

.staff-app .analytics-kpi-card span {
  color: #7d6f67;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.staff-app .analytics-kpi-card strong {
  color: #171412;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.staff-app .analytics-chart-card,
.staff-app .analytics-panel-simple {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 25, 22, 0.05);
}

.staff-app .chart-heading,
.staff-app .reservations-heading {
  padding: 18px 18px 14px;
}

.staff-app .leaderboard-list {
  padding: 0;
}

.staff-vote-summary-card {
  display: grid;
  gap: 12px;
  padding: 0;
}

.staff-vote-awards {
  display: grid;
  gap: 16px;
}

.staff-vote-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.staff-vote-award-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(32, 25, 22, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 235, 0.92)),
    #fffaf3;
  text-align: left;
  box-shadow: 0 14px 28px rgba(32, 25, 22, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.staff-vote-award-card.is-active {
  border-color: rgba(243, 182, 63, 0.34);
  box-shadow: 0 16px 34px rgba(243, 182, 63, 0.14);
  transform: translateY(-1px);
}

.staff-vote-award-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(243, 182, 63, 0.14);
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-vote-award-card strong {
  color: #171412;
  font-size: 1.2rem;
  line-height: 1.02;
}

.staff-vote-award-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.staff-vote-award-count {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 25, 22, 0.05);
}

.staff-vote-award-count span {
  color: #5f5752;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.staff-vote-award-count b {
  color: var(--ember-dark);
  font-size: 1.35rem;
  line-height: 1;
}

.staff-vote-award-foot {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.staff-vote-award-foot em {
  font-style: normal;
  font-weight: 850;
  color: #5f5752;
}

.staff-vote-category-detail {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(32, 25, 22, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.staff-vote-category-head h3 {
  margin-top: 8px;
  color: #171412;
}

.staff-vote-detail-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(247, 242, 233, 0.88);
  border: 1px solid rgba(32, 25, 22, 0.05);
}

.staff-vote-detail-main strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.staff-vote-detail-main span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.staff-vote-summary-row {
  display: grid;
  grid-template-columns: 42px minmax(200px, 0.9fr) minmax(340px, 1.3fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(247, 242, 233, 0.88);
  border: 1px solid rgba(32, 25, 22, 0.05);
}

.staff-vote-summary-main strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.staff-vote-summary-main span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.staff-vote-summary-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.staff-vote-pill {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(32, 25, 22, 0.06);
}

.staff-vote-pill span {
  color: #5f5752;
  font-size: 0.72rem;
  font-weight: 760;
}

.staff-vote-pill strong {
  color: var(--ember-dark);
  font-size: 1.08rem;
}

.staff-vote-more-actions {
  justify-content: center;
  margin-top: 14px;
}

@media (max-width: 1120px) {
  .staff-vote-awards-grid {
    grid-template-columns: 1fr;
  }

  .staff-vote-detail-row,
  .staff-vote-summary-row {
    grid-template-columns: 1fr;
  }

  .staff-vote-detail-row .vote-count,
  .staff-vote-summary-breakdown {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .topbar-actions {
    justify-content: flex-start;
  }

  .experience-grid,
  .home-hub,
  .festival-layout,
  .booking-layout,
  .reviews-layout,
  .vote-layout,
  .truck-admin-layout,
  .admin-login-panel,
  .staff-vote-layout,
  .analytics-chart-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-chart-card-wide {
    grid-column: auto;
  }

  .review-hero {
    grid-template-columns: 1fr;
  }

  .hero {
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.82), rgba(14, 13, 12, 0.68));
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.16);
  animation: revealUp 0.82s ease 0.08s both;
  transform: translateY(18px);
}
  .hero-countdown-bar p {
    grid-column: auto;
  }

  .hero-facts,
  .burger-progress {
    grid-column: auto;
  }

  .slots-grid,
  .truck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-toolbar {
    grid-template-columns: 1fr;
  }

  }

@media (max-width: 780px) {
  .app-shell {
    width: min(100% - 20px, 720px);
    padding-top: 10px;
  }

  .consent-banner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .consent-actions {
    width: 100%;
    justify-content: stretch;
  }

  .consent-actions .ghost-link,
  .consent-actions .primary-action {
    flex: 1 1 0;
  }

  .booking-panel .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-panel #availabilityReadout {
    margin-left: 0;
    white-space: normal;
  }

  .topbar {
    position: static;
  }

  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 3px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
}

.home-hub a,
.home-hub button {
  min-height: 86px !important;
  padding: 14px 16px !important;
  align-content: center !important;
  gap: 6px !important;
}

.home-hub span {
  font-size: 0.72rem !important;
}

.home-hub strong {
  font-size: 0.98rem !important;
}

@media (max-width: 780px) {
  .hero-countdown-bar {
    margin-top: 150px !important;
  }

  .home-hub a,
  .home-hub button {
    min-height: 78px !important;
  }
}
}
/* End CSSF home spacing polish */

/* CSSF home spacing polish */
.hero {
  padding-bottom: 0 !important;
}

.hero-countdown-bar {
  margin-top: 212px !important;
}

.home-hub {
  margin-top: 0 !important;
  transform: translateY(42px) !important;
}

.home-hub a,
.home-hub button {
  min-height: 86px !important;
  padding: 14px 16px !important;
  align-content: center !important;
  gap: 6px !important;
}

.home-hub span {
  font-size: 0.72rem !important;
}

.home-hub strong {
  font-size: 0.98rem !important;
}

@media (max-width: 780px) {
  .hero {
    padding-bottom: 0 !important;
  }

  .hero-countdown-bar {
    margin-top: 176px !important;
  }

  .home-hub {
    margin-top: 0 !important;
    transform: translateY(20px) !important;
  }

  .home-hub a,
  .home-hub button {
    min-height: 78px !important;
  }
}
/* End CSSF home spacing polish */













/* CSSF final home card position lock */
.hero {
  padding-bottom: 0 !important;
}

.hero > .home-hub {
  position: relative !important;
  top: 50px !important;
  margin-top: 0 !important;
  transform: none !important;
}

@media (max-width: 780px) {
  .hero > .home-hub {
    top: 24px !important;
  }
}
/* End CSSF final home card position lock */

/* CSSF home countdown final placement */
.hero {
  min-height: 820px !important;
  padding-bottom: 14px !important;
  background-position: center 14% !important;
}

.hero > .hero-countdown-bar {
  margin-top: 292px !important;
}

.hero > .home-hub {
  display: none !important;
}

@media (max-width: 780px) {
  .hero {
    min-height: 780px !important;
    padding-bottom: 14px !important;
    background-position: center 12% !important;
  }

  .hero > .hero-countdown-bar {
    margin-top: 220px !important;
  }
}
/* End CSSF home countdown final placement */



/* CSSF hero background final cleanup */
.hero {
  background-position: center 24% !important;
  background-size: cover !important;
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.18) 52%, rgba(5, 5, 5, 0.96) 100%) !important;
}

.hero > .hero-countdown-bar {
  margin-top: 318px !important;
}

@media (max-width: 780px) {
  .hero {
    background-position: center 22% !important;
  }

  .hero > .hero-countdown-bar {
    margin-top: 240px !important;
  }
}
/* End CSSF hero background final cleanup */

/* CSSF hero background anti-gap adjustment */
.hero {
  position: relative;
  min-height: 860px !important;
  padding-bottom: 18px !important;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.12) 52%, rgba(5, 5, 5, 0.26)),
    url("sfondo ok.png") !important;
  background-repeat: no-repeat !important;
  background-position: center, center 28% !important;
  background-size: auto, 108% auto !important;
}

.hero > .hero-countdown-bar {
  margin-top: 330px !important;
}

@media (max-width: 1120px) {
  .hero {
    min-height: 820px !important;
    background-position: center, center 24% !important;
    background-size: auto, auto 114% !important;
  }

  .hero > .hero-countdown-bar {
    margin-top: 292px !important;
  }
}

@media (max-width: 780px) {
  .hero {
    min-height: 790px !important;
    padding: 24px 20px 16px !important;
    background-position: center, center 20% !important;
    background-size: auto, auto 120% !important;
  }

  .hero > .hero-countdown-bar {
    margin-top: 244px !important;
  }
}
/* End CSSF hero background anti-gap adjustment */

/* CSSF hero copy readability tuning */
.hero::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.66) 0%, rgba(5, 5, 5, 0.48) 36%, rgba(5, 5, 5, 0.14) 66%, rgba(5, 5, 5, 0.24) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.34)) !important;
}

.hero-copy {
  width: min(920px, 100%);
  max-width: 920px !important;
}

.hero-event-meta {
  gap: 8px;
}

.hero-event-dates {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2rem, 4.15vw, 3.85rem) !important;
  line-height: 0.96;
}

.hero-eyebrow {
  margin-top: 142px;
  color: rgba(255, 250, 243, 0.82);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.54);
}

.hero-description {
  max-width: min(860px, 100%);
  margin-top: 10px;
  color: rgba(255, 250, 243, 0.96);
  font-size: clamp(1.25rem, 1.54vw, 1.48rem);
  font-weight: 650;
  line-height: 1.58;
  text-shadow: 0 9px 26px rgba(0, 0, 0, 0.62);
  text-wrap: pretty;
}

.hero-description strong {
  color: #fffaf3;
  font-weight: 1000;
  -webkit-text-stroke: 0.18px currentColor;
  text-shadow:
    0 1px 0 rgba(255, 250, 243, 0.2),
    0 9px 26px rgba(0, 0, 0, 0.62);
}

.hero > .hero-countdown-bar {
  margin-top: 154px !important;
}

@media (max-width: 1120px) {
  .hero-copy {
    max-width: 820px !important;
  }

  .hero-eyebrow {
    margin-top: 106px;
  }

  .hero-event-dates {
    font-size: clamp(1.8rem, 5.5vw, 3.35rem) !important;
  }

  .hero > .hero-countdown-bar {
    margin-top: 154px !important;
  }
}

@media (max-width: 780px) {
  .hero-copy {
    max-width: 100% !important;
  }

  .hero-event-dates {
    font-size: clamp(1.24rem, 6.25vw, 2.35rem) !important;
  }

  .hero-eyebrow {
    margin-top: 62px;
    font-size: 0.78rem;
  }

  .hero-description {
    font-size: 1.19rem;
    line-height: 1.5;
  }

  .hero > .hero-countdown-bar {
    margin-top: 150px !important;
  }
}
/* End CSSF hero copy readability tuning */

/* CSSF countdown box premium layout */
.hero-countdown-bar {
  justify-items: center;
  gap: 14px !important;
  padding: 22px clamp(18px, 3vw, 36px) 18px !important;
  text-align: center;
}

.hero-countdown-bar .live-status {
  display: none !important;
}

.countdown-heading {
  width: 100%;
  justify-items: center;
  margin-bottom: 2px;
}

.countdown-heading strong {
  max-width: 100%;
  color: #fffaf3;
  font-size: clamp(1.05rem, 1.75vw, 1.38rem) !important;
  line-height: 1.08;
  text-align: center;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.46);
}

.countdown-grid {
  width: min(900px, 100%);
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 12px;
  justify-content: center;
}

.countdown-unit {
  min-height: 74px;
  padding: 10px 8px;
  border-color: rgba(255, 250, 243, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 250, 243, 0.1);
}

.countdown-unit.seconds {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(232, 75, 42, 0.24);
}

.countdown-grid strong {
  font-size: clamp(2rem, 3vw, 2.65rem) !important;
}

.hero-facts {
  width: min(900px, 100%);
  justify-content: center;
  grid-column: auto !important;
  margin-top: 0;
}

.burger-progress {
  width: min(900px, 100%);
  --progress-track-left: 28px;
  --progress-track-right: 58px;
  height: 56px;
  margin-top: 2px !important;
  grid-column: auto !important;
}

@media (max-width: 780px) {
  .hero-countdown-bar {
    gap: 12px !important;
    padding: 18px 14px 16px !important;
  }

  .countdown-heading strong {
    font-size: 1rem !important;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .countdown-unit {
    min-height: 68px;
  }

  .countdown-grid strong {
    font-size: 2rem !important;
  }

  .burger-progress {
    --progress-track-left: 20px;
    --progress-track-right: 50px;
    width: 100%;
  }
}
/* End CSSF countdown box premium layout */

@media (max-width: 780px) {
  .festival-map {
    width: 760px;
    max-width: none;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: min(100% - 16px, 720px);
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .topbar {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 10px 12px;
  }

  .brand-mini {
    gap: 8px;
    min-width: 0;
  }

  .brand-mini img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }

  .brand-mini strong {
    display: inline-block;
    width: auto;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-right: 0;
    animation: none;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    line-height: 1.05;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(12, 11, 10, 0.96);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
  }

  .topbar.is-mobile-menu-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 250, 243, 0.1);
    background: rgba(255, 250, 243, 0.04);
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .topbar-actions .home-topbar-cta {
    display: none;
  }

  .topbar-actions .install-button {
    min-height: 40px;
    padding: 0 12px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .insta-orbit {
    width: 43px;
    min-width: 43px;
    min-height: 43px;
  }

  .insta-orbit-center {
    width: 43px;
    height: 43px;
  }

  .insta-orbit-center svg {
    width: 32px;
    height: 32px;
  }

  .insta-orbit::after {
    width: 27px;
    height: 27px;
  }

  .view-hero {
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 14px;
    padding: 18px;
  }

  .view-hero h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.05;
  }

  .view-hero p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .home-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-stats-band {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .home-stats-band article {
    min-height: 88px;
    padding: 14px 16px;
  }

  .home-stats-band strong {
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }

  .home-stats-band span {
    font-size: 0.82rem;
  }

  .taste-panel,
  .route-panel,
  .booking-panel,
  .event-panel,
  .map-panel,
  .selected-truck-panel,
  .truck-card,
  .vote-form,
  .leaderboard-panel,
  .admin-login-panel,
  .analytics-panel,
  .truck-admin-panel,
  .program-grid article,
  .review-form,
  .reviews-feed,
  .metrics-strip article,
  .slots-panel,
  .reservations-panel {
    padding: 18px;
  }

  .reviews-feed-header {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  .reviews-feed-header p {
    max-width: none;
    text-align: left;
  }

  .reviews-feed-banner {
    padding: 16px;
  }

  .review-form {
    position: static;
  }

  .review-star-control label {
    width: calc(20% - 8px);
    min-width: 0;
  }

  .review-form-grid,
  .reviews-insights {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .selected-truck-card h3,
  .truck-card h3 {
    font-size: 1.18rem;
  }

  .truck-grid,
  .slots-grid {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .leaderboard-row {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .vote-count {
    grid-column: 2;
    justify-self: start;
  }

  .review-card header,
  .booking-modal-heading,
  .slot-card header {
    display: grid;
    gap: 8px;
  }

  .filters {
    width: 100%;
    justify-content: stretch;
  }

  .search-field {
    width: 100%;
  }

  .booking-search-panel {
    width: min(280px, calc(100vw - 96px));
  }

  .booking-modal {
    padding: 12px;
  }

  .booking-modal-panel {
    gap: 14px;
  }

  .primary-action.large {
    min-width: 100%;
  }

  .consent-banner {
    left: 8px;
    right: 8px;
    width: auto;
    gap: 12px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .toast {
    left: 8px;
    right: 8px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: none;
  }

  .staff-app .app-shell {
    width: min(100% - 14px, 720px);
  }

  .staff-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .staff-topbar .site-nav {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    justify-content: flex-start;
  }

  .staff-topbar-actions .ghost-link {
    display: none;
  }

  .staff-topbar .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .staff-hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 18px;
  }

  .staff-hero h2 {
    font-size: clamp(1.7rem, 9vw, 2.45rem);
  }

  .staff-hero-status {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .staff-app .admin-login-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .staff-app .staff-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .staff-app .staff-actions button,
  .staff-app .staff-actions a {
    flex: 1 1 auto;
    width: 100%;
  }

  .staff-area-heading,
  .staff-app .reservations-heading {
    align-items: start;
    flex-direction: column;
  }

  .staff-actions.compact {
    width: 100%;
  }

  .staff-app .search-field {
    width: 100%;
  }

  .staff-app .booking-search-panel {
    width: 100%;
    max-width: none;
  }

  .staff-app .table-wrap {
    margin: 0 -4px;
  }

  .staff-app .bookings-export-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .staff-app .bookings-export-actions .primary-action {
    width: 100%;
  }

  .staff-app .bookings-export-actions .booking-toolbar {
    width: 100%;
    margin-left: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .staff-app .bookings-export-actions .booking-search-toggle {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
  }

  .staff-app .bookings-export-actions .booking-search-panel {
    width: 100%;
  }

  .staff-app #prenotazioni table {
    min-width: 0;
    width: 100%;
  }

  .staff-app #prenotazioni thead {
    display: none;
  }

  .staff-app #prenotazioni tbody,
  .staff-app #prenotazioni tr,
  .staff-app #prenotazioni td {
    display: block;
    width: 100%;
  }

  .staff-app #prenotazioni tbody tr {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid rgba(32, 25, 22, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(32, 25, 22, 0.04);
  }

  .staff-app #reservationsTable td:first-child {
    padding-left: 0;
  }

  .staff-app #reservationsTable tr td:first-child::before {
    left: -12px;
    top: -12px;
    bottom: -12px;
  }

  .staff-app #prenotazioni td,
  .staff-app #prenotazioni td:nth-child(1),
  .staff-app #prenotazioni td:nth-child(2),
  .staff-app #prenotazioni td:nth-child(3),
  .staff-app #prenotazioni td:nth-child(4),
  .staff-app #prenotazioni td:nth-child(5),
  .staff-app #prenotazioni td:nth-child(6) {
    min-width: 0;
    padding: 8px 0 0;
    text-align: left;
  }

  .staff-app #prenotazioni td:first-child {
    padding-top: 0;
  }

  .staff-app #prenotazioni td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .staff-app #prenotazioni .day-cell {
    white-space: normal;
  }

  .staff-app #prenotazioni .customer-inline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    white-space: normal;
  }

  .staff-app #prenotazioni .customer-inline-meta,
  .staff-app #prenotazioni .note-line {
    white-space: normal;
    word-break: break-word;
  }

  .staff-app #prenotazioni .status-select {
    width: 100%;
  }

  .staff-app #prenotazioni .row-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .staff-app #prenotazioni .small-button {
    width: 100%;
    min-height: 40px;
    padding: 8px 6px;
    justify-content: center;
    text-align: center;
  }

  .staff-app .staff-prize-table-heading {
    padding: 16px 16px 10px;
  }

  .staff-app .staff-prize-table-heading h3 {
    font-size: 1.05rem;
    line-height: 1.14;
  }

  .staff-app .staff-prize-table-meta {
    font-size: 0.86rem;
  }

  .booking-ops-strip {
    grid-template-columns: 1fr;
  }

  .prize-summary-grid {
    grid-template-columns: 1fr;
  }

  .staff-app .staff-prize-control-panel {
    gap: 10px;
  }

  .staff-app .staff-prize-winner {
    min-height: 180px;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .staff-app .staff-prize-winner strong {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }

  .staff-app #prizeSummary .prize-summary-card {
    min-height: 88px;
    padding: 14px;
  }

  .staff-app .analytics-line-chart {
    min-height: 300px;
  }

  .staff-app .analytics-chart-grid-simple .analytics-chart-card-wide {
    min-height: 0;
  }

  .staff-app .line-chart-summary {
    justify-items: start;
    text-align: left;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .staff-app .line-chart-summary strong {
    font-size: 0.92rem;
  }

  .staff-app .line-chart-summary span {
    font-size: 0.78rem;
  }

  .staff-app .line-chart-svg {
    height: 270px;
  }

  .staff-app .chart-x-labels {
    gap: 4px;
    margin-top: 6px;
    padding-left: 34px;
    padding-right: 6px;
    font-size: 0.68rem;
  }

  .staff-app .analytics-panel-simple {
    padding: 16px !important;
  }

  .staff-app .click-stat-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .staff-app .click-stat-rank {
    min-height: 36px;
    border-radius: 10px;
    font-size: 0.76rem;
  }

  .staff-app .click-stat-topline {
    gap: 8px;
  }

  .staff-app .click-stat-topline strong {
    font-size: 0.9rem;
  }

  .staff-app .click-stat-body small {
    font-size: 0.74rem;
  }

  .staff-app .staff-prize-table-panel table,
  .staff-app .staff-vote-detail table {
    min-width: 0;
    width: 100%;
  }

  .staff-app .staff-prize-table-panel thead,
  .staff-app .staff-vote-detail thead {
    display: none;
  }

  .staff-app .staff-prize-table-panel tbody,
  .staff-app .staff-prize-table-panel tr,
  .staff-app .staff-prize-table-panel td,
  .staff-app .staff-vote-detail tbody,
  .staff-app .staff-vote-detail tr,
  .staff-app .staff-vote-detail td {
    display: block;
    width: 100%;
  }

  .staff-app .staff-prize-table-panel tbody tr,
  .staff-app .staff-vote-detail tbody tr {
    margin: 0 12px 12px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(32, 25, 22, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
  }

  .staff-app .staff-prize-table-panel tbody tr::before,
  .staff-app .staff-vote-detail tbody tr::before {
    top: 10px;
    bottom: 10px;
  }

  .staff-app .staff-prize-table-panel td,
  .staff-app .staff-vote-detail td {
    padding: 8px 0 0;
    border-bottom: 0;
  }

  .staff-app .staff-prize-table-panel td:first-child,
  .staff-app .staff-vote-detail td:first-child {
    padding-top: 0;
  }

  .staff-app .staff-prize-table-panel td::before,
  .staff-app .staff-vote-detail td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .staff-app .analytics-chart-grid,
  .staff-app .analytics-overview,
  .staff-prize-grid {
    grid-template-columns: 1fr;
  }

  .staff-prize-control-panel,
  .staff-prize-table-panel {
    min-height: 0;
  }

  .staff-app .analytics-overview {
    gap: 10px;
  }

  .staff-app .analytics-hero-card,
  .staff-app .analytics-kpi-card,
  .staff-app .analytics-mix-card,
  .staff-app .analytics-chart-card,
  .staff-app .analytics-panel,
  .staff-app .staff-prize-table-panel {
    min-height: 0;
  }

  .staff-app .analytics-chart-card {
    padding: 14px;
  }

  .staff-app .chart-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .staff-app .chart-heading strong {
    font-size: 1.2rem;
  }

  .analytics-column-chart {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-program-list div,
  .home-sponsor-item {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .hero-event-dates {
    white-space: normal;
  }

  .hero-description {
    font-size: 1rem !important;
    line-height: 1.46;
  }

  .home-hub {
    grid-template-columns: 1fr 1fr;
  }

  .festival-map {
    width: 680px;
  }

  .brand-mini strong {
    max-width: 128px;
    font-size: 0.72rem;
  }

  .topbar-actions .install-button {
    min-width: 40px;
    padding: 0 10px;
  }

  .premium-topbar .topbar-actions #installButton .install-button-label {
    display: none;
  }

  .home-stats-band {
    grid-template-columns: 1fr;
  }
}

/* Home premium refresh */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-secondary-action {
  border-color: rgba(243, 182, 63, 0.42);
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.96), rgba(22, 20, 18, 0.96));
  color: #ffd338;
  box-shadow: 0 18px 32px rgba(12, 10, 9, 0.28);
}

.hero-secondary-action:hover,
.hero-secondary-action:focus-visible {
  border-color: rgba(255, 211, 56, 0.72);
  background: linear-gradient(180deg, rgba(22, 20, 18, 0.98), rgba(33, 29, 24, 0.98));
  color: #ffdc60;
}

.hero-facts {
  margin-top: 18px;
}

.home-stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.home-stats-band article {
  min-height: 78px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid rgba(234, 223, 210, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(243, 182, 63, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 239, 0.94)),
    rgba(255, 250, 243, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 24px rgba(32, 25, 22, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.home-stats-band article:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 75, 42, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 28px rgba(32, 25, 22, 0.09);
}

.home-stats-band strong {
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(1.15rem, 1.55vw, 1.65rem);
  line-height: 1;
  color: #161412;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.home-stats-band span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

@media (min-width: 901px) {
  .home-stats-band {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 16px;
    padding: 0;
  }

  .home-stats-band article {
    width: 100%;
    min-height: 84px;
    padding: 14px 22px;
  }
}

.home-section {
  margin-top: 18px;
  padding: 34px clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at top, rgba(243, 182, 63, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(20, 18, 16, 0.98), rgba(14, 13, 12, 0.98)),
    #161412;
  color: #fffaf3;
  box-shadow: 0 26px 54px rgba(22, 20, 18, 0.18);
}

.home-section .section-intro {
  align-items: end;
}

.home-section .section-intro h2,
.home-spotlight-copy h2 {
  color: #fffaf3;
  margin-top: 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
}

.home-section .section-intro p,
.home-section p,
.home-spotlight-copy p {
  color: rgba(255, 250, 243, 0.72);
}

.home-program-card .section-label,
.home-map-card .section-label {
  background: rgba(243, 182, 63, 0.16);
  color: #ffd371;
}

.home-inline-action {
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  border-color: rgba(243, 182, 63, 0.58);
  background: linear-gradient(180deg, #ffd338, #f3b63f);
  color: #161412;
  box-shadow: 0 14px 26px rgba(243, 182, 63, 0.18);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.home-feature-card {
  position: relative;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 8px;
  background-color: #111;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.home-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.08), rgba(10, 9, 8, 0.12) 32%, rgba(10, 9, 8, 0.82)),
    linear-gradient(180deg, transparent 55%, rgba(10, 9, 8, 0.76));
}

.feature-card-panzerotto {
  background-image: url("panzerotto.png");
  background-position: center 48%;
}

.feature-card-butchers {
  background-image: url("corn dog.png");
  background-position: center 62%;
}

.feature-card-birra {
  background-image: url("birra.png");
  background-position: center 48%;
}

.feature-card-dolci {
  background-image: url("armonia.png");
  background-position: center 48%;
}

.home-feature-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.home-feature-overlay span {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3b63f;
  color: #161412;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.home-feature-overlay h3 {
  color: #fffaf3;
  font-size: 1.32rem;
  line-height: 1;
}

.home-feature-overlay p {
  color: rgba(255, 250, 243, 0.82);
  font-size: 0.93rem;
  line-height: 1.48;
}

.home-spotlight-grid,
.home-social-grid {
  display: grid;
  gap: 14px;
}

.home-spotlight-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.home-social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-spotlight-card,
.home-social-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 250, 243, 0.04);
}

.home-spotlight-card {
  min-height: 430px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
}

.home-program-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    url("musica.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.46);
  opacity: 1;
}

.home-spotlight-copy,
.home-program-list,
.home-spotlight-card > a,
.home-social-card > * {
  position: relative;
  z-index: 1;
}

.home-program-list {
  display: grid;
  gap: 10px;
  max-width: 58%;
}

.home-program-list div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.52), rgba(8, 7, 6, 0.68)),
    rgba(10, 9, 8, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-program-list strong {
  color: #f3b63f;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.home-program-list span {
  color: rgba(255, 250, 243, 0.96);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-program-card .home-inline-action {
  border-color: rgba(243, 182, 63, 0.58);
  background: linear-gradient(180deg, #ffd338, #f3b63f);
  color: #161412;
  box-shadow: 0 14px 26px rgba(243, 182, 63, 0.18);
}

.home-map-card {
  grid-template-rows: auto 1fr auto;
}

.home-map-preview {
  min-height: 220px;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.12), rgba(10, 9, 8, 0.22)),
    url("mappa.jpeg");
  background-position: center 48%;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-social-card {
  min-height: 278px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.home-social-card h3 {
  color: #fffaf3;
  font-size: 1.45rem;
}

.social-map-card {
  grid-template-rows: auto auto auto 1fr;
}

.social-moments-card {
  grid-template-rows: auto auto auto 1fr auto;
}

.home-moments-preview {
  min-height: 180px;
  margin-top: auto;
  border: 1px solid rgba(255, 250, 243, 0.14);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 250, 243, 0.08);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.home-moments-preview img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.home-reach-map {
  min-height: 320px;
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
}

.home-reach-map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.moments-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
}

.moments-form,
.moments-preview-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 243, 0.92)),
    rgba(255, 250, 243, 0.95);
  box-shadow: 0 14px 44px rgba(32, 25, 22, 0.08);
}

.moments-form {
  display: grid;
  gap: 18px;
}

.moments-form-head,
.staff-moments-head {
  display: grid;
  gap: 8px;
}

.moments-form-note,
.staff-moments-head p {
  color: var(--muted);
  line-height: 1.55;
}

.moments-form-grid {
  display: grid;
  gap: 14px;
}

.moments-form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.moments-file-field input[type="file"] {
  width: 100%;
  min-width: 0;
}

.moments-file-field small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.moments-preview-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.moments-preview-frame {
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(32, 25, 22, 0.18);
  border-radius: 16px;
  background: rgba(22, 20, 18, 0.04);
}

.moments-preview-frame p {
  max-width: 260px;
  color: var(--muted);
  text-align: center;
}

.moments-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-moments-panel {
  display: grid;
  gap: 16px;
}

.staff-moments-head,
.staff-review-summary-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.staff-moments-head {
  padding: 16px 18px;
  border: 1px solid rgba(32, 25, 22, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 232, 0.94)),
    #fffaf3;
  box-shadow: 0 12px 28px rgba(32, 25, 22, 0.04);
}

.staff-moments-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-moments-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}

.moment-card {
  overflow: hidden;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(32, 25, 22, 0.035);
}

.moment-card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(22, 20, 18, 0.06);
}

.moment-card-delete {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.82);
  color: #fffaf3;
  font-size: 0.52rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.moment-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.moment-card-actions {
  padding: 3px 4px 4px;
}

.moment-card-head,
.moment-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.moment-status-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 182, 63, 0.14);
  color: #8a5a00;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.moment-card-meta a {
  color: var(--ember-dark);
  font-weight: 800;
  font-size: 0.5rem;
  line-height: 1.1;
  text-decoration: none;
}

.moments-load-more {
  justify-content: flex-start;
  margin: 0;
}

.moments-footer-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 6px;
}

.moments-footer-actions .ghost-link,
.moments-footer-actions .primary-action {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.7rem;
  border-radius: 999px;
}

.moments-footer-actions .primary-action {
  min-width: 0;
}

.moments-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.staff-review-summary-panel {
  display: grid;
  gap: 16px;
}

.staff-review-summary-head {
  padding: 16px 18px;
  border: 1px solid rgba(32, 25, 22, 0.06);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 235, 0.94)),
    #fffaf3;
  box-shadow: 0 12px 28px rgba(32, 25, 22, 0.04);
}

.staff-review-summary-head h3 {
  margin-top: 8px;
  color: #171412;
}

.staff-review-feed {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(32, 25, 22, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.staff-review-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-review-feed-head h4 {
  color: #171412;
}

@media (max-width: 780px) {
  body[data-page="moments"] .moments-layout {
    grid-template-columns: 1fr;
  }

  body[data-page="moments"] .moments-form,
  body[data-page="moments"] .moments-preview-panel {
    padding: 18px;
    border-radius: 12px;
  }

  body[data-page="moments"] .moments-preview-frame {
    min-height: 280px;
  }

  body[data-page="moments"] .moments-form-note {
    font-size: 0.95rem;
  }

  body[data-page="gestione"] .admin-moments-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .moments-footer-actions {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  body[data-page="moments"] .moments-form {
    gap: 16px;
  }

  body[data-page="moments"] .moments-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="moments"] .moments-file-field {
    padding: 12px;
    border: 1px solid rgba(32, 25, 22, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
  }

  body[data-page="moments"] .moments-file-field input[type="file"] {
    font-size: 0.9rem;
  }

  body[data-page="moments"] .moments-file-field small {
    margin-top: 2px;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  body[data-page="moments"] .privacy-check {
    gap: 10px;
  }

  body[data-page="moments"] .privacy-check span {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  body[data-page="moments"] .moments-preview-panel {
    gap: 10px;
  }

  body[data-page="moments"] .moments-preview-frame {
    min-height: 220px;
  }

  body[data-page="moments"] .moments-form .primary-action {
    width: 100%;
  }

  body[data-page="moments"] .auth-status {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  body[data-page="gestione"] .admin-moments-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .moment-card-head,
  .moment-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .moments-footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .moments-load-more {
    justify-content: center;
  }

  .moments-actions .primary-action {
    width: 100%;
  }
}

.social-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.social-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 8px;
  background-image: url("sfondo home.png");
  background-size: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.thumb-one { background-position: 18% 30%; }
.thumb-two { background-position: 38% 52%; }
.thumb-three { background-position: 64% 58%; }
.thumb-four { background-position: 82% 30%; }

.home-rating-line {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(243, 182, 63, 0.22);
  border-radius: 8px;
  background: rgba(243, 182, 63, 0.08);
}

.home-rating-line strong {
  color: #fffaf3;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 2rem;
  line-height: 0.94;
}

.home-rating-line span {
  color: rgba(255, 250, 243, 0.74);
  font-size: 0.92rem;
  font-weight: 700;
}

.home-sponsor-ticker {
  position: relative;
  margin-top: auto;
  transform: translateY(8px);
  overflow: hidden;
  border: 1px solid rgba(255, 250, 243, 0.12);
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.03);
}

.home-sponsor-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 16px 0;
  animation: sponsorTicker 18s linear infinite;
}

.home-sponsor-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 8px;
  flex: 0 0 auto;
}

.home-sponsor-item {
  min-width: 280px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 250, 243, 0.08);
  border-radius: 12px;
  background: rgba(255, 250, 243, 0.04);
}

.home-sponsor-item img {
  max-width: 220px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1.04) contrast(1.02);
}


.home-sponsor-ticker:hover .home-sponsor-track {
  animation-play-state: paused;
}

@keyframes sponsorTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  .home-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-spotlight-grid,
  .home-social-grid {
    grid-template-columns: 1fr;
  }

  .home-program-list {
    max-width: none;
    padding-right: 36%;
  }
}

@media (max-width: 900px) {
  .home-stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .home-program-card::after {
    inset: 0;
    width: auto;
  }
}

@media (max-width: 780px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-stats-band {
    margin-top: 14px;
  }

  .home-section {
    padding: 22px 16px;
  }

  .home-feature-grid,
  .home-stats-band,
  .home-social-grid {
    grid-template-columns: 1fr;
  }

  .vote-extra-fields {
    grid-template-columns: 1fr;
  }

  .home-spotlight-card,
  .home-social-card {
    min-height: 0;
  }

  .home-program-card::after {
    position: relative;
    width: 100%;
    min-height: 180px;
    top: auto;
    right: auto;
    order: 3;
    display: block;
  }

  .home-program-list {
    padding-right: 0;
  }
}

/* Home premium v2 */
body[data-page="home"] .app-shell {
  width: min(100%, 1440px);
  padding-top: 0;
}

.premium-topbar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  left: auto;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 14px auto 0;
  min-height: 76px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.96), rgba(12, 11, 10, 0.9));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  transform: none;
}

.premium-topbar .brand-mini {
  gap: 12px;
  align-items: center;
}

.premium-topbar .brand-mini strong {
  display: inline-block;
  background: linear-gradient(90deg, #f3b63f 0%, #d4a574 25%, #8b6f47 50%, #c9a961 75%, #f3b63f 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: none;
  overflow: visible;
  white-space: normal;
  border-right: 0;
  width: auto;
  animation: waveFlow 6s ease-in-out infinite;
}

.premium-topbar .brand-mini img {
  width: 72px;
  height: 72px;
}

.premium-topbar .site-nav {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 12px;
}

.premium-topbar .site-nav a {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 250, 243, 0.92);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-topbar .topbar-actions {
  flex-wrap: nowrap;
  justify-self: end;
}

.partner-section {
  display: grid;
  gap: 18px;
}

.partner-groups {
  display: grid;
  gap: 18px;
}

.partner-tier {
  padding: 24px;
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.96)),
    #fffaf3;
  box-shadow: 0 12px 30px rgba(32, 25, 22, 0.08);
}

.partner-tier-main {
  background:
    radial-gradient(circle at top left, rgba(243, 182, 63, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 231, 0.98));
}

.partner-tier-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.partner-tier-head .section-label {
  color: #8a5a00;
  background: rgba(243, 182, 63, 0.14);
}

.partner-tier h3 {
  color: #171412;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 16px;
}

.partner-list-patrocinio {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-main-showcase {
  display: grid;
}

.partner-brand {
  min-height: 138px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 18px 10px 14px;
  text-align: center;
}

.partner-brand img {
  width: 100%;
  max-width: 210px;
  max-height: 84px;
  object-fit: contain;
}

.partner-brand strong {
  color: #171412;
  font-size: 0.98rem;
  line-height: 1.18;
}

.partner-brand span {
  color: #7d6f67;
  font-size: 0.88rem;
  font-weight: 700;
}

.partner-brand--wide {
  min-height: 154px;
}

.partner-brand--spotlight {
  min-height: 0;
  gap: 18px;
  padding: 8px 0 0;
}

.partner-brand--text {
  min-height: 110px;
}

.partner-main-logos {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  padding: 18px 0 10px;
}

.partner-main-logos img {
  max-width: 180px;
  max-height: 78px;
}

.partner-main-logos img:first-child {
  max-width: 280px;
  max-height: 112px;
}

@media (max-width: 780px) {
  .partner-tier {
    padding: 18px;
  }

  .partner-list,
  .partner-list-patrocinio {
    grid-template-columns: 1fr;
  }

  .partner-main-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 10px 0 6px;
  }

  .partner-brand {
    min-height: 112px;
    gap: 10px;
    padding: 12px 2px;
  }

  .partner-brand img {
    max-width: 170px;
    max-height: 68px;
  }

  .partner-brand--spotlight {
    gap: 14px;
    padding-top: 4px;
  }

  .partner-main-logos img {
    max-width: 140px;
    max-height: 56px;
    justify-self: center;
  }

  .partner-main-logos img:first-child {
    max-width: 168px;
    max-height: 72px;
  }

  .partner-brand strong {
    font-size: 0.92rem;
  }

  .partner-brand span {
    font-size: 0.82rem;
  }
}

.premium-topbar .site-nav a.is-active,
.premium-topbar .site-nav a:hover,
.premium-topbar .site-nav a:focus-visible {
  background: transparent;
  color: #f3b63f;
  box-shadow: none;
}

.premium-topbar .topbar-actions .insta-orbit {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
}

body[data-page="home"] .hero {
  min-height: 930px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: end;
  gap: 24px;
  padding: 156px clamp(28px, 5vw, 54px) 36px;
  width: 100%;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 243, 0.92)),
    rgba(255, 250, 243, 0.95),
    linear-gradient(90deg, rgba(7, 7, 7, 0.58), rgba(7, 7, 7, 0.18) 46%, rgba(7, 7, 7, 0.1)),
    url("sfondo ok.png");
  background-position: center 20%;
  background-size: cover;
  box-shadow: 0 14px 44px rgba(32, 25, 22, 0.08);
}

body[data-page="home"] .hero::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.56) 0%, rgba(5, 5, 5, 0.3) 34%, rgba(5, 5, 5, 0.08) 62%, rgba(5, 5, 5, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.38)) !important;
}

body[data-page="home"] .hero::after {
  background:
    linear-gradient(180deg, transparent 72%, rgba(5, 5, 5, 0.48)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.96) 0 3.5%, transparent 3.5%);
}

body[data-page="home"] .hero-copy {
  width: min(700px, 100%);
  max-width: 700px !important;
  align-self: center;
  padding-top: 12px;
}

body[data-page="home"] .hero-date-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #f3b63f;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

body[data-page="home"] .hero-date-ribbon i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.92);
}

body[data-page="home"] .hero-date-caption {
  margin-top: 4px;
  color: rgba(255, 250, 243, 0.94);
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
}

body[data-page="home"] .hero-title-stack {
  display: grid;
  margin-top: 18px;
  line-height: 0.84;
}

body[data-page="home"] .hero-title-stack span {
  color: #f7f3ed;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(4.5rem, 9vw, 8rem);
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.18),
    0 14px 36px rgba(0, 0, 0, 0.38);
}

body[data-page="home"] .hero-title-stack .accent {
  color: #f3b63f;
}

body[data-page="home"] .hero-title-stack em {
  margin-top: 6px;
  color: #fffaf3;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

body[data-page="home"] .hero-description {
  max-width: 560px;
  margin-top: 18px;
  font-size: clamp(1.05rem, 1.45vw, 1.26rem);
  font-weight: 800;
  line-height: 1.44;
}

body[data-page="home"] .hero-icon-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

body[data-page="home"] .hero-icon-facts span {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: rgba(255, 250, 243, 0.96);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

body[data-page="home"] .hero-icon-facts strong {
  color: #f3b63f;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 1.32rem;
  line-height: 1;
}

body[data-page="home"] .hero-actions {
  margin-top: 28px;
}

body[data-page="home"] .hero-actions .primary-action {
  min-width: 214px;
  background: linear-gradient(180deg, #ffd338, #f3b63f);
  color: #161412;
  box-shadow: 0 18px 32px rgba(243, 182, 63, 0.22);
}

body[data-page="home"] .hero-actions .hero-secondary-action {
  min-width: 198px;
}

body[data-page="home"] .hero > .hero-countdown-bar {
  width: min(420px, 100%);
  margin: 0 0 18px auto !important;
  align-self: end;
  justify-self: end;
}

body[data-page="home"] .hero-countdown-bar {
  padding: 20px 22px 18px !important;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0.92), rgba(16, 14, 12, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.24);
}

body[data-page="home"] .countdown-heading {
  margin-bottom: 14px;
}

body[data-page="home"] .countdown-heading strong {
  font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f3b63f;
}

body[data-page="home"] .hero-countdown-bar {
  padding: 20px 22px 18px !important;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 13, 10, 0.98), rgba(15, 12, 9, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 40px rgba(0, 0, 0, 0.24);
}

body[data-page="home"] .countdown-heading {
  margin-bottom: 14px;
}

body[data-page="home"] .countdown-heading strong {
  font-size: clamp(0.95rem, 1.2vw, 1.25rem) !important;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #f3b63f;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body[data-page="home"] .hero-countdown-bar {
  padding: 9px 12px 8px !important;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(180deg, rgba(18, 16, 14, 0.96), rgba(10, 9, 7, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.22);
}

body[data-page="home"] .countdown-heading {
  margin-bottom: 8px;
}

body[data-page="home"] .countdown-heading strong {
  font-size: clamp(0.88rem, 1vw, 1.08rem) !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #f3b63f;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}

body[data-page="home"] .countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 10px;
  border: none;
  background: transparent;
  border-radius: 28px;
}

body[data-page="home"] .countdown-unit {
  position: relative;
  min-height: 74px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 8px 8px 7px;
  border-radius: 16px;
  background: rgba(13, 11, 9, 0.95);
  color: #f7f3ed;
  text-transform: uppercase;
  box-shadow: none;
  border: none;
  border-right: none;
}

body[data-page="home"] .countdown-unit::before {
  display: none;
}

body[data-page="home"] .countdown-unit:last-child {
  border-right: none;
}

body[data-page="home"] .countdown-unit strong {
  position: relative;
  font-variant-numeric: tabular-nums;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: clamp(1.95rem, 3vw, 2.55rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

body[data-page="home"] .countdown-label {
  display: block;
  margin-top: 5px;
  color: #f3b63f;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  font-weight: 900;
}

body[data-page="home"] .countdown-unit.seconds {
  background: rgba(13, 11, 9, 0.98);
}

body[data-page="home"] .home-stats-band {
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 0;
}

body[data-page="home"] .home-section {
  margin-top: 8px;
}

body[data-page="home"] .home-section .section-intro h2,
body[data-page="home"] .home-spotlight-copy h2 {
  font-size: clamp(2rem, 2.8vw, 2.9rem);
}

body[data-page="home"] .home-feature-card {
  min-height: 308px;
}

body[data-page="home"] .feature-card-birra {
  background-image: url("sfondo home.png");
  background-position: 82% 34%;
}

body[data-page="home"] .feature-card-dolci {
  background-position: center 52%;
}

body[data-page="home"] .home-spotlight-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

body[data-page="home"] .home-program-card::after {
  inset: 0;
  width: auto;
}

body[data-page="home"] .home-map-preview {
  min-height: 246px;
}

@media (max-width: 1180px) {
  .premium-topbar {
    width: calc(100% - 24px);
  }

  body[data-page="home"] .hero {
    min-height: 860px;
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero-copy {
    max-width: 760px !important;
  }

  body[data-page="home"] .hero > .hero-countdown-bar {
    width: min(560px, 100%);
    margin-left: 0 !important;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .premium-topbar {
    grid-template-columns: auto 1fr;
    row-gap: 10px;
  }

  .premium-topbar .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 780px) {
  .premium-topbar {
    top: max(10px, env(safe-area-inset-top));
    width: calc(100% - 16px);
    padding: 10px 12px;
  }

  .premium-topbar .brand-mini img {
    width: 58px;
    height: 58px;
  }

  body[data-page="home"] .hero {
    min-height: 760px;
    padding: 148px 16px 20px;
  }

  body[data-page="home"] .hero-date-ribbon {
    gap: 12px;
    font-size: clamp(1.45rem, 7vw, 2.3rem);
  }

  body[data-page="home"] .hero-date-caption {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  body[data-page="home"] .hero-title-stack span {
    font-size: clamp(2.9rem, 14vw, 5.4rem);
  }

  body[data-page="home"] .hero-title-stack em {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  body[data-page="home"] .hero-description {
    font-size: 0.98rem !important;
    line-height: 1.42;
  }

  body[data-page="home"] .hero-icon-facts {
    gap: 12px;
  }

  body[data-page="home"] .hero-icon-facts span {
    font-size: 0.78rem;
  }

  body[data-page="home"] .home-stats-band {
    padding: 0;
  }

  body[data-page="home"] .hero > .hero-countdown-bar {
    width: 100%;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 560px) {
  .premium-topbar .site-nav a {
    font-size: 0.82rem;
  }

  body[data-page="home"] .hero {
    min-height: 700px;
    padding-top: 144px;
  }

  body[data-page="home"] .hero-date-ribbon i {
    width: 6px;
    height: 6px;
  }

  body[data-page="home"] .hero-icon-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

/* Home premium v3 */
.premium-topbar .topbar-actions #installButton {
  display: inline-flex !important;
  min-width: 46px;
  padding: 0 12px;
  font-size: 0.92rem;
}

.premium-topbar .topbar-actions #installButton svg {
  width: 18px;
  height: 18px;
  animation: downloadArrow 1.5s ease-in-out infinite;
}

.premium-topbar .topbar-actions #installButton .install-button-label {
  display: inline-block;
  margin-left: 8px;
}

.premium-topbar .home-topbar-cta {
  min-height: 50px;
  padding: 0 22px;
  background: linear-gradient(180deg, #ffd338, #f3b63f);
  color: #161412;
  box-shadow: 0 16px 30px rgba(243, 182, 63, 0.22);
}

body[data-page="home"] .hero {
  min-height: 900px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  padding: 52px clamp(28px, 5vw, 54px) 40px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.58), rgba(7, 7, 7, 0.18) 46%, rgba(7, 7, 7, 0.1)),
    url("sfondo ok.png");
  background-position: center 20%;
  background-size: cover;
}

body[data-page="home"] .hero::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.62) 0%, rgba(5, 5, 5, 0.32) 34%, rgba(5, 5, 5, 0.06) 60%, rgba(5, 5, 5, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.14), rgba(5, 5, 5, 0.36)) !important;
}

body[data-page="home"] .hero-copy {
  align-self: end;
  padding-bottom: 56px;
}

body[data-page="home"] .hero-date-ribbon {
  font-size: clamp(2.2rem, 4vw, 3.55rem);
}

body[data-page="home"] .hero-date-caption {
  font-size: clamp(1.9rem, 2.8vw, 3.2rem);
}

body[data-page="home"] .hero-location-line {
  margin-top: 8px;
  color: rgba(255, 250, 243, 0.88);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page="home"] .hero-title-stack span {
  font-size: clamp(5rem, 9vw, 8.6rem);
}

body[data-page="home"] .hero-title-stack em {
  font-size: clamp(3.2rem, 5vw, 4.9rem);
}

body[data-page="home"] .hero-description {
  max-width: 500px;
}

body[data-page="home"] .hero-side {
  position: relative;
  min-height: 100%;
  display: grid;
  align-items: end;
  justify-items: center;
}

body[data-page="home"] .hero-visual-stage {
  display: none;
}

body[data-page="home"] .hero-burger-shot,
body[data-page="home"] .hero-beer-shot {
  display: none;
}

body[data-page="home"] .hero-side .hero-countdown-bar {
  position: relative;
  z-index: 2;
  width: min(840px, 100%);
  margin: 14px auto 0 !important;
  transform: translate(-18px, 6px);
}

body[data-page="home"] .hero-countdown-bar {
  margin-bottom: 4px !important;
}

body[data-page="home"] .home-stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 0;
}

body[data-page="home"] .home-stats-heading {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 2px;
  text-align: center;
}

body[data-page="home"] .home-stats-heading .section-label {
  background: rgba(232, 75, 42, 0.08);
}

body[data-page="home"] .home-stats-heading h2 {
  margin: 0;
  color: #161412;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
}

body[data-page="home"] .home-section {
  background:
    radial-gradient(circle at top, rgba(243, 182, 63, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(16, 14, 13, 0.99), rgba(11, 10, 9, 0.99)),
    #11100f;
}

body[data-page="home"] .home-feature-grid {
  gap: 16px;
}

body[data-page="home"] .home-feature-card {
  min-height: 316px;
}

body[data-page="home"] .feature-card-panzerotto {
  background-image: url("panzerotto.png");
  background-position: center 45%;
}

body[data-page="home"] .feature-card-butchers {
  background-image: url("corn dog.png");
  background-position: center 60%;
}

body[data-page="home"] .feature-card-birra {
  background-image: url("birra.png");
  background-position: center 45%;
}

body[data-page="home"] .home-program-card::after {
  inset: 0;
  width: auto;
}

body[data-page="home"] .home-program-list {
  max-width: 52%;
}

body[data-page="home"] .social-review-card .primary-action,
body[data-page="home"] .home-program-card .primary-action,
body[data-page="home"] .home-map-card .primary-action {
  background: linear-gradient(180deg, #ffd338, #f3b63f);
  color: #161412;
}

@media (max-width: 1180px) {
  body[data-page="home"] .hero {
    min-height: 820px;
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero-copy {
    padding-bottom: 0;
    align-self: start;
  }

  body[data-page="home"] .hero-side {
    min-height: 0;
    width: 100%;
  }

  body[data-page="home"] .hero-side .hero-countdown-bar {
    width: min(780px, 100%);
    transform: translate(-10px, 4px);
  }
}

@media (max-width: 780px) {
  .premium-topbar .home-topbar-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  body[data-page="home"] .hero {
    min-height: 740px;
    padding: 30px 16px 18px;
  }

  body[data-page="home"] .hero-copy {
    padding-top: 0;
  }

  body[data-page="home"] .hero-side .hero-countdown-bar {
    width: 100%;
    margin-top: 14px !important;
    transform: none;
  }

  body[data-page="home"] .home-program-list {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .premium-topbar .home-topbar-cta {
    display: none;
  }

  body[data-page="home"] .hero {
    min-height: 700px;
  }
}

/* Mobile optimization pass */
@media (max-width: 780px) {
  .premium-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0;
    align-items: center;
    min-height: 72px;
    padding: 9px 10px 7px;
  }

  .premium-topbar .brand-mini {
    min-width: 0;
    gap: 8px;
    align-items: center;
    transform: translateY(3px);
  }

  .premium-topbar .brand-mini img {
    width: 46px;
    height: 46px;
  }

  .premium-topbar .brand-mini strong {
    width: auto;
    max-width: 210px;
    overflow: hidden;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    border-right: 0;
    animation: none;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
  }

  .premium-topbar .site-nav {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    gap: 6px;
    padding: 10px;
    border-radius: 12px;
  }

  .premium-topbar .site-nav a,
  .premium-topbar .site-nav button {
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 1px solid rgba(255, 250, 243, 0.08);
    border-radius: 10px;
    background: rgba(255, 250, 243, 0.05);
    font-size: 0.86rem;
  }

  .premium-topbar .site-nav a.is-active,
  .premium-topbar .site-nav a:hover,
  .premium-topbar .site-nav a:focus-visible {
    background: rgba(243, 182, 63, 0.14);
  }

  .premium-topbar .topbar-actions {
    gap: 8px;
    align-items: center;
    transform: translateY(3px);
  }

  .premium-topbar .topbar-actions #installButton {
    min-width: 42px;
    min-height: 42px;
    padding: 0 10px;
  }

  .premium-topbar .topbar-actions #installButton .install-button-label {
    display: none;
  }

  .mobile-menu-toggle {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border-radius: 10px;
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
  }

.analytics-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.analytics-overview-simple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.analytics-hero-card,
.analytics-kpi-card,
.analytics-mix-card,
.analytics-chart-card,
.staff-prize-winner {
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(32, 25, 22, 0.04);
}

.analytics-hero-card,
.analytics-kpi-card,
.analytics-mix-card {
  min-height: 0;
  padding: 16px;
}

.analytics-hero-card strong,
.analytics-kpi-card strong {
  letter-spacing: -0.04em;
}

.analytics-mix-card {
  grid-column: span 4;
}

.analytics-chart-grid {
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, 0.8fr);
}

.analytics-chart-grid-simple {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.analytics-chart-card {
  min-height: 360px;
  padding: 18px;
  overflow: visible;
}

.analytics-chart-grid-simple .analytics-chart-card-wide {
  min-height: 560px;
  overflow: visible;
}

.analytics-chart-grid-simple .analytics-panel-simple {
  padding: 20px !important;
}

.analytics-chart-grid-simple .analytics-panel-simple h3 {
  margin-bottom: 14px;
  color: #171412;
}

.analytics-overview-simple {
  margin-top: 16px;
}

.analytics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-grid article:last-child {
  grid-column: 1 / -1;
}

.staff-app .analytics-grid article,
.staff-app .communication-panel,
.staff-app .leaderboard-panel.compact,
.staff-app .staff-vote-detail,
.staff-app .staff-prize-table-panel {
  border: 1px solid rgba(32, 25, 22, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.staff-app .analytics-grid article,
.staff-app .communication-panel,
.staff-app .leaderboard-panel.compact {
  padding: 16px;
}

.staff-app .staff-vote-detail,
.staff-app .staff-prize-table-panel {
  padding: 0;
}

.analytics-panel-simple {
  padding: 16px !important;
}

.staff-app .reservations-panel > .reservations-heading {
  padding: 12px 12px 10px;
}

.staff-app .staff-votes-panel > .reservations-heading {
  margin-bottom: 12px;
}

  .topbar.is-mobile-menu-open .mobile-menu-toggle {
    border-color: rgba(243, 182, 63, 0.34);
    background: rgba(243, 182, 63, 0.12);
  }

  .topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(1),
  .topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(2),
  .topbar.is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: none;
    opacity: 1;
  }

  body[data-page="home"] .app-shell {
    width: min(100% - 16px, 720px);
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  body[data-page="home"] .hero {
    min-height: 0;
    gap: 18px;
    padding: 32px 14px 16px;
    margin-top: 14px;
    border-radius: 12px;
    background-position: center 26%;
  }

  body[data-page="home"] .hero-copy,
  body[data-page="home"] .hero-side {
    width: 100%;
  }

  body[data-page="home"] .hero-date-ribbon {
    gap: 10px;
  }

  body[data-page="home"] .hero-location-line {
    margin-top: 10px;
    font-size: 0.76rem;
    line-height: 1.35;
    letter-spacing: 0.06em;
  }

  body[data-page="home"] .hero-description {
    max-width: none;
    margin-top: 14px;
    font-size: 0.94rem !important;
  }

  body[data-page="home"] .hero-icon-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 18px;
  }

  body[data-page="home"] .hero-icon-facts span {
    display: grid;
    justify-items: center;
    gap: 4px;
    font-size: 0.72rem;
    text-align: center;
  }

  body[data-page="home"] .hero-icon-facts strong {
    font-size: 1.08rem;
  }

  body[data-page="home"] .hero-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  body[data-page="home"] .hero-actions .primary-action,
  body[data-page="home"] .hero-actions .hero-secondary-action,
  body[data-page="home"] .home-inline-action,
  body[data-page="home"] .home-map-card .primary-action,
  body[data-page="home"] .home-program-card .primary-action {
    width: 100%;
    min-width: 0;
  }

  body[data-page="home"] .hero-side .hero-countdown-bar,
  body[data-page="home"] .hero > .hero-countdown-bar {
    width: 100%;
    margin: 0 !important;
  }

  body[data-page="home"] .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="home"] .countdown-unit {
    min-height: 66px;
    padding: 8px 6px;
  }

  body[data-page="home"] .countdown-unit strong {
    font-size: clamp(1.65rem, 9vw, 2.1rem);
  }

  body[data-page="home"] .burger-progress {
    margin-top: 2px;
  }

  body[data-page="home"] .home-stats-band {
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 0;
  }

  body[data-page="home"] .home-stats-band article {
    min-height: 84px;
    padding: 14px 16px;
  }

  body[data-page="home"] .home-section {
    margin-top: 12px;
    padding: 20px 14px;
    border-radius: 12px;
  }

  body[data-page="home"] .home-feature-card,
  body[data-page="home"] .home-social-card,
  body[data-page="home"] .home-spotlight-card {
    border-radius: 12px;
  }

  body[data-page="home"] .home-feature-card {
    min-height: 266px;
  }

  body[data-page="home"] .home-feature-overlay {
    padding: 14px;
  }

  body[data-page="home"] .home-feature-overlay h3 {
    font-size: 1.18rem;
    line-height: 1.02;
  }

  body[data-page="home"] .home-feature-overlay p {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  body[data-page="home"] .home-spotlight-card {
    padding: 18px 14px;
  }

  body[data-page="home"] .home-spotlight-copy h2,
  body[data-page="home"] .home-section .section-intro h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  body[data-page="home"] .home-spotlight-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .home-program-card::after {
    position: absolute;
    inset: 0;
    width: auto;
    min-height: 0;
    top: auto;
    right: auto;
    order: initial;
    display: block;
  }

  body[data-page="home"] .home-program-list {
    gap: 8px;
  }

  body[data-page="home"] .home-program-list div {
    padding: 11px 12px;
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(8, 7, 6, 0.68), rgba(8, 7, 6, 0.8)),
      rgba(10, 9, 8, 0.74);
  }

  body[data-page="home"] .home-program-list span {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  body[data-page="home"] .home-map-preview {
    min-height: 190px;
    border-radius: 12px;
  }

  .festival-map {
    width: 100%;
    min-width: 620px;
  }

  .taste-panel,
  .route-panel,
  .booking-panel,
  .event-panel,
  .map-panel,
  .selected-truck-panel,
  .truck-card,
  .vote-form,
  .leaderboard-panel,
  .admin-login-panel,
  .analytics-panel,
  .truck-admin-panel,
  .program-grid article,
  .review-form,
  .reviews-feed,
  .metrics-strip article,
  .slots-panel,
  .reservations-panel {
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .premium-topbar .brand-mini strong {
    max-width: 152px;
    font-size: 0.6rem;
    line-height: 1;
  }

  body[data-page="home"] .hero {
    padding: 20px 12px 14px;
  }

  body[data-page="home"] .hero-title-stack span {
    font-size: clamp(2.6rem, 13vw, 4.1rem);
  }

  body[data-page="home"] .hero-title-stack em {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  body[data-page="home"] .hero-icon-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="home"] .home-stats-band {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile internal pages optimization */
@media (max-width: 780px) {
  body:not([data-page="home"]) .app-shell {
    width: min(100% - 16px, 720px);
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  body:not([data-page="home"]) .view-hero {
    margin-top: 14px;
    margin-bottom: 12px;
    padding: 18px 16px;
    border-radius: 12px;
  }

  body:not([data-page="home"]) .view-hero h2 {
    margin-top: 6px;
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1.04;
  }

  body:not([data-page="home"]) .view-hero p {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  body[data-page="mappa"] .festival-showcase-layout,
  body[data-page="prenota"] .booking-layout,
  body[data-page="vota"] .vote-layout,
  body[data-page="recensioni"] .reviews-layout,
  body[data-page="programma"] .program-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="mappa"] .map-panel,
  body[data-page="mappa"] .selected-truck-panel,
  body[data-page="mappa"] .festival-stands-panel,
  body[data-page="prenota"] .booking-panel,
  body[data-page="prenota"] .slots-panel,
  body[data-page="vota"] .vote-form,
  body[data-page="vota"] .leaderboard-panel,
  body[data-page="recensioni"] .review-form,
  body[data-page="recensioni"] .reviews-feed,
  body[data-page="programma"] .program-grid article {
    padding: 18px 14px;
    border-radius: 12px;
  }

  body[data-page="mappa"] .map-panel {
    overflow: hidden;
    background:
      radial-gradient(circle at top, rgba(243, 182, 63, 0.12), transparent 36%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 238, 0.94)),
      rgba(255, 250, 243, 0.96);
  }

  body[data-page="mappa"] .festival-map-panel {
    gap: 12px;
    padding-bottom: 14px;
  }

  body[data-page="mappa"] .festival-map-panel .map-toolbar {
    margin-bottom: 12px;
  }

  body[data-page="mappa"] .map-toolbar {
    gap: 8px;
  }

  body[data-page="mappa"] .map-toolbar input,
  body[data-page="mappa"] .map-toolbar select {
    min-height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
  }

  body[data-page="mappa"] .map-mobile-helper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
  }

  body[data-page="mappa"] .map-mobile-helper span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(243, 182, 63, 0.14);
    color: #6f5310;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.2;
  }

  body[data-page="mappa"] .festival-showcase .festival-map,
  body[data-page="mappa"] .festival-map {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0;
    aspect-ratio: 1600 / 1142;
    border-radius: 14px;
    border-color: rgba(216, 202, 189, 0.94);
    background-position: center center !important;
    background-size: 100% 100% !important;
    background-color: #0c0b0a;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 14px 28px rgba(32, 25, 22, 0.08);
  }

body[data-page="mappa"] .map-stage,
body[data-page="mappa"] .map-entry {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.68rem;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(14, 12, 10, 0.2);
  }

  body[data-page="mappa"] .map-marker-core {
    opacity: 0;
    box-shadow: none;
  }

  body[data-page="mappa"] .map-marker-badge {
    display: none;
  }

  body[data-page="mappa"] .map-marker.is-active .map-marker-badge {
    display: inline-flex;
    top: calc(100% + 6px);
    min-height: 20px;
    padding: 0 6px;
    font-size: 0.5rem;
  }

  body[data-page="mappa"] .map-marker.is-active .map-marker-badge {
    display: none;
  }

  body[data-page="mappa"] .festival-selected-panel {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at top right, rgba(243, 182, 63, 0.14), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 241, 0.94));
  }

  body[data-page="mappa"] .festival-selected-panel::before {
    content: "Stand selezionato";
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(243, 182, 63, 0.16);
    color: #8b5d00;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  body[data-page="mappa"] .reach-card {
    padding: 0;
  }

  body[data-page="mappa"] .reach-card-map {
    min-height: 260px;
  }

  body[data-page="mappa"] .reach-card-map iframe {
    min-height: 260px;
  }

  body[data-page="mappa"] .truck-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

body[data-page="mappa"] .truck-card,
body[data-page="mappa"] .selected-truck-card {
  gap: 10px;
}

body[data-page="mappa"] .truck-card:hover,
body[data-page="mappa"] .truck-card:focus-within {
  border-color: var(--line);
  box-shadow: 0 14px 44px rgba(32, 25, 22, 0.08);
  transform: none;
}

  body[data-page="mappa"] .selected-truck-card h3,
  body[data-page="mappa"] .truck-card h3 {
    font-size: 1.12rem;
    line-height: 1.08;
  }

  body[data-page="mappa"] .selected-truck-card .truck-menu,
  body[data-page="mappa"] .truck-card .truck-menu {
    font-size: 0.9rem;
    line-height: 1.48;
  }

  body[data-page="mappa"] .truck-meta,
  body[data-page="mappa"] .truck-actions {
    gap: 6px;
  }

  body[data-page="mappa"] .truck-meta span,
  body[data-page="mappa"] .status-live {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  body[data-page="mappa"] .truck-actions .ghost-link,
  body[data-page="mappa"] .truck-actions .primary-action,
  body[data-page="mappa"] .truck-actions .small-button {
    width: 100%;
  }

  body[data-page="prenota"] .field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-page="prenota"] .booking-hero-title-row {
    gap: 10px;
    align-items: flex-start;
  }

  body[data-page="prenota"] .booking-hero-table-shot {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  body[data-page="prenota"] .booking-panel .form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  body[data-page="prenota"] .booking-panel .primary-action,
  body[data-page="prenota"] .slots-grid .ghost-link,
  body[data-page="prenota"] .slots-grid .primary-action,
  body[data-page="prenota"] #slotQuickForm .primary-action,
  body[data-page="prenota"] #slotQuickForm .ghost-link {
    width: 100%;
  }

  body[data-page="prenota"] .slots-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="prenota"] .booking-modal-panel {
    width: min(100% - 20px, 540px);
    padding: 18px 14px;
    border-radius: 12px;
  }

  body[data-page="prenota"] .booking-modal-heading {
    gap: 10px;
  }

  body[data-page="programma"] .program-grid article {
    min-height: 0;
    gap: 8px;
  }

  body[data-page="programma"] .program-grid h3 {
    font-size: 1.18rem;
    line-height: 1.08;
  }

  body[data-page="programma"] .program-grid p {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.52;
  }

  body[data-page="programma"] .program-artist-ticker {
    margin-top: 8px;
    border-radius: 10px;
  }

  body[data-page="programma"] .program-artist-track {
    padding: 8px 0;
  }

  body[data-page="programma"] .program-artist-group {
    gap: 12px;
  }

  body[data-page="programma"] .program-artist-item {
    min-width: 200px;
    height: 84px;
    padding: 10px 16px;
    border-radius: 12px;
  }

  body[data-page="programma"] .program-artist-item img {
    max-width: 156px;
    max-height: 56px;
    transform: scale(1.1);
  }

  body[data-page="programma"] .program-artist-logo-liganroll {
    transform: scale(1.22);
  }

  body[data-page="vota"] .vote-form .primary-action {
    width: 100%;
  }

  body[data-page="vota"] .leaderboard-panel {
    min-height: 0;
  }

  body[data-page="vota"] .leaderboard-tabs {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  body[data-page="vota"] .leaderboard-row {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 10px;
  }

  body[data-page="vota"] .vote-count {
    grid-column: 2;
    margin-top: 2px;
  }

  body[data-page="recensioni"] .review-hero {
    border-radius: 12px;
  }

  body[data-page="recensioni"] .review-hero-meta {
    gap: 8px;
  }

  body[data-page="recensioni"] .review-hero-meta span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  body[data-page="recensioni"] .review-form-head {
    gap: 12px;
  }

  body[data-page="recensioni"] .review-summary strong {
    font-size: 2.2rem;
  }

  body[data-page="recensioni"] .review-form-section,
  body[data-page="recensioni"] .review-form-section-featured {
    padding: 14px;
    border-radius: 12px;
  }

  body[data-page="recensioni"] .review-form-grid,
  body[data-page="recensioni"] .reviews-insights {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="recensioni"] .review-star-control {
    gap: 6px;
  }

  body[data-page="recensioni"] .review-star-control label {
    width: calc(20% - 5px);
    min-height: 50px;
  }

  body[data-page="recensioni"] .reviews-feed-header {
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  body[data-page="recensioni"] .reviews-feed-header p {
    max-width: none;
    text-align: left;
  }

  body[data-page="recensioni"] .reviews-feed-banner {
    padding: 14px;
    border-radius: 12px;
  }

  body[data-page="recensioni"] .review-card {
    gap: 10px;
    padding: 16px 16px 14px;
    border-radius: 12px;
  }
}

body[data-page="vota"] .vote-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body[data-page="vota"] .vote-form {
  max-width: none;
}

@media (max-width: 780px) {
  body[data-page="vota"] .vote-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body[data-page="mappa"] .festival-showcase .festival-map,
  body[data-page="mappa"] .festival-map {
    min-height: 0;
  }

  body[data-page="mappa"] .map-stage,
  body[data-page="mappa"] .map-entry {
    font-size: 0.62rem;
  }

  body[data-page="mappa"] .map-marker-core {
    width: 13px;
    height: 13px;
  }

  body[data-page="recensioni"] .review-star-control label::before {
    font-size: 1.55rem;
  }

  body[data-page="vota"] .leaderboard-tab {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }
}
@media (max-width: 900px) {
  .topbar,
  .premium-topbar,
  .staff-topbar {
    padding-top: 0;
  }

  body[data-page="home"] .topbar,
  body[data-page="gestione"] .staff-topbar {
    top: calc(8px + env(safe-area-inset-top));
  }

}

@media (max-width: 780px) {
  body[data-page="gestione"] .app-shell {
    width: min(100% - 10px, 720px);
  }

  body[data-page="gestione"] .staff-section {
    padding-top: 10px;
  }

  body[data-page="gestione"] .staff-topbar {
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(13, 16, 15, 0.96), rgba(28, 33, 31, 0.94));
    box-shadow: 0 16px 32px rgba(13, 16, 15, 0.22);
  }

  body[data-page="gestione"] .staff-topbar .site-nav {
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(12, 15, 14, 0.92);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  }

  body[data-page="gestione"] .staff-topbar .site-nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
    padding-inline: 14px;
    border-radius: 12px;
  }

  body[data-page="gestione"] .staff-topbar-actions {
    gap: 8px;
  }

  body[data-page="gestione"] .notification-bell,
  body[data-page="gestione"] .mobile-menu-toggle {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.06);
  }

  body[data-page="gestione"] .staff-hero {
    padding: 16px 14px;
    border-radius: 18px;
    gap: 12px;
    box-shadow: 0 18px 36px rgba(13, 16, 15, 0.16);
  }

  body[data-page="gestione"] .staff-hero p {
    max-width: none;
    font-size: 0.95rem;
  }

  body[data-page="gestione"] .staff-hero-status {
    width: fit-content;
    padding: 12px 14px;
    border-radius: 12px;
  }

  body[data-page="gestione"] .staff-work-area {
    padding: 16px 14px;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(32, 25, 22, 0.06);
  }

  body[data-page="gestione"] .staff-area-heading,
  body[data-page="gestione"] .reservations-heading {
    gap: 10px;
  }

  body[data-page="gestione"] .staff-area-heading h2,
  body[data-page="gestione"] .reservations-heading h2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    line-height: 1.02;
  }

  body[data-page="gestione"] .section-label {
    font-size: 0.73rem;
    padding: 8px 11px;
    border-radius: 999px;
  }

  body[data-page="gestione"] .staff-count-badge {
    min-width: 34px;
    min-height: 26px;
    padding: 2px 8px;
    font-size: 0.82rem;
  }

  body[data-page="gestione"] .reservations-panel,
  body[data-page="gestione"] .analytics-panel,
  body[data-page="gestione"] .leaderboard-panel.compact,
  body[data-page="gestione"] .staff-prize-table-panel {
    border-radius: 18px;
  }

  body[data-page="gestione"] .table-wrap {
    border-radius: 18px;
  }

  body[data-page="gestione"] .empty-state {
    padding: 22px 14px;
    border-radius: 16px;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  body[data-page="gestione"] .staff-moments-head,
  body[data-page="gestione"] .staff-review-summary-head,
  body[data-page="gestione"] .staff-review-feed {
    padding: 14px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .staff-moments-head,
  body[data-page="gestione"] .staff-review-summary-head,
  body[data-page="gestione"] .staff-review-feed-head {
    flex-direction: column;
    align-items: start;
  }

  body[data-page="gestione"] .leaderboard-panel.compact {
    padding: 14px;
    border-radius: 18px;
  }

  body[data-page="gestione"] .staff-vote-summary-card {
    gap: 10px;
  }

  body[data-page="gestione"] .staff-vote-awards-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="gestione"] .staff-vote-award-card,
  body[data-page="gestione"] .staff-vote-category-detail {
    padding: 14px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .staff-vote-award-card {
    min-height: 0;
  }

  body[data-page="gestione"] .staff-vote-award-count {
    padding: 10px 12px;
  }

  body[data-page="gestione"] .staff-vote-detail-row {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 10px 12px;
    padding: 12px;
  }

  body[data-page="gestione"] .staff-vote-detail-row .vote-count {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body[data-page="gestione"] .staff-vote-summary-row {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 10px 12px;
    padding: 12px;
  }

  body[data-page="gestione"] .staff-vote-summary-main {
    min-width: 0;
  }

  body[data-page="gestione"] .staff-vote-summary-breakdown {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="gestione"] .vote-count {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body[data-page="gestione"] .leaderboard-rank {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
  }

  body[data-page="gestione"] .staff-vote-pill {
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  body[data-page="gestione"] .admin-moments-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 5px;
  }

  body[data-page="gestione"] .moment-card {
    border-radius: 8px;
  }

  body[data-page="gestione"] .moment-card-delete {
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
  }

  body[data-page="gestione"] .moments-footer-actions,
  body[data-page="gestione"] .staff-vote-more-actions {
    flex-direction: row;
    align-items: center;
  }

  body[data-page="gestione"] .moments-footer-actions button,
  body[data-page="gestione"] .moments-footer-actions a,
  body[data-page="gestione"] .staff-vote-more-actions button,
  body[data-page="gestione"] .staff-vote-more-actions a {
    width: auto;
  }

  body[data-page="gestione"] .moments-load-more {
    flex: 1 1 auto;
  }

  body[data-page="gestione"] .staff-area-prize .staff-actions.compact,
  body[data-page="gestione"] .staff-area-stats > .staff-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  body[data-page="gestione"] .staff-area-prize .staff-actions.compact button,
  body[data-page="gestione"] .staff-area-stats > .staff-actions button {
    width: 100%;
  }

  body[data-page="gestione"] .staff-prize-grid {
    gap: 14px;
  }

  body[data-page="gestione"] .staff-prize-grid > article,
  body[data-page="gestione"] .staff-review-insights-grid > article,
  body[data-page="gestione"] .analytics-chart-grid-simple > article,
  body[data-page="gestione"] .analytics-overview-simple > article {
    width: 100%;
    min-width: 0;
  }

  body[data-page="gestione"] .staff-prize-table-panel,
  body[data-page="gestione"] .staff-prize-control-panel,
  body[data-page="gestione"] .staff-review-summary-panel,
  body[data-page="gestione"] .analytics-chart-card,
  body[data-page="gestione"] .analytics-panel-simple {
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(32, 25, 22, 0.05);
  }

  body[data-page="gestione"] .staff-prize-table-panel,
  body[data-page="gestione"] .staff-prize-control-panel,
  body[data-page="gestione"] .staff-review-summary-panel {
    display: grid;
    width: 100%;
  }

  body[data-page="gestione"] .staff-prize-table-heading {
    padding: 14px 14px 10px;
  }

  body[data-page="gestione"] #prizeSummary {
    display: grid;
    gap: 10px;
  }

  body[data-page="gestione"] #prizeSummary .prize-summary-card {
    min-height: 84px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .staff-prize-winner {
    min-height: 168px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(243, 182, 63, 0.12);
  }

  body[data-page="gestione"] #emptyPrizeEntries,
  body[data-page="gestione"] #adminEmptyReviews {
    width: 100%;
    min-height: 124px;
  }

  body[data-page="gestione"] .analytics-chart-grid-simple {
    gap: 14px;
  }

  body[data-page="gestione"] .analytics-chart-card {
    padding: 16px;
  }

  body[data-page="gestione"] .analytics-chart-grid-simple .analytics-chart-card-wide {
    min-height: 400px;
  }

  body[data-page="gestione"] #statistiche .staff-area-heading {
    margin-bottom: 12px;
  }

  body[data-page="gestione"] #statistiche .staff-area-heading h2 {
    max-width: 100%;
  }

  body[data-page="gestione"] #statistiche .staff-count-badge.olive {
    width: fit-content;
  }

  body[data-page="gestione"] .analytics-overview-simple {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body[data-page="gestione"] .analytics-kpi-card {
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .analytics-kpi-card span {
    font-size: 0.76rem;
  }

  body[data-page="gestione"] .analytics-kpi-card strong {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }
}

@media (max-width: 560px) {
  body[data-page="gestione"] .staff-topbar {
    padding: 9px 10px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .staff-hero {
    padding: 14px 12px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .staff-work-area {
    padding: 14px 12px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .staff-area-heading h2,
  body[data-page="gestione"] .reservations-heading h2 {
    font-size: clamp(1.35rem, 8vw, 2rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  body[data-page="gestione"] .staff-area-heading > div,
  body[data-page="gestione"] .reservations-heading > div {
    width: 100%;
  }

  body[data-page="gestione"] .staff-hero-status {
    width: 100%;
  }

  body[data-page="gestione"] .section-label {
    font-size: 0.68rem;
    padding: 7px 10px;
  }

  body[data-page="gestione"] .staff-count-badge {
    min-height: 24px;
    padding: 2px 7px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  body[data-page="gestione"] .bookings-export-actions .booking-search-toggle {
    min-height: 40px;
  }

  body[data-page="gestione"] .bookings-export-actions .booking-search-panel {
    width: 100%;
  }

  body[data-page="gestione"] #prenotazioni tbody tr {
    padding: 11px;
    border-radius: 14px;
  }

  body[data-page="gestione"] #reservationsTable tr td:first-child::before {
    left: -11px;
    top: -11px;
    bottom: -11px;
  }

  body[data-page="gestione"] #prenotazioni .row-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body[data-page="gestione"] #prenotazioni .small-button {
    min-height: 38px;
    font-size: 0.76rem;
  }

  body[data-page="gestione"] .staff-vote-summary-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px 10px;
    padding: 11px;
  }

  body[data-page="gestione"] .staff-vote-summary-main strong {
    font-size: 0.94rem;
  }

  body[data-page="gestione"] .staff-vote-summary-main span {
    font-size: 0.76rem;
  }

  body[data-page="gestione"] .staff-vote-award-card strong,
  body[data-page="gestione"] .staff-vote-category-head h3 {
    font-size: 1rem;
  }

  body[data-page="gestione"] .staff-vote-award-meta,
  body[data-page="gestione"] .staff-vote-detail-main span,
  body[data-page="gestione"] .staff-vote-award-foot {
    font-size: 0.74rem;
  }

  body[data-page="gestione"] .staff-vote-award-count b {
    font-size: 1.18rem;
  }

  body[data-page="gestione"] .staff-vote-summary-breakdown {
    grid-template-columns: 1fr;
  }

  body[data-page="gestione"] .staff-vote-pill {
    padding: 8px 10px;
  }

  body[data-page="gestione"] .staff-area-prize .staff-actions.compact,
  body[data-page="gestione"] .staff-area-stats > .staff-actions {
    grid-template-columns: 1fr;
  }

  body[data-page="gestione"] .staff-area-prize .staff-actions.compact {
    margin-top: 6px;
  }

  body[data-page="gestione"] .staff-prize-grid,
  body[data-page="gestione"] .staff-review-insights-grid,
  body[data-page="gestione"] .analytics-chart-grid-simple,
  body[data-page="gestione"] .analytics-overview-simple {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page="gestione"] .staff-moments-head,
  body[data-page="gestione"] .staff-review-summary-head,
  body[data-page="gestione"] .staff-review-feed,
  body[data-page="gestione"] .staff-prize-table-heading {
    padding: 12px;
    border-radius: 14px;
  }

  body[data-page="gestione"] .staff-prize-table-meta,
  body[data-page="gestione"] .staff-moments-head p {
    font-size: 0.85rem;
  }

  body[data-page="gestione"] #prizeSummary .prize-summary-card {
    min-height: 76px;
    padding: 12px;
    border-radius: 14px;
  }

  body[data-page="gestione"] .staff-prize-winner {
    min-height: 150px;
    padding: 16px 12px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .staff-prize-grid,
  body[data-page="gestione"] .staff-review-insights-grid {
    gap: 12px;
  }

  body[data-page="gestione"] .staff-review-summary-actions {
    width: 100%;
    justify-items: start;
  }

  body[data-page="gestione"] .staff-prize-table-panel,
  body[data-page="gestione"] .staff-prize-control-panel,
  body[data-page="gestione"] .staff-review-summary-panel {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    align-self: stretch;
  }

  body[data-page="gestione"] .analytics-chart-card,
  body[data-page="gestione"] .analytics-panel-simple,
  body[data-page="gestione"] .analytics-kpi-card {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    align-self: stretch;
  }

  body[data-page="gestione"] .staff-prize-winner strong {
    font-size: clamp(1.15rem, 7vw, 1.45rem);
  }

  body[data-page="gestione"] .analytics-chart-card {
    padding: 14px;
    border-radius: 16px;
  }

  body[data-page="gestione"] .analytics-chart-grid-simple .analytics-chart-card-wide {
    min-height: 340px;
  }

  body[data-page="gestione"] .analytics-line-chart {
    min-height: 0;
  }

  body[data-page="gestione"] .line-chart-svg {
    height: 132px;
  }

  body[data-page="gestione"] .chart-heading strong,
  body[data-page="gestione"] .analytics-panel-simple h3,
  body[data-page="gestione"] .staff-review-summary-head h3 {
    font-size: 1rem;
  }

  body[data-page="gestione"] .chart-heading {
    gap: 6px;
  }

  body[data-page="gestione"] .line-chart-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 6px;
  }

  body[data-page="gestione"] .line-chart-summary-item {
    padding: 8px 6px;
    border-radius: 12px;
  }

  body[data-page="gestione"] .line-chart-summary-item small {
    font-size: 0.58rem;
  }

  body[data-page="gestione"] .line-chart-summary strong {
    font-size: 0.78rem;
  }

  body[data-page="gestione"] .line-chart-summary span {
    font-size: 0.64rem;
  }

  body[data-page="gestione"] .chart-x-labels {
    margin-top: 2px;
    padding-left: 12px;
    padding-right: 2px;
    font-size: 0.62rem;
  }

  body[data-page="gestione"] #durationTrendChart.single-point .chart-x-labels {
    padding-left: 0;
    padding-right: 0;
  }

  body[data-page="gestione"] .analytics-panel-simple {
    padding: 12px !important;
  }

  body[data-page="gestione"] .click-stat-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
  }

  body[data-page="gestione"] .click-stat-rank {
    min-height: 30px;
    border-radius: 9px;
    font-size: 0.7rem;
  }

  body[data-page="gestione"] .click-stat-topline strong {
    font-size: 0.84rem;
  }

  body[data-page="gestione"] .click-stat-body small {
    font-size: 0.7rem;
  }

  body[data-page="gestione"] .analytics-kpi-card {
    padding: 12px;
    border-radius: 14px;
  }

  body[data-page="gestione"] .analytics-kpi-card strong {
    font-size: 1.3rem;
  }

  body[data-page="gestione"] .admin-moments-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  body[data-page="gestione"] .moment-card {
    border-radius: 7px;
  }

  body[data-page="gestione"] .empty-state {
    padding: 18px 12px;
    font-size: 0.9rem;
  }

  body[data-page="gestione"] #emptyPrizeEntries,
  body[data-page="gestione"] #adminEmptyReviews {
    min-height: 112px;
  }

  body[data-page="gestione"] .moments-footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page="gestione"] .moments-load-more,
  body[data-page="gestione"] .staff-vote-more-actions {
    justify-content: stretch;
    width: 100%;
  }

  body[data-page="gestione"] .moments-footer-actions button,
  body[data-page="gestione"] .moments-footer-actions a,
  body[data-page="gestione"] .staff-vote-more-actions button,
  body[data-page="gestione"] .staff-vote-more-actions a {
    width: 100%;
    text-align: center;
  }
}
