/* ==========================================================================
   STUDIO O.R.L. - DOTT. AMEDEO MILELLA
   Modern, Lightweight, Medical-Grade Styling System
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-900: #0a192f;
  --primary-800: #0f2744;
  --primary-700: #143a60;
  --primary-600: #1d4ed8;
  --primary-500: #2563eb;
  --primary-400: #3b82f6;
  
  --teal-600: #0891b2;
  --teal-500: #06b6d4;
  --teal-400: #22d3ee;
  --teal-50:  #ecfeff;

  --accent-cyan: #0284c7;
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-green: #10b981;
  --accent-green-bg: #d1fae5;

  /* Neutrals */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
  --shadow-teal: 0 10px 25px -5px rgba(6, 182, 212, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Container & Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: var(--white);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-600);
  background-color: #eff6ff;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid #dbeafe;
}

.section-dark .section-tag {
  color: var(--teal-400);
  background-color: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-dark .section-title {
  color: var(--white);
}

.section-desc {
  font-size: 1.08rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.section-dark .section-desc {
  color: var(--slate-300);
}

/* Buttons Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-cyan) 100%);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -4px rgba(37, 99, 235, 0.35);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-700);
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--slate-100);
  border-color: var(--slate-300);
  color: var(--primary-600);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  color: var(--white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
  background-color: var(--primary-900);
  color: var(--slate-300);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color var(--transition-fast);
}

.top-bar-item:hover {
  color: var(--white);
}

.top-badge-hospital {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #000;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.top-social-link:hover {
  background-color: #1877f2;
  transform: translateY(-1px);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 36px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-600);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Standout style for Otochirurgia in Navbar */
.nav-link.special-nav-link {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  padding: 0.42rem 1.05rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-normal);
}

.nav-link.special-nav-link::after {
  display: none !important;
}

.nav-link.special-nav-link:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 100%);
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
}

.nav-link.special-nav-link.active {
  background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--slate-800);
  padding: 0.4rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5.5rem 0;
  background: radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
              linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.hero-status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-badge-hospital {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--teal-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.8rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-top: 0.2rem;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--slate-100);
  aspect-ratio: 4 / 4.7;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.hero-card:hover .hero-image {
  transform: scale(1.03);
}

.hero-overlay-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card-footer {
  margin-top: 1.2rem;
  padding: 0 0.4rem;
}

.doctor-name-card {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.doctor-specialty-card {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 0.7rem;
}

.doctor-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.doctor-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--slate-100);
  color: var(--slate-700);
}

/* Floating Card Element */
.hero-floating-badge {
  position: absolute;
  bottom: -1.2rem;
  right: -1.2rem;
  background: var(--white);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.15);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float-slow 4s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal-500) 0%, var(--primary-600) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-text-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}

.floating-text-sub {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* ==========================================================================
   HOSPITAL SPOTLIGHT SECTION (MARRELLI HOSPITAL KR)
   ========================================================================== */
.marrelli-section {
  background: linear-gradient(135deg, #0b1a30 0%, #112847 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.marrelli-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.marrelli-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.marrelli-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #000;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.marrelli-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.marrelli-desc {
  font-size: 1.05rem;
  color: var(--slate-300);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.marrelli-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.marrelli-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feature-text-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}

.feature-text-sub {
  font-size: 0.8rem;
  color: var(--slate-400);
}

.marrelli-visual-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  position: relative;
}

.hospital-emblem {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}

.hospital-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.hospital-location {
  color: #fbbf24;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hospital-role-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-200);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   ESPERIATV DOC TV INTERVIEW SHOWCASE
   ========================================================================== */
.media-section {
  background-color: var(--slate-100);
}

.media-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.media-video-preview {
  position: relative;
  background: linear-gradient(135deg, #091322 0%, #1e3a5f 100%);
  padding: 3.5rem 2.5rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  overflow: hidden;
}

.media-video-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../assets/images/studio_sala_visita.jpg') center/cover no-repeat;
  opacity: 0.22;
  transition: transform 0.6s ease;
}

.media-card:hover .media-video-preview::before {
  transform: scale(1.05);
}

.media-channel-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(239, 68, 68, 0.9);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.media-center-play {
  position: relative;
  z-index: 2;
  margin: 2rem auto;
  text-align: center;
}

.play-button-pulse {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: play-pulse 2s infinite;
  margin: 0 auto 0.85rem auto;
  transition: transform var(--transition-normal);
}

.play-button-pulse:hover {
  transform: scale(1.1);
}

@keyframes play-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.play-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.media-preview-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--slate-300);
}

