:root {
  --paper:    oklch(0.97 0.012 88);
  --paper-2:  oklch(0.94 0.015 88);
  --card:     oklch(0.99 0.005 88);
  --ink:      oklch(0.22 0.02 88);
  --ink-2:    oklch(0.36 0.018 88);
  --ink-3:    oklch(0.52 0.014 88);
  --ink-4:    oklch(0.72 0.012 88);
  --line:     oklch(0.88 0.018 88);
  --line-2:   oklch(0.78 0.022 88);
  --leaf:     oklch(0.46 0.078 138);
  --leaf-2:   oklch(0.36 0.06 138);
  --leaf-3:   oklch(0.92 0.04 138);
  --bark:     oklch(0.30 0.04 60);
  --bloom:    oklch(0.62 0.10 30);
  --warn:     oklch(0.55 0.13 35);
  --sans: 'Outfit', -apple-system, system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--leaf-3); color: var(--leaf-2); }

/* ============================================
   Decorative grain (fixed, non-scrolling)
   ============================================ */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* ============================================
   Header
   ============================================ */
.site {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.97 0.012 88 / 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site .inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 28px;
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-feature-settings: "ss01";
}
.brand-name span { color: var(--leaf); font-style: italic; }
nav.menu {
  display: flex; gap: 4px;
  font-family: var(--sans);
  font-size: 14.5px;
}
nav.menu a {
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: color .25s var(--ease), background .25s var(--ease);
}
nav.menu a:hover { color: var(--ink); background: var(--paper-2); }
.search-shortcut {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 7px 10px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color .25s var(--ease);
}
.search-shortcut:hover { border-color: var(--line-2); color: var(--ink-2); }
.search-shortcut kbd {
  font-family: var(--mono); font-size: 11px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink-2);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  font-family: var(--sans);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px oklch(0.22 0.02 88 / 0.35); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ============================================
   Hero (asymmetric split, DV 8)
   ============================================ */
.hero {
  position: relative;
  padding: 88px 28px 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 12%; right: -10%;
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--leaf-3) 0%, transparent 60%);
  opacity: 0.55;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 940px) {
  .hero { padding: 56px 20px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--leaf-2);
  background: var(--leaf-3);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--leaf);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

h1.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 6.5vw, 84px);
  letter-spacing: -0.038em;
  line-height: 0.96;
  color: var(--ink);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1.display em {
  font-style: italic;
  color: var(--leaf-2);
  font-feature-settings: "ss01";
}
h1.display .hl {
  background: var(--leaf-3);
  color: var(--leaf-2);
  padding: 0 0.16em 0.04em;
  border-radius: 0.12em;
  display: inline-block;
  line-height: 1;
  transform: rotate(-1.2deg);
  font-style: italic;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-trust {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-trust strong { color: var(--ink-2); font-weight: 600; }
.hero-trust .check {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--leaf);
}

/* hero right: asymmetric herbarium card */
.herbarium {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 1.15fr;
  gap: 14px;
  aspect-ratio: 1.05 / 1;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.herb-cell {
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  border-radius: 18px;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), border-color .25s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.herb-cell::before {
  content: ""; position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--leaf-3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.herb-cell:hover { border-color: var(--leaf); transform: translateY(-2px); }
.herb-cell:hover::before { opacity: 0.7; }
.herb-cell .name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  position: relative;
}
.herb-cell .latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 4px;
  position: relative;
}
.herb-cell .uses {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  margin-top: 14px;
  position: relative;
}
.herb-cell.featured {
  grid-column: 1; grid-row: 1 / span 2;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.herb-cell.featured .name, .herb-cell.featured .latin { color: var(--paper); }
.herb-cell.featured .latin { opacity: 0.65; }
.herb-cell.featured .uses { color: var(--leaf-3); }
.herb-cell.featured::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: radial-gradient(circle at 80% 110%, oklch(0.36 0.06 138) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0.7;
}
.herb-cell.compact {
  padding: 16px 18px;
}
.herb-cell.compact .name { font-size: 17px; }
.herb-cell.compact .uses { margin-top: 8px; font-size: 9.5px; }

/* background image inside hero herb cells */
.herb-cell .herb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.herb-cell.featured .herb-bg {
  filter: brightness(0.55) saturate(0.85) contrast(1.05);
}
.herb-cell.compact .herb-bg {
  filter: brightness(0.92) saturate(0.95);
  opacity: 0.55;
}
.herb-cell:hover .herb-bg {
  transform: scale(1.06);
}
.herb-cell.featured:hover .herb-bg {
  filter: brightness(0.62) saturate(0.9) contrast(1.05);
}
.herb-cell.compact:hover .herb-bg {
  filter: brightness(0.96) saturate(1);
  opacity: 0.7;
}
/* keep text above image; ensure it has a backdrop on light cards */
.herb-cell > div { position: relative; z-index: 1; }
.herb-cell.compact .name,
.herb-cell.compact .latin,
.herb-cell.compact .uses {
  text-shadow: 0 1px 0 var(--paper);
}

/* hero stats inline */
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stat .num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: "opsz" 80;
}
.hero-stat .lbl {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin-top: 6px;
}

/* ============================================
   Marquee partners (kinetic, MI 6)
   ============================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--paper-2);
}
.marquee-track {
  display: flex; gap: 64px;
  align-items: center;
  animation: scroll 38s linear infinite;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink-3);
}
.marquee-track .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--leaf); flex-shrink: 0;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Section base
   ============================================ */
section.bay {
  max-width: 1280px; margin: 0 auto;
  padding: 112px 28px;
  position: relative;
}
@media (max-width: 940px) { section.bay { padding: 72px 20px; } }

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  margin-bottom: 56px;
  align-items: end;
}
@media (max-width: 940px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.028em;
  line-height: 1.02;
  color: var(--ink);
}
.section-head h2 em { font-style: italic; color: var(--leaf-2); }
.section-head p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.55;
}
.section-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--leaf-2);
  margin-bottom: 16px;
}

