/* =============================================
   HERO (home) — min-height 350px, NOT fullscreen
============================================= */

.hero-content {
  position: relative;
  min-height: 350px;
  padding: 40px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f8fa 0%, #e9ecf2 100%);
  border-bottom: 1px solid #ddd;
}

.hero-content__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* left-to-right gradient overlay */
.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.hero-content__container {
  position: relative;
  z-index: 2;
}

.hero-content__title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-content__excerpt {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero-content__excerpt p {
  margin: 0;
}

.hero-content__below-excerpt {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* =============================================
   HERO COMPATTO (pagine interne)
============================================= */

.page-hero {
  position: relative;
  min-height: 220px;
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f8fa 0%, #e9ecf2 100%);
  border-bottom: 1px solid #ddd;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero__excerpt {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.page-hero__excerpt p {
  margin: 0;
}
