/* ==========================================================================
   VITALITÀ MASCHILE - Design System & Modern CSS
   Palette: Dark Fitness Slate (#0f172a) + Herbal Amber Gold (#d97706) + Emerald (#047857)
   Conforme alle Linee Guida Google Ads & GDPR
   ========================================================================== */

:root {
  /* Brand Colors */
  --slate-900: #0f172a;
  --slate-850: #172033;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-700: #b45309;
  --amber-50:  #fffbeb;

  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-50:  #ecfdf5;

  --white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --body-bg: #f8fafc;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 20px 35px rgba(15, 23, 42, 0.14);
  --shadow-glow-amber: 0 0 20px rgba(217, 119, 6, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--body-bg);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style-position: inside;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 860px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--slate-900);
}

.text-amber { color: var(--amber-600); }
.text-emerald { color: var(--emerald-700); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }

/* Top Notification Bar */
.topbar {
  background: var(--slate-900);
  color: var(--slate-200);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-badge {
  background: rgba(217, 119, 6, 0.2);
  color: var(--amber-400);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  margin-right: 6px;
}

.topbar-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-link {
  color: var(--slate-400);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar-link:hover {
  color: var(--amber-400);
}

/* Main Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-600);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate-700);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--amber-600);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber-600);
  border-radius: 2px;
}

.nav-cta-btn {
  background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
  color: var(--white) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  width: 26px;
  height: 2.5px;
  background-color: var(--slate-900);
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-align: center;
  font-family: var(--font-heading);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--white);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--amber-600), #92400e);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.45);
}

.btn-secondary {
  background: var(--slate-800);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--slate-900);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--slate-800);
  border: 2px solid var(--slate-800);
}

.btn-outline:hover {
  background: var(--slate-800);
  color: var(--white);
}

.btn-large {
  padding: 18px 38px;
  font-size: 1.15rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(175deg, #ffffff 0%, var(--slate-50) 60%, #fffbf0 100%);
  padding: 60px 0 80px 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

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

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber-50);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.hero-badge-wrap .dot {
  width: 8px;
  height: 8px;
  background: var(--amber-600);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-badge-wrap span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-author-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.author-pill-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber-500);
}

.author-pill-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--slate-900);
}

.author-pill-title {
  font-size: 0.76rem;
  color: var(--slate-600);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--slate-600);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  color: var(--emerald-600);
}

/* Hero Media Card */
.hero-media-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: var(--transition-normal);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--slate-900);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 290px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  background: var(--amber-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.floating-text h5 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.floating-text p {
  color: var(--slate-400);
  font-size: 0.75rem;
}

/* Section Common */
.section {
  padding: 85px 0;
}

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

.section-dark {
  background: var(--slate-900);
  color: var(--slate-100);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--white);
}

.section-dark .text-muted {
  color: var(--slate-400);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 55px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Elena & Marco Story Banner */
.story-spotlight {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-850) 60%, #1a2e26 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-xl);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 45px;
  align-items: center;
}

.story-img-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid rgba(217, 119, 6, 0.4);
}

.story-img-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.story-quote-tag {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--amber-400);
  font-weight: 700;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.story-content h3 {
  color: var(--white);
  font-size: 1.95rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.story-content p {
  color: var(--slate-300);
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.story-keypoints {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 28px 0;
}

.story-keypoint-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber-500);
}

.story-keypoint-item h6 {
  color: var(--white);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.story-keypoint-item span {
  font-size: 0.78rem;
  color: var(--slate-400);
}

/* 3 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--amber-500);
}

.pillar-num {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: rgba(217, 119, 6, 0.18);
  line-height: 1;
  margin-bottom: 10px;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--amber-50);
  color: var(--amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.pillar-card h4 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pillar-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--slate-700);
  font-weight: 500;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.pillar-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-checklist li svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Tool 1: Quiz di Vitalità & Autovalutazione
   ========================================================================== */
.quiz-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  max-width: 820px;
  margin: 0 auto;
}

