/* ===========================
   KetoFlow — main.css
   Tema: organico, naturale, chiaro
   =========================== */

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

:root {
  /* ── Palette ── */
  --green-dark:   #2D5016;
  --green:        #4A7C2F;
  --green-light:  #E8F5E0;
  --green-mid:    #C8E6B0;
  --green-glow:   rgba(74,124,47,0.10);
  --orange:       #F5820A;
  --orange-dark:  #D96900;
  --orange-light: rgba(245,130,10,0.10);
  --red:          #C0392B;
  --blue:         #2563EB;

  /* ── Superfici ── */
  --bg:           #FFFFFF;
  --bg-card:      #FAFAF7;
  --bg-card-2:    #F2F6EC;
  --bg-section:   #F6FAF2;
  --border:       #DDE8D4;
  --border-2:     #C8D9BC;

  /* ── Testo ── */
  --text:         #1C2B12;
  --text-muted:   #4A5C3A;
  --text-dim:     #7A8C6A;

  /* ── Tipografia ── */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;

  /* ── Geometrie ── */
  --radius:       16px;
  --radius-lg:    24px;
  --radius-pill:  100px;

  /* ── Ombre ── */
  --shadow:       0 2px 12px rgba(45,80,22,0.08);
  --shadow-md:    0 4px 24px rgba(45,80,22,0.10);
  --shadow-lg:    0 12px 48px rgba(45,80,22,0.13);

  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

/* ─── Utility ─────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

/* ─── Logo immagine ───────────────────────────────────────── */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-img--footer { height: 46px; }
.logo-img--auth   { height: 52px; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

/* Primario — arancione */
.btn-primary {
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245,130,10,0.25);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,130,10,0.35);
}

/* Secondario — bordo verde scuro */
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}
.btn-outline:hover {
  background: var(--green-light);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--border-2);
  color: var(--text);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }

/* ─── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links > li > a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  font-weight: 500;
}
.nav-links > li > a:not(.btn):hover {
  color: var(--green-dark);
  background: var(--green-light);
}
.nav-toggle { display: none; }

/* ─── Navbar extra ────────────────────────────────────────── */
.nav-login-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color var(--transition);
}
.nav-login-link:hover { color: var(--green-dark); }

.nav-admin-hidden { display: none; }
.nav-admin-link { opacity: 0.6; font-size: 13px; }

.btn-primary-dark {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary-dark:hover { background: var(--green); transform: translateY(-1px); }

/* ─── Social dentro hero ──────────────────────────────────── */
.hero-social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 76px;
}
.social-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(245,130,10,0.20);
  transition: background var(--transition), transform var(--transition);
}
.social-btn:hover { background: var(--orange-dark); transform: scale(1.08); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 32px 0 48px;
  background: #fff;
}

@keyframes pulse {
  0%,100% { opacity: 1; scale: 1; }
  50%      { opacity: 0.4; scale: 1.4; }
}

/* Two-column hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  align-items: center;
}

/* Left column */
.hero-content { margin-top: -36px; }

.hero-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.hero-logo-block { flex-shrink: 0; }
.hero-brand-img  { height: 330px; width: auto; display: block; }
.hero-path-img   { max-width: 100%; height: auto; display: block; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--green-dark);
}
.hero-title-green  { color: var(--green-dark); font-style: normal; }
.hero-title-orange { color: var(--orange); font-style: normal; }

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px rgba(45,80,22,0.18);
}
.btn-hero-primary:hover {
  background: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45,80,22,0.28);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--orange);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.btn-hero-outline:hover { background: var(--orange-light); }

/* Right column */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  border-radius: 24px;
  animation: heroFloat 4s ease-in-out infinite;
  overflow: hidden;
  border: 2px solid var(--green-mid);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-2);
  aspect-ratio: 4/3;
}
.hero-photo-wrap.hero-photo-placeholder::after {
  content: '🥑 Foto pasto keto';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-dim);
}
.hero-food-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Macro float card */
.hero-macro-card {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  min-width: 170px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hmc-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.hmc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.hmc-row:last-child { margin-bottom: 0; }
.hmc-label { font-size: 0.75rem; color: var(--text-muted); }
.hmc-val   { font-size: 0.75rem; font-weight: 700; color: var(--text); }

/* Bottom badge */
.hero-food-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--green-mid);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-dark);
  box-shadow: var(--shadow-md);
  margin-top: 14px;
  align-self: flex-start;
}
.hero-food-dot {
  width: 9px; height: 9px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* ─── Section Header ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text);
}
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ─── Come funziona — 4 steps ─────────────────────────────── */
.how-section { padding: 48px 0; background: #fff; }

.how-header   { text-align: center; margin-bottom: 32px; }
.how-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--font-serif);
}
.how-logo  { height: 52px; width: auto; }
.how-sub   { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  margin-bottom: 56px;
}
.how-col { display: flex; flex-direction: column; gap: 0; }

