.contact-hub {
  padding: 4rem 0 2rem;
  background: #f4f7f6;
}

.contact-hub h2:not(.contact-hub__head h2) {
  text-align: center;
  color: #003731;
  margin-bottom: 0.5rem;
}

.contact-hub .contact-hub-sub {
  text-align: center;
  color: #555;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-channel-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.15rem;
  border: 1px solid rgba(0, 55, 49, 0.1);
  box-shadow: 0 4px 20px rgba(0, 55, 49, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  height: 100%;
  cursor: pointer;
  text-align: left;
}

.contact-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 55, 49, 0.12);
  border-color: rgba(0, 55, 49, 0.25);
}

.contact-channel-card.is-active {
  border-color: #005249;
  box-shadow: 0 8px 24px rgba(0, 82, 73, 0.18);
  background: linear-gradient(180deg, #fff 0%, #f0faf8 100%);
}

.contact-channel-card.is-active .contact-channel-cta {
  color: #003731;
}

.contact-channel-card h3 {
  font-size: 1.05rem;
  color: #003731;
  margin: 0 0 0.5rem;
}

.contact-channel-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1;
}

.contact-channel-badge:not([hidden]) {
    display: inline-block;
}

.contact-channel-card span.contact-channel-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #005249;
}

.contact-request-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-request-layout {
    grid-template-columns: 1fr;
  }
}

.contact-request-aside {
  background: linear-gradient(145deg, #003731, #005249);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.contact-request-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("../images/logo no bdg/icona bg.png");
  background-size: 90px;
  background-repeat: repeat;
}

.contact-request-aside > * {
  position: relative;
}

.contact-request-aside h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.contact-request-aside p {
  opacity: 0.92;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.contact-request-trust {
  font-size: 0.88rem;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 1rem;
}

.contact-request-trust a {
  color: #b8ffe0;
}

.ig-lead-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 55, 49, 0.1);
  border: 1px solid rgba(0, 55, 49, 0.06);
}

.contact-form-block {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
  min-width: 0;
}

.contact-form-block--compact {
  margin-bottom: 1rem;
}

.contact-form-block__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #005249;
  padding: 0;
  margin: 0 0 0.65rem;
  width: 100%;
}

.contact-form-extra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 640px) {
  .contact-form-extra-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-extra-grid .form-group--full {
  grid-column: 1 / -1;
}

.contact-form-inline-label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 0.35rem;
}

.ig-lead-form-card textarea {
  min-height: 7rem;
  resize: vertical;
}

.ig-lead-form-card .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .ig-lead-form-card .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.ig-lead-form-card .form-group label {
  font-weight: 600;
  color: #333;
}

.ig-lead-form-card .form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8dde0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #222;
}

.ig-lead-form-card .form-group select:focus {
  outline: none;
  border-color: #005249;
  box-shadow: 0 0 0 3px rgba(0, 82, 73, 0.12);
}

.ig-phone-field .ig-phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.ig-phone-field .ig-phone-prefix-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-self: stretch;
}

.ig-phone-field .ig-phone-prefix-display {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: calc(0.65rem * 2 + 1.35rem);
  width: auto;
  min-width: 3.5rem;
  padding: 0.65rem 0.45rem;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
  font-family: inherit;
  font-weight: 600;
  color: #222;
  background: #fff;
  border: 1px solid #d8dde0;
  border-radius: 8px;
  cursor: pointer;
}

.ig-phone-field .ig-phone-prefix-display:hover {
  border-color: #b8c4c2;
}

.ig-phone-field .ig-phone-prefix-display:focus {
  outline: none;
  border-color: #005249;
  box-shadow: 0 0 0 3px rgba(0, 82, 73, 0.12);
}

.ig-phone-prefix-menu {
  position: fixed;
  z-index: 10200;
  min-width: 7.5rem;
  max-height: 12rem;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 55, 49, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 40, 36, 0.14);
  -webkit-overflow-scrolling: touch;
}