.quiz-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--slate-100);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
}

.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--amber-500), var(--emerald-500));
  transition: width 0.4s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-step-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.quiz-step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 30px;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--slate-50);
}

.quiz-option-label:hover {
  border-color: var(--amber-500);
  background: var(--amber-50);
}

.quiz-option-label input[type="radio"] {
  margin-right: 14px;
  accent-color: var(--amber-600);
  transform: scale(1.2);
}

.quiz-option-text {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--slate-800);
}

.quiz-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Quiz Result Card */
.quiz-result-box {
  text-align: center;
  padding: 20px 0;
}

.score-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: var(--shadow-glow-amber);
}

.score-val {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.score-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.result-verdict {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--slate-900);
}

.result-advice-box {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  margin-bottom: 30px;
}

.result-advice-box h5 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Interactive Tool 2: Programmatore Giornaliero di Vitalità
   ========================================================================== */
.routine-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.routine-tab-btn {
  padding: 12px 26px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--border-color);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-700);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.routine-content-panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.routine-content-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 30px;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--amber-200, #fed7aa);
}

.timeline-step {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber-600);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--amber-600);
}

.timeline-time {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--amber-600);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-step h5 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Product Showcase Section */
.product-showcase-box {
  background: linear-gradient(135deg, var(--white) 0%, var(--amber-50) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(217, 119, 6, 0.2);
  padding: 50px;
  box-shadow: var(--shadow-xl);
}

.product-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}

.product-img-holder {
  position: relative;
  text-align: center;
}

.product-img-holder img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 440px;
  margin: 0 auto;
}

.product-seal {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--slate-900);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid var(--amber-500);
}

.product-details h3 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.product-badge-formula {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--emerald-50);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid rgba(4, 120, 87, 0.2);
}

.product-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px 0;
}

.product-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--slate-800);
}

.product-bullets li svg {
  color: var(--amber-600);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Ingredients Grid */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 35px;
}

.ingredient-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.ingredient-card:hover {
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ingredient-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--emerald-700);
  background: var(--emerald-50);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  display: inline-block;
}

.ingredient-card h5 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.ingredient-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Certificates Badges Showcase */
.cert-showcase-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 30px 0;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}

.cert-icon-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.cert-item:hover .cert-icon-wrap {
  transform: scale(1.08);
}

.cert-item span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-700);
}

/* Blog / Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

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

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.article-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.04);
}

.article-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--slate-900);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.article-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-title {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--slate-900);
  line-height: 1.35;
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--amber-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-link:hover {
  color: var(--amber-700);
  gap: 10px;
}

/* ==========================================================================
   Order / Lead Generation Page Form (richiesta.html)
   ========================================================================== */
.order-page-wrapper {
  padding: 50px 0 80px 0;
}

.order-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: flex-start;
}

.order-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 2px solid var(--amber-500);
  box-shadow: var(--shadow-xl);
}

.order-form-header {
  text-align: center;
  margin-bottom: 28px;
}

.order-form-header h2 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.order-form-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 1.05rem;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  background: var(--slate-50);
}

.form-input:focus {
  outline: none;
  border-color: var(--amber-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.form-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--slate-600);
  cursor: pointer;
  margin-bottom: 24px;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--amber-600);
}

.form-checkbox-label a {
  color: var(--amber-600);
  text-decoration: underline;
}

.order-security-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.order-security-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Order Summary Card */
.order-summary-card {
  background: var(--slate-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-prod-preview {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 24px;
}

.summary-prod-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--amber-500);
}

.summary-prod-info h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.summary-prod-info p {
  color: var(--slate-400);
  font-size: 0.85rem;
}

.summary-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--slate-300);
  margin-bottom: 24px;
}

.summary-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-perks li svg {
  color: var(--emerald-400);
  flex-shrink: 0;
}