/* ============================================
   Bento grid - "Cosa trovi"
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
@media (max-width: 940px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .tile { aspect-ratio: 1.3 / 1; grid-column: 1 !important; grid-row: auto !important; }
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .25s var(--ease), box-shadow .4s var(--ease);
  text-decoration: none; color: inherit;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 24px 50px -28px oklch(0.22 0.02 88 / 0.30);
}
.tile h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--ink);
}
.tile p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 8px;
  max-width: 36ch;
}
.tile .tile-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
}
.tile-arrow {
  position: absolute; top: 26px; right: 28px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper-2);
  display: grid; place-items: center;
  transition: transform .35s var(--ease), background .25s var(--ease);
}
.tile:hover .tile-arrow { transform: translate(2px, -2px); background: var(--leaf-3); }
.tile-arrow svg { width: 14px; height: 14px; color: var(--ink-2); }

/* tile sizes (asymmetric DV 8) */
.tile.t-erbe   { grid-column: span 4; grid-row: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile.t-erbe h3, .tile.t-erbe .tile-meta { color: var(--paper); }
.tile.t-erbe .tile-meta { color: var(--leaf-3); }
.tile.t-erbe p { color: oklch(0.85 0.02 88); }
.tile.t-erbe .tile-arrow { background: oklch(0.30 0.02 88); }
.tile.t-erbe .tile-arrow svg { color: var(--paper); }
.tile.t-disturbi  { grid-column: span 2; grid-row: span 1; }
.tile.t-tisane    { grid-column: span 2; grid-row: span 1; }
.tile.t-oli       { grid-column: span 3; grid-row: span 1; background: var(--leaf-3); border-color: oklch(0.85 0.04 138); }
.tile.t-fonti     { grid-column: span 2; grid-row: span 1; background: var(--leaf-3); border-color: oklch(0.85 0.04 138); }

.tile-illu {
  position: absolute; right: -18px; bottom: -18px;
  width: 220px; height: 220px;
  opacity: 0.10;
  pointer-events: none;
}
.tile.t-erbe .tile-illu { opacity: 0.18; }

/* ============================================
   Featured plants - magazine-style mosaic
   ============================================ */
.plants {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 940px) {
  .plants { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) { .plants { grid-template-columns: 1fr; } }

.plant {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .25s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.plant:hover {
  border-color: var(--leaf);
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -28px oklch(0.36 0.06 138 / 0.35);
}
.plant.feat {
  grid-row: span 2;
  background: linear-gradient(140deg, var(--leaf-3) 0%, var(--card) 100%);
  border-color: oklch(0.85 0.04 138);
}
.plant .leaf-svg {
  position: absolute; right: -28px; top: -18px;
  width: 180px; height: 180px;
  opacity: 0.16; color: var(--leaf);
  transform: rotate(18deg);
  transition: transform .8s var(--ease);
}
.plant:hover .leaf-svg { transform: rotate(28deg) scale(1.05); }
.plant.feat .leaf-svg { opacity: 0.28; }
.plant-photo {
  position: relative;
  margin: -26px -24px 16px;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}
.plant.feat .plant-photo { aspect-ratio: 1.6 / 1; margin: -26px -24px 22px; }
.plant-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease);
}
.plant:hover .plant-photo img { transform: scale(1.05); }
a.plant { text-decoration: none; color: inherit; cursor: pointer; }
.plant-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.plant h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.024em;
  line-height: 1;
  color: var(--ink);
  position: relative;
}
.plant.feat h3 { font-size: 44px; line-height: 0.96; }
.plant .latin {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 6px;
  position: relative;
}
.plant .body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 16px;
  position: relative;
}
.plant.feat .body { font-size: 16px; max-width: 38ch; }
.plant .uses {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px;
  position: relative;
}
.use-pill {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--paper-2);
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 999px;
}
.plant.feat .use-pill { background: oklch(1 0 0 / 0.6); }
.plant-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============================================
   Disturbi - searchable index
   ============================================ */
