/* ============================================================
   NUTRIVIRTUS — Design System v1.0
   Ispirato a Pro2col (mypro2col.com) & Bioniq (shopbioniq.com)
   Conforme a SOP.md §1.1 — UI Tokens
   ============================================================ */

/* ── Custom Properties (Design Tokens) ─────────────────────── */
:root {
  --emerald: #7AC142;
  --emerald-80:     rgba(27,77,62,0.8);
  --emerald-light:  rgba(27,77,62,0.10);
  --emerald-xlight: rgba(27,77,62,0.05);
  --cyan: #007BFF;
  --cyan-dark: #006CD9;
  --cyan-light:     rgba(0,163,224,0.12);
  --bg: #F7F9FA;
  --card:           #FFFFFF;
  --text: #2D3134;
  --text-muted:     #718096;
  --text-light:     #A0AEC0;
  --border:         rgba(27,77,62,0.08);
  --shadow-card:    0 4px 20px rgba(0,0,0,0.04);
  --shadow-hover:   0 8px 30px rgba(0,0,0,0.08);
  --shadow-float:   0 12px 40px rgba(27,77,62,0.12);
  --radius-card:    16px;
  --radius-pill:    50px;
  --radius-sm:      8px;
  --transition:     0.22s cubic-bezier(0.4,0,0.2,1);
  --font-head:      'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.25; color: var(--emerald); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { max-width: 68ch; }

.text-emerald { color: var(--emerald); }
.text-cyan    { color: var(--cyan); }
.text-muted   { color: var(--text-muted); font-size: 0.9rem; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 4rem 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27,77,62,0.28);
}
.btn-primary:hover { background: #163f33; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(27,77,62,0.35); }
.btn-cyan {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,163,224,0.28);
}
.btn-cyan:hover { background: var(--cyan-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--emerald);
  border: 2px solid var(--emerald);
}
.btn-outline:hover { background: var(--emerald-xlight); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ── Badges / Pills ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-emerald   { background: var(--emerald); color: #fff; }
.badge-emerald-o { background: var(--emerald-light); color: var(--emerald); }
.badge-cyan      { background: var(--cyan-light); color: var(--cyan-dark); }
.badge-gray      { background: rgba(113,128,150,0.12); color: var(--text-muted); }
.badge-herbalife { background: linear-gradient(135deg,var(--emerald),#2a7a60); color:#fff; }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-body { padding: 1.5rem; }

/* ── Section Header ──────────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }
.section-tag {
  display: inline-block;
  background: var(--emerald-light);
  color: var(--emerald);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title { color: var(--emerald); margin-bottom: 0.6rem; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* ────────────────────────────────────────────────────────────── */
/* HEADER UNIFICATO NUTRIVIRTUS (RESPONSIVE & MOBILE-FIRST)       */
/* ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 100%;
}
.nav-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0.35rem 1rem;
  box-sizing: border-box;
}
.nav-brand-link {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.2s ease;
}
.nav-right-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links-pills {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-actions-pills {
  display: none;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 4px 8px;
  background: transparent;
  color: #2D3134;
  border: 1.5px solid #7AC142;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav-pill:hover,
.nav-pill.active,
.nav-pill-active {
  background: #7AC142 !important;
  color: #ffffff !important;
  border-color: #7AC142 !important;
  font-weight: 700;
}
.nav-pill-bioniq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 4px 8px;
  background: transparent;
  color: #007BFF;
  border: 1.5px solid #007BFF;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav-pill-bioniq:hover {
  background: #007BFF !important;
  color: #ffffff !important;
  border-color: #007BFF !important;
}
.nav-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 4px 10px;
  background: #007BFF;
  color: #ffffff !important;
  border: 1.5px solid #007BFF;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.28);
  transition: all 0.2s ease;
}
.nav-pill-cta:hover {
  background: #0066FF !important;
  border-color: #0066FF !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ── Mobile Navigation Drawer ───────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 101;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.mobile-nav-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}
.mobile-nav-toggle .hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #2D3134;
  border-radius: 99px;
  transition: all 0.25s ease;
}
.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav-menu {
  display: none;
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.mobile-nav-menu.open {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  animation: slideDownNav 0.2s ease-out;
}
@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  color: #2D3134;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
  background: #7AC142 !important;
  color: #ffffff !important;
  font-weight: 700;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.mobile-action-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}
.mobile-action-pill.pill-pro2col {
  border: 1.5px solid #7AC142;
  color: #2e6917;
  background: rgba(122, 193, 66, 0.08);
}
.mobile-action-pill.pill-pro2col:hover {
  background: #7AC142;
  color: #ffffff !important;
}
.mobile-action-pill.pill-bioniq {
  border: 1.5px solid #007BFF;
  color: #007BFF;
  background: rgba(0, 123, 255, 0.08);
}
.mobile-action-pill.pill-bioniq:hover {
  background: #007BFF;
  color: #ffffff !important;
}
.mobile-action-pill.pill-cta {
  background: #007BFF;
  color: #ffffff !important;
  border: 1.5px solid #007BFF;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}
.mobile-action-pill.pill-cta:hover {
  background: #0066FF;
}

/* Breakpoints Tablet & Desktop (<1140px vs >=1140px) */
@media (max-width: 1139px) {
  .mobile-nav-toggle {
    display: flex !important;
  }
  .nav-links-pills {
    display: none !important;
  }
  .nav-actions-pills {
    display: none !important;
  }
}
@media (min-width: 1140px) {
  .nav-header-container {
    min-height: 76px;
  }
  .nav-logo-img {
    height: 48px;
  }
  .nav-links-pills {
    display: flex !important;
    gap: 4px;
  }
  .nav-actions-pills {
    display: flex !important;
    gap: 5px;
  }
  .mobile-nav-toggle {
    display: none !important;
  }
}
@media (min-width: 1320px) {
  .nav-header-container {
    min-height: 80px;
  }
  .nav-logo-img {
    height: 48px;
  }
  .nav-links-pills {
    gap: 6px;
  }
  .nav-actions-pills {
    gap: 6px;
  }
  .nav-pill {
    padding: 5px 9px;
    font-size: 0.81rem;
  }
  .nav-pill-bioniq {
    padding: 5px 9px;
    font-size: 0.81rem;
  }
  .nav-pill-cta {
    padding: 5px 12px;
    font-size: 0.81rem;
  }
}

/* ────────────────────────────────────────────────────────────── */
/* HERO                                                          */
/* ────────────────────────────────────────────────────────────── */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(160deg, #eef4f1 0%, var(--bg) 60%);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero {
    padding: 5rem 0 4rem;
  }
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,163,224,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero-coach-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.coach-photo-ring {
  position: relative;
  width: 270px;
  height: 270px;
  max-width: min(270px, 80vw);
  max-height: min(270px, 80vw);
  border-radius: 50%;
  flex-shrink: 0;
}
.coach-photo-ring::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) 0deg, var(--cyan) 180deg, var(--emerald) 360deg);
  animation: ring-spin 8s linear infinite;
}
.coach-photo-ring::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: var(--bg);
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.coach-photo-main {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  aspect-ratio: 1 / 1;
  z-index: 1;
  background: var(--emerald-light);
  display: block;
}
.rounded-full {
  border-radius: 50% !important;
}
.coach-photo-fallback {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; z-index: 1;
}
.hero-text { text-align: center; }
.hero-text .section-tag { margin-bottom: 1rem; }
.hero-title { margin-bottom: 1rem; }
.hero-description { color: var(--text-muted); margin: 0 auto 2rem; font-size: 1.05rem; }
.goal-pills {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  justify-content: center; margin-bottom: 2rem;
}
.goal-pill {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: var(--card);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
}
.goal-pill:hover, .goal-pill.active {
  border-color: var(--emerald);
  background: var(--emerald-light);
  color: var(--emerald);
  transform: translateY(-1px);
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

@media (min-width: 640px) {
  .coach-photo-ring {
    width: 300px;
    height: 300px;
    max-width: 300px;
    max-height: 300px;
  }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: auto 1fr; gap: 3.5rem; text-align: left; }
  .coach-photo-ring {
    width: 340px;
    height: 340px;
    max-width: 340px;
    max-height: 340px;
  }
  .hero-text { text-align: left; }
  .hero-cta { justify-content: flex-start; }
  .goal-pills { justify-content: flex-start; }
  .hero-description { margin-left: 0; }
}

/* ────────────────────────────────────────────────────────────── */
/* CHAT                                                          */
/* ────────────────────────────────────────────────────────────── */
.section-chat { background: var(--bg); }
.chat-wrapper { display: flex; flex-direction: column; gap: 1.25rem; }
.chat-messages-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 600px;
  height: 75vh;
  max-height: 850px;
  overflow: hidden;
}
.chat-messages {
  flex: 1;
  min-height: 450px;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--emerald-light); border-radius: 2px; }

