.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-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}

#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;
}

.home-calendar-poster {
  padding: clamp(38px, 5vw, 72px) 0;
  background:
    radial-gradient(circle at 84% 22%, rgba(178, 74, 59, 0.12), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8f1eb 100%);
}

.home-calendar-poster__layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 94px);
}

.home-calendar-poster__link {
  display: flex;
  width: min(100%, 520px);
  max-width: 100%;
  justify-self: start;
  padding: 8px;
  border: 1px solid rgba(138, 124, 113, 0.2);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(73, 45, 35, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-calendar-poster__link:hover,
.home-calendar-poster__link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 68px rgba(73, 45, 35, 0.21);
}

.home-calendar-poster img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 19px;
}

.home-calendar-poster__copy {
  max-width: 560px;
}

.home-calendar-poster__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--brick);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.home-calendar-poster__copy h2 {
  max-width: 560px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(2.35rem, 4vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.home-calendar-poster__copy p {
  max-width: 530px;
  margin: 0;
  color: var(--mud);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.75;
}

.home-calendar-poster__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0 30px;
}

.home-calendar-poster__highlights span {
  padding: 8px 13px;
  border: 1px solid rgba(178, 74, 59, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #69483f;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-calendar-poster__cta {
  justify-content: center;
  min-height: 48px;
  padding-inline: 22px;
}

@media (max-width: 820px) {
  .home-calendar-poster {
    padding: 30px 0 34px;
  }

  .home-calendar-poster__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-calendar-poster__link {
    width: 100%;
    justify-self: stretch;
    padding: 7px;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(73, 45, 35, 0.15);
  }

  .home-calendar-poster__link:hover,
  .home-calendar-poster__link:focus-visible {
    transform: none;
    box-shadow: 0 18px 42px rgba(73, 45, 35, 0.15);
  }

  .home-calendar-poster img {
    width: 100%;
    border-radius: 17px;
  }

  .home-calendar-poster__copy {
    max-width: none;
    padding: 0 4px;
  }

  .home-calendar-poster__eyebrow {
    margin-bottom: 9px;
    font-size: 0.66rem;
  }

  .home-calendar-poster__copy h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.05;
  }

  .home-calendar-poster__copy p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .home-calendar-poster__highlights {
    gap: 7px;
    margin: 19px 0 22px;
  }

  .home-calendar-poster__highlights span {
    padding: 7px 10px;
    font-size: 0.7rem;
  }

  .home-calendar-poster__cta {
    width: 100%;
  }

  #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(250px, 82%);
    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;
  }
}

/* Keep the complete calendar preview inside the usable viewport. */
@media (min-width: 821px) {
  #calendario-preview {
    padding: clamp(12px, 2vh, 22px) 0;
  }

  #calendario-preview .calendar-preview {
    display: grid;
    grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
    column-gap: 22px;
    align-items: end;
    padding: clamp(14px, 2vh, 22px);
  }

  #calendario-preview .tagline {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 2px;
    font-size: 0.7rem;
  }

  #calendario-preview .section-title {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    line-height: 1.05;
  }

  #calendario-preview .home-quick-filters {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 2px 0;
  }

  #calendario-preview .home-filter {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.72rem;
  }

  #calendario-preview .carousel-shell {
    grid-column: 1 / -1;
    min-width: 0;
    margin-top: 10px;
  }

  #home-event-carousel {
    grid-auto-columns: clamp(250px, calc((100dvh - 360px) * 0.66), 320px);
    min-height: 0;
    align-items: start;
    padding-bottom: 0;
  }

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

  #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-content p {
    min-height: 0;
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
  }

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

  #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-actions {
    flex-wrap: nowrap;
    gap: 5px;
  }

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

  #home-event-carousel .home-event-skeleton {
    min-height: min(500px, calc(100dvh - 250px));
  }
}

@media (max-width: 820px) and (max-height: 780px) {
  #calendario-preview {
    padding: 4px 0;
  }

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

  #calendario-preview .tagline {
    display: none;
  }

  #calendario-preview .section-title {
    margin-bottom: 3px;
    font-size: 1.35rem;
  }

  #calendario-preview .home-quick-filters {
    margin: 2px -2px 5px;
    padding-bottom: 2px;
  }

  #calendario-preview .home-filter {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.68rem;
  }

  #home-event-carousel {
    grid-auto-columns: minmax(270px, 88%);
  }

  #home-event-carousel .event-content {
    padding: 6px 9px 7px;
  }

  #home-event-carousel .event-tags {
    min-height: 24px;
  }

  #home-event-carousel .event-price {
    min-height: 32px;
  }

  #home-event-carousel .event-footer .event-actions a {
    padding-block: 4px;
  }

  #home-event-carousel .home-event-skeleton {
    min-height: min(450px, calc(100dvh - 190px));
  }
}