.media-info-content {
  padding: 3rem;
}

.media-rubric-title {
  color: #dc2626;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.media-main-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

.media-description {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.media-topics-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.media-topic-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--slate-700);
  font-weight: 600;
}

.media-topic-item i {
  color: var(--teal-600);
  font-size: 0.85rem;
}

/* ==========================================================================
   CURRICULUM VITAE & ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
}

.about-profile-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  position: sticky;
  top: 100px;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 1.5rem;
}

.profile-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-500);
  box-shadow: var(--shadow-md);
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
}

.profile-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-top: 0.2rem;
}

.about-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.highlight-point {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--slate-700);
}

.highlight-point i {
  color: var(--teal-600);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.languages-box {
  background-color: var(--slate-50);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}

.languages-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.languages-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--white);
  color: var(--primary-700);
  border: 1px solid var(--slate-200);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Timeline Component */
.cv-timeline {
  position: relative;
  padding-left: 2rem;
}

.cv-timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-500) 0%, var(--teal-500) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.15rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3.5px solid var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.timeline-item.active .timeline-dot {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.25);
  background-color: #fef3c7;
}

.timeline-year {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  background-color: #eff6ff;
  color: var(--primary-700);
  margin-bottom: 0.4rem;
}

.timeline-item.active .timeline-year {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #000;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.3rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ==========================================================================
   SERVICES & DIAGNOSTICS (FILTERABLE TABS & CARDS)
   ========================================================================== */
.services-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background-color: var(--white);
  color: var(--slate-600);
  border: 1.5px solid var(--slate-200);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
}

.tab-btn.active {
  background: var(--primary-900);
  color: var(--white);
  border-color: var(--primary-900);
  box-shadow: var(--shadow-md);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.service-card-image {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: var(--slate-100);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.06);
}

.service-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.service-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.85rem;
  color: var(--slate-700);
}

.service-card-features li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.service-card-features li i {
  color: var(--teal-600);
  font-size: 0.8rem;
}

/* ==========================================================================
   PATOLOGIE (CLINICAL CONDITIONS) ACCORDION & CARDS
   ========================================================================== */
.pathology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.8rem;
}

.pathology-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pathology-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-400);
}

.pathology-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.pathology-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.pathology-card:hover .pathology-icon {
  background: var(--primary-600);
  color: var(--white);
}

.pathology-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
}

.pathology-desc {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.pathology-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.pathology-tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: var(--slate-100);
  color: var(--slate-700);
}

/* ==========================================================================
   CHIRURGIA (SURGICAL PROCEDURES)
   ========================================================================== */
.surgery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.8rem;
}

.surgery-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.surgery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--teal-500));
}

.surgery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.surgery-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 100%);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.3rem;
  transition: all var(--transition-normal);
}

.surgery-card:hover .surgery-icon {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--teal-600) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.4);
}