.special-guarantee-box {
  background: rgba(217, 119, 6, 0.15);
  border: 1px dashed var(--amber-400);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.85rem;
  color: var(--amber-200);
  text-align: center;
}

/* ==========================================================================
   Thank You Page (grazie.html)
   ========================================================================== */
.thank-you-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 780px;
  margin: 40px auto 60px auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.success-icon-wrap {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.15);
}

.thank-you-title {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.thank-you-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 35px auto;
}

.order-timeline-box {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: left;
  margin-bottom: 35px;
}

.order-timeline-box h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--slate-900);
  text-align: center;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--amber-600);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.step-card h6 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.download-gift-card {
  background: linear-gradient(135deg, #f0fdf4, #e0f2fe);
  border: 2px dashed var(--emerald-500);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  margin-bottom: 30px;
}

.download-gift-info h5 {
  font-size: 1.1rem;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.download-gift-info p {
  font-size: 0.85rem;
  color: var(--slate-600);
}

/* ==========================================================================
   Editorial Content Formatting (storia-marco.html, guida-vitalita.html)
   ========================================================================== */
.editorial-header {
  padding: 60px 0 40px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
  border-bottom: 1px solid var(--border-color);
}

.editorial-container {
  max-width: 840px;
  margin: 50px auto 80px auto;
  padding: 0 20px;
}

.editorial-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px 50px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--slate-800);
}

.editorial-article h2 {
  font-size: 1.85rem;
  margin: 40px 0 16px 0;
  color: var(--slate-900);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--amber-100, #fef3c7);
}

.editorial-article h3 {
  font-size: 1.45rem;
  margin: 30px 0 14px 0;
}

.editorial-article p {
  margin-bottom: 22px;
}

.editorial-article ul, .editorial-article ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.editorial-article li {
  margin-bottom: 8px;
}

.editorial-callout {
  background: var(--amber-50);
  border-left: 4px solid var(--amber-600);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}

.editorial-callout h4 {
  color: var(--amber-800);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.editorial-callout p {
  color: var(--slate-700);
  margin-bottom: 0;
  font-size: 0.98rem;
}

.editorial-botanical-box {
  background: var(--emerald-50);
  border-left: 4px solid var(--emerald-600);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}

.editorial-botanical-box h4 {
  color: var(--emerald-800);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.editorial-author-signature {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 45px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.signature-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber-500);
}

/* ==========================================================================
   Footer & Legal Disclaimer (Crucial for Google Ads & EU GDPR)
   ========================================================================== */
.main-footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--slate-400);
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

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

.footer-links a {
  color: var(--slate-400);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber-400);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.footer-contact-item svg {
  color: var(--amber-500);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Compliance Disclaimer Box */
.footer-disclaimer-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 35px;
  font-size: 0.8rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.footer-disclaimer-box strong {
  color: var(--slate-200);
  display: block;
  margin-bottom: 6px;
}

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

.footer-legal-links {
  display: flex;
  gap: 16px;
}

.footer-legal-links a {
  color: var(--slate-400);
}
.footer-legal-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   Cookie Banner & Modal (GDPR Compliant)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  background: var(--slate-900);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9999;
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner.active {
  display: block;
}

.cookie-banner h5 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner p {
  color: var(--slate-300);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.cookie-banner p a {
  color: var(--amber-400);
  text-decoration: underline;
}

.cookie-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--amber-600);
  color: var(--white);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-cookie-accept:hover {
  background: var(--amber-500);
}

.btn-cookie-decline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--slate-300);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-cookie-decline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .story-grid, .product-grid, .order-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero-title { font-size: 2.3rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: var(--white);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
  }
  .nav-menu.open { left: 0; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 1.95rem; }
  .section-title { font-size: 1.8rem; }
  .story-spotlight { padding: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .quiz-wrapper { padding: 25px 20px; }
  .editorial-article { padding: 30px 20px; }
}