.how-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.how-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.how-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #FFF4E0;
  border: 1.5px solid #F5C97A;
  color: var(--orange);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body);
  position: relative;
  z-index: 1;
}

.how-line {
  width: 2px;
  flex: 1;
  min-height: 80px;
  background: #F5C97A;
  margin: 4px 0;
}
.how-line--last { background: transparent; }

.how-step-body { padding-top: 6px; padding-bottom: 20px; }
.how-step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
  font-family: var(--font-body);
}
.how-step-body p {
  font-size: 0.875rem;
  color: var(--green);
  line-height: 1.7;
}

.how-cta { text-align: center; margin-top: -48px; }
.btn-how-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 60px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245,130,10,0.30);
  transition: background var(--transition), transform var(--transition);
  outline: 1px solid var(--green);
  outline-offset: 2px;
}
.btn-how-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; gap: 0; }
  .how-title { flex-direction: column; gap: 8px; }
}

/* ─── Percorsi — sezione landing ─────────────────────────── */
.percorsi-section { padding: 80px 0; background: #e6f1ec; }

.percorsi-header  { text-align: center; margin-bottom: 48px; }

.percorsi-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 18px;
  font-family: var(--font-serif);
  line-height: 1.2;
}
.percorsi-title span { color: var(--orange); font-style: italic; }

.percorsi-sub {
  font-size: 1rem;
  color: var(--green-dark);
  line-height: 1.65;
  margin-bottom: 20px;
}

.percorsi-alert {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid var(--orange);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.875rem;
  color: var(--text);
  background: #fff;
  max-width: 760px;
  text-align: left;
  line-height: 1.5;
}
.percorsi-alert strong { color: var(--orange-dark); }

.percorsi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pc-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--green);
  box-shadow: 0 4px 20px rgba(45,80,22,0.12);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(45,80,22,0.12), 0 0 40px 8px rgba(74,124,47,0.22);
}

