/*
Theme Name:   Astra Child — Condorelli
Theme URI:    https://www.studiomedicocondorelli.it
Description:  Child theme di Astra per Studio Medico Condorelli
Author:       Studio Medico Condorelli
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ── TOKENS ── */
:root {
  --blue-900: #0d2d52;
  --blue-800: #1B4F8A;
  --blue-700: #2563a8;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;
  --font-sans:  'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --ease: cubic-bezier(0.4,0,0.2,1);
  --max-w: 1160px;
}

/* ── RESET BASE ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--font-sans); color: var(--gray-800); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── NEUTRALIZZA WRAPPER ASTRA ── */
.ast-separate-container .ast-article-single,
.ast-plain-container .ast-article-single,
.entry-content,
.ast-container,
.site-content,
#content,
.ast-page-builder-template {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ── CONTAINER ── */
.cond-container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

@media (max-width: 768px) {
  .reveal {
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4 { transition-delay: 0s; }
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.cond-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s var(--ease);
}
.cond-nav.scrolled { box-shadow: var(--shadow-sm); }
.cond-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.cond-nav-logo { display: flex; align-items: center; gap: 10px; }
.cond-nav-logo img { height: 42px; width: auto; }
.cond-nav-logo-text { display: flex; flex-direction: column; }
.cond-nav-logo-text .name { font-size: 14px; font-weight: 600; color: var(--blue-800); line-height: 1.2; }
.cond-nav-logo-text .sub  { font-size: 11px; color: var(--gray-500); }
.cond-nav-links { display: flex; align-items: center; gap: 4px; }
.cond-nav-links a {
  padding: 7px 14px; font-size: 14px; font-weight: 500;
  color: var(--gray-700); border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s; position: relative;
}
.cond-nav-links a::after {
  content: ''; position: absolute; bottom: 3px; left: 14px; right: 14px;
  height: 2px; background: var(--blue-800); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.cond-nav-links a:hover,
.cond-nav-links a.current-menu-item { color: var(--blue-800); background: var(--blue-50); }
.cond-nav-links a.current-menu-item::after { transform: scaleX(1); }
.cond-nav-cta {
  background: var(--blue-800) !important; color: var(--white) !important;
  padding: 8px 20px !important; border-radius: var(--radius-sm) !important;
}
.cond-nav-cta:hover { background: var(--blue-900) !important; }
.cond-nav-cta::after { display: none !important; }
.cond-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.cond-hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: all 0.3s var(--ease); }
.cond-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cond-hamburger.open span:nth-child(2) { opacity: 0; }
.cond-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.cond-mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md); padding: 12px 24px 20px;
}
.cond-mobile-nav.open { display: block; }
.cond-mobile-nav a { display: block; padding: 13px 0; font-size: 15px; font-weight: 500; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); transition: color 0.2s; }
.cond-mobile-nav a:last-child { border-bottom: none; }
.cond-mobile-nav a:hover { color: var(--blue-800); }
.cond-mobile-nav-list { list-style: none; padding: 0; margin: 0; }
.cond-mobile-nav-list li a { display: block; padding: 13px 0; font-size: 15px; font-weight: 500; color: var(--gray-800); border-bottom: 1px solid var(--gray-100); transition: color 0.2s; }
.cond-mobile-nav-list li a:hover { color: var(--blue-800); }

/* Page offset per navbar fissa */
body { padding-top: 68px; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.cond-footer { background: var(--blue-900); color: rgba(255,255,255,0.7); padding: 60px 0 28px; }
.cond-footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }
.cond-footer-brand .logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cond-footer-brand .logo-wrap img { height: 38px; filter: brightness(0) invert(1); opacity: 0.9; }
.cond-footer-brand .logo-name { font-size: 14px; font-weight: 600; color: var(--white); }
.cond-footer-brand .logo-sub  { font-size: 11px; color: rgba(255,255,255,0.5); }
.cond-footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 280px; }
.cond-footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.cond-footer-col li { margin-bottom: 10px; }
.cond-footer-col li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.cond-footer-col li a:hover { color: var(--white); }
.cond-footer-contact { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,0.6); }
.cond-footer-contact .icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.cond-footer-contact a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.cond-footer-contact a:hover { color: var(--white); }
.cond-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.35); }
.cond-footer-bottom a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.cond-footer-bottom a:hover { color: rgba(255,255,255,0.7); }
@media (max-width: 768px) {
  .cond-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ══════════════════════════════════════
   PAGE HERO
══════════════════════════════════════ */
.cond-page-hero {
  padding: 60px 0 52px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.cond-page-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 340px; height: 340px; background: rgba(255,255,255,0.04); border-radius: 50%; pointer-events: none; }
.cond-page-hero::after  { content: ''; position: absolute; bottom: -60px; left: -40px; width: 220px; height: 220px; background: rgba(255,255,255,0.03); border-radius: 50%; pointer-events: none; }
.cond-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 500; margin-bottom: 16px; letter-spacing: 0.04em; color: var(--white) !important; }
.cond-page-hero h1 { font-family: var(--font-serif); font-size: clamp(2rem,4vw,2.8rem); font-weight: 500; line-height: 1.2; margin-bottom: 16px; color: var(--white) !important; }
.cond-page-hero p  { font-size: 17px; color: rgba(255,255,255,0.8) !important; max-width: 560px; line-height: 1.65; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.cond-section    { padding: 80px 0; }
.cond-section-sm { padding: 56px 0; }
.cond-section-alt { background: var(--gray-50); }
.cond-section-header { margin-bottom: 52px; }
.cond-section-header.center { text-align: center; }
.cond-label { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-700); margin-bottom: 10px; }
.cond-title { font-family: var(--font-serif); font-size: clamp(1.7rem,3vw,2.3rem); font-weight: 500; color: var(--gray-900); line-height: 1.25; margin-bottom: 14px; }
.cond-sub   { font-size: 17px; color: var(--gray-500); max-width: 560px; line-height: 1.65; }
.cond-section-header.center .cond-sub { margin: 0 auto; }