.disturbi-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 940px) {
  .disturbi-wrap { grid-template-columns: 1fr; gap: 32px; }
}
.cat-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cat {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cat:hover { transform: translateY(-1px); border-color: var(--leaf); background: var(--leaf-3); }
.cat:active { transform: translateY(0) scale(0.97); }
.cat .count {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-4);
}

.featured-remedy {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.featured-remedy::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, oklch(0.46 0.078 138 / 0.7) 0%, transparent 60%);
  pointer-events: none;
}
.featured-remedy .lab {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--leaf-3); margin-bottom: 20px;
  position: relative;
}
.featured-remedy h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.024em;
  line-height: 1.02;
  color: var(--paper);
  position: relative;
}
.featured-remedy h3 em { font-style: italic; }
.featured-remedy p {
  font-size: 15px;
  color: oklch(0.85 0.015 88);
  margin-top: 16px;
  line-height: 1.6;
  position: relative;
}
.featured-remedy .recipe {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid oklch(1 0 0 / 0.12);
  position: relative;
}
.featured-remedy .recipe-title {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: oklch(1 0 0 / 0.5); margin-bottom: 12px;
}
.featured-remedy ol {
  list-style: none; counter-reset: step;
  display: grid; gap: 8px;
  font-size: 14px;
}
.featured-remedy ol li {
  counter-increment: step;
  display: grid; grid-template-columns: 24px 1fr; gap: 10px;
  color: oklch(0.92 0.012 88);
}
.featured-remedy ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px;
  color: var(--leaf-3);
  padding-top: 2px;
}

/* ============================================
   Approccio scientifico (zig-zag)
   ============================================ */
.approccio {
  background: var(--paper-2);
  margin: 0 -28px;
  padding: 112px 28px;
}
@media (max-width: 940px) { .approccio { margin: 0 -20px; padding: 72px 20px; } }
.zig {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 940px) { .zig { grid-template-columns: 1fr; gap: 40px; } }
.zig h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.zig h2 em { font-style: italic; color: var(--leaf-2); }
.zig p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.62;
  margin-bottom: 16px;
  max-width: 56ch;
}
.zig p strong { color: var(--ink); font-weight: 600; }
.sources {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.source {
  background: var(--card);
  padding: 18px 20px;
}
.source-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.source-desc {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 4px;
}

/* visual right (zig) */
.zig-vis {
  position: relative;
  aspect-ratio: 0.95 / 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 12px;
}
.vis-cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.vis-cell.vc-1 { grid-row: span 2; background: var(--ink); color: oklch(0.92 0.012 88); border-color: var(--ink); }
.vis-cell.vc-1 .big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-transform: none;
  font-feature-settings: "ss01";
  font-variation-settings: "opsz" 144;
}
.vis-cell .label { color: var(--leaf-3); }
.vis-cell.vc-2 { background: var(--leaf-3); color: var(--leaf-2); border-color: oklch(0.85 0.04 138); }
.vis-cell .mid {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-transform: none;
  line-height: 1;
}
.vis-cell.vc-3 { grid-column: span 2; }

/* ============================================
   Disclaimer banner (warm, important)
   ============================================ */
