/* Optional homepage exploration. Remove its stylesheet link to restore the original. */
body { background: linear-gradient(145deg, #edf6e8, #f4fbf9 55%, #fafaf6) !important; }
body:has(#tab-8663-1.active) > .container-fluid > h2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  min-height: 392px;
  margin: 24px -24px 20px;
  padding: 44px 52px 72px;
  border-radius: 24px;
  color: white !important;
  font-size: clamp(30px, 3.8vw, 51px);
  box-shadow: 0 20px 45px #193f3024;
  background: #264d3a;
}
body:has(#tab-8663-1.active) > .container-fluid > h2::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #092c25d9, #092c2560 65%, #092c2510), url('Bormio.jpg') center 58% / cover;
  animation: alpine-arrive 2.4s ease-out both;
}
body:has(#tab-8663-1.active) > .container-fluid > h2::after {
  content: 'BORMIO · 23–25 SEPTEMBER 2026';
  display: block;
  margin-top: 28px;
  color: #e3ffa8;
  font: 600 14px / 1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: .2em;
}
body:has(#tab-8663-1.active) > .container-fluid > h2 em { display: block; max-width: 850px; }
body:has(#tab-8663-1.active) .navbar { border: 0; background: #ffffffd9; border-radius: 14px; padding: 0 12px; box-shadow: 0 5px 22px #244b3510; }
body:has(#tab-8663-1.active) .navbar-nav > .active > a { background: #167459; }
#tab-8663-1 [style*='lavender'] { background: #fff !important; border: 1px solid #d7e9dd; border-top: 4px solid #69a942; box-shadow: 0 8px 24px #214d3510; text-align: left !important; }
#tab-8663-1 [style*='lavender']:nth-of-type(2) { border-top-color: #24a6a0; }
#tab-8663-1 [style*='lavender']:nth-of-type(3) { border-top-color: #e0ae45; }
#tab-8663-1 .col-sm-2 > div { border-color: #d7e9dd; box-shadow: 0 8px 24px #214d3510; }
#tab-8663-1 .col-sm-7 > br:first-child { display: none; }
@keyframes alpine-arrive { from { transform: scale(1.14); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  body:has(#tab-8663-1.active) > .container-fluid > h2::before { animation: none; }
}
@media (max-width: 767px) {
  body:has(#tab-8663-1.active) > .container-fluid > h2 { margin: 12px -8px 18px; padding: 28px 24px 40px; min-height: 360px; border-radius: 18px; }
  body:has(#tab-8663-1.active) > .container-fluid > h2::before { background-position: 40% center; }
  body:has(#tab-8663-1.active) .navbar { padding: 4px; }
}

.home-gallery { clear: both; padding: 24px 0 12px; }
.gallery-track {
  --slot: clamp(140px, 18vw, 220px);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 18px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.gallery-track img {
  flex: 0 0 var(--slot);
  width: var(--slot);
  height: calc(var(--slot) * 1.5);
  max-width: none;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
}
.gallery-track .gallery-landscape {
  flex-basis: calc(var(--slot) * 3 + 24px);
  width: calc(var(--slot) * 3 + 24px);
}
.gallery-track:focus-visible { outline: 2px solid #167459; outline-offset: 4px; }

.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