/* Message bubbles */
.msg { display: flex; gap: 0.65rem; align-items: flex-end; animation: msg-in 0.3s ease; }
@keyframes msg-in { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform:none; } }
.msg-coach { align-self: flex-start; }
.msg-user  { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--emerald-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.msg-bubble {
  max-width: min(72%, 400px);
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.55;
}
.msg-coach .msg-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.msg-user .msg-bubble {
  background: var(--emerald);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: 0.7rem; color: var(--text-light);
  margin-top: 0.25rem; text-align: right;
}
.msg-coach .msg-time { text-align: left; }

/* Typing indicator */
.typing-indicator .msg-bubble {
  display: flex; gap: 5px; padding: 1rem 1.2rem; align-items: center;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: dot-bounce 1.2s infinite; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce { 0%,60%,100% { transform: none; } 30% { transform: translateY(-6px); } }

/* Checkout CTA Card */
.checkout-cta-card {
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: msg-in 0.4s ease;
  transition: var(--transition);
}
.checkout-cta-card.pro2col {
  background: linear-gradient(135deg, #eaf2ee, #d5ebe1);
  border: 1px solid rgba(27,77,62,0.15);
}
.checkout-cta-card.bioniq {
  background: linear-gradient(135deg, #e8f5fc, #ceeaf8);
  border: 1px solid rgba(0,163,224,0.2);
}
.checkout-cta-icon { font-size: 2.2rem; flex-shrink: 0; }
.checkout-cta-body { flex: 1; min-width: 180px; }
.checkout-cta-body h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.checkout-cta-body p  { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.checkout-cta-card.hidden { display: none; }

/* Chat input */
.chat-input-bar {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  background: var(--card);
}
#chatInput {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg);
  min-height: 48px;
  max-height: 120px;
  transition: border-color var(--transition);
  outline: none;
}
#chatInput:focus { border-color: var(--emerald); }
#chatInput::placeholder { color: var(--text-light); }

/* ── Quick action chips ───── */
.quick-chips {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem;
}
.quick-chip {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.quick-chip:hover {
  border-color: var(--cyan); color: var(--cyan-dark); background: var(--cyan-light);
}

/* ────────────────────────────────────────────────────────────── */
/* EXERCISE CARDS                                                */
/* ────────────────────────────────────────────────────────────── */
.section-exercises { background: linear-gradient(180deg, var(--bg) 0%, #eef2ee 100%); }

.exercise-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border);
  background: var(--card);
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #fff;
}

.exercise-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 580px) { .exercise-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .exercise-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1100px){ .exercise-grid { grid-template-columns: repeat(4,1fr); } }

.exercise-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex; flex-direction: column;
}
.exercise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}
.exercise-card.hidden { display: none; }

/* Illustration area */
.exercise-illustration {
  height: 130px;
  background: linear-gradient(135deg, var(--emerald-xlight) 0%, var(--emerald-light) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.exercise-emoji { font-size: 3.5rem; z-index: 1; }
.exercise-difficulty {
  position: absolute; top: 0.75rem; right: 0.75rem;
}

.exercise-body { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.exercise-name { font-size: 1rem; font-weight: 700; color: var(--emerald); }
.exercise-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 0.5rem; align-items: center; }
.exercise-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.exercise-sets { font-size: 0.82rem; font-weight: 600; color: var(--emerald); }

/* Muscle groups */
.muscle-groups { display: flex; flex-direction: column; gap: 0.4rem; margin-top: auto; }
.muscle-group-row { display: flex; gap: 0.3rem; flex-wrap: wrap; align-items: center; }
.muscle-label { font-size: 0.68rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.2rem; }
.muscle-pill {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 600;
}
.muscle-pill.primary   { background: var(--emerald); color: #fff; }
.muscle-pill.secondary { background: var(--emerald-light); color: var(--emerald); }

.exercise-tip {
  background: var(--cyan-light);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.5rem;
}

/* ────────────────────────────────────────────────────────────── */
/* WELLNESS DASHBOARD                                            */
/* ────────────────────────────────────────────────────────────── */
.section-dashboard { background: var(--bg); }

.dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr 340px; align-items: start; }
}

.chart-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
@media (max-width: 640px) {
  .chart-card {
    padding: 1rem;
  }
}
.chart-canvas-wrap {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.chart-card canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
.chart-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem;
}
.chart-header h3 { margin: 0; }
.chart-legend {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  list-style: none; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem;
}
.chart-legend li { display: flex; align-items: center; gap: 0.4rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Tracking form */
.tracking-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.tracking-card h3 { color: var(--emerald); }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.form-input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-family: inherit; font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
  background: var(--bg);
}
.form-input:focus { border-color: var(--emerald); background: #fff; }
.form-toggle {
  display: flex; gap: 0.75rem; align-items: center;
}
.toggle-switch {
  position: relative; width: 44px; height: 24px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: white; border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--emerald); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: 0.88rem; font-weight: 500; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
.stat-box {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
}
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--emerald); line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ────────────────────────────────────────────────────────────── */
/* FOOTER                                                        */
/* ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: #FFFFFF;
  padding: 4rem 0 2rem;
  border-top: 5px solid var(--emerald);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 3rem;
}
.footer-card {
  background: #1E5E3A;
  border: 1px solid #7AC142;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.footer-card-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}
.footer-brand {
  display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem;
}
.footer-coach-avatar {
  width: 55px; height: 55px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--emerald);
  background: rgba(255,255,255,0.1);
}
.footer-coach-name {
  font-size: 1.2rem; font-weight: 800; color: #FFFFFF;
}
.footer-coach-role {
  font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.3;
}
.footer-legal-id {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.2);
  padding: 12px;
  border-radius: 8px;
}
.footer-legal-link {
  color: var(--emerald); text-decoration: none; font-weight: 500;
  transition: opacity 0.2s;
}
.footer-legal-link:hover { opacity: 0.8; text-decoration: underline; }
.footer-links ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.footer-links a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--emerald);
  padding-left: 6px;
}
.wa-footer-btn {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  margin-top: 0.25rem;
}
.wa-footer-btn:hover {
  background-color: #128C7E !important;
  color: #ffffff !important;
  padding-left: 14px !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.footer-efsa {
  font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.6;
}
.footer-legal-links-row {
  display: flex; gap: 12px; align-items: center;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 1rem;
}
.footer-herbalife-badge {
  background: var(--emerald); color: #FFFFFF;
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}


.footer-brand { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-coach-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  object-fit: cover; background: rgba(255,255,255,0.15);
}
.footer-coach-name { font-weight: 700; font-size: 1rem; color: #fff; }
.footer-coach-role { font-size: 0.82rem; opacity: 0.75; }
.footer-links h4 { color: #fff; font-size: 0.88rem; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--cyan); }

.footer-efsa {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.footer-herbalife-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

/* Blocco dati legali/anagrafici nel footer (B2C & B2B) */
.footer-legal-id {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}

.footer-legal-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal-link:hover {
  color: var(--cyan);
  text-decoration: underline;
}

/* Footer SaaS B2B — layout a 2 colonne */
.footer-saas-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .footer-saas-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.footer-saas-compliance {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

.footer-saas-compliance-title {
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.footer-saas-compliance p {
  margin: 0;
}

.footer-saas-pec-badge {
  display: inline-block;
  background: rgba(0,163,224,0.25);
  border: 1px solid rgba(0,163,224,0.45);
  color: #7dd3fc;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* Link Iubenda nel contesto footer (B2C & B2B) */
.footer-saas-legal-links {
  margin-top: 0.85rem;
  font-size: 0.82rem;
}

/* Override: testo Iubenda visibile su sfondo scuro del footer */
.site-footer .iubenda-embed,
.site-footer a.iubenda-nostyle {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.82rem !important;
  font-weight: 500;
  text-decoration: none;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  transition: color var(--transition);
}
.site-footer .iubenda-embed:hover,
.site-footer a.iubenda-nostyle:hover {
  color: var(--cyan) !important;
  text-decoration: underline;
}

/* ────────────────────────────────────────────────────────────── */
/* UTILITIES                                                     */
/* ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* Scroll fade-in */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* Loading skeleton */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* Toast notification */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--emerald); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-float);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─────────────────────────────────────────────────────────────
   REFACTORING: Navbar Bioniq · Hero Bioniq CTA · Muscle Tabs
   ───────────────────────────────────────────────────────────── */

/* Bottone Bioniq Cyan nella Navbar */
.btn-cyan-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: transparent;
  color: var(--cyan-dark);
  border: 1.5px solid var(--cyan-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-cyan-sm:hover {
  background: var(--cyan-dark);
  color: #fff;
}

/* Hero CTA — terzo pulsante Bioniq */
.btn-bioniq {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,163,224,0.30);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-bioniq:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,163,224,0.38);
}

/* ─────────────────────────────────────────────────────────────
   MUSCLE TAB NAVIGATION
   ───────────────────────────────────────────────────────────── */
.muscle-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.muscle-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.muscle-tab:hover { color: var(--emerald); }
.muscle-tab.active {
  color: var(--emerald);
  border-bottom-color: var(--emerald);
}
.muscle-panel { display: none; }
.muscle-panel.active { display: grid; }

/* ─────────────────────────────────────────────────────────────
   ESERCIZIO CARD ANATOMICA
   ───────────────────────────────────────────────────────────── */
.exercise-grid-v2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .exercise-grid-v2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .exercise-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .exercise-grid-v2 { grid-template-columns: repeat(4, 1fr); }
}

.ex-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ex-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

/* Illustrazione anatomica SVG */
.ex-visual {
  position: relative;
  background: linear-gradient(135deg, var(--emerald-xlight) 0%, #e8f5f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  min-height: 130px;
}
.ex-svg-wrap {
  width: 90px;
  height: 100px;
  position: relative;
  flex-shrink: 0;
}
.ex-svg-wrap svg {
  width: 100%;
  height: 100%;
}
/* Muscoli primari → rosso/accento */
.ex-svg-wrap .muscle-primary {
  fill: #E53E3E;
  opacity: 0.88;
  animation: musclePulse 2.2s ease-in-out infinite;
}
/* Muscoli secondari → emerald */
.ex-svg-wrap .muscle-secondary {
  fill: var(--emerald);
  opacity: 0.55;
}
/* Struttura base (scheletro / silhouette) */
.ex-svg-wrap .body-base {
  fill: #CBD5E0;
  opacity: 0.45;
}
@keyframes musclePulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 0.60; }
}

/* Badge difficoltà sovrapposto */
.ex-difficulty-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.diff-base    { background: #C6F6D5; color: #276749; }
.diff-inter   { background: #FEFCBF; color: #744210; }
.diff-adv     { background: #FED7D7; color: #9B2C2C; }

/* Corpo della card */
.ex-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ex-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.ex-sets {
  font-size: 0.78rem;
  color: var(--emerald);
  font-weight: 600;
}
.ex-muscles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.ex-tag-primary {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #1B4D3E;
  color: #fff;
}
.ex-tag-secondary {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-light);
  color: var(--emerald);
}
.ex-tip {
  margin-top: auto;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(0,163,224,0.07), rgba(0,139,186,0.05));
  border-left: 3px solid var(--cyan-dark);
  padding: 0.55rem 0.7rem;
  border-radius: 0 8px 8px 0;
}

/* ─────────────────────────────────────────────────────────────
   SEZIONE PROTOCOLLO PERSONALIZZATO — v3
   ───────────────────────────────────────────────────────────── */
.section-protocol {
  padding: var(--section-py) 0;
  background: linear-gradient(160deg, var(--emerald-xlight) 0%, var(--bg) 55%);
}

.protocol-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .protocol-hero-grid { grid-template-columns: 1fr 420px; }
}

/* Colonna testo */
.protocol-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

/* Timeline 3 fasi */
.protocol-phases {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
  position: relative;
}
.protocol-phases::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--emerald), var(--cyan-dark));
  border-radius: 2px;
}
.protocol-phase {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0 1rem 0;
  position: relative;
}
.phase-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 2px solid var(--card);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.phase-1 { background: #C6F6D5; }
.phase-2 { background: #FEFCBF; }
.phase-3 { background: #BEE3F8; }

.phase-body {
  flex: 1;
  padding-top: 0.25rem;
}
.phase-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}
.phase-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.phase-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Row CTA */
.protocol-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Colonna pairing prodotti */
.pairing-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.pairing-header {
  background: var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
}
.pairing-header-icon {
  font-size: 1.1rem;
}
.pairing-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pairing-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.1rem 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.pairing-item:last-child { border-bottom: none; }
.pairing-bioniq { background: rgba(0,163,224,0.05); }

.pairing-moment {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  grid-column: 1;
  grid-row: 1;
  padding-top: 0.1rem;
}
.pairing-product {
  font-size: 0.85rem;
  color: var(--text);
  grid-column: 2;
  grid-row: 1;
}
.pairing-bioniq .pairing-product strong { color: var(--cyan-dark); }
.pairing-benefit {
  font-size: 0.73rem;
  color: var(--text-muted);
  grid-column: 2;
  grid-row: 2;
  line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────
   CHAT PDF BANNER (suggerimento inline nella chat)
   ───────────────────────────────────────────────────────────── */
.chat-pdf-prompt {
  padding: 0 0 0.5rem 0;
}
.chat-pdf-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #f0fff4, #e6f7ff);
  border: 1.5px solid var(--emerald-light);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  flex-wrap: wrap;
}
.chat-pdf-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.chat-pdf-text {
  flex: 1;
  min-width: 160px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.chat-pdf-text strong {
  color: var(--emerald);
  font-size: 0.88rem;
}
.chat-pdf-btn {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
}

/* Toast error variant */
.toast.error {
  background: #E53E3E;
}

/* ─────────────────────────────────────────────────────────────
   SAAS B2B — SEZIONE VISION "Il Futuro è Conversazionale"
   ───────────────────────────────────────────────────────────── */
.saas-vision-section {
  padding: 4.5rem 0;
  background: linear-gradient(160deg, #F0FBF6 0%, var(--bg) 55%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Griglia 4 KPI card */
.vision-kpi-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 640px)  { .vision-kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px)  { .vision-kpi-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
@media (min-width: 960px) and (max-width: 1023px) { .vision-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* KPI Card base */
.vision-kpi-card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.vision-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

/* Card in evidenza (center/featured) */
.vision-kpi-card--featured {
  border: 2px solid var(--emerald);
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8F6 100%);
  position: relative;
}
.vision-kpi-card--featured::before {
  content: 'Più Richiesto';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(27,77,62,0.22);
  white-space: nowrap;
}

/* Icona KPI */
.kpi-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.kpi-speed   { background: #FEFCBF; }   /* giallo tenue — velocità */
.kpi-science { background: #BEE3F8; }   /* azzurro tenue — scienza */
.kpi-scale   { background: #E9D8FD; }   /* lilla tenue — crescita  */
.kpi-whatsapp { background: #C6F6D5; }   /* verde tenue — whatsapp */
.kpi-icon { font-size: 1.5rem; line-height: 1; }

/* Numero grande KPI */
.kpi-stat {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--emerald);
  line-height: 1;
  margin-top: 0.25rem;
}

/* Etichetta sotto il numero */
.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Titolo della card */
.kpi-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.25;
}

/* Descrizione */
.kpi-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.kpi-desc strong { color: var(--text); }

/* ─────────────────────────────────────────────────────────────
   FIX ol.compliance-list — numerazione automatica ol, no doppio
   ───────────────────────────────────────────────────────────── */
.compliance-list {
  list-style: decimal;  /* mantiene numerazione automatica ol */
  padding-left: 1.5rem;
}
.compliance-list li {
  padding-left: 0.35rem;
}

/* ─────────────────────────────────────────────────────────────
   BANNER CLIENTI PRIVILEGIATI (B2C tenant.ejs / Soft Entry)
   ───────────────────────────────────────────────────────────── */
.customer-banner {
  padding: 1.5rem 0 0.75rem;
  background: transparent;
}

.customer-banner-inner {
  background: #ffffff;
  border-radius: var(--radius-card); /* 16px */
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .customer-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.75rem 3rem;
    gap: 2.5rem;
  }
}

.customer-banner-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.customer-banner-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 0.65rem;
}

.customer-banner-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.customer-banner-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
  margin: 0;
}

.customer-banner-cta {
  background: var(--emerald);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 4px 14px rgba(27, 77, 62, 0.28);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.customer-banner-cta:hover {
  background: #153e32;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 77, 62, 0.35);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   BANNER OPPORTUNITÀ BUSINESS & TEAM (B2C tenant.ejs)
   ───────────────────────────────────────────────────────────── */
.biz-banner {
  padding: 0.75rem 0 3.5rem;
  background: transparent;
}

.biz-banner-inner {
  background: linear-gradient(135deg, var(--emerald) 0%, #235e4d 55%, #153e32 100%);
  border-radius: var(--radius-card); /* 16px */
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(27, 77, 62, 0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

/* Cerchi decorativi di sfondo */
.biz-banner-inner::before,
.biz-banner-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
  pointer-events: none;
}
.biz-banner-inner::before { width: 320px; height: 320px; top: -80px; right: -60px; }
.biz-banner-inner::after  { width: 200px; height: 200px; bottom: -60px; left: 5%;  }

@media (min-width: 768px) {
  .biz-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.75rem 3rem;
    gap: 2.5rem;
  }
}

.biz-banner-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.biz-banner-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.65rem;
}

.biz-banner-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

/* Niente line-break su schermi grandi — la gestisce il testo naturale */
@media (min-width: 900px) { .biz-br { display: none; } }

.biz-banner-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}

.biz-banner-cta {
  background: #fff;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.biz-banner-cta:hover {
  background: #f0fff4;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  color: var(--emerald);
}

/* ─────────────────────────────────────────────────────────────
   CTA CARD — BUSINESS_OPP (checkout-cta-card nella chat)
   ───────────────────────────────────────────────────────────── */
.checkout-cta-card.business-opp {
  background: linear-gradient(135deg, #F0FBF6 0%, #E8F5F0 100%);
  border: 1.5px solid var(--emerald-light);
}
.checkout-cta-card.business-opp .checkout-cta-icon {
  background: var(--emerald-xlight);
  color: var(--emerald);
}
.checkout-cta-card.business-opp h4 { color: var(--emerald); }

.btn-business {
  background: var(--emerald);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-business:hover {
  background: #15402f;
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────
   MODALE SPONSORIZZAZIONE TEAM HERBALIFE
   ───────────────────────────────────────────────────────────── */
.team-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.team-modal-backdrop[hidden] {
  display: none;
  opacity: 0;
}

.team-modal-card {
  background: var(--card);
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  padding: 2.25rem 2rem;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  animation: modalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.team-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.team-modal-close:hover {
  background: var(--border);
  color: var(--text);
  transform: rotate(90deg);
}

.team-modal-header {
  margin-bottom: 1.25rem;
}
.team-modal-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--emerald);
  margin: 0.5rem 0 0.4rem;
  line-height: 1.25;
}
.team-modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Chips vantaggi */
.team-modal-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.benefit-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

/* Box Dati Sponsor */
.sponsor-box {
  background: linear-gradient(145deg, #F0FBF6 0%, #E8F5F0 100%);
  border: 2px dashed var(--emerald);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}
.sponsor-box-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}
.sponsor-badge {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sponsor-subhint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sponsor-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 500px) {
  .sponsor-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sponsor-field {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.sponsor-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sponsor-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sponsor-val {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: 0.06em;
}
.copy-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.copy-btn:hover {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}
.copy-btn.copied {
  background: #10B981;
  color: #fff;
  border-color: #10B981;
}

/* CTA Primaria */
.team-modal-actions {
  margin-bottom: 1.25rem;
}
.team-modal-primary-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
}

/* Box Vantaggio Tecnologico */
.team-modal-tech-box {
  background: var(--bg);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border: 1px solid var(--border);
}
.tech-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #BEE3F8;
  color: var(--cyan-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.tech-box-content {
  flex: 1;
}
.tech-box-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.tech-box-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 0.5rem;
}
.btn-tech-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition);
}
.btn-tech-link:hover {
  color: var(--cyan-dark);
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   SEZIONI FAQ ACCORDION (AEO & Rich Snippets)
   ───────────────────────────────────────────────────────────── */
.section-faq,
.section-faq-b2b {
  padding: 4.5rem 0 3.5rem;
  background: transparent;
}

.faq-accordion-list {
  max-width: 840px;
  margin: 2.25rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: rgba(27, 77, 62, 0.25);
  box-shadow: var(--shadow-card);
}

.faq-item[open] {
  border-color: rgba(27, 77, 62, 0.35);
  box-shadow: var(--shadow-card);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.35;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--emerald-xlight);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--emerald);
  color: #fff;
}

.faq-answer {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}

.faq-answer strong {
  color: var(--text);
}

.faq-answer em {
  color: var(--emerald);
  font-style: normal;
  font-weight: 600;
}

.faq-answer code {
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--emerald);
  border: 1px solid var(--border);
}



/* Link cliccabili in Markdown */
.msg-text a.chat-markdown-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s;
}
.msg-text a.chat-markdown-link:hover {
  opacity: 0.8;
}


/* Nuovi Stili Bolle Chat - GoHerbalife System */
.msg-coach .msg-bubble {
  background: #FFFFFF;
  color: #2D3134;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 12px;
  border-bottom-left-radius: 2px;
}
.msg-user .msg-bubble {
  background: #007BFF;
  color: #FFFFFF;
  border: none;
  box-shadow: none;
  border-radius: 12px;
  border-bottom-right-radius: 2px;
}

/* Link Markdown Chat (Blu Elettrico) */
.msg-text a.chat-markdown-link {
  color: #007BFF;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.msg-text a.chat-markdown-link::after {
  content: "↗";
  font-size: 0.85em;
  font-weight: bold;
}
.msg-text a.chat-markdown-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Chat Header Banner */
.chat-system-banner {
  background: #7AC142;
  color: white;
  text-align: center;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 8px 12px;
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
  letter-spacing: 0.5px;
}

/* Chat Header Info */
.chat-header {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  gap: 14px;
}
.chat-header-avatar {
  background: #7AC142;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2.5px solid #7AC142;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
@media (min-width: 640px) {
  .chat-header-avatar {
    width: 64px;
    height: 64px;
  }
}
.chat-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
}
.chat-header-info h4 {
  margin: 0 0 2px 0;
  font-size: 1.05rem;
  color: #2D3134;
  font-weight: 700;
}
.chat-header-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #718096;
}

/* Quick Action Chips */
.chat-chips {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: white;
  border-top: 1px solid #E5E7EB;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}
.chat-chips::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.chat-chip {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.chat-chip:hover {
  border-color: #7AC142;
  color: #1a4d2e;
  background: #f0fdf4;
}

/* Ridisegno Box Download PDF */
.chat-pdf-banner {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.chat-pdf-icon {
  background: #7AC142;
  color: white;
  padding: 10px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
.chat-pdf-btn {
  background: #007BFF;
  color: white !important;
  border: none;
  font-weight: 700;
  width: 100%;
  transition: background 0.2s;
}
.chat-pdf-btn:hover {
  background: #006CD9;
}
.chat-pdf-text strong {
  font-size: 1.1rem;
  color: #2D3134;
}

/* Override specific buttons to Action Blue */
#chatSendBtn, .chat-pdf-btn, #downloadPdfBtn {
  background: #007BFF !important;
  color: white !important;
  border: none !important;
}
#chatSendBtn:hover, .chat-pdf-btn:hover, #downloadPdfBtn:hover {
  background: #006CD9 !important;
}

/* Nasconde elementi specifici su schermi mobile/tablet per evitare sovrapposizioni */
@media (max-width: 991px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   B2B NAVBAR PILL BUTTONS (Dashboard, SaaS, Privacy, Termini, Onboarding)
   ───────────────────────────────────────────────────────────── */
.nav-pill-b2b {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px 14px;
  background: transparent;
  color: #2D3134;
  border: 1.5px solid #7AC142;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.nav-pill-b2b:hover {
  background: #7AC142 !important;
  color: #ffffff !important;
  border-color: #7AC142 !important;
  transform: translateY(-1px);
}

.nav-pill-b2b-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 6px 16px;
  background: #7AC142;
  color: #ffffff !important;
  border: 1.5px solid #7AC142;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(122, 193, 66, 0.3);
  transition: all 0.2s ease;
  line-height: 1.2;
}
.nav-pill-b2b-primary:hover {
  background: #68a834 !important;
  border-color: #68a834 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(122, 193, 66, 0.4);
}

/* ─────────────────────────────────────────────────────────────
   B2C NAVBAR PILL BUTTONS (Tenant, Blog, Esercizi)
   Spaziatura ottimizzata per restare su un'unica riga su Desktop
   ───────────────────────────────────────────────────────────── */
.nav-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  min-height: 80px;
  height: auto;
  margin: 0 auto;
  padding: 0.35rem 1rem;
  flex-wrap: nowrap;
}
.nav-brand-link {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-right-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.nav-links-pills {
  display: none;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
@media (min-width: 992px) {
  .nav-links-pills {
    display: flex !important;
  }
}
.nav-actions-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 5px 9px;
  background: transparent;
  color: #2D3134;
  border: 1.5px solid #7AC142;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav-pill:hover,
.nav-links a.nav-pill:hover,
.nav-links-pills li a:hover,
.nav-actions a.nav-pill:hover {
  background: #7AC142 !important;
  color: #ffffff !important;
  border-color: #7AC142 !important;
}
.nav-pill-active {
  background: #7AC142 !important;
  color: #ffffff !important;
  border-color: #7AC142 !important;
  font-weight: 700;
}
.nav-pill-bioniq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 5px 9px;
  background: transparent;
  color: #007BFF;
  border: 1.5px solid #007BFF;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nav-pill-bioniq:hover,
.nav-actions a.nav-pill-bioniq:hover {
  background: #007BFF !important;
  color: #ffffff !important;
  border-color: #007BFF !important;
}
.nav-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 5px 12px;
  background: #007BFF;
  color: #ffffff !important;
  border: 1.5px solid #007BFF;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.28);
  transition: all 0.2s ease;
}
.nav-pill-cta:hover,
.nav-actions a.nav-pill-cta:hover {
  background: #0066FF !important;
  border-color: #0066FF !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.38);
}
@media (min-width: 1200px) {
  .nav-right-wrap { gap: 6px; }
  .nav-links-pills { gap: 6px; }
  .nav-actions-pills { gap: 6px; }
  .nav-pill { padding: 5px 10px; font-size: 0.81rem; }
  .nav-pill-bioniq { padding: 5px 10px; font-size: 0.81rem; }
  .nav-pill-cta { padding: 5px 12px; font-size: 0.81rem; }
}
@media (max-width: 991px) {
  .nav-header-container { padding: 0.25rem 0.75rem; min-height: 68px; }
  .nav-logo-img { height: 32px; flex-shrink: 0; }
  .nav-pill { padding: 5px 8px; font-size: 0.78rem; }
  .nav-pill-bioniq { padding: 5px 8px; font-size: 0.78rem; }
  .nav-pill-cta { padding: 5px 10px; font-size: 0.78rem; }
}