.disclaimer {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px 0;
  margin-bottom: -1px;
}
.disclaimer-inner {
  background: oklch(0.98 0.025 60);
  border: 1px solid oklch(0.88 0.04 60);
  border-radius: 18px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.disclaimer-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: oklch(0.95 0.06 60);
  color: var(--bark);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.disclaimer p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.disclaimer p strong { color: var(--bark); font-weight: 600; }

/* ============================================
   Footer
   ============================================ */
footer.site {
  margin-top: 32px;
  padding: 64px 28px 36px;
  background: var(--ink);
  color: oklch(0.82 0.014 88);
}
footer.site .inner {
  max-width: 1280px; margin: 0 auto;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid oklch(1 0 0 / 0.10);
}
@media (max-width: 940px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-col-brand p { max-width: 36ch; }
.foot-brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--paper);
  line-height: 1.1;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 80;
}
.foot-brand em { color: var(--leaf-3); font-style: italic; }
footer.site p {
  font-size: 14px;
  color: oklch(0.72 0.016 88);
  line-height: 1.6;
  max-width: 38ch;
}
footer.site h5 {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--leaf-3);
  margin-bottom: 16px;
}
footer.site ul { list-style: none; }
footer.site ul li { padding: 4px 0; }
footer.site ul a {
  color: oklch(0.82 0.014 88);
  font-size: 14px;
  transition: color .2s var(--ease);
}
footer.site ul a:hover { color: var(--paper); }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding-top: 24px;
  font-family: var(--mono); font-size: 11px;
  color: oklch(0.55 0.015 88);
  flex-wrap: wrap; gap: 16px;
  letter-spacing: 0.04em;
}
.foot-bot > span { white-space: normal; flex: 1 1 auto; min-width: 0; }
.foot-bot .foot-mind { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 700px) {
  .foot-bot { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Reveal on scroll (MI 6)
   ============================================ */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: translateY(0); }

/* ============================================
   Mobile header collapse
   ============================================ */
@media (max-width: 780px) {
  .site .inner { grid-template-columns: auto auto; gap: 12px; padding: 12px 18px; }
  nav.menu, .search-shortcut { display: none; }
}
/* ============================================
   PAGES: erbe/<slug>.html · disturbi/<slug>.html · archives
   ============================================ */
.crumb {
  max-width: 1180px; margin: 0 auto; padding: 24px 28px 0;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.crumb a { color: var(--ink-2); transition: color .2s var(--ease); }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb span { color: var(--ink); }

.plant-page, .archive-page {
  max-width: 1180px; margin: 0 auto;
  padding: 28px 28px 80px;
}
@media (max-width: 940px) { .plant-page, .archive-page { padding: 18px 18px 60px; } }

/* plant hero */
.plant-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  margin: 32px 0 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 940px) {
  .plant-hero { grid-template-columns: 1fr; gap: 28px; }
}
.kind-pill {
  display: inline-block;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--leaf-3);
  color: var(--leaf-2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.plant-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
  font-variation-settings: "opsz" 144;
}
.plant-hero .latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-3);
  letter-spacing: -0.018em;
  margin-bottom: 22px;
}
.meta-line {
  display: flex; flex-wrap: wrap; gap: 18px 24px;
  font-size: 14px;
  color: var(--ink-2);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.meta-line strong { color: var(--ink-3); font-weight: 500; }
.cats-line {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.cat-pill {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12.5px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.cat-pill:hover { border-color: var(--leaf); color: var(--leaf-2); background: var(--leaf-3); }
.hero-meta {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 24px;
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.m-pill {
  background: var(--ink); color: var(--paper);
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: 0.06em;
}

.plant-hero-img {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4/5;
  box-shadow: 0 24px 60px -32px oklch(0.36 0.06 138 / 0.45);
}
.plant-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--leaf-3), var(--paper-2));
}

.plant-section { margin: 56px 0; }
.plant-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.022em;
  margin-bottom: 18px;
  color: var(--ink);
}
.plant-section p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
}
.ema-block {
  background: var(--paper-2);
  border-left: 3px solid var(--leaf);
  padding: 22px 24px;
  border-radius: 0 12px 12px 0;
  margin: 12px 0;
}
.ema-block.warn {
  background: oklch(0.97 0.025 60);
  border-left-color: var(--bark);
}
.ema-tag {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--leaf-2);
  margin-bottom: 10px;
}
.ema-block.warn .ema-tag { color: var(--bark); }
.qualif {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 14px;
  font-style: italic;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 700px) { .sources-grid { grid-template-columns: 1fr; } }