.pc-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.pc-ph-icon {
  font-size: 28px;
  color: #fff;
  line-height: 1;
}
.pc-icon--purple   { background: #C8A951; border: 1px solid var(--green); }
.pc-icon--darkgreen{ background: #C026D3; border: 1px solid var(--green); }
.pc-icon--orange   { background: #C0392B; border: 1px solid var(--green); }
.pc-icon--magenta  { background: #4caf50; border: 1px solid var(--green); }
.pc-icon--teal     { background: #1d6780; border: 1px solid var(--green); }

.pc-body { flex: 1; margin-bottom: 20px; }

.pc-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pc-premium {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 4px;
  font-style: normal;
  font-family: var(--font-body);
}

.pc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.pc-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }

.pc-btn-outline {
  display: block;
  text-align: center;
  padding: 9px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--green);
  background: #EEF7E6;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pc-btn-outline:hover { background: var(--green); color: #fff; border-color: var(--green); }

.pc-btn-solid {
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 20px;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.pc-btn-solid:hover { background: var(--green); }
.pc-btn-solid--premium { background: var(--orange); }
.pc-btn-solid--premium:hover { background: var(--orange-dark); }

@media (max-width: 960px) {
  .percorsi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .percorsi-grid { grid-template-columns: 1fr; }
  .pc-card { padding: 20px 16px; }
}


/* ─── Recensioni ──────────────────────────────────────────── */
.reviews-section { padding: 48px 0 40px; background: #e6f1ec; }

.reviews-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.reviews-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  white-space: nowrap;
  color: var(--green-dark);
  margin-bottom: 52px;
  font-family: var(--font-serif);
  line-height: 1.2;
}
.reviews-title-accent { color: var(--orange); font-style: italic; }

.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-bottom: 40px;
}

/* Featured card */
.review-featured {
  background: #fff;
  border: 1px solid #F5820A;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(74,124,47,0.15), 0 0 0 0 rgba(74,124,47,0);
  padding: 40px 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.review-quote-mark {
  font-size: 7rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.18;
  font-family: Georgia, serif;
  position: absolute;
  top: 12px; left: 32px;
  pointer-events: none;
}
.review-featured-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.85;
  font-style: italic;
  margin-top: 52px;
  flex: 1;
}
.review-featured-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.review-stars-lg {
  margin-left: auto;
  color: var(--orange);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* Stack di mini card */
.reviews-stack { display: flex; flex-direction: column; gap: 20px; }

.review-mini {
  background: #fff;
  border: 1px solid #F5820A;
  border-radius: var(--radius);
  padding: 24px;
  flex: 1;
  box-shadow: 0 4px 24px rgba(74,124,47,0.15);
  transition: box-shadow var(--transition), transform var(--transition);
}
.review-mini:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.review-mini-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.review-stars-sm {
  margin-left: auto;
  color: var(--orange);
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.review-mini-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* Avatar */
.review-avatar-lg {
  width: 52px; height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.review-avatar-sm {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
}
.rv-1 { background-image: url('https://i.pravatar.cc/100?img=47'); background-size: cover; background-position: center; }
.rv-2 { background-image: url('https://i.pravatar.cc/100?img=11'); background-size: cover; background-position: center; }
.rv-3 { background-image: url('https://i.pravatar.cc/100?img=32'); background-size: cover; background-position: center; }

.review-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.review-role { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

/* Trust bar */
.reviews-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 24px 40px;
  box-shadow: var(--shadow);
}
.trust-stat { text-align: center; flex: 1; }
.trust-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  font-family: var(--font-serif);
}
.trust-lbl { display: block; font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; font-weight: 500; }
.trust-sep { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

@media (max-width: 900px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .reviews-stack  { flex-direction: row; }
}
@media (max-width: 640px) {
  .reviews-stack  { flex-direction: column; }
  .reviews-trust  { flex-wrap: wrap; gap: 20px; padding: 20px; }
  .trust-sep      { display: none; }
}

/* ─── CTA ─────────────────────────────────────────────────── */
.cta-section { padding: 72px 0; background: var(--bg-section); }
.cta-orange { color: #F5820A; }
.cta-card--in-reviews { margin-top: 32px; margin-bottom: 48px; }
.cta-card {
  background: linear-gradient(135deg, #3a7d44 0%, #c8dfc8 100%);
  border-radius: 24px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  box-shadow: 0 8px 40px rgba(45,164,78,0.25);
}
.cta-content { display: flex; flex-direction: column; align-items: flex-start; }
.cta-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-content > p {
  color: rgba(255,255,255,0.82);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
}
.btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(245,130,10,0.45);
}
.btn-cta-main:hover {
  background: #e07800;
  box-shadow: 0 6px 28px rgba(245,130,10,0.6);
}
.cta-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cta-logo-img { width: 480px; height: auto; object-fit: contain; }
.cta-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}
.cta-logo-flow { color: var(--orange); }

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: #fff;
  border-top: 1px solid #F5820A;
  box-shadow: 0 -8px 32px rgba(74,124,47,0.18);
  padding: 28px 0 16px;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--green-dark);
  flex: 1;
  min-width: 180px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.footer-logo-img { height: 48px; width: auto; object-fit: contain; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--green-dark);
  line-height: 1.7;
  max-width: 300px;
}
.footer-social-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-dark);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.footer-social a {
  font-size: 1.3rem;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity var(--transition);
}
.footer-social a:hover { opacity: 1; }

.footer-links h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.footer-links ul { list-style: none; }
.footer-links li + li { margin-top: 10px; }
.footer-links a {
  color: var(--green-dark);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(45,80,22,0.15);
  border-top: 1px solid rgba(45,80,22,0.15);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(45,80,22,0.5); }
.footer-legal-link { color: inherit; text-decoration: none; }
.footer-legal-link:hover { text-decoration: underline; }

/* ─── Preview Card (rimossa dalla landing, mantenuta per compatibilità) ─── */
.preview-section { padding: 0 0 80px; }
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.preview-tag {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--green-mid);
}
.preview-date { font-size: 0.8rem; color: var(--text-dim); }
.macros-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.macro-item { text-align: center; }
.macro-ring { position: relative; width: 60px; height: 60px; margin: 0 auto 8px; }
.macro-ring svg { width: 100%; height: 100%; }
.macro-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--text);
}
.macro-name { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.macro-val  { display: block; font-size: 0.7rem;  color: var(--text-dim); }
.kcal-display { margin-bottom: 8px; }
.kcal-val   { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.kcal-max   { font-size: 0.7rem; color: var(--text-dim); display: block; }
.kcal-bar   { height: 7px; background: var(--border); border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.kcal-fill  { height: 100%; background: var(--green); border-radius: 4px; }
.kcal-fill--preview { width: 79%; }
.ketosis-status {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-light); border: 1px solid var(--green-mid);
  padding: 10px 16px; border-radius: 10px;
  font-size: 0.85rem; color: var(--green-dark); font-weight: 500;
}
.ketosis-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

/* ─── Supabase dev badge ───────────────────────────────────── */
#supabaseStatus {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: opacity 0.3s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
#sbDot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-trust   { justify-content: center; }
  .hero-visual  { justify-content: center; }
  .hero-float-badge { left: 50%; transform: translateX(-50%); bottom: -20px; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; gap: 8px; }
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .hero { padding: 96px 0 60px; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .step-connector { display: none; }
  .cta-card { grid-template-columns: 1fr; padding: 40px 24px; text-align: center; }
  .cta-content { align-items: center; }
  .cta-logo-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand p { max-width: 100%; }
}

@media (max-width: 580px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { justify-content: center; }
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .trust-divider { display: none; }
}
