/* ── CONTATTI PAGE ── */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contatti-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 80px 100px;
}

/* ── FORM ── */
.contatti-form-wrap {
  background: #fff;
  border: 1px solid rgba(0, 122, 135, 0.12);
  border-radius: 24px;
  padding: 48px;
}

.contatti-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: center;
}

.contatti-form-sub {
  font-size: 0.88rem;
  font-weight: 300;
  color: #666;
  line-height: 1.6;
  margin-bottom: 32px;
  text-align: center;
}

.contatti-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.form-field label span {
  font-weight: 300;
  color: #999;
  margin-left: 4px;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--dark);
  background: var(--light);
  border: 1px solid rgba(0, 122, 135, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 18px rgba(194, 24, 91, 0.2);
  margin-top: 4px;
  align-self: center;
}

.form-submit:hover {
  background: #a31550;
  transform: translateY(-1px);
}

.form-success {
  display: none;
  background: rgba(0, 180, 100, 0.08);
  border: 1px solid rgba(0, 180, 100, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 0.92rem;
  color: #00a855;
  font-weight: 400;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .contatti-main {
    padding: 40px 16px 80px;
  }

  .contatti-form-wrap {
    padding: 28px 16px;
  }

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

  .contatti-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .pc-cta {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ── CTA BUTTONS (shared with prenota-corso) ── */
.contatti-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.pc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pc-cta:hover {
  transform: translateY(-2px);
}

.pc-cta--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.pc-cta--wa:hover {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.pc-cta--email {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(194, 24, 91, 0.2);
}

.pc-cta--email:hover {
  box-shadow: 0 8px 20px rgba(194, 24, 91, 0.3);
}

/* ── DIVIDER ── */
.contatti-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #bbb;
  font-size: 0.82rem;
}

.contatti-divider::before,
.contatti-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 122, 135, 0.12);
}
