/* ── SITE INTRO ───────────────────────────────────── */

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0c0a09;
  /* 2026-10-16: velo nero 52% tolto; poi velo leggero al 13% (foto troppo accesa) */
  background-image: linear-gradient(rgba(12, 10, 9, 0.13), rgba(12, 10, 9, 0.13)), url('../img/home/hero-home-optimized.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

/* mobile: velo un filo più marcato (foto troppo accesa sul telefono) */
@media (max-width: 767px) {
  .site-intro {
    background-image: linear-gradient(rgba(12, 10, 9, 0.15), rgba(12, 10, 9, 0.15)), url('../img/home/hero-home-optimized.jpg');
  }
}

.intro-svg {
  width: min(90vw, 840px);
  display: block;
  overflow: visible;
}

.intro-sub {
  font-family: 'Cormorant Garamond', Garamond, serif;
  font-size: clamp(1rem, 4.5vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #fff;
  text-align: center;
  margin: -16px 0 0;
  opacity: 0;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.intro-animals {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.intro-animal {
  width: 85px;
  height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.45));
  opacity: 0;
  transform: translateY(10px);
}

.intro-dot {
  width: 5px;
  height: 5px;
  flex: none;
  background: rgba(243, 239, 232, 0.5);
  transform: rotate(45deg);
  opacity: 0;
}

@media (max-width: 600px) {
  .intro-animal { width: 56px; height: 56px; }
  .intro-animals { gap: 14px 16px; }
  .intro-dot { width: 4px; height: 4px; }
}

.intro-text {
  fill: #fff;
  fill-opacity: 1;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
}

@media (max-width: 600px) {
  .intro-text { stroke-width: 2.5; }
}

/* ─────────────────────────────────────────────────── */


/* ── HERO ─────────────────────────────────────────── */

.home-hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  color: var(--cream);
  background: var(--dark-brown);
  z-index: 1;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-content {
  position: absolute;
  bottom: 268px;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 24px;
}

.home-hero h1 {
  margin: 0;
  max-width: 680px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-shadow: 0 2px 36px rgba(0, 0, 0, 0.9);
}

.hero-tagline {
  margin: 18px 0 0;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  color: var(--cream);
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.85);
}

/* ── HERO BOTTOM ──────────────────────────────────── */

.home-hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero-rule {
  width: min(480px, 100%);
  height: 1px;
  background: rgba(243, 239, 232, 0.20);
  margin-bottom: 18px;
}

.home-hero-guide {
  display: grid;
  grid-template-columns: 95px 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(480px, 100%);
  color: var(--cream);
}

.home-hero-guide img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.3));
}

.home-hero-guide p {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 3.8vw, 1.42rem);
  color: var(--cream);
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}

.home-hero-guide span {
  font-style: italic;
  color: var(--cream);
}

.home-hero-guide strong {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.80rem;
  letter-spacing: 0.16em;
  color: rgba(243,239,232,0.95);
  font-weight: 400;
  border-bottom: 1px solid rgba(243,239,232,0.55);
  padding-bottom: 2px;
}

.home-hero-guide > em {
  font-style: normal;
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
}

.home-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: rgba(243,239,232,0.45);
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.home-scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(243,239,232,0.35);
  animation: homeScrollPulse 1.8s ease-in-out infinite;
}

@keyframes homeScrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.35; }
  50%       { transform: scaleY(0.5); opacity: 0.75; }
}

/* ── INTRO ────────────────────────────────────────── */

.home-intro {
  position: relative;
  z-index: 2;
  padding: 56px 0 28px;
  background: transparent;
  color: var(--cream);
}

.intro-copy {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.intro-copy p {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1rem, 2.8vw, 1.6rem);
  line-height: 1.4;
  color: var(--cream);
}

.intro-copy p + p {
  margin-top: 8px;
}

.ornament {
  width: 132px;
  height: 1px;
  margin: 30px auto;
  background: rgba(243, 239, 232, 0.18);
  position: relative;
}

.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: rgba(243, 239, 232, 0.55);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ── PATH CARDS ───────────────────────────────────── */

.home-paths {
  position: relative;
  z-index: 2;
  padding: 24px 0 28px;
  background: transparent;
}

.path-list {
  display: grid;
  gap: 14px;
}

.path-card {
  position: relative;
  min-height: 205px;
  display: block;
  overflow: visible;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: 0 10px 28px rgba(42, 33, 27, 0.15);
}

.path-card-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  background: #0d0b09;
}

.path-card-image img {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 180%;
  object-fit: cover;
}

.path-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,  rgba(20,14,8,0.62) 0%, rgba(20,14,8,0.22) 50%, transparent 70%),
    linear-gradient(270deg, rgba(20,14,8,0.45) 0%, transparent 48%);
}

