/*
 * Pagina barche — racconto illustrato in sei scene.
 * Anteprima separata: non modifica la V6 generale né la pagina dossier.
 */

.boat-story-page {
  --story-paper: #f5efe4;
  --story-paper-soft: #fbf8f1;
  --story-ink: #0d3138;
  --story-deep: #082f36;
  --story-teal: #0d6665;
  --story-orange: #ef7623;
  --story-line: rgba(13, 49, 56, 0.16);
  background: var(--story-paper-soft);
}

.boat-story-page .site-header {
  background: rgba(251, 248, 241, 0.96);
}

.boat-story-page .primary-nav {
  gap: clamp(18px, 2vw, 30px);
}

.boat-story-page .primary-nav a {
  font-size: 0.86rem;
}

.boat-story-hero {
  padding: clamp(28px, 3vw, 44px) 0 clamp(58px, 7vw, 96px);
  color: var(--story-ink);
  background:
    radial-gradient(circle at 88% 15%, rgba(238, 118, 35, 0.1), transparent 28%),
    linear-gradient(180deg, #fbf8f1 0%, var(--story-paper) 100%);
}

.boat-story-page .service-breadcrumb {
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.boat-story-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
}

.boat-story-hero-copy {
  min-width: 0;
}

.boat-story-hero-copy h1 {
  max-width: 8ch;
  margin: 12px 0 22px;
  color: var(--story-ink);
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 7.2vw, 7.7rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.boat-story-subtitle {
  max-width: 620px;
  margin: 0 0 18px;
  color: var(--story-ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.boat-story-hero-copy > p:not(.eyebrow, .boat-story-subtitle) {
  max-width: 620px;
  color: rgba(13, 49, 56, 0.72);
  font-size: 1.05rem;
  line-height: 1.62;
}

.boat-story-hero-copy .hero-actions {
  margin-top: 30px;
}

.boat-story-hero-photo {
  width: 100%;
  margin: 0;
}

.boat-story-hero-photo > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 10px solid rgba(255, 253, 248, 0.96);
  border-radius: 28px 28px 14px 28px;
  box-shadow: 0 24px 60px rgba(13, 49, 56, 0.14);
}

.boat-story-hero-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 10px 0;
  color: rgba(13, 49, 56, 0.62);
  font-size: 0.78rem;
}

.boat-story-hero-photo figcaption strong {
  color: var(--story-ink);
}

.boat-story-intro {
  padding: clamp(60px, 7vw, 96px) 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 120%, rgba(14, 107, 103, 0.65), transparent 38%),
    var(--story-deep);
}

.boat-story-intro .eyebrow {
  color: #84d7d2;
}

.boat-story-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
}

.boat-story-intro h2 {
  max-width: 16ch;
  margin: 12px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 5vw, 5.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.boat-story-intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.04rem;
  line-height: 1.65;
}

.boat-story-journey {
  overflow: clip;
  color: var(--story-ink);
  background: var(--story-paper);
}

.boat-story-journey > .container {
  position: relative;
}

.boat-story-journey > .container::before {
  position: absolute;
  top: clamp(70px, 7vw, 104px);
  bottom: clamp(70px, 7vw, 104px);
  left: calc(18px + clamp(0px, 3vw, 34px));
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(13, 102, 101, 0.42) 7%,
    rgba(13, 102, 101, 0.42) 93%,
    transparent
  );
  content: "";
}

.boat-story-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
  min-height: clamp(430px, 42vw, 570px);
  padding: clamp(64px, 7vw, 104px) 0;
  border-bottom: 1px solid var(--story-line);
}

.boat-story-scene:last-child {
  border-bottom: 0;
}

.boat-story-scene-reverse {
  grid-template-columns: minmax(0, 0.64fr) minmax(270px, 0.36fr);
}

.boat-story-scene-reverse .boat-story-copy {
  grid-column: 2;
  grid-row: 1;
}

.boat-story-scene-reverse .boat-story-art {
  grid-column: 1;
  grid-row: 1;
}

.boat-story-copy {
  position: relative;
  z-index: 2;
  padding-left: clamp(48px, 5vw, 66px);
}

.boat-story-step {
  position: absolute;
  top: -4px;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border: 3px solid var(--story-paper);
  border-radius: 50%;
  color: #fff;
  background: var(--story-orange);
  box-shadow: 0 0 0 1px rgba(239, 118, 35, 0.32);
  font-size: 0.7rem;
  font-weight: 800;
}

.boat-story-copy .eyebrow {
  color: var(--story-teal);
}

.boat-story-copy h2 {
  max-width: 12ch;
  margin: 10px 0 18px;
  color: var(--story-ink);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.6vw, 4.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.boat-story-copy > p:not(.eyebrow, .boat-story-speech) {
  max-width: 520px;
  margin: 0 0 14px;
  color: rgba(13, 49, 56, 0.7);
  line-height: 1.62;
}

.boat-story-note {
  padding-top: 14px;
  border-top: 1px solid var(--story-line);
  font-size: 0.86rem;
}

.boat-story-art {
  --story-reveal: 100%;
  position: relative;
  min-width: 0;
  aspect-ratio: var(--story-ratio);
  margin: 0;
  isolation: isolate;
  filter: drop-shadow(0 18px 28px rgba(13, 49, 56, 0.09));
}

.boat-story-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.boat-story-art > img:first-child {
  filter: grayscale(0.88) saturate(0.32);
  opacity: 0.27;
}

.story-motion-ready .boat-story-art {
  --story-reveal: 0%;
}

.boat-story-art .boat-story-art-color {
  position: absolute;
  z-index: 2;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--story-reveal)) 0 0);
  transition: clip-path 80ms linear;
}

