/* ============================ */
/*         HERO SECTION         */
/* ============================ */
.custom-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--topbar-height) - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2rem 1rem;
  background: transparent;
}

/* Altezza stabile mobile (iOS/Android) */
@supports (height: 100svh) {
  .custom-hero {
    min-height: calc(100svh - var(--topbar-height-mobile) - var(--header-height-mobile));
  }
}

/* Grid interna */
.custom-hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================ */
/*       COLONNA TESTI          */
/* ============================ */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo img {
  width: clamp(220px, 28vw, 360px); /* logo grande e scalabile */
  height: auto;
  display: block;
  margin: 0 auto 1.2rem auto;
}

.hero-title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: var(--fw-black);
  line-height: 1.2;
  font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  margin: 0.4rem 0 0.6rem 0;
}

.hero-subtitle {
  font-family: var(--font-base);
  color: var(--color-dark);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  margin: 0;
}

/* ============================ */
/*       COLONNA IMMAGINE       */
/* ============================ */
.hero-media {
  position: relative;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  border: 4px solid #fff;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ============================ */
/*          RESPONSIVE          */
/* ============================ */
@media (max-width: 1024px) {
  .custom-hero .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 1.5rem;
  }

  .hero-logo img {
    max-width: 300px; /* logo ben visibile su tablet */
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-media {
    max-width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .custom-hero {
    padding: 1.5rem 1rem 2rem 1rem;
  }

  .hero-logo img {
    max-width: 280px; /* logo più grande su smartphone */
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-media {
    margin-top: 1.5rem;
  }