/* Dimora del Mare — micro-interazioni leggere e convertibili in Elementor.
   Nessuna modifica al DOM, nessuna libreria: solo :hover/:focus-visible.
   Per Elementor: riprodurre Hover > Transform / Transition dei widget corrispondenti.
*/

@media (hover: hover) and (pointer: fine) {
  /* Pulsanti: micro-sollevamento e freccia discreta. */
  .btn, .header-book, .video-control {
    transition: background-color .25s ease, color .25s ease,
      border-color .25s ease, transform .28s var(--ease), box-shadow .28s ease;
  }
  .btn:hover, .header-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgb(16 45 70 / 12%);
  }
  .btn .icon, .header-book .icon, .room-link .icon {
    transition: transform .3s var(--ease);
  }
  .btn:hover .icon, .header-book:hover .icon, .room-link:hover .icon {
    transform: translateX(4px);
  }

  /* Fotografie: zoom tenue. I contenitori restano invariati e non saltano. */
  .welcome-image .media-slot img.image-ready,
  .room-preview .media-slot img.image-ready,
  .room-story .media-slot img.image-ready,
  .destination .media-slot img.image-ready,
  .destination--full .media-slot img.image-ready {
    transition: opacity .35s ease, transform .7s var(--ease);
  }
  .welcome-image:hover .media-slot img.image-ready,
  .room-preview:hover .media-slot img.image-ready,
  .room-story:hover .media-slot img.image-ready,
  .destination:hover .media-slot img.image-ready,
  .destination--full:hover .media-slot img.image-ready {
    transform: scale(1.035);
  }

  /* Il titolo si illumina lievemente al passaggio del puntatore. */
  .room-link h3, .destination__body h3, .destination--full h2 {
    transition: color .28s ease;
  }
  .room-link:hover h3,
  .destination:hover .destination__body h3,
  .destination--full:hover h2 {
    color: var(--color-primary-light);
  }
  /* Gallery: feedback soltanto quando sono presenti fotografie reali. */
  .media-slot[data-gallery-item]:not(:disabled) {
    transition: box-shadow .3s ease;
  }
  .media-slot[data-gallery-item]:not(:disabled):hover {
    box-shadow: 0 10px 24px rgb(16 45 70 / 12%);
  }
  /* FAQ: feedback visivo minimo, senza spostare il layout. */
  details > summary { transition: color .2s ease; }
  details > summary:hover { color: var(--color-primary-light); }
  /* Controlli media: un feedback rispettoso, senza zoom sul video. */
  .video-control:hover { transform: translateY(-2px); background: rgb(255 255 255 / 12%); }
}

/* Focus accessibile anche su touch e navigazione da tastiera. */
.video-control:focus-visible, .btn:focus-visible, .room-link:focus-visible,
.media-slot[data-gallery-item]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* I due controlli video condividono la stessa area, già responsive. */
.hero-bottom .audio-control { margin-left: 8px; }
.hero-bottom .video-control { flex-shrink: 0; }
.audio-control [aria-hidden="true"] { font-size: 16px; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn .icon, .header-book, .header-book .icon, .video-control,
  .room-link .icon, .room-link h3, .destination__body h3,
  .destination--full h2, .media-slot img, details > summary {
    transition: none !important;
    transform: none !important;
  }
}
@media (max-width: 600px) {
  .hero-bottom { flex-wrap: wrap; }
  .hero-bottom .audio-control { margin-left: 0; }
  .hero-bottom .video-control { font-size: 10px; padding: 7px 9px; }
}


/* EDITORIAL MOTION V2 — animazioni d'ingresso facili da ricostruire con Elementor.
   Non c'è separazione dei caratteri né mutazione testuale: i widget rimangono editabili.
   Di default è tutto visibile. Una classe viene abilitata soltanto con IntersectionObserver. */