.surgery-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.surgery-desc {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   PHOTO GALLERY & LIGHTBOX
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background-color: var(--slate-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  color: var(--white);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-caption {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.gallery-zoom-icon {
  font-size: 1.25rem;
  color: var(--teal-400);
  margin-bottom: 0.4rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.lightbox-close:hover {
  background: #dc2626;
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.08);
}

.lightbox-close svg {
  display: block;
  pointer-events: none;
  stroke: #ffffff;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.lightbox-nav-btn:hover {
  background: var(--primary-600);
  border-color: var(--primary-400);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn svg {
  display: block;
  pointer-events: none;
  stroke: #ffffff;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 768px) {
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
}

/* ==========================================================================
   CONTACT, APPOINTMENT & GOOGLE MAPS SECTION
   ========================================================================== */
.contact-section {
  background-color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}

.contact-card-item {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.contact-card-item:hover {
  background: var(--white);
  border-color: var(--primary-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.contact-card-item:hover .contact-card-icon {
  background: var(--primary-600) !important;
  color: var(--white) !important;
}

.contact-card-item.contact-card-hospital:hover .contact-card-icon {
  background: #b45309 !important;
  color: var(--white) !important;
}

.contact-card-item.contact-card-fb:hover .contact-card-icon {
  background: #1877f2 !important;
  color: var(--white) !important;
}

.contact-hospital-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.contact-hospital-link:hover {
  color: #b45309;
}

.contact-whatsapp-link {
  color: #15803d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.contact-whatsapp-link:hover {
  color: #166534;
}

.contact-whatsapp-num {
  color: #15803d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.contact-whatsapp-num:hover {
  color: #166534;
}

.contact-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.2rem;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.3;
}

.contact-card-sub {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 0.2rem;
}

/* Interactive Map Box */
.map-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  position: relative;
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 1.2rem 1.5rem;
  background-color: var(--slate-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.map-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.map-iframe-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: var(--slate-200);
}

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

.map-footer {
  padding: 1rem 1.5rem;
  background-color: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.88rem;
}

/* Booking & Request Form */
.booking-form-box {
  background: var(--slate-50);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.form-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-800);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--slate-600);
}

.form-checkbox-wrap input {
  margin-top: 0.2rem;
}

.form-status-alert {
  display: none;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status-alert.success {
  display: block;
  background-color: var(--accent-green-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary-900);
  color: var(--slate-300);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-brand-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-400);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-bio {
  font-size: 0.92rem;
  color: var(--slate-400);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social-row {
  display: flex;
  gap: 0.75rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--teal-400);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--teal-400);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--slate-300);
}

.footer-contact-item i {
  color: var(--teal-400);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--slate-500);
}

.footer-legal-badges {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FLOATING MOBILE ACTION BAR
   ========================================================================== */
.floating-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--slate-200);
  padding: 0.65rem 1rem max(0.65rem, env(safe-area-inset-bottom)) 1rem;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.mobile-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-800);
  background: var(--slate-100);
  transition: all var(--transition-fast);
}

.mobile-action-btn i {
  font-size: 1.15rem;
}

.mobile-action-btn.primary {
  background: var(--primary-600);
  color: var(--white);
}

.mobile-action-btn.email {
  background: var(--teal-600);
  color: var(--white);
}

/* ==========================================================================
   MICROCHIRURGIA DELL'ORECCHIO - SPECIAL FEATURE SECTION
   ========================================================================== */
.micro-ear-section {
  background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
              linear-gradient(135deg, #071527 0%, #0d223f 50%, #09172c 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(6, 182, 212, 0.25);
  border-bottom: 1px solid rgba(6, 182, 212, 0.25);
}

.micro-ear-badge {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: var(--white);
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.micro-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px);
  padding: 2.8rem;
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.micro-tag-unique {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.micro-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.7vw, 2.35rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.22;
  margin-bottom: 1.2rem;
}

.micro-headline .highlight-teal {
  color: var(--teal-400);
}

.micro-paragraph {
  font-size: 1.05rem;
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.micro-key-points {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.micro-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--slate-200);
}

.micro-point i {
  color: var(--teal-400);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.micro-visual-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.micro-visual-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.micro-visual-wrapper:hover img {
  transform: scale(1.04);
}

.micro-floating-overlay {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  background: rgba(10, 25, 47, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.micro-floating-overlay i {
  font-size: 1.5rem;
  color: var(--teal-400);
}

.micro-overlay-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.micro-overlay-sub {
  font-size: 0.76rem;
  color: var(--slate-300);
}

/* Micro Surgery Cards Grid */
.micro-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.micro-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.micro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--primary-500));
}

.micro-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.micro-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.15);
  color: var(--teal-400);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.3rem;
}

.micro-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.28;
}

.micro-card-desc {
  font-size: 0.95rem;
  color: var(--slate-300);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.micro-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.micro-card-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--teal-400);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Stop Viaggi della Speranza Banner */
