/* =========================================================
   Home / Hero
   front-page.php
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 168px 0 82px;
  color: #fff;
  background: var(--navy);
  contain: layout paint;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -18%;
  z-index: 1;
  height: 34%;
  background: radial-gradient(ellipse at center, rgba(81, 212, 255, .16), transparent 64%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -150px;
  z-index: 1;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(81, 212, 255, .16), transparent 66%);
  pointer-events: none;
}

.hero__video,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  z-index: -2;
  object-fit: cover;
  transform: none;
}

.hero__image-fallback {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 45, .9), rgba(7, 17, 45, .58) 54%, rgba(7, 17, 45, .24)),
    linear-gradient(180deg, rgba(7, 17, 45, .34), transparent 42%, rgba(7, 17, 45, .62));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 900px);
  margin-left: max(20px, calc((100vw - 1160px) / 2));
  margin-right: auto;
}

/* Important LCP fix: hero copy must not wait for reveal animation */
.hero .hero__content.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero__content::before {
  content: "Partenza da Gallipoli";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.01em;
}

/* Shared labels */

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(81, 212, 255, .14);
}

/* Hero copy */

.hero h1 {
  max-width: 930px;
  margin: 16px 0 22px;
  color: #fff;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .93;
  font-weight: 950;
  letter-spacing: -.07em;
  text-wrap: balance;
  text-shadow: 0 14px 42px rgba(0, 0, 0, .32);
}

.hero p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(18px, 2.1vw, 23px);
  text-wrap: pretty;
}

/* Actions */

.hero__actions,
.review-actions,
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions {
  margin-top: 32px;
}

/* Trust row */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.trust-row span:nth-child(1)::before {
  content: "🛥️";
}

.trust-row span:nth-child(2)::before {
  content: "⚡";
}

.trust-row span:nth-child(3)::before {
  content: "🌅";
}

.trust-row span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: translateX(-120%);
  transition: transform .5s var(--ease);
  pointer-events: none;
}

.trust-row span:hover::after {
  transform: translateX(120%);
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    min-height: 92svh;
    padding: 132px 0 64px;
  }

  .hero::after {
    right: -120px;
    width: 260px;
    height: 260px;
  }

  .hero__content {
    width: min(100% - 32px, 720px);
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 70px);
    letter-spacing: -.06em;
  }

  .hero p {
    font-size: 18px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 88svh;
    padding: 120px 0 54px;
  }

  .hero::before,
  .hero::after {
    opacity: .75;
  }

  .hero__content::before {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .hero h1 {
    margin-bottom: 18px;
  }

  .hero__actions,
  .review-actions,
  .booking-actions {
    width: 100%;
  }

  .hero__actions .btn,
  .review-actions .btn,
  .booking-actions .btn {
    width: 100%;
  }

  .trust-row {
    gap: 8px;
  }

  .trust-row span {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 40px;
  }
}

/* Input modality */

@media (hover: none) {
  .trust-row span:hover::after {
    transform: translateX(-120%);
  }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  .trust-row span::after {
    transition: none !important;
  }
}