.path-card-content {
  position: relative;
  z-index: 2;
  padding: 20px 52px 20px 20px;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.path-card h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

.path-card p {
  margin: 5px 0 0;
  color: var(--cream);
  font-size: clamp(0.82rem, 3vw, 1rem);
  line-height: 1.3;
  text-shadow: 0 1px 5px rgba(0,0,0,0.45);
}

.path-card small {
  display: block;
  margin-top: 9px;
  color: rgba(243,239,232,0.72);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.80rem;
}

.path-card-animal {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-55%);
  width: 68px;
  height: 68px;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.path-card-cta {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(48px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 1;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════
   MOBILE — sezioni trasparenti su sfondo coerente
   iOS non mostra la foto hero attraverso sezioni
   trasparenti su position:sticky; allineiamo il
   background delle sezioni a quello del body.
═══════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .home-hero-content {
    bottom: 308px;
  }

  .home-hero-overlay {
    background:
      linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 38%, rgba(0,0,0,0.22) 62%, transparent 82%),
      linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0%, transparent 30%);
  }

  /* ── Testi hero ────────────────────────────────── */
  .home-hero h1 {
    font-size: clamp(2.8rem, 10vw, 6.2rem);
    font-weight: 400;
  }

  .hero-tagline {
    font-size: clamp(1.18rem, 4.4vw, 1.5rem);
    font-weight: 400;
  }

  .home-hero-guide p { font-weight: 400; }
  .home-hero-guide strong { font-size: 0.86rem; }

  /* ── Sezione intro ─────────────────────────────── */
  .intro-copy p {
    font-size: clamp(1.22rem, 4.8vw, 1.6rem);
    font-weight: 400;
  }

  /* ── Path cards ────────────────────────────────── */
  .path-card h2            { font-size: clamp(1.3rem, 5.5vw, 2rem); }
  .path-card p             { font-size: clamp(1rem, 3.5vw, 1.1rem); font-weight: 400; }
  .path-card small         { font-size: 0.72rem; letter-spacing: 0.20em; color: rgba(243,239,232,0.78); }
  .path-card-cta           { font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 420px e sotto
═══════════════════════════════════════════════════ */

@media (max-width: 420px) {
  .brand-logo {
    width: 36px;
  }

  .brand-text span {
    font-size: 0.95rem;
  }

  .home-hero-content {
    bottom: 288px;
    padding: 0 20px;
  }

  .path-card {
    min-height: 195px;
  }

  .path-card-content {
    padding: 16px 44px 16px 16px;
    min-height: 195px;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — tablet 768px+
═══════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .home-hero {
    min-height: 100vh;
  }

  .home-hero-content {
    bottom: 288px;
    padding: 0 56px;
  }

  .home-hero-bottom {
    padding: 0 56px 56px;
  }

  .home-intro {
    padding-top: 72px;
  }

  .path-list {
    gap: 12px;
  }

  .path-card {
    min-height: 260px;
  }

  .path-card-content {
    padding: 36px 120px 36px 40px;
    min-height: 260px;
  }

  .path-card-animal {
    width: 89px;
    height: 89px;
    right: 36px;
  }

  .path-card-cta {
    right: 36px;
    font-size: 0.72rem;
    transform: translateY(58px);
  }

  .home-hero-image {
    filter: brightness(1.22) contrast(1.04);
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — desktop 1100px+
═══════════════════════════════════════════════════ */

@media (min-width: 1100px) {
  .path-card {
    min-height: 310px;
  }

  .path-card-content {
    padding: 44px 140px 44px 52px;
    min-height: 310px;
  }

  .path-card-animal {
    width: 100px;
    height: 100px;
    right: 40px;
  }

  .path-card-cta {
    right: 40px;
    transform: translateY(65px);
  }
}


/* ═══════════════════════════════════════════════════
   PATH CARDS — tutto un po' piu in basso (2026-10-13)
   stemma, "Discover more" e testo a sinistra
═══════════════════════════════════════════════════ */

.path-card-content { transform: translateY(28px); }
.path-card-animal  { transform: translateY(calc(-55% + 12px)); }
.path-card-cta     { transform: translateY(66px); }

@media (min-width: 768px) {
  .path-card-content { transform: translateY(38px); }
  .path-card-animal  { transform: translateY(calc(-55% + 16px)); }
  .path-card-cta     { transform: translateY(80px); }
}

@media (min-width: 1100px) {
  .path-card-cta     { transform: translateY(88px); }
}


/* ═══════════════════════════════════════════════════
   MOBILE (2026-10-16): testo hero un po' più in basso,
   freccia del Roe Deer dentro lo schermo
═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .home-hero-content { bottom: 262px; }
  .home-hero-guide { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; }
  .home-hero-guide p { white-space: normal; }
  .home-hero-guide > em { padding-right: 2px; }
}
@media (max-width: 420px) {
  .home-hero-content { bottom: 250px; }
}
