/* ============================================================
   FITOBOX.COM — shared stylesheet
   Style: matches fitodepurazione.it — updated 2026
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde-scuro:  #1a3a2a;
  --verde-medio:  #2d6a45;
  --verde-chiaro: #e8f0eb;
  --verde-bordo:  #c5dcc9;
  --blu-testo:    #0d2087;
  --rosso:        #cc2222;
  --grigio-testo: #3c3434;
  --grigio-muted: #5f5e5a;
  --bianco:       #ffffff;
  --font-main:    'Georgia', 'Book Antiqua', serif;
  --font-ui:      system-ui, -apple-system, sans-serif;
  --radius:       8px;
  --radius-lg:    12px;
  --max:          1100px;
  /* legacy aliases kept for backward compatibility */
  --green:        #2d6a45;
  --green-dark:   #1a3a2a;
  --green-light:  #e8f0eb;
  --text:         #3c3434;
  --text-light:   #5f5e5a;
  --white:        #ffffff;
  --border:       #c5dcc9;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--grigio-testo);
  background: #f7f6f0;
  line-height: 1.7;
}
a { color: var(--verde-medio); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -40px; left: 1rem;
  background: var(--verde-scuro); color: #fff;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 14px;
  z-index: 1000; transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* ── HEADER ── */
.site-header {
  background: var(--verde-scuro);
  border-bottom: 3px solid var(--verde-medio);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 1rem 1.5rem 1.2rem 0.6rem;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.logo-area {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.logo-area:hover { text-decoration: none; }
.logo-icon {
  width: 150px; height: 70px; background: transparent;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-testo strong {
  display: block; font-family: var(--font-ui);
  font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 0.04em;
}
.logo-testo span {
  font-family: var(--font-ui); font-size: 11px;
  color: #8bbfa0; letter-spacing: 0.06em;
}
.header-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-top { font-family: var(--font-ui); font-size: 13px; color: #8bbfa0; }
.header-top a { color: #8bbfa0; }

/* ── LANGUAGE BAR ── */
.lang-bar, .lang-flags { display: flex; gap: 8px; align-items: center; }
.lang-bar a, .lang-flags a {
  font-family: var(--font-ui); font-size: 12px;
  padding: 3px 8px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px; color: #8bbfa0;
}
.lang-bar a.active, .lang-bar a.attiva,
.lang-flags a.active, .lang-flags a.attiva {
  background: rgba(255,255,255,0.15); color: #fff;
}

/* ── NAVIGATION ── */
.site-nav { background: #f7f6f2; border-bottom: 1px solid #d3d1c7; }
.main-nav, .nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center;
}
.main-nav a, .nav-inner a {
  display: flex; align-items: center; gap: 5px;
  padding: 0.7rem 1rem;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--grigio-testo);
  border-right: 1px solid #d3d1c7;
  white-space: nowrap; transition: background 0.15s;
}
.main-nav a:hover, .nav-inner a:hover {
  background: var(--verde-chiaro); color: var(--verde-scuro); text-decoration: none;
}
.main-nav a.active, .nav-inner a.active {
  background: var(--verde-chiaro); color: var(--verde-scuro); font-weight: 600;
}

/* ── FITOBOX® BRAND ── */
.fitobox-brand {
  font-family: 'Forte', 'VAG Rounded', cursive;
  color: #1a6b12; font-size: 1.1em;
  line-height: 1; font-weight: normal;
}
.fitobox-brand sup {
  font-size: 0.38em; font-family: Arial, sans-serif; vertical-align: super;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: var(--max); margin: 0 auto; padding: 8px 1.5rem;
  font-family: var(--font-ui); font-size: 13px; color: var(--grigio-muted);
}
.breadcrumb a { color: var(--verde-medio); }
.breadcrumb span { margin: 0 6px; }

/* ── PAGE WRAP ── */
.page-wrap {
  max-width: var(--max); margin: 0 auto; padding: 2rem 1.5rem 3rem;
}
.page-wrap h1 {
  font-family: var(--font-main); font-size: clamp(22px,3vw,32px);
  color: var(--verde-scuro); margin-bottom: 0.5rem; line-height: 1.25;
}
.page-wrap h2 {
  font-family: var(--font-main); font-size: clamp(18px,2.5vw,24px);
  color: var(--verde-scuro); margin: 2rem 0 0.75rem;
}
.page-wrap p { margin-bottom: 1rem; }
.lead {
  font-family: var(--font-ui); font-size: 17px;
  color: var(--grigio-muted); margin-bottom: 1.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.65rem 1.4rem; border-radius: var(--radius);
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.btn-rosso   { background: var(--rosso); color: #fff; }
.btn-verde   { background: var(--verde-medio); color: #fff; }
.btn-scuro   { background: var(--verde-scuro); color: #fff; }
.btn-crema   { background: #e8d898; color: var(--verde-scuro); border: 1px solid #c8b870; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
/* legacy */
.btn-primary   { background: var(--rosso); color: #fff; }
.btn-secondary { background: var(--verde-medio); color: #fff; }

/* ── HERO ── */
.hero { background: var(--verde-scuro); padding: 1.5rem; }
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.hero-titolo {
  font-family: var(--font-ui); font-size: clamp(12px,1.4vw,14px);
  font-weight: 600; color: #8bbfa0;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-main); font-size: clamp(24px,3.5vw,38px);
  font-weight: 700; color: #f5d76e; line-height: 1.25; margin-bottom: 0.5rem;
}
.hero-sub { font-family: var(--font-ui); font-size: 16px; color: #a8dbb8; margin-bottom: 0.4rem; }
.hero-sub2 { font-family: var(--font-ui); font-size: 14px; color: #6a9a7a; margin-bottom: 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.75rem; }
.badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px; padding: 4px 10px;
  font-family: var(--font-ui); font-size: 12px; color: #c8ebd6;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg); padding: 1.1rem 1.4rem;
  text-align: center; min-width: 155px;
}
.stat-num { font-family: var(--font-ui); font-size: 30px; font-weight: 600; color: #fff; }
.stat-lbl { font-family: var(--font-ui); font-size: 12px; color: #8bbfa0; margin-top: 3px; }

/* ── SECTION HEADERS ── */
.section-label {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  color: var(--verde-medio); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem;
}
.section-title { font-family: var(--font-main); font-size: 24px; color: var(--verde-scuro); margin-bottom: 0.4rem; }
.section-sub { font-family: var(--font-ui); font-size: 15px; color: var(--grigio-muted); margin-bottom: 1.75rem; }

/* ── CARDS ── */
.cards, .card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 1.5rem;
}
.card {
  background: #f0e0c0; border: 2.5px solid #c8b89a;
  border-radius: var(--radius-lg); padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { border-color: #a8946e; box-shadow: 0 4px 18px rgba(80,60,30,0.13); }
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card h3 {
  font-family: var(--font-main); font-size: 17px; font-weight: 700;
  color: var(--blu-testo); margin-bottom: 6px;
}
.card p { font-family: var(--font-ui); font-size: 13px; color: var(--grigio-muted); line-height: 1.5; }
.card ul { font-family: var(--font-ui); font-size: 13px; color: var(--grigio-muted); }
.card-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  font-family: var(--font-ui); font-size: 13px; color: var(--verde-medio); font-weight: 500;
}

/* ── GALLERY ── */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px; margin: 1.5rem 0;
}
.gallery img, .gallery figure img {
  width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius);
}
.gallery figure { border-radius: var(--radius); overflow: hidden; }
.gallery figcaption { font-family: var(--font-ui); font-size: 12px; color: var(--grigio-muted); padding: 4px 2px; }

/* ── GALLERY CARDS ── */
.gallery-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin: 1.5rem 0;
}
.gallery-card {
  background: var(--bianco); border: 1px solid var(--verde-bordo);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s;
}
.gallery-card:hover { box-shadow: 0 4px 18px rgba(30,80,40,0.12); }
.gallery-card img { width: 100%; height: 160px; object-fit: cover; }
.gallery-card-body { padding: 14px; }
.gallery-card-body h3 { font-family: var(--font-main); font-size: 16px; color: var(--verde-scuro); margin-bottom: 6px; }
.gallery-card-body p { font-family: var(--font-ui); font-size: 13px; color: var(--grigio-muted); line-height: 1.5; }

/* ── GALLERY SECTION (dark bg) ── */
.gallery-section { background: var(--verde-scuro); padding: 2.5rem 1.5rem; }
.gallery-inner { max-width: var(--max); margin: 0 auto; }
.gallery-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.gallery-header h2 { font-family: var(--font-main); font-size: 20px; color: #fff; }
.gallery-header p { font-family: var(--font-ui); font-size: 14px; color: #8bbfa0; }
.gallery-brochure {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.gallery-brochure p { font-family: var(--font-ui); font-size: 14px; color: #a8dbb8; }

/* ── CTA ── */
.cta-box, .cta-bar {
  background: var(--verde-chiaro); border: 1px solid var(--verde-bordo);
  border-radius: var(--radius-lg); padding: 1.75rem 1.5rem;
  margin: 2rem 0; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cta-box p { font-family: var(--font-ui); font-size: 14px; color: var(--grigio-muted); margin-bottom: 0; }
.cta-testo strong { font-family: var(--font-ui); font-size: 16px; color: var(--verde-scuro); display: block; margin-bottom: 4px; }
.cta-testo p { font-family: var(--font-ui); font-size: 14px; color: var(--grigio-muted); }
.cta-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── CLAIM / ESG ── */
.claim-section { background: var(--bianco); padding: 3rem 1.5rem; border-bottom: 1px solid var(--verde-bordo); }
.claim-inner { max-width: var(--max); margin: 0 auto; }
.claim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.claim-card { border-left: 3px solid var(--verde-medio); padding-left: 1rem; }
.claim-card p { font-family: var(--font-main); font-size: 17px; font-style: italic; color: var(--verde-scuro); line-height: 1.5; }
.esg-box { background: #fff8f8; border: 1px solid #f0c5c5; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-top: 1.5rem; }
.esg-box p { font-family: var(--font-ui); font-size: 14px; color: var(--rosso); font-weight: 500; line-height: 1.6; text-align: center; }

/* ── STEPS ── */
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: start;
  background: var(--bianco); border: 1px solid var(--verde-bordo);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--verde-scuro); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.step h3 { font-family: var(--font-main); color: var(--verde-scuro); margin-bottom: 4px; }
.step p { font-family: var(--font-ui); font-size: 14px; color: var(--grigio-muted); margin-bottom: 0; }
.step img { grid-column: 1 / -1; border-radius: var(--radius); width: 100%; height: 220px; object-fit: cover; }

/* ── CHECKLIST ── */
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-ui); font-size: 14px; color: var(--grigio-testo);
  padding: 6px 0; border-bottom: 1px solid var(--verde-bordo);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✅'; flex-shrink: 0; margin-top: 1px; }

/* ── SCHEMA BLOCK ── */
.schema-block {
  background: var(--bianco); border: 1px solid var(--verde-bordo);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px;
}
.schema-block h3 { font-family: var(--font-main); color: var(--verde-scuro); margin-bottom: 10px; }
.schema-block img { max-width: 100%; border-radius: var(--radius); margin: 10px 0; }

/* ── STATS GRID ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin: 1.5rem 0;
}
.stats-grid .stat {
  background: var(--verde-scuro); color: #fff;
  border-radius: var(--radius-lg); padding: 1.25rem; text-align: center;
}
.stats-grid .stat-num {
  font-family: var(--font-ui); font-size: 28px; font-weight: 700;
  color: #f5d76e; display: block;
}
.stats-grid .stat-lbl { font-family: var(--font-ui); font-size: 12px; color: #8bbfa0; margin-top: 4px; }

/* ── TRUE / FALSE ── */
.tf-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius); margin-bottom: 10px; border-left: 4px solid transparent;
}
.tf-item.true  { background: #f0faf2; border-left-color: var(--verde-medio); }
.tf-item.false { background: #fff0f0; border-left-color: var(--rosso); }
.tf-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.tf-item p { font-family: var(--font-ui); font-size: 14px; color: var(--grigio-testo); margin-bottom: 0; }
.tf-item strong { display: block; margin-bottom: 4px; color: var(--grigio-testo); }

/* ── REFERENCE TABLE ── */
.ref-table { width: 100%; border-coll