/* Shared Castello Cup chrome: nav, mobile menu, sticky live CTA */
.nav-blur {
  background: rgba(7, 17, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.menu-button {
  position: relative;
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(244, 241, 234, 0.06);
  color: #f4f1ea;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.menu-button:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.1);
}
.menu-button-line {
  position: absolute;
  height: 2px;
  width: 1.2rem;
  border-radius: 9999px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.35s ease;
  transform-origin: center;
}
.menu-button-line:nth-child(1) { transform: translateY(-0.35rem); }
.menu-button-line:nth-child(2) { width: 0.95rem; }
.menu-button-line:nth-child(3) { transform: translateY(0.35rem); }
body.menu-open .menu-button {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
  transform: rotate(90deg);
}
body.menu-open .menu-button-line:nth-child(1) { transform: rotate(45deg); }
body.menu-open .menu-button-line:nth-child(2) { opacity: 0; width: 0; }
body.menu-open .menu-button-line:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu-panel {
  transform: translateY(-1.25rem) scale(0.98);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.35s ease;
}
.mobile-menu-link {
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.35s ease, color 0.2s ease;
}
body.menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}
body.menu-open .mobile-menu {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
body.menu-open .mobile-menu-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
body.menu-open .mobile-menu-link {
  transform: translateY(0);
  opacity: 1;
}
body.menu-open .mobile-menu-link:nth-child(1) { transition-delay: 0.06s; }
body.menu-open .mobile-menu-link:nth-child(2) { transition-delay: 0.11s; }
body.menu-open .mobile-menu-link:nth-child(3) { transition-delay: 0.16s; }
body.menu-open .mobile-menu-link:nth-child(4) { transition-delay: 0.21s; }
body.menu-open .mobile-menu-link:nth-child(5) { transition-delay: 0.26s; }
body.menu-open .mobile-menu-link:nth-child(6) { transition-delay: 0.31s; }

.sticky-risultati {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transform: translate(-50%, calc(100% + 1.5rem));
  border-radius: 9999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(7, 17, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #f4f1ea;
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), opacity 0.3s ease, border-color 0.2s ease, background 0.2s ease;
}
.sticky-risultati.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-risultati:hover {
  border-color: rgba(224, 195, 90, 0.7);
  background: rgba(12, 28, 20, 0.96);
  color: #e0c35a;
}
.sticky-risultati-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: stickyPulse 1.8s ease-out infinite;
}
@keyframes stickyPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 0.55rem rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
body.menu-open .sticky-risultati {
  opacity: 0;
  pointer-events: none;
}


/* Paese: minimappa con pin oro */
.paese-map {
  position: relative;
  overflow: hidden;
  height: min(360px, 48vh);
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a1610;
}
.paese-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  background: #0a1610;
}
.paese-map .leaflet-control-attribution {
  background: rgba(7, 17, 12, 0.72) !important;
  color: rgba(244, 241, 234, 0.45);
  font-size: 10px;
}
.paese-map .leaflet-control-attribution a { color: rgba(201, 162, 39, 0.75); }
.paese-map .leaflet-control-zoom a {
  background: rgba(7, 17, 12, 0.88) !important;
  color: #f4f1ea !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
}
.sat-pin { background: transparent; border: 0; }
.sat-pin-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  transform: translateY(-100%);
}
.sat-pin-dot {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 9999px;
  background: #c9a227;
  border: 2px solid #f4f1ea;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.22), 0 8px 18px rgba(0, 0, 0, 0.5);
}
.sat-pin-label {
  white-space: nowrap;
  border-radius: 9999px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.2);
  padding: 0.16rem 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: #f0d78c;
  font-weight: 500;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