/* ── BUTTONS ── */
.cond-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s var(--ease); border: none; font-family: var(--font-sans); }
.cond-btn-primary { background: var(--blue-800); color: var(--white); }
.cond-btn-primary:hover { background: var(--blue-900); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cond-btn-outline { background: transparent; color: var(--blue-800); border: 1.5px solid var(--blue-800); }
.cond-btn-outline:hover { background: var(--blue-50); }
.cond-btn-white { background: var(--white); color: var(--blue-800); }
.cond-btn-white:hover { background: var(--gray-100); transform: translateY(-1px); }
.cond-btn-ghost { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.25); }
.cond-btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ── SERVICE CARDS ── */
.cond-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cond-service-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 32px 28px; transition: all 0.25s var(--ease); position: relative; overflow: hidden; }
.cond-service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue-800); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.cond-service-card:hover::before { transform: scaleX(1); }
.cond-service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-100); }
.cond-svc-icon { width: 48px; height: 48px; background: var(--blue-50); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 22px; }
.cond-service-card h3 { font-size: 17px; font-weight: 600; color: var(--gray-900); margin-bottom: 10px; }
.cond-service-card p  { font-size: 14px; color: var(--gray-500); line-height: 1.65; margin-bottom: 18px; }
.cond-svc-link { font-size: 14px; font-weight: 500; color: var(--blue-800); display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.cond-svc-link:hover { gap: 8px; }

/* ── DOCTOR CARDS ── */
.cond-doctors-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cond-doctor-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; transition: all 0.25s var(--ease); display: block; color: inherit; position: relative; }
.cond-doctor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--blue-100); }
.cond-doctor-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center top; display: block; transition: transform 0.4s var(--ease); }
.cond-doctor-card:hover img { transform: scale(1.04); }
.cond-doctor-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px 18px 16px; background: linear-gradient(to top, rgba(13,45,82,0.97) 0%, rgba(13,45,82,0.85) 40%, rgba(13,45,82,0) 100%); }
.cond-doctor-card-body h3 { font-size: 15px; font-weight: 600; color: #ffffff !important; margin-bottom: 3px; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.cond-doctor-card-body .role { font-size: 12px; color: rgba(255,255,255,0.9) !important; font-weight: 500; margin-bottom: 0; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.cond-doctor-card-body p  { display: none; }
.cond-doctor-card-footer { display: none; }

/* ── NEWS CARDS ── */
.cond-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.cond-news-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; transition: all 0.25s var(--ease); }
.cond-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--blue-100); }
.cond-news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.4s var(--ease); }
.cond-news-card:hover img { transform: scale(1.03); }
.cond-news-card-body { padding: 20px; }
.cond-news-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; }
.cond-news-card-body h3 { font-size: 15px; font-weight: 600; color: var(--gray-900); line-height: 1.4; margin-bottom: 8px; }
.cond-news-card-body p  { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.cond-news-meta { font-size: 12px; color: var(--gray-400); }

/* ── STATS ── */
.cond-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.cond-stat { background: var(--white); padding: 28px 20px; text-align: center; }
.cond-stat-num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 500; color: var(--blue-800); line-height: 1; margin-bottom: 6px; }
.cond-stat-label { font-size: 13px; color: var(--gray-500); }