/* Viaggio speciale Tromsø — banner home */
.home-tromso {
  padding: clamp(28px, 5vw, 72px) 0;
  background: #f7f5ef;
}

.home-tromso-card {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  min-height: 480px;
  overflow: hidden;
  border-radius: 32px;
  background: #071d2c;
  color: #fff;
  box-shadow: 0 28px 70px rgba(7, 29, 44, .18);
}

.home-tromso-media {
  min-width: 0;
  overflow: hidden;
  background: #0b2938;
}

.home-tromso-media picture,
.home-tromso-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-tromso-media img {
  object-fit: cover;
  object-position: center 42%;
  transition: transform .45s ease;
}

.home-tromso-media:hover img { transform: scale(1.025); }

.home-tromso-copy {
  align-self: center;
  padding: clamp(38px, 5vw, 74px);
  background:
    radial-gradient(circle at 92% 8%, rgba(104, 220, 181, .2), transparent 32%),
    linear-gradient(135deg, #071d2c, #0b3140);
}

.home-tromso-kicker {
  display: block;
  margin-bottom: 18px;
  color: #79d9b1;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.home-tromso-copy h2 {
  max-width: 760px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.15rem, 4vw, 4.55rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.home-tromso-copy > p {
  max-width: 700px;
  margin: 0;
  color: #cad8dc;
  font-size: clamp(.98rem, 1.35vw, 1.15rem);
}

.home-tromso-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}

.home-tromso-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #edf5f5;
  font-size: .78rem;
  font-weight: 600;
}

.home-tromso-offer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 18px;
  width: fit-content;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
}

.home-tromso-offer span {
  color: #a9bbc0;
  font-size: .75rem;
}

.home-tromso-offer strong {
  grid-row: span 2;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.home-tromso-offer small {
  color: #79d9b1;
  font-size: .7rem;
}

.home-tromso-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.home-tromso-actions .cta { background: #ae513e; }
.home-tromso-book { color: #fff; font-weight: 700; text-underline-offset: 5px; }

@media (max-width: 760px) {
  .home-tromso { padding: 24px 0 32px; }
  .home-tromso-card { display: block; min-height: 0; border-radius: 25px; }
  .home-tromso-media { display: block; aspect-ratio: 3 / 4; }
  .home-tromso-media img { object-fit: contain; object-position: center; }
  .home-tromso-copy { padding: 28px 22px 30px; }
  .home-tromso-copy h2 { font-size: clamp(2rem, 10.5vw, 3.15rem); }
  .home-tromso-tags { gap: 6px; margin: 20px 0; }
  .home-tromso-tags span { padding: 6px 9px; font-size: .69rem; }
  .home-tromso-offer { grid-template-columns: 1fr auto; width: 100%; gap: 3px 12px; }
  .home-tromso-offer strong { font-size: 1.7rem; }
  .home-tromso-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .home-tromso-actions .cta { width: 100%; text-align: center; }
  .home-tromso-book { text-align: center; }
}

@media (max-width: 820px) and (max-height: 700px) {
  #home-event-carousel {
    grid-auto-columns: minmax(270px, 88%);
  }

  #home-event-carousel .home-event-card {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  #home-event-carousel .event-photo {
    align-self: stretch;
    margin: 12px 12px 0;
  }

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

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

  #home-event-carousel .event-tags {
    flex-wrap: wrap;
    gap: 5px;
    min-height: 24px;
    margin-top: 2px;
    overflow: visible;
  }

  #home-event-carousel .event-tag {
    padding: 4px 7px;
    font-size: 0.66rem;
  }
}

@media (max-width: 820px) {
  #home-event-carousel .event-tags {
    flex-wrap: wrap;
    min-width: 0;
    overflow: visible;
  }

  #home-event-carousel .event-footer {
    display: grid;
    grid-template-columns: minmax(82px, 1fr) 88px;
    align-items: start;
    width: 100%;
    min-width: 0;
  }

  #home-event-carousel .event-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    width: min(100%, 88px);
    min-width: 0;
    justify-self: end;
  }

  #home-event-carousel .event-price {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1px;
    line-height: 1.1;
  }

  #home-event-carousel .event-actions a {
    width: 100%;
    min-width: 0 !important;
    padding-inline: 3px;
  }

  #home-event-carousel .event-price-note {
    display: block;
    width: 76px;
    font-size: 0.54rem;
    line-height: 1.1;
    white-space: normal;
  }
}

@media (max-width: 820px) and (max-height: 780px) {
  #home-event-carousel .event-tags {
    gap: 4px;
  }

  #home-event-carousel .event-tag {
    padding: 3px 5px;
    font-size: 0.62rem;
  }
}
