/* ==========================================================================
   AURORA JOINT FORMULA (AJF) - LUXURY BIOMEDICAL & KINETIC DESIGN SYSTEM
   Preset: Alpino-Tradizionale & Rame Pregiato (Swiss Bioclinic & Noble Copper)
   Palette:
     --bg-main: #faf7f2 (Latte caldo / Ivory)
     --bg-surface: #ffffff
     --bg-card: #fdfbf7
     --bg-section-alt: #f4efe6
     --bg-dark: #0e2038 (Blu Notte Reale)
     --primary-copper: #c58f44 (Rame Nobile Lucidato)
     --primary-copper-dark: #a97530
     --primary-copper-light: #dfb274
     --accent-amber: #d97706
     --accent-alpine-teal: #0f766e
     --accent-teal-light: #e6f4f2
     --text-primary: #1e293b (Ardesia Grafite Intensa)
     --text-secondary: #475569
     --text-muted: #64748b
     --border-subtle: #e5dec9
     --border-accent: #c58f44
   ========================================================================== */

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

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --bg-main: #faf7f2;
  --bg-surface: #ffffff;
  --bg-card: #fdfbf7;
  --bg-section-alt: #f4efe6;
  --bg-dark: #0e2038;
  --bg-dark-surface: #152945;

  --primary-copper: #c58f44;
  --primary-copper-dark: #a97530;
  --primary-copper-light: #dfb274;
  --primary-copper-glow: rgba(197, 143, 68, 0.18);

  --accent-amber: #d97706;
  --accent-alpine-teal: #0f766e;
  --accent-teal-light: #e6f4f2;
  --accent-emerald: #16a34a;
  --accent-rose: #be123c;

  --text-primary: #182230;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --border-subtle: #e6dfd1;
  --border-card: rgba(197, 143, 68, 0.22);
  --border-focus: #c58f44;

  --shadow-sm: 0 2px 6px rgba(14, 32, 56, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 32, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 32, 56, 0.12);
  --shadow-copper: 0 10px 30px rgba(197, 143, 68, 0.22);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
  --header-height: 72px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.heading-display {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
}

.heading-section {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  text-align: center;
  margin-bottom: 0.8rem;
}

.subheading-section {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--primary-copper-glow);
  color: var(--primary-copper-dark);
  border: 1px solid rgba(197, 143, 68, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-badge.teal {
  background-color: var(--accent-teal-light);
  color: var(--accent-alpine-teal);
  border-color: rgba(15, 118, 110, 0.3);
}

.tag-badge.dark {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--primary-copper-light);
  border-color: rgba(255, 255, 255, 0.2);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   HEADER & NAVIGATION (Strictly 1-Row Compact on Mobile <480px)
   [Logo] [IT | EN] [Cart 0] [Menu Hamburger]
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--bg-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #c58f44, #8b5e20);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(197, 143, 68, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title-main {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--bg-dark);
  font-weight: 700;
}

.brand-title-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-copper-dark);
  font-weight: 600;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.2rem;
    position: relative;
    transition: color var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--primary-copper-dark);
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-copper);
    border-radius: 2px;
  }
}

/* Header Actions Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  height: 38px;
  min-width: 90px;
  justify-content: center;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 30px;
}

.lang-btn.active {
  background: var(--primary-copper);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(197, 143, 68, 0.3);
}

/* Cart Button */
.cart-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--bg-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-trigger-btn:hover {
  border-color: var(--primary-copper);
  color: var(--primary-copper);
  transform: translateY(-1px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-copper);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Hamburger Toggle Button */
.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  color: var(--bg-dark);
  transition: background var(--transition-fast);
}

@media (min-width: 992px) {
  .menu-toggle-btn {
    display: none;
  }
}

/* Drawer Menu (Mobile & Tablet) */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 32, 56, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  box-shadow: -8px 0 32px rgba(14, 32, 56, 0.2);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
  padding: 1.5rem;
}

.mobile-drawer.open {
  transform: translateX(-320px);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 6px;
  line-height: 1;
  border-radius: 6px;
}

.drawer-nav-list {
  list-style: none;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex: 1;
}

.drawer-nav-list a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.drawer-nav-list a:hover,
.drawer-nav-list a.active {
  background: var(--bg-section-alt);
  color: var(--primary-copper-dark);
}

.drawer-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS (Touch Target 44px+)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #c58f44 0%, #aa7531 100%);
  color: #ffffff;
  box-shadow: var(--shadow-copper);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d39b4d 0%, #b8803a 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(197, 143, 68, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-copper);
  color: var(--primary-copper-dark);
  background: var(--bg-card);
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background: #152945;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--accent-alpine-teal);
  color: #ffffff;
}

