/* XERF Section 6 – Privato Clinic Two-Column Layout
   - Core blocks only (Group, Columns, Image, Heading, Paragraph)
   - Image placeholder uses core/image with empty src (native Media Library upload UI)
   - Layout: Image left (48%), Content right (52%)
*/

:root{
  --x6-brand: #8B4A4A;
  --x6-accent: #D4AF37;
  --x6-accent-light: #E8C86A;
  --x6-dark: #1C1C1C;
  --x6-text: #2A2A2A;
  --x6-muted: #6F6F6F;
  --x6-soft: #FAF7F2;
  --x6-light-bg: #FDFCFA;
  --x6-max: 1400px;
}

/* ---------------- Container ---------------- */
.x6-inner {
  max-width: var(--x6-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

/* ==================== PRIVATO CLINIC SECTION ==================== */
.x6-clinic {
  background: #fff;
  padding: clamp(60px, 8vw, 100px) 0;
}

.x6-clinic-container {
  position: relative;
}

.x6-clinic-row {
  display: flex;
  gap: clamp(40px, 5vw, 60px);
  align-items: center;
}

/* Image Column - Left Side */
.x6-image-col {
  flex: 0 0 48%;
}

figure.x6-clinic-image {
  width: 100%;
  margin: 0;
  background: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure.x6-clinic-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

figure.x6-clinic-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Placeholder frame when no image has been selected (Editor + Frontend) */
figure.x6-clinic-image:has(img[src=""]),
.editor-styles-wrapper figure.x6-clinic-image:has(img[src=""]) {
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  border: 2px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--x6-muted);
  position: relative;
}

/* Optional helper text (CSS-generated; does not affect block serialization) */
figure.x6-clinic-image:has(img[src=""])::after,
.editor-styles-wrapper figure.x6-clinic-image:has(img[src=""])::after{
  content: "IMAGE PLACEHOLDER\AUpload via Media Library";
  white-space: pre;
  font-size: 14px;
  line-height: 1.6;
}

/* Content Column - Right Side */
.x6-content-col {
  flex: 1;
}

/* Main Title */
.x6-clinic-title {
  margin: 0 0 20px;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--x6-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Highlight brand name */
.x6-brand-name {
  color: var(--x6-brand);
}

.x6-clinic-desc {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.6vw, 16px);
  color: var(--x6-text);
  line-height: 1.8;
}

.x6-clinic-desc:last-of-type {
  margin-bottom: 0;
}

/* Highlight text within paragraphs */
.x6-highlight {
  color: var(--x6-brand);
  font-weight: 600;
}

/* CTA Note Section - Plain Text Only */
.x6-clinic-note {
  margin: 24px 0 0;
}

.x6-clinic-note p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 16px);
  color: var(--x6-text);
  line-height: 1.7;
}

.x6-clinic-note strong {
  color: var(--x6-dark);
  font-weight: 700;
}

/* ==================== Responsive ==================== */
@media (max-width: 992px) {
  .x6-clinic-row {
    flex-direction: column;
    gap: 40px;
  }

  .x6-image-col {
    flex: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 782px) {
  .x6-clinic {
    padding: clamp(40px, 6vw, 60px) 0;
  }

  .x6-inner {
    padding-inline: 20px;
  }

  .x6-clinic-row {
    gap: 30px;
  }

  .x6-image-col {
    max-width: 400px;
  }

  figure.x6-clinic-image:hover {
    transform: none;
  }
}

/* No additional mobile tweaks needed below 576px */
