/* ═══════════════════════════════════════════════════
   COREX S.p.A. — contatti.css
═══════════════════════════════════════════════════ */

/* ━━━━ HERO ━━━━ */
.contact-hero { background-image: url('../img/corex2.jpg'); }

/* ━━━━ MAIN LAYOUT ━━━━ */
.contact-section { padding: 6rem 0 7rem; background: var(--off-white); }
.contact-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1.8fr;
  gap: 5rem; align-items: start;
}

/* ━━━━ LEFT — INFO ━━━━ */
.contact-info-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700; color: var(--black);
  line-height: 1.15; letter-spacing: -.025em; margin-top: .5rem;
}
.contact-info-title em { font-style: normal; font-weight: 300; color: var(--red); }

.contact-detail-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-detail-item {
  display: flex; align-items: flex-start; gap: .9rem;
}
.contact-detail-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(212,43,43,.08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-detail-item div strong {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-mid); margin-bottom: .2rem;
}
.contact-detail-item div span {
  font-size: .9rem; color: var(--black); line-height: 1.6;
}

.contact-social { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 2rem; }
.contact-social-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .55rem 1rem; font-size: .82rem; font-weight: 600;
  color: var(--gray-dark); text-decoration: none;
  border: 1.5px solid var(--gray-lt); border-radius: 8px;
  background: var(--white); transition: border-color .2s, color .2s;
  width: fit-content;
}
.contact-social-btn:hover { border-color: var(--red); color: var(--red); }

.contact-why {
  background: var(--white); border-radius: 14px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  border-left: 3px solid var(--red);
}
.contact-why-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: .9rem;
}
.contact-why-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.contact-why-list li {
  font-size: .86rem; color: var(--gray-dark); line-height: 1.6;
}

/* ━━━━ RIGHT — FORM ━━━━ */
.contact-form-wrap {
  background: var(--white); border-radius: 20px;
  padding: 2.8rem 2.6rem;
  box-shadow: 0 8px 48px rgba(0,0,0,.1);
}
.contact-form-title {
  font-size: 1.35rem; font-weight: 700; color: var(--black);
  letter-spacing: -.015em; margin-bottom: .3rem;
}
.contact-form-sub {
  font-size: .84rem; color: var(--gray-mid); margin-bottom: 2rem;
}

/* Form elements */
.cf-group {
  display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.2rem;
}
.cf-group-full { grid-column: 1 / -1; }
.cf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.cf-label {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray-dark);
}
.cf-req { color: var(--red); }

.cf-input, .cf-select, .cf-textarea {
  width: 100%; padding: .85rem 1rem;
  font-family: var(--font-body); font-size: 16px;
  color: var(--black); background: var(--off-white);
  border: 1.5px solid var(--gray-lt); border-radius: 10px;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cf-input:focus, .cf-select:focus, .cf-textarea:focus {
  border-color: var(--red); background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,43,43,.1);
}
.cf-input::placeholder, .cf-textarea::placeholder { color: #bbb; }
.cf-textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.cf-hint { font-size: .72rem; color: var(--gray-mid); }

/* Select arrow */
.cf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.5rem; cursor: pointer;
}

/* Customer type chips */
.cf-type-grid {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.cf-type-chip {
  cursor: pointer; user-select: none;
}
.cf-type-chip input { display: none; }
.cf-type-chip span {
  display: inline-flex; align-items: center;
  padding: .55rem 1.2rem;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--gray-lt); border-radius: 50px;
  color: var(--gray-dark); background: var(--off-white);
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.cf-type-chip:hover span {
  border-color: var(--red); color: var(--red);
}
.cf-type-chip.selected span,
.cf-type-chip input:checked + span {
  background: var(--red); color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(212,43,43,.3);
}

/* Checkbox privacy */
.cf-checkbox {
  display: flex; align-items: flex-start; gap: .75rem; cursor: pointer;
}
.cf-checkbox input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem;
  accent-color: var(--red); cursor: pointer;
}
.cf-checkbox span {
  font-size: .82rem; color: var(--gray-dark); line-height: 1.65;
}
.cf-link { color: var(--red); border-bottom: 1px solid rgba(212,43,43,.3); }
.cf-link:hover { border-color: var(--red); }

