.deferred-site-image {
  opacity: 0.01;
  transition: opacity 240ms ease;
}

.deferred-site-image.is-ready {
  opacity: 1;
}

#hero-image-managed {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 520ms ease;
}

.hero-slider-reliable {
  background-color: #dccbb8;
  background-image: url("/optimized/ui/logo-240.webp"), linear-gradient(135deg, #eadfd3, #cdb79f);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 132px auto, cover;
}

#home-event-carousel {
  grid-auto-columns: minmax(320px, 38%);
  min-height: 560px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

#home-event-carousel .event-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#home-event-carousel .event-photo img {
  background: #eee8e1;
}

.home-quick-filters {
  display: flex;
  gap: 10px;
  margin: 18px 0 22px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.home-quick-filters::-webkit-scrollbar {
  display: none;
}

.home-filter {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(183, 74, 55, 0.3);
  border-radius: 999px;
  background: #fff;
  color: #4d302a;
  font: 600 0.86rem/1.1 "Sora", sans-serif;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-filter:hover,
.home-filter:focus-visible,
.home-filter.is-active {
  border-color: #b74a37;
  background: #b74a37;
  color: #fff;
}

.home-filter:active {
  transform: scale(0.97);
}

.home-event-skeleton {
  min-height: 540px;
  border: 1px solid rgba(138, 124, 113, 0.15);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  scroll-snap-align: start;
}

.home-event-skeleton::before,
.home-event-skeleton::after {
  content: "";
  display: block;
  background: linear-gradient(100deg, #eee8e1 20%, #f8f4ef 45%, #eee8e1 70%);
  background-size: 240% 100%;
  animation: etta-skeleton 1.1s linear infinite;
}

.home-event-skeleton::before {
  height: 260px;
}

.home-event-skeleton::after {
  width: 72%;
  height: 150px;
  margin: 28px 20px;
  border-radius: 14px;
}

.home-carousel-empty {
  padding: 34px 12px;
  color: #6f625a;
}

@keyframes etta-skeleton {
  to { background-position-x: -240%; }
}

.mobile-fast-nav {
  display: none;
}

@media (max-width: 820px) {
  #calendario-preview {
    padding: 8px 0;
    scroll-margin-top: 91px;
  }

  #calendario-preview .calendar-preview {
    padding: 14px 12px;
  }

  #calendario-preview .tagline {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  #calendario-preview .section-title {
    margin-bottom: 6px;
    font-size: 1.7rem;
    line-height: 1.05;
  }

  #home-event-carousel {
    grid-auto-columns: minmax(270px, 88%);
    min-height: 0;
    align-items: start;
    padding-bottom: 0;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
  }

  #home-event-carousel .home-event-card {
    height: auto;
    min-height: 0;
  }

  .home-quick-filters {
    gap: 7px;
    margin: 4px -4px 8px;
    padding-bottom: 4px;
  }

  .home-filter {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.74rem;
  }

  #home-event-carousel .event-content {
    gap: 4px;
    padding: 9px 11px 10px;
  }

  #home-event-carousel .event-date-inline {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  #home-event-carousel .event-content h3 {
    min-height: 0;
    font-size: 0.92rem;
    line-height: 1.18;
  }

  #home-event-carousel .event-tags {
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 28px;
    margin-top: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #home-event-carousel .event-tags::-webkit-scrollbar {
    display: none;
  }

  #home-event-carousel .event-tag {
    flex: 0 0 auto;
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  #home-event-carousel .event-footer {
    gap: 6px;
    margin-top: 5px;
  }

  #home-event-carousel .event-price {
    min-height: 38px;
    font-size: 0.92rem;
  }

  #home-event-carousel .event-footer .event-actions {
    flex-wrap: nowrap;
    gap: 5px;
  }

  #home-event-carousel .event-footer .event-actions a {
    min-width: 76px;
    padding: 6px 5px;
    font-size: 0.69rem;
    white-space: nowrap;
  }

  .mobile-fast-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 0;
    width: min(336px, calc(100vw - 20px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 4px;
    border: 1px solid rgba(77, 48, 42, 0.12);
    border-radius: 18px;
    background: rgba(255, 252, 248, 0.96);
    box-shadow: 0 12px 34px rgba(43, 29, 24, 0.2);
    backdrop-filter: blur(14px);
    transform: none;
  }

  .mobile-fast-nav.is-menu-open {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  .mobile-fast-nav a,
  .mobile-fast-nav button {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    padding: 5px 3px;
    border-radius: 14px;
    color: #74665e;
    font: 600 0.58rem/1 "Sora", sans-serif;
    text-decoration: none;
  }

  .mobile-fast-nav button {
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-fast-nav a.is-active,
  .mobile-fast-nav a:active,
  .mobile-fast-nav button:active {
    background: #f3e3dc;
    color: #a64030;
  }

  .mobile-fast-nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .whatsapp-float {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .menu-toggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #home-event-carousel {
    scroll-behavior: auto;
  }

  .home-event-skeleton::before,
  .home-event-skeleton::after {
    animation: none;
  }
}
