/* ===== CONTATTI PAGE SPECIFIC STYLES ===== */
.bfz-contatti {
  position: relative;
  padding-bottom: 44px;
}

/* ===== HERO SECTION ===== */
.bfz-contatti-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px) 0 clamp(76px, 8vw, 116px);
  background: var(--bfz-blue);
}

.bfz-contatti-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(243, 244, 247, 0), rgba(243, 244, 247, 0.96));
  pointer-events: none;
}

.bfz-contatti-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.bfz-contatti-hero-content {
  max-width: 900px;
  text-align: center;
}

.bfz-contatti-hero-title {
  margin: 0;
  color: var(--bfz-white);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.05;
  font-weight: 800;
}

.bfz-contatti-hero-desc {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(1rem, 1.4vw, 1.26rem);
  line-height: 1.45;
  max-width: 64ch;
}

/* ===== CONTACT SECTION ===== */
.bfz-contatti-section {
  margin-top: clamp(-72px, -6vw, -48px);
  position: relative;
  z-index: 3;
  padding-bottom: 44px;
}

/* Large wrapper card */
.bfz-contatti-wrapper {
  background: #f3f4f7;
  border: 1px solid rgba(23, 72, 142, 0.14);
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 24px 48px rgba(23, 43, 70, 0.18);
  overflow: hidden;
}

/* Left Column: Info */
.bfz-contatti-info {
  height: 100%;
  padding: clamp(30px, 3.5vw, 50px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.42));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bfz-contatti-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.bfz-contatti-item-link {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 107, 169, 0.1);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 43, 70, 0.08);
}

.bfz-contatti-item-link:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--bfz-blue);
  box-shadow: 0 12px 28px rgba(0, 107, 169, 0.18);
  transform: translateY(-4px);
}

.bfz-contatti-item-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bfz-blue) 0%, #0056a0 100%);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 107, 169, 0.25);
}

.bfz-contatti-item-content {
  flex: 1;
  min-width: 0;
}

.bfz-contatti-item-content h3 {
  margin: 0 0 8px;
  color: var(--bfz-blue);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.bfz-contatti-item-content p {
  margin: 0 0 6px;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.bfz-contatti-item-content a {
  color: var(--bfz-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.bfz-contatti-item-content a:hover {
  color: #0056a0;
}

.bfz-contatti-hours {
  display: block;
  color: #5b6781;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 4px;
}

/* Google Maps */
.bfz-contatti-map {
  width: 100%;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(23, 43, 70, 0.12);
  background: #e5e7eb;
}

.bfz-contatti-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Right Column: Form */
.bfz-contatti-form-area {
  padding: clamp(30px, 3.5vw, 50px);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.bfz-contatti-form-area h2 {
  margin: 0 0 12px;
  color: var(--bfz-blue);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.bfz-contatti-form-intro {
  margin: 0 0 24px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Form 7 Styles */
.bfz-cf7-wrap {
  flex: 1;
}

.bfz-cf7-wrap .wpcf7 {
  margin: 0;
}

.bfz-cf7-wrap .wpcf7-form-control-wrap {
  margin-bottom: 20px;
  display: block;
}

.bfz-cf7-wrap label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
}

.bfz-cf7-wrap input[type="text"],
.bfz-cf7-wrap input[type="email"],
.bfz-cf7-wrap input[type="tel"],
.bfz-cf7-wrap input[type="url"],
.bfz-cf7-wrap input[type="date"],
.bfz-cf7-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-sizing: border-box;
}

.bfz-cf7-wrap input[type="text"]:focus,
.bfz-cf7-wrap input[type="email"]:focus,
.bfz-cf7-wrap input[type="tel"]:focus,
.bfz-cf7-wrap input[type="url"]:focus,
.bfz-cf7-wrap input[type="date"]:focus,
.bfz-cf7-wrap textarea:focus {
  outline: none;
  border-color: var(--bfz-blue);
  box-shadow: 0 0 0 3px rgba(0, 107, 169, 0.1);
}

.bfz-cf7-wrap textarea {
  resize: vertical;
  min-height: 120px;
}

.bfz-cf7-wrap input[type="submit"],
.bfz-cf7-wrap button[type="submit"] {
  background: linear-gradient(135deg, var(--bfz-blue) 0%, #0056a0 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 8px 20px rgba(0, 107, 169, 0.3);
}

.bfz-cf7-wrap input[type="submit"]:hover,
.bfz-cf7-wrap button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 107, 169, 0.4);
}

.bfz-cf7-wrap .wpcf7-response-output {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.bfz-cf7-wrap .wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.bfz-cf7-wrap .wpcf7-mail-sent-ng {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Checkbox Acceptance (GDPR) */
.bfz-cf7-wrap .wpcf7-acceptance-wrap {
  margin: 20px 0;
  padding: 12px 0;
}

.bfz-cf7-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--bfz-blue);
  vertical-align: middle;
}

.bfz-cf7-wrap .wpcf7-acceptance-wrap label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
}

.bfz-cf7-wrap .wpcf7-acceptance-wrap label input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 0;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .bfz-contatti-section {
    margin-top: clamp(-60px, -5vw, -40px);
  }

  .bfz-contatti-wrapper {
    border-radius: 18px;
  }

  .bfz-contatti-info {
    padding: clamp(24px, 3vw, 40px);
    gap: 24px;
  }

  .bfz-contatti-form-area {
    padding: clamp(24px, 3vw, 40px);
  }

  .bfz-contatti-map {
    height: 250px;
  }

  .bfz-contatti-hero {
    padding: 60px 0 80px;
  }

  .bfz-contatti-hero-title {
    font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 575px) {
  .bfz-contatti {
    padding-bottom: 32px;
  }

  .bfz-contatti-section {
    margin-top: clamp(-50px, -4vw, -30px);
    padding-bottom: 32px;
  }

  .bfz-contatti-wrapper {
    border-radius: 16px;
  }

  .bfz-contatti-info {
    padding: clamp(20px, 3vw, 28px);
    gap: 20px;
  }

  .bfz-contatti-form-area {
    padding: clamp(20px, 3vw, 28px);
  }

  .bfz-contatti-item-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .bfz-contatti-item-content h3 {
    font-size: 1rem;
  }

  .bfz-contatti-item-content p {
    font-size: 0.95rem;
  }

  .bfz-contatti-hours {
    font-size: 0.85rem;
  }

  .bfz-contatti-map {
    height: 220px;
  }

  .bfz-contatti-form-area h2 {
    font-size: 1.3rem;
  }

  .bfz-contatti-hero {
    padding: 40px 0 60px;
  }

  .bfz-contatti-hero-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .bfz-contatti-hero-desc {
    font-size: 1rem;
  }

  .bfz-cf7-wrap input[type="text"],
  .bfz-cf7-wrap input[type="email"],
  .bfz-cf7-wrap input[type="tel"],
  .bfz-cf7-wrap input[type="url"],
  .bfz-cf7-wrap input[type="date"],
  .bfz-cf7-wrap textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .bfz-cf7-wrap input[type="submit"],
  .bfz-cf7-wrap button[type="submit"] {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
