/* ==========================================================================
   HERO SECTIONS
   Casale Isidoro
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

/* --------------------------------------------------------------------------
   Hero Background
   -------------------------------------------------------------------------- */

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Top vignette for header readability over hero images */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Overlay Gradient */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-gradient);
  z-index: 2;
}

/* Additional overlays for readability */
.hero__overlay--strong {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

@media (max-width: 767px) {
  .hero__overlay--strong {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.6) 40%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
}

.hero__overlay--subtle {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* --------------------------------------------------------------------------
   Hero Variants
   -------------------------------------------------------------------------- */

/* Full viewport hero (Homepage) */
.hero--full {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Medium hero (Inner pages) */
.hero--medium {
  min-height: 50vh;
  min-height: 50dvh;
}

/* Small hero (Sub-pages) */
.hero--small {
  min-height: 35vh;
  min-height: 35dvh;
}

/* --------------------------------------------------------------------------
   Parallax
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .hero--parallax .hero__bg img {
    background-attachment: fixed;
    /* For actual parallax, use background-image instead of img */
  }

  .hero--parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

/* Disable parallax on touch / mobile */
@media (hover: none) {
  .hero--parallax .hero__bg img {
    background-attachment: scroll;
  }

  .hero--parallax-bg {
    background-attachment: scroll;
  }
}

/* --------------------------------------------------------------------------
   Hero Content
   -------------------------------------------------------------------------- */

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-xl) var(--container-padding);
  max-width: 900px;
  margin: 0 auto;
  /* Push content down to account for header */
  padding-top: calc(var(--header-height) + var(--space-xl));
}

.hero__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-light);
  font-size: var(--fs-h1);
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero__title--serif-italic {
  font-style: italic;
}

.hero__title-script {
  font-family: 'Amsterdam One', cursive;
  font-weight: normal;
  display: block;
  font-size: clamp(2.2rem, 6vw, 1.4em);
  line-height: 1.3;
  margin-top: 0.1em;
  padding-bottom: 0.3em;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Actions (CTA buttons) --- */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* --- Breadcrumb on inner-page hero --- */
.hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-base);
}

.hero__breadcrumb a:hover {
  color: #FFFFFF;
}

.hero__breadcrumb-separator {
  opacity: 0.4;
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   Scroll Indicator
   -------------------------------------------------------------------------- */

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-base);
}

.hero__scroll:hover {
  color: #FFFFFF;
}

.hero__scroll-text {
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.4;
    transform: scaleY(0.6);
    transform-origin: top;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero--full {
    min-height: 100vh;
  }

  .hero--medium {
    min-height: 55vh;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    max-width: 1000px;
  }

  .hero--medium {
    min-height: 50vh;
  }
}


/* Tagline below the logo title in the hero */
.hero__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-top: -0.4em;
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