/* ── CTA BANNER ── */
.cond-cta { background: linear-gradient(135deg, var(--blue-900), var(--blue-800)); border-radius: var(--radius-lg); padding: 52px 48px; color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cond-cta::before { content: ''; position: absolute; top: -60px; right: -60px; width: 240px; height: 240px; background: rgba(255,255,255,0.04); border-radius: 50%; pointer-events: none; }
.cond-cta h2 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 500; margin-bottom: 8px; color: var(--white) !important; }
.cond-cta p  { font-size: 15px; color: rgba(255,255,255,0.82) !important; max-width: 480px; }
.cond-cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ── INFO / ORARI ── */
.cond-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.cond-info-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 32px; }
.cond-info-card h3 { font-size: 17px; font-weight: 600; color: var(--gray-900); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.cond-hours-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.cond-hours-row:last-child { border-bottom: none; }
.cond-hours-row .day   { color: var(--gray-700); font-weight: 500; }
.cond-hours-row .time  { color: var(--blue-800); font-weight: 500; }
.cond-hours-row .closed { color: var(--gray-400); }
.cond-contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.cond-contact-row:last-child { border-bottom: none; }
.cond-contact-icon { width: 36px; height: 36px; background: var(--blue-50); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.cond-contact-row .label { font-size: 11px; color: var(--gray-400); margin-bottom: 2px; }
.cond-contact-row .value { font-weight: 500; color: var(--gray-900); }
.cond-contact-row a { color: var(--blue-800); }

/* ── MAP ── */
.cond-map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-200); height: 420px; }
.cond-map iframe { width: 100%; height: 100%; border: none; }

/* ── PHOTO GRID ── */
.cond-photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cond-photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); transition: all 0.3s var(--ease); }
.cond-photo-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ── DOCTOR PROFILE (single) ── */
.cond-profile { display: grid; grid-template-columns: 320px 1fr; gap: 52px; align-items: start; }
.cond-profile-img-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; }
.cond-profile-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; display: block; }
.cond-profile-img-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px 20px 20px; background: linear-gradient(to top, rgba(13,45,82,0.97) 0%, rgba(13,45,82,0.85) 40%, rgba(13,45,82,0) 100%); }
.cond-profile-img-caption h2 { font-size: 18px; font-weight: 600; color: #ffffff !important; margin-bottom: 4px; font-family: var(--font-sans); text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.cond-profile-img-caption .role { font-size: 13px; color: rgba(255,255,255,0.9) !important; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.cond-profile-info h1 { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; color: var(--gray-900) !important; margin-bottom: 6px; }
.cond-profile-specialty { font-size: 16px; color: var(--blue-700) !important; font-weight: 500; margin-bottom: 24px; }
.cond-profile-info p { font-size: 15px; color: var(--gray-600) !important; line-height: 1.75; margin-bottom: 16px; }
.cond-profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cond-profile-tag { background: var(--blue-50); color: var(--blue-800) !important; font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 20px; border: 1px solid var(--blue-100); }
.cond-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,0.75) !important; font-weight: 500; margin-bottom: 24px; transition: color 0.2s; }
.cond-back-link:hover { color: var(--white) !important; }

/* ── SERVICE DETAIL ITEM ── */
.cond-detail-item { padding: 20px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); border-left: 4px solid var(--blue-800); margin-bottom: 12px; }
.cond-detail-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cond-detail-item-head .icon { font-size: 20px; }
.cond-detail-item-head strong { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.cond-detail-item p { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin: 0; }

/* ── PREVENZIONE CALENDAR ── */
.cond-calendar-badge { margin-top: 12px; padding: 10px 12px; background: var(--blue-50); border-radius: var(--radius-sm); }
.cond-calendar-badge .cal-label { font-size: 12px; font-weight: 600; color: var(--blue-800); margin-bottom: 3px; }
.cond-calendar-badge .cal-months { font-size: 13px; color: var(--blue-700); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cond-doctors-grid, .cond-services-grid { grid-template-columns: repeat(2,1fr); }
  .cond-footer-grid { grid-template-columns: 1fr 1fr; }
  .cond-profile { grid-template-columns: 260px 1fr; gap: 36px; }  .cond-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .cond-nav-links { display: none; }
  .cond-hamburger { display: flex; }
  .cond-doctors-grid, .cond-services-grid, .cond-news-grid, .cond-photo-grid { grid-template-columns: 1fr; }
  .cond-info-grid { grid-template-columns: 1fr; }
  .cond-cta { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cond-cta-actions { justify-content: center; flex-wrap: wrap; }
  .cond-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cond-profile { grid-template-columns: 1fr; }
  .cond-profile-img { aspect-ratio: 4/3; }
  .cond-section { padding: 56px 0; }
  .cond-cta { padding: 32px 24px; }
  /* disabilita hover transform su touch per evitare jank */
  .cond-service-card:hover,
  .cond-doctor-card:hover,
  .cond-news-card:hover { transform: none; }
  .cond-btn-primary:hover,
  .cond-btn-white:hover { transform: none; box-shadow: none; }
  .cond-doctor-card img { transition: none; }
}
/* ── layout 2 colonne con immagine sempre prima su mobile ── */
.cond-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 768px) {
  .cond-grid-2col { grid-template-columns: 1fr; gap: 32px; }
  .cond-col-img { order: -1; }
  .cond-hero-img-col { order: -1; }
  /* collapse grid inline su mobile per tutte le pagine */
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}
@media (min-width: 769px) {
  .cond-hero-stats { grid-template-columns: repeat(4,auto) !important; }
}
.cond-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; }
@media (max-width: 480px) {
  .cond-stats { grid-template-columns: repeat(2,1fr); }
}