.hope-banner {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(180, 83, 9, 0.25) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.hope-banner-text {
  max-width: 760px;
}

.hope-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.hope-banner-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.hope-banner-desc {
  font-size: 0.96rem;
  color: var(--slate-300);
  line-height: 1.6;
}

.special-nav-link {
  color: var(--teal-600) !important;
  font-weight: 700;
}

.special-nav-link:hover {
  color: var(--primary-600) !important;
}


/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .marrelli-card {
    grid-template-columns: 1fr;
    padding: 2.2rem;
    gap: 2rem;
  }

  .micro-hero-card {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    padding: 2.2rem;
  }

  .media-card {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-profile-card {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 820px) {
  .top-bar {
    display: none;
  }

  .nav-menu, .nav-actions .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
    background: var(--white);
    padding: 1.5rem 1.5rem 3rem 1.5rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--slate-200);
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-menu.mobile-open .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--slate-100);
  }

  .nav-menu.mobile-open .special-nav-link {
    justify-content: center;
    border-bottom: none;
    margin: 0.2rem 0;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-full);
  }

  .floating-mobile-bar {
    display: block;
  }

  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-floating-badge {
    right: 0;
    bottom: -0.8rem;
  }

  .marrelli-features-grid {
    grid-template-columns: 1fr;
  }

  .micro-cards-grid {
    grid-template-columns: 1fr;
  }

  .hope-banner {
    padding: 1.8rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .hope-banner .btn {
    width: 100%;
  }

  .media-info-content {
    padding: 2.2rem 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero-section {
    padding: 3rem 0 4.2rem 0;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.25rem);
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 0.85rem 1.4rem;
  }

  .cards-grid, 
  .pathology-grid, 
  .surgery-grid, 
  .micro-cards-grid, 
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .services-tabs .tab-btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.84rem;
  }

  .marrelli-card {
    padding: 1.6rem 1.2rem;
  }

  .micro-hero-card {
    padding: 1.6rem 1.2rem;
  }

  .micro-hero-card .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .micro-visual-wrapper img {
    height: 240px;
  }

  .micro-floating-overlay {
    bottom: 0.8rem;
    left: 0.8rem;
    right: 0.8rem;
    padding: 0.75rem 0.9rem;
  }

  .hope-banner {
    padding: 1.5rem 1.1rem;
  }

  .media-video-preview {
    padding: 2.5rem 1.4rem;
    min-height: 300px;
  }

  .media-info-content {
    padding: 1.6rem 1.2rem;
  }

  .booking-form-box {
    padding: 1.4rem 1.1rem;
  }

  .map-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-footer a.btn {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   COOKIE CONSENT, PRIVACY & LEGAL NOTICES (GDPR & GARANTE COMPLIANT)
   ========================================================================== */

/* Footer Legal Buttons & Links */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-legal-btn {
  background: none;
  border: none;
  color: var(--teal-400);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-btn:hover {
  color: var(--white);
}

.footer-legal-sep {
  color: var(--slate-500);
  font-size: 0.75rem;
}

/* Form Checkbox Legal Links */
.form-checkbox-wrap .legal-link {
  color: var(--primary-600);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.form-checkbox-wrap .legal-link:hover {
  color: var(--teal-600);
}

/* Map Consent Placeholder (Prior-consent Gate for Google Maps) */
.map-consent-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  z-index: 5;
}

.map-placeholder-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
}

.map-placeholder-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.map-placeholder-desc {
  font-size: 0.88rem;
  color: var(--slate-300);
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 1.15rem;
}

.map-placeholder-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Floating Privacy & Cookie Badge */
.cookie-floating-badge {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 998;
  background: var(--slate-900);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cookie-floating-badge i {
  color: var(--teal-400);
  font-size: 1rem;
}

.cookie-floating-badge:hover {
  background: var(--primary-900);
  border-color: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

@media (max-width: 768px) {
  .cookie-floating-badge {
    bottom: 5.5rem; /* Safely placed above floating mobile action bar */
    left: 1rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }
}

/* Cookie Banner (Bottom Floating Card) */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 50px);
  width: min(94%, 960px);
  z-index: 2600;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(6, 182, 212, 0.25);
  color: var(--slate-100);
  display: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner-container {
  padding: 1.6rem 2rem;
}

.cookie-banner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cookie-banner-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cookie-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3));
  border: 1px solid rgba(6, 182, 212, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-400);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.cookie-banner-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--teal-400);
  font-weight: 600;
  margin-top: 0.15rem;
}

.cookie-banner-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--slate-300);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cookie-banner-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.cookie-banner-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--slate-200);
  margin-bottom: 0.5rem;
}

.cookie-banner-subtext {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--slate-400);
  margin-bottom: 1.35rem;
}

