/**
 * Italy Made Easy — Homepage Hero Section
 * Depends on: tokens.css, components.css
 */

/* ─── Hero wrapper ───────────────────────────────────────────── */

.hero-section {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(180, 220, 255, 0.35) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Split grid ─────────────────────────────────────────────── */

.hero-split {
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: stretch;
  position: relative;
  z-index: 1;
  max-width: var(--max-width-site);
  margin: 0 auto;
  /*padding: 0 32px;*/
}

/* ─── Text column ────────────────────────────────────────────── */

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 80px 0 24px 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 144, 255, 0.06);
  border: 1px solid rgba(0, 144, 255, 0.20);
  color: rgba(0, 144, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 18px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
  width: fit-content;
}

.hero-h1 {
  font-size: var(--font-size-hero);
  font-weight: 900;
  line-height: var(--line-height-hero);
  color: var(--color-text);
  margin-bottom: var(--sp-4);
  white-space: nowrap;
}

.hero-h1 .h1-line1 {
  display: inline-block;
  padding-bottom: 0.15em;
}

.hero-h1 .grad {
  background: linear-gradient(90deg, var(--color-blue), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.hero-sub strong {
  color: var(--color-text);
  font-weight: 700;
}

.hero-cta {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-4);
}

/* ─── Testimonials ───────────────────────────────────────────── */

.hero-tcards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 88%;
}

.hero-tcard {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.htc-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: 4px;
}

.htc-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(28, 52, 71, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

.htc-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
}

.htc-loc {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  font-weight: 400;
}

.htc-stars {
  color: #F7DE15;
  font-size: var(--font-size-sm);
  letter-spacing: 0;
  white-space: nowrap;
}

.htc-quote {
  font-size: var(--font-size-md);
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

/* ─── Photo column ───────────────────────────────────────────── */

.hero-photo-col {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(380px, calc(78vh - var(--header-height)), 600px);
}


.hero-photo-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 75% at 50% 58%,
    rgba(160, 210, 255, 0.75) 0%,
    rgba(140, 195, 255, 0.40) 45%,
    transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero-photo-col img {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* ─── Testimonial slider (positioned on hero photo) ─────────── */

.hero-testimonial-slider {
  position: absolute;
  bottom: 8%;
  /*right: 10px;*/
  width: 380px;
  z-index: 3;
}

/* ─── Stats bar ──────────────────────────────────────────────── */

.hero-stats {
  background: var(--color-text);
  padding: var(--sp-6) 0;
}

.hero-stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--sp-4);
  max-width: var(--max-width-site);
  margin: 0 auto;
  padding: 0 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  text-transform: uppercase;
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding: 0 var(--sp-7);
  }

  .hero-content {
    padding: var(--sp-8) 0 var(--sp-5);
  }

  .hero-h1 {
    white-space: normal;
    font-weight: 900;
  }

  .hero-pill {
    white-space: nowrap;
    font-size: 0.65rem;
  }

  /* Photo centered below CTA, testimonial on lower chest */
  .hero-photo-col {
    height: auto;
    min-height: unset;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    position: relative;
    margin-top: 80px;
  }

  .hero-photo-col::before {
    display: none;
  }

  .hero-photo-col img {
    position: relative;
    width: 85%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    left: auto;
    transform: none;
    margin: 0 auto;
    z-index: 1;
  }

  .hero-testimonial-slider {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    right: auto;
    width: 90%;
    max-width: 340px;
    z-index: 3;
  }

  .hero-tcards {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    padding: var(--sp-5) 0;
    margin-top: 0;
  }
  .hero-stats-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 var(--sp-6);
  }
  .hero-stat {
    width: 100%;
    text-align: center;
    padding: var(--sp-3) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hero-stat:last-child {
    border-bottom: none;
  }
  .hero-stat-value {
    font-size: 18px;
    display: block;
  }
  .hero-stat-label {
    font-size: var(--font-size-caption);
    margin-top: 2px;
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-split {
    padding: 0 var(--sp-5);
  }
  .hero-photo-col {
    height: 260px;
  }
}
