{# ============================================
   HERO PRODUCT — MODULE CSS
   Split hero for Product / Feature pages.
   ============================================ #}

/* === BASE === */
.ad-hero-product {
  background: var(--bg-body, #FEFEFD);
  padding: 48px 24px 64px;
  position: relative;
  overflow: hidden;
}

.ad-hero-product__inner {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 480px;
}

/* === TESTO (sinistra) === */
.ad-hero-product__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === BREADCRUMB === */
.ad-hero-product__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.ad-hero-product__breadcrumb-link {
  color: var(--primary-blue, #6761E5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ad-hero-product__breadcrumb-link:hover {
  color: var(--hover-purple, #B380F8);
  text-decoration: underline;
}

.ad-hero-product__breadcrumb-sep {
  color: var(--text-muted, #545875);
  font-size: 14px;
}

.ad-hero-product__breadcrumb-current {
  color: var(--text-muted, #545875);
}

.ad-hero-product__title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-blue, #6761E5);
  margin: 0;
}

.ad-hero-product__subtitle {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-main, #292E53);
  letter-spacing: -0.005em;
  line-height: 1.45;
  margin: 0;
}

/* === CHECKLIST === */
.ad-hero-product__checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ad-hero-product__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main, #292E53);
  line-height: 1.4;
}

.ad-hero-product__checklist li::before {
  content: '\2713';
  color: var(--primary-blue, #6761E5);
  font-weight: 700;
  flex-shrink: 0;
}

/* === CTA BUTTONS === */
.ad-hero-product__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}

.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 12px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.ad-btn--primary {
  background: var(--primary-blue, #6761E5);
  color: #FFFFFF;
}

.ad-btn--primary:hover {
  background: var(--hover-purple, #B380F8);
  transform: scale(1.03);
}

.ad-btn--outline {
  background: transparent;
  color: var(--primary-blue, #6761E5);
  border: 1px solid rgba(41, 46, 83, 0.2);
}

.ad-btn--outline:hover {
  background: rgba(103, 97, 229, 0.05);
  transform: scale(1.03);
}

/* === FORM (destra) === */
.ad-hero-product__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroProductSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.ad-hero-product__form-wrapper {
  width: 100%;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(41, 46, 83, 0.08), 0 1px 4px rgba(41, 46, 83, 0.04);
}

.ad-hero-product__form-wrapper .hs-form-field {
  margin-bottom: 16px;
}

.ad-hero-product__form-wrapper .hs-form-field label {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #292E53);
  margin-bottom: 6px;
  display: block;
}

.ad-hero-product__form-wrapper .hs-input {
  width: 100% !important;
  padding: 12px 16px;
  border: 1px solid rgba(41, 46, 83, 0.15);
  border-radius: 10px;
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 16px;
  color: var(--text-main, #292E53);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.ad-hero-product__form-wrapper .hs-input:focus {
  outline: none;
  border-color: var(--primary-blue, #6761E5);
  box-shadow: 0 0 0 3px rgba(103, 97, 229, 0.12);
}

.ad-hero-product__form-wrapper .hs-submit .hs-button {
  width: 100%;
  padding: 14px 32px;
  background: var(--primary-blue, #6761E5);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
}

.ad-hero-product__form-wrapper .hs-submit .hs-button:hover {
  background: var(--hover-purple, #B380F8);
  transform: scale(1.02);
}

.ad-hero-product__media img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

.ad-hero-product__placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-muted, #8E92A6);
  border-radius: 32px;
}

@keyframes heroProductSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === DARK VARIANT === */
.ad-hero-product--dark {
  background: var(--bg-dark, #39357E);
}

.ad-hero-product--dark .ad-hero-product__breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
}

.ad-hero-product--dark .ad-hero-product__breadcrumb-link:hover {
  color: #FFFFFF;
}

.ad-hero-product--dark .ad-hero-product__breadcrumb-sep,
.ad-hero-product--dark .ad-hero-product__breadcrumb-current {
  color: rgba(255, 255, 255, 0.5);
}

.ad-hero-product--dark .ad-hero-product__title {
  color: #FFFFFF;
}

.ad-hero-product--dark .ad-hero-product__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.ad-hero-product--dark .ad-btn--primary {
  background: var(--accent-pink, #E040FB);
}

.ad-hero-product--dark .ad-btn--primary:hover {
  background: var(--hover-purple, #B380F8);
}

.ad-hero-product--dark .ad-btn--outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.ad-hero-product--dark .ad-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ad-hero-product--dark .ad-hero-product__checklist li {
  color: rgba(255, 255, 255, 0.9);
}

.ad-hero-product--dark .ad-hero-product__checklist li::before {
  color: var(--accent-pink, #E040FB);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .ad-hero-product {
    padding: 32px 16px 48px;
  }

  .ad-hero-product__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .ad-hero-product__content {
    text-align: center;
  }

  .ad-hero-product__breadcrumb {
    justify-content: center;
  }

  .ad-hero-product__subtitle {
    font-size: 18px;
  }

  .ad-hero-product__ctas {
    justify-content: center;
  }

  .ad-hero-product__media {
    order: 1;
  }

  .ad-hero-product__form-wrapper {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .ad-btn {
    padding: 14px 28px;
    font-size: 16px;
  }
}