/* =============================================
   HERO.CSS — Above-the-fold section
   Fabbro Metalli Roma
   ============================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding-top: 7rem;
  padding-bottom: var(--sp-lg);
  overflow: hidden;
  z-index: 1;
}

/* ─── Blueprint annotation marks ─────────────── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(201, 74, 30, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ─── Background image ────────────────────────── */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.22) saturate(0.4);
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero__bg img.loaded {
  transform: scale(1);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 18, 0.3) 0%,
    rgba(20, 20, 18, 0.0) 40%,
    rgba(20, 20, 18, 0.85) 100%
  );
}

/* ─── Annotation bar (blueprint style) ──────── */
.hero__annotation {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--sp-md);
  animation: fadeIn 1s 0.6s both;
}

.hero__annotation-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--clr-accent);
}

.hero__annotation-text {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

/* ─── Main headline ───────────────────────────── */
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
}

.hero__headline em {
  font-style: normal;
  color: var(--clr-accent);
}

/* ─── Sub text ────────────────────────────────── */
.hero__body {
  max-width: 520px;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--clr-text-dim);
  margin-bottom: var(--sp-md);
  animation: fadeIn 0.9s 1s both;
}

/* ─── CTA row ─────────────────────────────────── */
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  animation: fadeIn 0.9s 1.2s both;
}

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.hero__scroll-arrow {
  width: 1px;
  height: 40px;
  background: var(--clr-muted);
  position: relative;
  overflow: hidden;
}

.hero__scroll-arrow::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: var(--clr-accent);
  animation: lineUp 1.5s 1.5s ease infinite;
}

/* ─── Bottom metadata strip ───────────────────── */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--clr-border);
  margin-top: var(--sp-lg);
  animation: fadeIn 0.9s 1.4s both;
}

.hero__meta-item {
  padding: var(--sp-sm) var(--sp-sm) var(--sp-xs);
  border-right: 1px solid var(--clr-border);
}

.hero__meta-item:last-child {
  border-right: none;
}

.hero__meta-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--clr-text);
  line-height: 1;
}

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 600px) {
  .hero__meta {
    grid-template-columns: 1fr 1fr;
  }

  .hero__meta-item:nth-child(2) {
    border-right: none;
  }

  .hero__meta-item:nth-child(3) {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid var(--clr-border);
  }

  .hero__scroll-hint {
    display: none;
  }
}