.btn-teal:hover {
  background: #0d625b;
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4rem;
  background: radial-gradient(circle at 10% 20%, rgba(197, 143, 68, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(15, 118, 110, 0.06) 0%, transparent 40%),
              var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-card-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(197, 143, 68, 0.35);
  background: #ffffff;
}

.hero-image {
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hero-badge-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(14, 32, 56, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-badge-overlay .badge-icon {
  font-size: 1.6rem;
  color: var(--primary-copper-light);
}

/* ==========================================================================
   STATISTICS STRIP & METRICS
   ========================================================================== */
.stats-strip {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 3rem 0;
  border-top: 1px solid rgba(197, 143, 68, 0.3);
  border-bottom: 1px solid rgba(197, 143, 68, 0.3);
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 1rem;
  position: relative;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--primary-copper-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--bg-section-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

/* ==========================================================================
   ANATOMY INFOGRAPHIC (Synovial Fluid & Cartilage Matrix)
   ========================================================================== */
.anatomy-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2.5rem 0;
}

.anatomy-header {
  background: linear-gradient(135deg, #0e2038 0%, #152945 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.anatomy-body {
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .anatomy-body {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.joint-interactive-diagram {
  background: #fafaf8;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.anatomy-parts-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.anatomy-part {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-copper);
  transition: background var(--transition-fast);
}

.anatomy-part:hover {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.part-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-copper-glow);
  color: var(--primary-copper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* ==========================================================================
   4-COMPONENT FORMULA MATRIX CARDS
   ========================================================================== */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .matrix-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ingredient-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.ingredient-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-copper), var(--accent-alpine-teal));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.ingredient-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-copper);
  box-shadow: var(--shadow-md);
}

.ingredient-card:hover::before {
  opacity: 1;
}

.ingredient-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-alpine-teal);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.ingredient-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.ingredient-dosage {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-copper-dark);
  margin-bottom: 0.8rem;
}

.ingredient-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: auto;
}

/* ==========================================================================
   PACKAGE SELECTION CARDS (Strict Rule: NO PRICES on Formula Page!)
   ========================================================================== */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.package-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.package-card.highlight {
  border: 2px solid var(--primary-copper);
  box-shadow: 0 12px 36px rgba(197, 143, 68, 0.2);
  transform: translateY(-4px);
}

.package-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c58f44, #9f6c28);
  color: #ffffff;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.package-header {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border-subtle);
  margin-bottom: 1.5rem;
}

.package-title {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.package-duration {
  font-size: 0.9rem;
  color: var(--accent-alpine-teal);
  font-weight: 700;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex: 1;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.package-features li .check-icon {
  color: var(--accent-alpine-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   INTERACTIVE TESTS & EVALUATION CENTER
   ========================================================================== */
.assessment-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}

.tab-btn:hover {
  border-color: var(--primary-copper);
  color: var(--primary-copper-dark);
}

.tab-btn.active {
  background: var(--primary-copper);
  color: #ffffff;
  border-color: var(--primary-copper);
  box-shadow: var(--shadow-copper);
}

.tab-content {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Interactive Calculator Container */
.calculator-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 0 auto;
}

.calc-group {
  margin-bottom: 1.8rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.calc-val-display {
  color: var(--primary-copper-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.slider-control {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-copper);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.1s;
}

.slider-control::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Option Chips */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.chip-option {
  position: relative;
}

.chip-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 54px;
  transition: all var(--transition-fast);
}

.chip-option input[type="radio"]:checked + .chip-label {
  border-color: var(--primary-copper);
  background: var(--primary-copper-glow);
  color: var(--primary-copper-dark);
  font-weight: 700;
}

/* Calc Results Panel */
.calc-result-panel {
  background: linear-gradient(135deg, #0e2038 0%, #152945 100%);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: #ffffff;
  margin-top: 2rem;
}

.result-highlight {
  text-align: center;
  margin-bottom: 1.5rem;
}

.result-big-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--primary-copper-light);
  font-weight: 700;
  line-height: 1;
}

.hourly-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
}

.time-slot {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.slot-title {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.slot-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

/* WOMAC Quiz */
.quiz-step {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.quiz-step:last-child {
  border-bottom: none;
}

.quiz-q-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

@media (min-width: 600px) {
  .quiz-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quiz-choice-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.quiz-choice-label:hover {
  border-color: var(--primary-copper);
}

.quiz-choice-label input[type="radio"]:checked ~ span {
  font-weight: 700;
  color: var(--primary-copper-dark);
}

.womac-result-card {
  display: none;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-copper);
  padding: 2rem;
  margin-top: 2rem;
}

/* Nutrient Checklist */
.symptom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 680px) {
  .symptom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.symptom-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.symptom-card:hover {
  border-color: var(--primary-copper);
  box-shadow: var(--shadow-sm);
}

.symptom-card.selected {
  border-color: var(--accent-alpine-teal);
  background: var(--accent-teal-light);
}

.symptom-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.symptom-card-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.symptom-formula-target {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent-alpine-teal);
  font-weight: 700;
}

/* ==========================================================================
   ACADEMIC CERTIFICATES & DIPLOMAS (2x2 Grid + Lightbox)
   ========================================================================== */
.certificates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.diploma-card {
  background: #fffdfa;
  border: 8px solid #f2e9dc;
  outline: 1px solid var(--primary-copper);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.diploma-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(197, 143, 68, 0.4);
  pointer-events: none;
}

.diploma-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(197, 143, 68, 0.18);
}

.diploma-header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(197, 143, 68, 0.25);
  margin-bottom: 1.25rem;
}

.diploma-crest {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-copper-glow);
  border-radius: 50%;
  color: var(--primary-copper-dark);
  font-size: 1.5rem;
}

.diploma-authority {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}

.diploma-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-top: 0.35rem;
  color: var(--bg-dark);
}