/* Submit row */
.cf-submit-row {
  display: flex; align-items: center; gap: 1.2rem;
  flex-wrap: wrap; margin-top: .8rem;
}
.cf-submit { min-width: 200px; justify-content: center; }
.cf-note { font-size: .78rem; color: var(--gray-mid); }

/* Success state */
.contact-success {
  text-align: center; padding: 3rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.contact-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(212,43,43,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
}
.contact-success h3 {
  font-size: 1.4rem; font-weight: 700; color: var(--black); letter-spacing: -.015em;
}
.contact-success p { font-size: .95rem; color: var(--gray-mid); line-height: 1.75; max-width: 380px; }

/* Error msg */
.contact-error-msg {
  background: rgba(212,43,43,.08); border: 1px solid rgba(212,43,43,.2);
  border-radius: 10px; padding: 1rem 1.2rem;
  font-size: .88rem; color: #b02020; margin-bottom: 1.5rem; line-height: 1.6;
}
.contact-error-msg a { color: var(--red); font-weight: 600; }

/* ━━━━ QUICK-ACTION STRIP ━━━━ */
.qa-strip {
  background: var(--black);
  border-bottom: 2px solid rgba(212,43,43,.35);
}
.qa-strip-inner {
  max-width: 860px; margin: 0 auto;
  padding: 1.05rem 2rem;
  display: flex; align-items: center; justify-content: center;
  gap: 1.1rem; flex-wrap: wrap;
}

.qa-card {
  display: inline-flex; align-items: center; gap: .85rem;
  padding: .75rem 1.35rem;
  border-radius: 10px; text-decoration: none;
  transition: transform .18s var(--ease, ease), box-shadow .18s var(--ease, ease),
              background .18s, border-color .18s;
  flex: 1; min-width: 220px; max-width: 340px;
}
.qa-card--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(212,43,43,.35);
}
.qa-card--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,43,43,.55);
}
.qa-card--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.18);
}
.qa-card--ghost:hover {
  border-color: var(--red);
  background: rgba(212,43,43,.08);
  transform: translateY(-2px);
}

.qa-card-icon {
  flex-shrink: 0; opacity: .9;
  display: flex; align-items: center;
}
.qa-card-body {
  display: flex; flex-direction: column; gap: .15rem; flex: 1;
}
.qa-card-body strong {
  font-size: .9rem; font-weight: 700; line-height: 1.3;
  letter-spacing: -.01em;
}
.qa-card-body small {
  font-size: .73rem; opacity: .72; line-height: 1.3;
}
.qa-card-arrow {
  font-size: 1.1rem; opacity: .6; flex-shrink: 0;
  transition: transform .18s;
}
.qa-card:hover .qa-card-arrow { transform: scale(1.25); opacity: 1; }

.qa-divider {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  flex-shrink: 0; padding: 0 .2rem;
}

/* RTL support */
[dir="rtl"] .qa-strip-inner { direction: rtl; }
[dir="rtl"] .qa-card-body   { text-align: right; }

@media (max-width: 640px) {
  .qa-strip-inner {
    flex-direction: column; gap: .7rem; padding: 1rem 1.2rem;
  }
  .qa-card { min-width: 0; width: 100%; max-width: 100%; }
  .qa-divider { display: none; }
}

/* ━━━━ MAP ━━━━ */
.contact-map-wrap {
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--gray-lt);
  border-bottom: 1px solid var(--gray-lt);
}
.contact-map-wrap iframe { display: block; }

/* ━━━━ RESPONSIVE ━━━━ */
@media (max-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr 1.5fr; gap: 3rem; }
}
@media (max-width: 800px) {
  .contact-section { padding: 4rem 0 5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form-wrap { padding: 2rem 1.5rem; }
  .cf-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .contact-section { padding: 3rem 0 4rem; }
  .contact-inner { padding: 0 1.2rem; }
  .contact-form-wrap { padding: 1.5rem 1.2rem; border-radius: 14px; }
  .cf-type-grid { gap: .45rem; }
  .cf-submit-row { flex-direction: column; align-items: stretch; }
  .cf-submit { width: 100%; }
}