/*
Theme Name:   Master Group
Description:  Child theme - Concept C: Scale & Performance. Tema padre: Hello Elementor.
Template:     hello-elementor
Version:      1.0.0
Author:       Marketing Movers
Text Domain:  master-dealer
*/

.header__logo img {
  height: 40px;
  width: auto;
}

/* Homepage: scala tipografica per i titoli lunghi */
.home .hero--home .hero__title {
  max-width: 1120px;
  font-size: clamp(42px, 4.6vw, 76px);
  line-height: .98;
  letter-spacing: -.035em;
}

.home .hero--home .hero__result {
  display: block;
  margin-top: .18em;
  font-size: clamp(30px, 3vw, 50px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.home .services__intro--contrast {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

/* Spaziatura uniforme per le card e gli step in tutto il sito */
.svc-card,
.benefit-card,
.step,
.job-card {
  padding-right: 32px;
  padding-left: 32px;
}

.cube__col,
.cube__col:last-child {
  padding-right: 32px;
  padding-left: 32px;
}

.home .cube__col,
.home .cube__col:last-child {
  padding-right: 32px;
  padding-left: 32px;
}

.cube__photo--wide {
  aspect-ratio: 1406 / 791;
}

.home .stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}

.home .final-cta__title {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -.035em;
}

.home .final-cta__lead {
  text-align: center;
}

.footer__bottom > p {
  max-width: 900px;
  line-height: 1.6;
}

/* Contact Form 7 */
.wpcf7 form {
  margin: 0;
}

.wpcf7 .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.wpcf7 .form-field {
  margin-bottom: 32px;
}

.wpcf7 .form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .2s, color .2s;
}

.wpcf7 select {
  padding-right: 28px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111111' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.wpcf7 textarea {
  min-height: 140px;
  padding: 14px;
  border: 2px solid var(--line);
  resize: vertical;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--orange);
}

.wpcf7 .wpcf7-not-valid {
  border-color: #c62828;
}

.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 7px;
  color: #c62828;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.wpcf7 .form-privacy {
  display: block;
  margin-bottom: 32px;
}

.wpcf7 .form-privacy .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .form-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}

.wpcf7 .form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.wpcf7 .form-privacy a {
  color: var(--orange);
  text-decoration: underline;
}

.wpcf7 .form-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.wpcf7 form.submitting .form-submit {
  opacity: .65;
  pointer-events: none;
}

.wpcf7 .wpcf7-spinner {
  display: block;
  margin: 16px auto 0;
}

.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #2e7d32;
  background: #f1f8f2;
  color: #1b5e20;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  border-color: #c62828;
  background: #fff5f5;
  color: #8e1b1b;
}

@media (max-width: 860px) {
  .header__logo img {
    height: 36px;
  }

  .svc-card,
  .benefit-card,
  .step,
  .job-card,
  .cube__col,
  .cube__col:last-child {
    padding-right: 24px;
    padding-left: 24px;
  }

  .home .hero--home .hero__title {
    font-size: clamp(36px, 9.5vw, 58px);
    line-height: 1;
  }

  .home .hero--home .hero__result {
    font-size: clamp(28px, 7vw, 38px);
  }

  .home .cube__col,
  .home .cube__col:last-child {
    padding-right: 24px;
    padding-left: 24px;
  }

  .home .final-cta__title {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.04;
  }

  .wpcf7 .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .home .hero--home .hero__title {
    font-size: clamp(32px, 10.5vw, 44px);
  }

  .home .hero--home .hero__result {
    font-size: clamp(25px, 7.8vw, 32px);
  }

  .home .final-cta__title {
    font-size: clamp(30px, 9vw, 40px);
  }
}