.cookie-inline-link {
  color: var(--teal-400);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.cookie-inline-link:hover {
  color: var(--white);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-cookie {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--teal-600) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-cookie-accept:hover {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--teal-500) 100%);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-cookie-custom {
  background: transparent;
  border-color: var(--teal-500);
  color: var(--teal-400);
}

.btn-cookie-custom:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--white);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 5rem; /* Above floating mobile bar */
    width: calc(100% - 1.25rem);
    border-radius: var(--radius-lg);
  }

  .cookie-banner-container {
    padding: 1.15rem 1.1rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .cookie-banner-actions .btn-cookie {
    width: 100%;
    padding: 0.7rem 1rem;
  }
}

/* Cookie & Privacy Modals */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 25, 47, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.cookie-modal-overlay.active {
  display: flex;
}

.cookie-modal-dialog {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: min(100%, 780px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4);
  overflow: hidden;
  position: relative;
  animation: cookieModalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal-dialog.modal-wide {
  width: min(100%, 940px);
}

@keyframes cookieModalScaleIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cookie-modal-header {
  padding: 1.4rem 1.75rem;
  background: var(--slate-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cookie-modal-icon {
  font-size: 1.4rem;
  color: var(--teal-400);
}

.cookie-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.cookie-modal-subtitle {
  display: block;
  font-size: 0.82rem;
  color: var(--slate-300);
  margin-top: 0.15rem;
}

.cookie-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--slate-300);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.cookie-modal-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.cookie-modal-body {
  padding: 1.6rem 1.75rem;
  overflow-y: auto;
  font-size: 0.94rem;
  color: var(--slate-700);
  line-height: 1.65;
}

.cookie-modal-footer {
  padding: 1.2rem 1.75rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-modal-footer-right {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-pref-intro {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

/* Category Cards in Preference Modal */
.cookie-category-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.1rem;
  transition: border-color var(--transition-fast);
}

.cookie-category-card:hover {
  border-color: var(--teal-500);
}

.cookie-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.cookie-cat-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-cat-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-badge-required {
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.cookie-badge-optional {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.cookie-badge-inactive {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.cookie-cat-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.cookie-tech-details {
  font-size: 0.8rem;
  background: var(--white);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
}

.cookie-tech-details code {
  background: var(--slate-100);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: var(--primary-700);
  font-weight: 600;
  font-size: 0.82rem;
}

/* Modern Accessible Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--slate-300);
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--teal-500);
}

.toggle-switch input:focus-visible + .toggle-slider {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.toggle-switch.disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.toggle-switch.disabled .toggle-slider {
  cursor: not-allowed;
}

/* Legal Documents & Content Styles */
.legal-content h3 {
  font-family: var(--font-heading);
  color: var(--primary-900);
  font-size: 1.18rem;
  margin: 1.5rem 0 0.55rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--teal-50);
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p, .legal-content li {
  font-size: 0.92rem;
  color: var(--slate-700);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.legal-content ul, .legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-highlight-box {
  background: var(--teal-50);
  border-left: 4px solid var(--teal-500);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.2rem 0;
}

.cookie-table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.cookie-table th {
  background: var(--slate-100);
  color: var(--slate-900);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.cookie-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 640px) {
  .cookie-modal-dialog {
    max-height: 94vh;
  }
  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding: 1.15rem;
  }
  .cookie-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-modal-footer-right {
    flex-direction: column;
  }
  .cookie-modal-footer .btn-cookie {
    width: 100%;
  }
}

/* ==========================================================================
   MEDICAL DISCLAIMER & REGULATORY COMPLIANCE STYLES (L. 145/2018 & GDPR)
   ========================================================================== */
.medical-disclaimer-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--primary-500);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.86rem;
  color: var(--slate-700);
  line-height: 1.55;
}

.medical-disclaimer-box i {
  color: var(--primary-500);
  font-size: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.medical-disclaimer-box strong {
  color: var(--slate-900);
  display: block;
  margin-bottom: 0.2rem;
}

.form-notice-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #1e40af;
  line-height: 1.45;
}

.form-notice-box i {
  color: #2563eb;
  font-size: 0.95rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.footer-deontology-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--slate-400);
  line-height: 1.55;
  text-align: center;
}

.footer-deontology-box i {
  color: var(--teal-400);
  margin-right: 0.4rem;
}

.footer-disclaimer-text {
  font-size: 0.8rem;
  color: var(--slate-400);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.15rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.form-checkbox-wrap label {
  cursor: pointer;
  line-height: 1.4;
}