.ig-phone-prefix-menu[hidden] {
  display: none !important;
}

.ig-phone-prefix-menu [role="option"] {
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.ig-phone-prefix-menu [role="option"]:hover,
.ig-phone-prefix-menu [role="option"]:focus,
.ig-phone-prefix-menu [role="option"].is-selected {
  background: #f0f7f6;
  color: #003731;
  outline: none;
}

.ig-phone-field .ig-phone-national {
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8dde0;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.35;
  font-family: inherit;
}

.ig-phone-field .ig-phone-national:focus {
  outline: none;
  border-color: #005249;
  box-shadow: 0 0 0 3px rgba(0, 82, 73, 0.12);
}

@media (max-width: 480px) {
  .ig-phone-field .ig-phone-prefix-display {
    min-width: 3.25rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

.ig-lead-form-card .form-hint {
  font-size: 0.82rem;
  color: #777;
  margin-top: 0.25rem;
}

.ig-lead-preferenza {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
}

.ig-lead-preferenza label {
  font-weight: 500 !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.ig-lead-privacy {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}

.ig-lead-privacy input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  margin: 0.2em 0 0;
  padding: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  accent-color: #005249;
  cursor: pointer;
}

.ig-lead-privacy label {
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  font-size: inherit;
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

.contact-form-wizard {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-form-wizard__progress {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 55, 49, 0.08);
}

.contact-form--modal .contact-form-wizard__progress {
  position: relative;
  top: auto;
  z-index: 1;
  flex-shrink: 0;
  background: #fff;
  padding-top: 0.05rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
}

.contact-modal__body .contact-form--modal .contact-form-wizard {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.contact-modal__body .contact-form--modal .contact-form-wizard__panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.1rem;
}

.contact-modal__body .contact-form--modal .contact-form-wizard__actions {
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding-top: 0.2rem;
  padding-bottom: 0.05rem;
}

.contact-modal__body .contact-form--modal .form-group {
  margin-bottom: 0.65rem;
}

.contact-modal__body .contact-form--modal .form-row-2 {
  gap: 0.65rem;
}

.contact-modal__body .contact-form--modal .ig-lead-privacy label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form-wizard__progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.contact-form-wizard__step-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #003731;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.contact-form-wizard__step-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a6f6c;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .contact-form-wizard__progress-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .contact-form-wizard__step-count {
    white-space: normal;
  }
}

.contact-form-wizard__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 55, 49, 0.1);
  overflow: hidden;
}

.contact-form-wizard__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #005249, #008577);
  transition: width 0.28s ease;
}

.contact-form-wizard__panels {
  min-height: 0;
}

.contact-form-step:not(.is-active) {
  display: none;
}

.contact-form-step.is-active {
  margin-bottom: 0.5rem;
}

.contact-form-wizard .contact-form-block__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-wizard__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.contact-form-wizard__actions .btn-wizard-back {
  flex: 0 0 auto;
  min-width: 6.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #005249;
  background: #fff;
  border: 1px solid rgba(0, 82, 73, 0.35);
  border-radius: 10px;
  cursor: pointer;
}

.contact-form-wizard__actions .btn-wizard-back:hover {
  background: #f4f9f8;
  border-color: #005249;
}

.contact-form-wizard__actions .contact-form-wizard__next,
.contact-form-wizard__actions .contact-form-wizard__submit {
  flex: 1 1 12rem;
  margin-top: 0;
}

.contact-form-wizard__actions .btn-wizard-back[hidden],
.contact-form-wizard__actions .contact-form-wizard__next[hidden],
.contact-form-wizard__actions .contact-form-wizard__submit[hidden] {
  display: none !important;
}

.contact-form-wizard__footer {
  margin-top: 1rem !important;
}

.ig-lead-form-card button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

.contact-form-wizard__actions button[type="submit"] {
  width: auto;
  margin-top: 0;
}

.contact-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #005249;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