.motion-ready .editorial-reveal {
  opacity: 0;
  transform: translate3d(0, 23px, 0);
  transition: opacity .82s var(--ease), transform .82s var(--ease);
}
.motion-ready .editorial-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.motion-ready .editorial-reveal--image {
  transform: translate3d(0, 34px, 0);
  transition-duration: 1.02s;
}
.motion-ready .editorial-reveal--image.is-visible {
  transform: translate3d(0, 0, 0);
}
/* Ritmo progressivo: utile su cards e numeri, riproducibile con Elementor Animation Delay. */
@media (min-width: 601px) {
  .motion-ready .rooms-grid > :nth-child(2),
  .motion-ready .comfort-grid > :nth-child(2),
  .motion-ready .values-grid > :nth-child(2),
  .motion-ready .room-types-grid > :nth-child(2),
  .motion-ready .distance-grid > :nth-child(2) { transition-delay: .10s; }
  .motion-ready .rooms-grid > :nth-child(3),
  .motion-ready .comfort-grid > :nth-child(3),
  .motion-ready .values-grid > :nth-child(3),
  .motion-ready .room-types-grid > :nth-child(3),
  .motion-ready .distance-grid > :nth-child(3) { transition-delay: .20s; }
  .motion-ready .rooms-grid > :nth-child(4),
  .motion-ready .comfort-grid > :nth-child(4) { transition-delay: .27s; }
  .motion-ready .destinations-grid > :nth-child(even) { transition-delay: .12s; }
}
/* Etichette editoriali con breve segno dorato, equivalente a un widget Divider in Elementor. */
.section-heading .eyebrow,
.about-copy > .eyebrow,
.welcome-copy > .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}
.section-heading .eyebrow::after,
.about-copy > .eyebrow::after,
.welcome-copy > .eyebrow::after {
  content: '';
  display: inline-block;
  flex: 0 0 29px;
  height: 1px;
  background-color: var(--color-accent);
}
/* Testi: raffinatezza controllata, senza rompere la gerarchia dei titoli. */
@media (hover: hover) and (pointer: fine) {
  .room-types-grid .room-type,
  .values-grid article {
    transition: transform .42s var(--ease), border-color .35s ease;
  }
  .room-types-grid .room-type:hover,
  .values-grid article:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
  }
  .room-preview .media-slot img.image-ready,
  .gallery-mosaic .media-slot img.image-ready,
  .room-story .media-slot img.image-ready {
    transition: opacity .5s ease, transform .8s var(--ease);
  }
  .room-preview:hover .media-slot img.image-ready,
  .gallery-mosaic .media-slot:not(:disabled):hover img.image-ready,
  .room-story .media-slot:not(:disabled):hover img.image-ready { transform: scale(1.045); }
  .room-type h3 { transition: color .32s ease; }
  .room-type:hover h3 { color: var(--color-primary-light); }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .editorial-reveal,
  .motion-ready .editorial-reveal.is-visible,
  .motion-ready .editorial-reveal--image,
  .motion-ready .editorial-reveal--image.is-visible {
    opacity: 1!important;
    transform: none!important;
    transition: none!important;
  }
  .room-types-grid .room-type,
  .values-grid article, .room-preview .media-slot img,
  .gallery-mosaic .media-slot img, .room-story .media-slot img {
    transition: none!important;
    transform: none!important;
  }
}

/* Kross Booking preview placeholder — replace with official Kross link or Elementor Shortcode widget. */
.kross-booking-placeholder{background:#f8f6f1;border:1px solid #102d4626;padding:clamp(25px,4vw,46px);max-width:900px;}
.kross-booking-placeholder .eyebrow{margin-bottom:15px;}
.kross-booking-placeholder h3{margin:0 0 14px;font-size:clamp(26px,3vw,38px);}
.kross-booking-placeholder>p:not(.eyebrow){font-size:13px;line-height:1.9;max-width:680px;margin:0 0 24px;}
.kross-booking-placeholder .btn{display:inline-flex;}
.comfort-final-text,.territory-summary{font-size:13px;line-height:1.9;max-width:900px;margin:30px 0 0;}