.boat-story-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 24px 0 0;
}

.boat-story-checks li,
.boat-story-places span {
  min-width: 0;
  border: 1px solid rgba(13, 102, 101, 0.18);
  border-radius: 999px;
  color: var(--story-teal);
  background: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.boat-story-checks li {
  padding: 10px 13px;
}

.boat-story-measure-ends {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.boat-story-measure-ends span {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: center;
  color: rgba(13, 49, 56, 0.72);
  font-size: 0.78rem;
}

.boat-story-measure-ends b {
  display: grid;
  place-items: center;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--story-orange);
}

.boat-story-places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.boat-story-places span {
  padding: 9px 14px;
}

.boat-story-speech {
  position: relative;
  display: inline-block;
  margin: 16px 0 0;
  padding: 13px 18px;
  border: 1px solid rgba(239, 118, 35, 0.32);
  border-radius: 18px 18px 18px 5px;
  color: var(--story-ink);
  background: #fffaf1;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.1;
  transform: rotate(-1.5deg);
}

.boat-story-contact {
  padding: clamp(70px, 8vw, 112px) 0;
  color: #fff;
  background: var(--story-deep);
}

.boat-story-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 22%, rgba(239, 118, 35, 0.19), transparent 30%),
    rgba(255, 255, 255, 0.045);
}

.boat-story-contact-card h2 {
  max-width: 14ch;
  margin: 10px 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.4vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.boat-story-contact-card p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 1080px) {
  .boat-story-page .primary-nav {
    gap: 18px;
  }

  .boat-story-page .primary-nav a {
    font-size: 0.79rem;
  }

  .boat-story-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 42px;
  }

  .boat-story-scene,
  .boat-story-scene-reverse {
    grid-template-columns: minmax(245px, 0.4fr) minmax(0, 0.6fr);
    gap: 34px;
  }

  .boat-story-scene-reverse .boat-story-copy {
    grid-column: 2;
  }

  .boat-story-scene-reverse .boat-story-art {
    grid-column: 1;
  }
}

@media (max-width: 900px) {
  .boat-story-hero-grid,
  .boat-story-intro-grid,
  .boat-story-scene,
  .boat-story-scene-reverse,
  .boat-story-contact-card {
    grid-template-columns: 1fr;
  }

  .boat-story-hero-copy h1 {
    max-width: 9ch;
  }

  .boat-story-hero-photo {
    max-width: 760px;
  }

  .boat-story-intro-grid {
    gap: 22px;
  }

  .boat-story-intro h2 {
    max-width: 17ch;
  }

  .boat-story-scene {
    min-height: 0;
    gap: 34px;
  }

  .boat-story-scene .boat-story-copy,
  .boat-story-scene .boat-story-art,
  .boat-story-scene-reverse .boat-story-copy,
  .boat-story-scene-reverse .boat-story-art {
    grid-column: 1;
  }

  .boat-story-scene .boat-story-copy,
  .boat-story-scene-reverse .boat-story-copy {
    grid-row: 1;
  }

  .boat-story-scene .boat-story-art,
  .boat-story-scene-reverse .boat-story-art {
    grid-row: 2;
  }

  .boat-story-journey > .container::before {
    left: calc(var(--container-pad, 20px) + 17px);
  }

  .boat-story-contact-card {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .boat-story-hero {
    padding-top: 20px;
  }

  .boat-story-page .service-breadcrumb {
    margin-bottom: 26px;
  }

  .boat-story-hero-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(3.65rem, 17vw, 5.2rem);
  }

  .boat-story-subtitle {
    font-size: 1.42rem;
  }

  .boat-story-hero-copy .hero-actions {
    display: grid;
  }

  .boat-story-hero-copy .hero-actions .button {
    width: 100%;
  }

  .boat-story-hero-photo > img {
    border-width: 7px;
    border-radius: 22px 22px 10px 22px;
  }

  .boat-story-hero-photo figcaption {
    display: grid;
    gap: 3px;
    margin-inline: 5px;
  }

  .boat-story-intro {
    padding-block: 58px;
  }

  .boat-story-intro h2 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .boat-story-scene {
    gap: 26px;
    padding-block: 56px;
  }

  .boat-story-copy {
    padding-left: 48px;
  }

  .boat-story-step {
    width: 34px;
  }

  .boat-story-copy h2 {
    font-size: clamp(2.35rem, 10vw, 3.35rem);
  }

  .boat-story-art {
    width: calc(100% + 18px);
    margin-left: -9px;
    filter: drop-shadow(0 12px 20px rgba(13, 49, 56, 0.08));
  }

  .boat-story-checks {
    grid-template-columns: 1fr;
  }

  .boat-story-contact {
    padding-block: 62px 96px;
  }

  .boat-story-contact-card {
    padding: 28px 24px;
    border-radius: 24px;
  }

  .boat-story-contact-card h2 {
    font-size: clamp(2.45rem, 11vw, 3.45rem);
  }

  .boat-story-contact-card .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-motion-ready .boat-story-art {
    --story-reveal: 100%;
  }

  .boat-story-art > img:first-child {
    filter: none;
    opacity: 1;
  }

  .boat-story-art .boat-story-art-color {
    display: none;
    transition: none;
  }
}
