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

/* === BASE === */
.ad-hero-product {
  background: var(--bg-body, #FEFEFD);
  padding: 16px 24px 32px;
  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: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: auto;
}

/* === 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(--ff-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(--ff-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(--ff-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(--ff-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(--ff-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: 16px;
  padding: 16px;
  max-width: 480px;
  box-shadow: none;
  border: none;
}

/* === HUBSPOT FORM BRAND OVERRIDES === */
.ad-hero-product__form-wrapper .hs-form label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #292E53;
}

.ad-hero-product__form-wrapper .hs-form input[type="text"],
.ad-hero-product__form-wrapper .hs-form input[type="email"],
.ad-hero-product__form-wrapper .hs-form input[type="tel"],
.ad-hero-product__form-wrapper .hs-form input[type="number"],
.ad-hero-product__form-wrapper .hs-form select,
.ad-hero-product__form-wrapper .hs-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #292E53;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px 14px;
  background: #FFFFFF;
  transition: border-color 0.2s;
}

.ad-hero-product__form-wrapper .hs-form input:focus,
.ad-hero-product__form-wrapper .hs-form select:focus,
.ad-hero-product__form-wrapper .hs-form textarea:focus {
  border-color: #5B4ED7;
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 78, 215, 0.15);
}

.ad-hero-product__form-wrapper .hs-form .hs-button,
.ad-hero-product__form-wrapper .hs-form input[type="submit"] {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  background: #5B4ED7;
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.ad-hero-product__form-wrapper .hs-form .hs-button:hover,
.ad-hero-product__form-wrapper .hs-form input[type="submit"]:hover {
  background: #4A3DC0;
}

.ad-hero-product__form-wrapper .hs-form .hs-error-msgs label {
  color: #E53E3E;
  font-size: 12px;
}

.ad-hero-product__form-wrapper .hs-form .legal-consent-container {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6B7280;
}

.ad-hero-product__form-wrapper .hs-form .legal-consent-container a {
  color: #5B4ED7;
}

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

.ad-hero-product__form-wrapper .hs-form-field label {
  font-family: var(--ff-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(--ff-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 fieldset {
  max-width: 100% !important;
  width: 100% !important;
}

.ad-hero-product__form-wrapper fieldset .hs-form-field {
  flex: 1 1 auto !important;
}

.ad-hero-product__form-wrapper .hs-fieldtype-text .hs-input,
.ad-hero-product__form-wrapper .hs-fieldtype-select .hs-input,
.ad-hero-product__form-wrapper .hs-fieldtype-phonenumber .hs-input {
  width: 100% !important;
}


.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(--ff-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);
}

@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__ctas {
    justify-content: center;
  }

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