.src-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 14px;
  transition: border-color .25s var(--ease), transform .3s var(--ease);
}
.src-card:hover { border-color: var(--leaf); transform: translateY(-2px); }
.src-name {
  font-family: var(--serif); font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.014em;
  margin-bottom: 4px;
}
.src-desc {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.related-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 700px) { .related-row { grid-template-columns: 1fr 1fr; } }
.rel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .25s var(--ease);
}
.rel:hover { transform: translateY(-3px); border-color: var(--leaf); }
.rel img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; display: block; }
.rel-name {
  font-family: var(--serif); font-weight: 400;
  font-size: 15px;
  padding: 12px 14px 0;
  letter-spacing: -0.012em;
}
.rel-lat {
  font-family: var(--serif); font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
  padding: 0 14px 14px;
}

/* archive (lista erbe) */
.archive-head { margin: 28px 0 56px; max-width: 800px; }
.archive-head .kicker {
  font-family: var(--mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--leaf-2);
  margin-bottom: 12px; display: block;
}
.archive-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 6vw, 78px);
  letter-spacing: -0.034em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 18px;
  font-variation-settings: "opsz" 144;
}
.archive-head h1 em { font-style: italic; color: var(--leaf-2); }
.archive-head p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.55;
}
.erbe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.erba-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
}
.erba-card:hover {
  transform: translateY(-4px);
  border-color: var(--leaf);
  box-shadow: 0 24px 48px -28px oklch(0.36 0.06 138 / 0.30);
}
.erba-img {
  aspect-ratio: 1.15 / 1;
  background: var(--paper-2);
  overflow: hidden;
}
.erba-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.erba-card:hover .erba-img img { transform: scale(1.05); }
.erba-body { padding: 16px 18px 20px; }
.erba-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 4px;
}
.erba-body .latin {
  font-family: var(--serif); font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}
.erba-body .cats-mini {
  font-family: var(--mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.5;
}

/* disturbi list */
.disturbi-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.dist-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px 28px;
  transition: transform .3s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.dist-card:hover { transform: translateY(-3px); border-color: var(--leaf); }
.dist-count {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  background: var(--paper-2);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.dist-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 8px;
  padding-right: 80px;
}
.dist-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.warn-box {
  margin-top: 56px;
  background: oklch(0.97 0.025 60);
  border: 1px solid oklch(0.88 0.04 60);
  border-radius: 14px;
  padding: 18px 24px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.warn-box strong { color: var(--bark); }

/* footer mind.dev signature */
.foot-mind {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em;
  color: oklch(0.55 0.015 88);
}
.foot-mind a {
  color: var(--leaf-3);
  text-decoration: none;
  transition: color .2s var(--ease);
  font-weight: 600;
}
.foot-mind a:hover { color: var(--paper); }
.foot-mind em { font-style: italic; opacity: 0.7; }

nav.menu a.on { color: var(--ink); background: var(--leaf-3); }

/* ============================================
   PDF Parco Oglio Nord — extra plant sections
   ============================================ */
.ema-block.ema-block-etim { background: var(--paper-2); border-left-color: var(--bark); }
.ema-block.ema-block-etim .ema-tag { color: var(--bark); }

/* compact "tradizione" / habitat key-value list */
.trad-block { margin-top: 14px; }
.trad-block .ema-tag { font-size: 11px; color: var(--leaf); margin-bottom: 6px; }
.trad-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.trad-list li {
  display: block;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  line-height: 1.65;
}
.trad-list li:first-child { border-top: none; padding-top: 4px; }
.trad-k {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 500;
  margin-bottom: 6px;
}
.trad-v { color: var(--ink-2); display: block; }

/* etymology: short single line, no heavy box */
.etim-section .etim-line {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.etim-section .ema-tag {
  font-size: 11px;
  color: var(--bark);
  margin-top: 8px;
}

.qualif.qualif-info {
  font-size: 12.5px;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  margin-top: 6px;
  line-height: 1.55;
}
.qualif.qualif-info strong { color: var(--ink-2); font-weight: 500; }

.recipes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.recipes .recipe {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--leaf);
  padding: 18px 22px 20px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.recipes .recipe h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.25;
}
.recipes .recipe p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

/* allow strong/emphasis in indication block */
.ema-block p strong { color: var(--ink); font-weight: 600; }

/* ============================================
   Galleria piante (home)
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 780px)  { .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gal-cell {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper-2);
  transition: transform .35s var(--ease);
}
.gal-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease), filter .35s var(--ease);
  filter: saturate(0.92);
}
.gal-cell span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 12px 10px 12px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.012em;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
}
.gal-cell:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}
.gal-cell:hover {
  transform: translateY(-2px);
}
