/* ═══════════════════════════════════════════════════
   CASA-ASTE.IT — Stili pagina contatti
   ═══════════════════════════════════════════════════ */

.section-sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* ─── FORM ─────────────────────────────────────────────────── */
.contact-form-box {
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.contact-ref-banner {
  background: var(--blue-ultra, #EAF3FF);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.5;
}
.contact-ref-banner a { color: var(--blue); font-weight: 600; }

.contact-success {
  background: #E9F9EE;
  border: 1px solid #B7E4C7;
  color: #1E7A3D;
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
}

.contact-errors {
  background: #FDECEC;
  border: 1px solid #F5B8B8;
  color: #B42318;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

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

.cf-field { margin-bottom: 18px; }
.cf-field label {
  display: block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--muted); margin-bottom: 6px;
}
.cf-optional { text-transform: none; font-weight: 400; letter-spacing: 0; }

.cf-field input,
.cf-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-light, #F7FAFF);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: border-color .15s;
}
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.cf-field textarea { resize: vertical; min-height: 120px; }

.cf-submit-btn {
  background: var(--blue);
  color: var(--white, #fff);
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.cf-submit-btn:hover { opacity: .9; }

.cf-privacy-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ─── SIDEBAR INFO ─────────────────────────────────────────── */
.contact-info-box {
  background: var(--white, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.cib-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: var(--white, #fff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; margin: 0 auto 12px;
}
.cib-name { font-weight: 700; font-size: 15px; color: var(--text); }
.cib-role { font-size: 12px; color: var(--muted); margin-bottom: 6px; }

.cib-divider { height: 1px; background: var(--border); margin: 18px 0; }

.cib-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 13px; color: var(--text); margin-bottom: 10px;
}
.cib-row a { color: var(--text); }
.cib-row a:hover { color: var(--blue); }
.cib-icon { font-size: 14px; }

.cib-note {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  text-align: left;
}

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
}