.diploma-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.diploma-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(197, 143, 68, 0.25);
  padding-top: 1rem;
  margin-top: auto;
}

.diploma-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #dfb274 0%, #aa7531 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.diploma-signature {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #1e293b;
  text-align: right;
}

.diploma-subsign {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Certificate Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 32, 56, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  background: #fffdfa;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  border: 4px double var(--primary-copper);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}

/* ==========================================================================
   ARTICLES & BLOG HUB
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-copper);
}

.article-thumb {
  height: 200px;
  background: var(--bg-section-alt);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-thumb-icon {
  font-size: 3rem;
  color: var(--primary-copper);
}

.article-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-alpine-teal);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.article-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-copper-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Article Reading View */
.article-reading-container {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.article-reading-container h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.article-prose {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-top: 2rem;
}

.article-prose p {
  margin-bottom: 1.5rem;
}

.article-prose h2 {
  font-size: 1.7rem;
  margin: 2.2rem 0 1rem;
}

.article-prose ul, .article-prose ol {
  margin: 1.2rem 0 1.5rem 1.8rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: var(--bg-section-alt);
  border-left: 4px solid var(--primary-copper);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

/* ==========================================================================
   CART DRAWER & CARRELLO CHECKOUT PAGE
   ========================================================================== */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 32, 56, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.cart-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
}

.cart-drawer.open {
  transform: translateX(-420px);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-weight: 800;
  color: var(--primary-copper-dark);
}

.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  background: #ffffff;
}

.cart-qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cart-qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  margin-left: 0.5rem;
}

/* Dedicated Carrello.html Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1.25fr 0.75fr;
  }
}

.checkout-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

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

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

.form-input, .form-select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-copper);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-copper-glow);
}

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

@media (min-width: 600px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .form-row.three-col {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.payment-method-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.payment-choice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-choice.selected {
  border-color: var(--primary-copper);
  background: var(--primary-copper-glow);
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: center;
}

.trust-badge-item {
  padding: 0.75rem;
  background: var(--bg-section-alt);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   GRAZIE.HTML (Order Confirmation)
   ========================================================================== */
.success-banner {
  background: linear-gradient(135deg, #0e2038 0%, #152945 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
  position: relative;
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-copper);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-weight: 800;
}

/* Doctor's Guidance Letter */
.doctor-letter {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(197, 143, 68, 0.25);
}

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

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-copper-light);
}

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

/* ==========================================================================
   FLOATING COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 620px;
  margin: 0 auto;
  background: rgba(14, 32, 56, 0.96);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 143, 68, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 600px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ==========================================================================
   MOBILE-FIRST OPTIMIZATIONS (<480px Strict 1-Row Header)
   ========================================================================== */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .header-container {
    padding: 0 0.65rem;
    gap: 0.4rem;
  }

  .brand-logo {
    gap: 0.4rem;
  }

  .brand-emblem {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .brand-title-main {
    font-size: 0.92rem;
  }

  .brand-title-sub {
    font-size: 0.58rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .lang-switcher {
    height: 34px;
    min-width: 78px;
    padding: 1px 2px;
  }

  .lang-btn {
    padding: 2px 4px;
    font-size: 0.7rem;
    min-height: 26px;
  }

  .cart-trigger-btn {
    width: 36px;
    height: 36px;
  }

  .menu-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .section {
    padding: 3rem 0;
  }

  .heading-section {
    font-size: 1.7rem;
  }
}
