@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

/* ─── TOKENS ─── */
:root {
  --forest:      #1a3327;
  --forest-mid:  #2d5c46;
  --moss:        #3d7a5a;
  --sage:        #6aab8a;
  --sage-light:  #b8deca;
  --sage-soft:   #e8f4ed;
  --amber:       #c07930;
  --amber-light: #e8a84a;
  --amber-soft:  #fdf3e3;
  --cream:       #f9f6f0;
  --cream-dark:  #f0ebe0;
  --parchment:   #e8e1d4;
  --ink:         #1a2118;
  --charcoal:    #2e3a2b;
  --slate:       #4a5c47;
  --steel:       #6b7d68;
  --stone:       #8e9e8b;
  --muted:       #b4c0b1;
  --canvas:      #ffffff;
  --hairline:    #ddd8ce;
  --hairline-soft: #e8e4dc;

  /* note colors */
  --nota-testa-bg: #F4E8C7; --nota-testa-c: #876513;
  --nota-cuore-bg: #EEDCE1; --nota-cuore-c: #8C4759;
  --nota-base-bg:  #E7DCC7; --nota-base-c:  #6C4C2A;
  --nota-def-bg:   var(--sage-soft); --nota-def-c: var(--forest-mid);

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --r-xs: 3px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 9999px;

  --sp-xs: 6px; --sp-sm: 12px; --sp-md: 16px; --sp-lg: 24px; --sp-xl: 32px;
  --sp-xxl: 48px; --sp-sec: 80px;

  --sh1: 0 1px 3px rgba(26,51,39,.06);
  --sh2: 0 4px 16px rgba(26,51,39,.10);
  --sh3: 0 12px 40px rgba(26,51,39,.14);

  --max-w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
.page-wrap { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font-family: inherit; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-xl); }

/* ─── NOTA BADGE ─── */
.nota-badge { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.nota-testa  { background: var(--nota-testa-bg); color: var(--nota-testa-c); }
.nota-cuore  { background: var(--nota-cuore-bg); color: var(--nota-cuore-c); }
.nota-base   { background: var(--nota-base-bg);  color: var(--nota-base-c); }
.nota-def    { background: var(--nota-def-bg);   color: var(--nota-def-c); }

/* ─── NAV ─── */
.site-nav { background: var(--canvas); border-bottom: 1px solid var(--hairline); height: 60px; position: sticky; top: 0; z-index: 200; }
.site-nav .wrap { height: 100%; display: flex; align-items: center; gap: var(--sp-lg); }

.site-logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; background: var(--forest); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.logo-col { display: flex; flex-direction: column; gap: 1px; }
.logo-text { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -.3px; line-height: 1; }
.logo-text em { font-style: normal; color: var(--moss); }
.logo-powered { font-size: 8px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); line-height: 1; }
.logo-mark-svg { width: 34px; height: 34px; color: var(--ink); flex-shrink: 0; }
.logo-mark-svg svg { width: 100%; height: 100%; display: block; }
.logo-text-svg { height: 20px; color: var(--ink); }
.logo-text-svg svg { height: 100%; width: auto; display: block; }

.nav-search { flex: 1; max-width: 420px; position: relative; }
.search-field { display: flex; align-items: center; gap: 8px; background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-full); padding: 0 16px; height: 40px; transition: border-color .15s, box-shadow .15s, background .15s; }
.search-field:focus-within { background: var(--canvas); border-color: var(--moss); box-shadow: 0 0 0 3px rgba(61,122,90,.12); }
.search-field svg { color: var(--stone); width: 15px; height: 15px; flex-shrink: 0; }
#searchInput { flex: 1; min-width: 0; background: transparent; border: none; outline: none; font-size: 14px; color: var(--ink); }
#searchInput::placeholder { color: var(--stone); }
.search-clear { background: none; border: none; cursor: pointer; color: var(--stone); padding: 0; display: none; transition: color .1s; line-height: 1; }
.search-clear:hover { color: var(--ink); }

.nav-end { margin-left: auto; display: flex; align-items: center; gap: var(--sp-sm); flex-shrink: 0; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--slate); padding: 5px 10px; border-radius: var(--r-full); transition: background .12s, color .12s; }
.nav-link:hover { background: var(--sage-soft); color: var(--forest); }
.nav-link.nav-active { color: var(--forest); font-weight: 600; }

/* ─── AUTOCOMPLETE ─── */
#autocompleteList { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); box-shadow: var(--sh3); overflow: hidden; z-index: 999; display: none; }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--hairline-soft); transition: background .1s; color: inherit; text-decoration: none; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: var(--cream); }
.ac-thumb { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--sage-soft); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ac-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ac-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.ac-botanical { font-size: 12px; color: var(--stone); font-style: italic; margin-top: 1px; }
.ac-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ac-nota { margin-left: auto; flex-shrink: 0; }
.ac-no-results { padding: var(--sp-md); color: var(--steel); font-size: 14px; text-align: center; }

/* ─── HOMEPAGE HERO ─── */
.home-hero { background: var(--forest); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; min-height: 540px; position: relative; }

.home-hero-content { display: flex; flex-direction: column; justify-content: center; }
.home-hero-inner { max-width: 560px; margin-left: auto; padding: var(--sp-sec) var(--sp-xxl) var(--sp-sec) var(--sp-xl); }

.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); margin-bottom: var(--sp-md); display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--sage); }

.hero-headline { font-family: var(--serif); font-size: 54px; font-weight: 400; line-height: 1.1; letter-spacing: -.5px; color: #fff; margin-bottom: var(--sp-lg); }
.hero-headline em { font-style: italic; color: var(--sage); }

.hero-sub { font-size: 16px; color: rgba(255,255,255,.5); line-height: 1.65; max-width: 380px; margin-bottom: var(--sp-xl); }

/* hero search */
.hero-search-wrap { position: relative; max-width: 420px; }
.hero-sf { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-full); padding: 0 20px; height: 52px; transition: border-color .15s, background .15s, box-shadow .15s; }
.hero-sf:focus-within { background: rgba(255,255,255,.13); border-color: var(--sage); box-shadow: 0 0 0 3px rgba(106,171,138,.2); }
.hero-sf svg { color: rgba(255,255,255,.38); width: 17px; height: 17px; flex-shrink: 0; }
.hero-sf #searchInput { color: #fff; font-size: 15px; }
.hero-sf #searchInput::placeholder { color: rgba(255,255,255,.35); }
.hero-sf .search-clear { color: rgba(255,255,255,.4); }
.hero-sf ~ #autocompleteList { border-radius: var(--r-lg); }

.hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-sm); }
.hint-chip { font-size: 12px; font-weight: 500; padding: 4px 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: var(--r-full); color: rgba(255,255,255,.45); cursor: pointer; transition: all .12s; }
.hint-chip:hover { background: rgba(106,171,138,.2); border-color: var(--sage); color: #fff; }

/* hero image */
.home-hero-image { position: relative; overflow: hidden; }
.home-hero-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45) saturate(.7); }
.home-hero-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest) 0%, transparent 40%); z-index: 1; }
.hero-stat-strip { position: absolute; bottom: var(--sp-xl); left: var(--sp-xl); right: var(--sp-xl); display: flex; gap: var(--sp-xl); z-index: 2; }
.stat-n { font-family: var(--serif); font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.stat-l { font-size: 11px; color: var(--sage); letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }

/* ─── BROWSE STRIP ─── */
.browse-strip { background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: var(--sp-md) 0; }
.browse-strip .wrap { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; }
.browse-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--stone); margin-right: 4px; }
.browse-tag { font-size: 13px; font-weight: 500; padding: 5px 14px; background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-full); color: var(--slate); cursor: pointer; transition: all .12s; text-decoration: none; }
.browse-tag:hover { background: var(--sage-soft); border-color: var(--sage); color: var(--forest); }

/* ─── PAGE HEADER ─── */
.page-header { background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: var(--sp-xl) 0; }
.page-header .wrap { display: flex; align-items: center; gap: var(--sp-md); flex-wrap: wrap; }
.page-title { font-family: var(--serif); font-size: clamp(26px,5vw,40px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }
.page-title em { font-style: italic; color: var(--amber); }
.page-count { font-size: 13px; color: var(--stone); background: var(--cream); border: 1px solid var(--hairline); border-radius: var(--r-full); padding: 3px 12px; margin-left: auto; }

/* ─── PLANT CARDS ─── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--sp-md); padding: var(--sp-xl) 0 var(--sp-xxl); }
.plant-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--sh1); transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.plant-card:hover { transform: translateY(-3px); box-shadow: var(--sh2); border-color: var(--parchment); }

.pc-thumb { height: 168px; position: relative; overflow: hidden; background: var(--forest); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(.75); transition: filter .3s, transform .3s; }
.plant-card:hover .pc-thumb img { filter: brightness(.7) saturate(.85); transform: scale(1.04); }
.pc-badge { position: absolute; top: 10px; right: 10px; }
.pc-famiglia { position: absolute; bottom: 10px; left: 12px; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.5); }

.pc-body { padding: var(--sp-md); flex: 1; display: flex; flex-direction: column; }
.pc-name { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -.2px; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.pc-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.pc-botanical { font-size: 12px; color: var(--stone); font-style: italic; margin-bottom: var(--sp-sm); }
.pc-excerpt { font-size: 13px; color: var(--slate); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-footer { margin-top: var(--sp-sm); padding-top: var(--sp-sm); border-top: 1px solid var(--hairline-soft); display: flex; align-items: center; justify-content: space-between; }
.pc-origin { font-size: 11px; color: var(--stone); }
.pc-arrow { font-size: 14px; color: var(--muted); transition: color .15s, transform .15s; }
.plant-card:hover .pc-arrow { color: var(--moss); transform: translateX(2px); }

/* ─── PLANT HERO (detail) ─── */
.plant-hero { height: 380px; position: relative; overflow: hidden; background: var(--forest); }
.plant-hero img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.6); display: block; }
.plant-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,51,39,.98) 0%, rgba(26,51,39,.5) 45%, rgba(26,51,39,.1) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-xl) 0; }
.plant-hero-overlay .wrap { display: flex; flex-direction: column; gap: 6px; }
.hero-badge { align-self: flex-start; }
.hero-plant-name { font-family: var(--serif); font-size: 52px; font-weight: 400; line-height: 1.05; letter-spacing: -.5px; color: #fff; margin-top: 4px; }
.hero-botanical { font-family: var(--serif); font-style: italic; font-size: 19px; color: rgba(255,255,255,.45); }

/* ─── INFO STRIP ─── */
.info-strip { background: var(--canvas); border-bottom: 1px solid var(--hairline); display: flex; }
.info-chip { flex: 1; padding: var(--sp-md) var(--sp-lg); border-right: 1px solid var(--hairline); }
.info-chip:last-child { border-right: none; }
.ic-label { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.ic-value { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ─── BREADCRUMB ─── */
.breadcrumb-bar { background: var(--cream); border-bottom: 1px solid var(--hairline); height: 38px; display: flex; align-items: center; padding: 0 var(--sp-xl); }
.bc { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--stone); max-width: var(--max-w); width: 100%; margin: 0 auto; }
.bc a { color: var(--steel); transition: color .1s; }
.bc a:hover { color: var(--moss); }
.bc-sep { opacity: .4; }

/* ─── LAYOUT ─── */
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: var(--sp-xl); }
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: var(--sp-xl); align-items: start; }

/* ─── CONTENT BLOCKS ─── */
.block { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--sp-xl); margin-bottom: var(--sp-md); }
.block:last-child { margin-bottom: 0; }
.block-title { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--stone); margin-bottom: var(--sp-md); padding-bottom: var(--sp-md); border-bottom: 1px solid var(--hairline-soft); }
.block-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--moss); display: inline-flex; }
.block-icon svg { width: 100%; height: 100%; }
.block p { font-size: 15px; color: var(--slate); line-height: 1.75; }
.block p + p { margin-top: var(--sp-sm); }
.sub-label { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--stone); margin: var(--sp-md) 0 5px; }
.sub-label:first-child { margin-top: 0; }

/* ─── LIST ─── */
.list-items { list-style: none; }
.list-items li { font-size: 14px; color: var(--slate); padding: 8px 0 8px 18px; position: relative; border-bottom: 1px solid var(--hairline-soft); line-height: 1.6; }
.list-items li:last-child { border-bottom: none; }
.list-items li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }

/* ─── RECIPE ─── */
.recipe { background: var(--cream); border: 1px solid var(--hairline); border-left: 3px solid var(--amber); border-radius: var(--r-sm); padding: var(--sp-md); margin-bottom: 8px; }
.recipe:last-child { margin-bottom: 0; }
.recipe-name { font-family: var(--serif); font-size: 14px; font-weight: 500; font-style: italic; color: var(--amber); margin-bottom: 5px; }
.recipe-text { font-size: 13px; color: var(--slate); line-height: 1.65; }

/* ─── QUICK CARD (sidebar) ─── */
.quick-card { background: var(--forest); border-radius: var(--r-lg); padding: var(--sp-xl); margin-bottom: var(--sp-md); color: #fff; }
.quick-card .block-title { color: var(--sage); border-color: rgba(255,255,255,.1); }
.quick-card .block-icon { background: none; color: var(--sage); }
.qrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.qrow:last-child { border-bottom: none; }
.ql { font-size: 11px; font-weight: 500; color: var(--sage); flex-shrink: 0; }
.qv { color: rgba(255,255,255,.8); font-weight: 500; text-align: right; }
.qv.italic { color: var(--sage-light); font-style: italic; font-weight: 400; }

/* ─── HARMONY ─── */
.harmony-list { display: flex; flex-wrap: wrap; gap: 5px; }
.harmony-tag { font-size: 13px; font-weight: 500; padding: 4px 12px; background: var(--sage-soft); border: 1px solid rgba(61,122,90,.2); border-radius: var(--r-full); color: var(--forest-mid); text-decoration: none; transition: background .12s, border-color .12s; }
.harmony-tag:hover { background: var(--sage); border-color: var(--sage); color: #fff; }

/* ─── WARNING ─── */
.warning { background: var(--amber-soft); border: 1px solid #e0c080; border-radius: var(--r-sm); padding: var(--sp-md); display: flex; gap: 10px; font-size: 13px; color: #7a5020; line-height: 1.65; }
.warning-icon { flex-shrink: 0; }

/* ─── EMPTY ─── */
.empty { text-align: center; padding: 100px 20px; }
.empty .icon { font-size: 2.5rem; margin-bottom: var(--sp-md); opacity: .25; }
.empty h4 { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.empty p { font-size: 15px; color: var(--steel); }

/* ─── BUTTON ─── */
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; border-radius: var(--r-full); padding: 10px 22px; text-decoration: none; transition: all .12s; font-family: var(--sans); }
.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--forest-mid); }
.btn-secondary { background: transparent; border: 1px solid var(--hairline); color: var(--slate); }
.btn-secondary:hover { border-color: var(--slate); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--slate); border-radius: var(--r-full); padding: 8px 14px; border: none; }
.btn-ghost:hover { background: var(--sage-soft); color: var(--forest); }

/* ─── FOOTER ─── */
footer { background: var(--forest); color: rgba(255,255,255,.42); padding: var(--sp-md) var(--sp-xl); text-align: center; margin-top: 80px; font-size: 12px; }
footer a { color: rgba(255,255,255,.55); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,.8); }

/* ─── LANG SWITCHER ─── */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--hairline);
  border-radius: var(--r-full); padding: 5px 10px; cursor: pointer;
  font-size: 14px; transition: border-color .12s, background .12s;
}
.lang-btn:hover { background: var(--sage-soft); border-color: var(--sage); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-chevron { color: var(--stone); transition: transform .15s; }
.lang-btn.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--canvas); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); box-shadow: var(--sh3);
  min-width: 140px; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s;
  z-index: 300;
}
.lang-dropdown.open {
  opacity: 1; pointer-events: all; transform: translateY(0);
}

.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; font-size: 13px; font-weight: 500;
  color: var(--slate); text-decoration: none;
  transition: background .1s;
}
.lang-option:hover { background: var(--cream); }
.lang-option.active { color: var(--moss); background: var(--sage-soft); }
.lang-option span:first-child { font-size: 16px; }

/* separator between lang switcher and nav links */
.nav-sep {
  display: block; width: 1px; height: 18px;
  background: var(--hairline); margin: 0 4px;
}
.nav-dot {
  display: block; width: 4px; height: 4px;
  background: var(--hairline); border-radius: 50%; flex-shrink: 0;
}

/* ─── FILTER BAR ─── */
.filter-bar { background: var(--canvas); border-bottom: 1px solid var(--hairline); padding: 10px 0; }
.filter-row { display: flex; align-items: center; gap: var(--sp-sm); flex-wrap: wrap; }

.filter-group { display: flex; align-items: center; gap: 7px; }
.filter-group--sort { margin-left: auto; }

.filter-label {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--stone); white-space: nowrap;
}

.filter-select {
  appearance: none; -webkit-appearance: none;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7d68'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  border: 1px solid var(--hairline); border-radius: var(--r-full);
  padding: 5px 30px 5px 13px; font-size: 13px; font-family: var(--sans);
  color: var(--slate); cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.filter-select:hover { border-color: var(--sage); background-color: var(--sage-soft); }
.filter-select:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 2px rgba(61,122,90,.12); }

.filter-select.active {
  background-color: var(--forest); color: #fff; border-color: var(--forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='white'/%3E%3C/svg%3E");
}

.filter-clear {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--amber);
  text-decoration: none; padding: 5px 12px;
  border: 1px solid var(--amber); border-radius: var(--r-full);
  white-space: nowrap; transition: background .15s, color .15s;
}
.filter-clear:hover { background: var(--amber); color: #fff; }

/* ─── MOBILE SEARCH BAR (catalog page, shown only on mobile) ─── */
.mobile-search-bar {
  display: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 0 0 var(--sp-sm);
}
.mobile-sf-form { position: relative; }
.mobile-sf-form .search-field { height: 44px; }

/* Count inline nei filtri (solo mobile) */
.mobile-count-filter { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1023px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-image { height: 220px; }
  .home-hero-image::before { background: linear-gradient(180deg, var(--forest) 0%, transparent 60%); }
  .home-hero-inner { max-width: 100%; padding: var(--sp-xxl) var(--sp-xl); }
  .hero-headline { font-size: 40px; }
  .two-col { grid-template-columns: 1fr; }
  .hero-plant-name { font-size: 36px; }
  .plant-hero { height: 280px; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 var(--sp-md); }
  .page-wrap { padding: var(--sp-md); }
  .hero-headline { font-size: 30px; }
  .hero-plant-name { font-size: 28px; }
  .info-strip { flex-wrap: wrap; }
  .info-chip { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--hairline); }
  .info-chip:last-child { border-bottom: none; }
  .breadcrumb-bar { padding: 0 var(--sp-md); }
}

/* ─── MOBILE (≤ 640px): nav + filtri + catalogo ─── */
@media (max-width: 640px) {

  /* ── Nav: nascondi la search bar, mostra solo logo + link + lingua ── */
  .nav-search { display: none; }

  /* Logo più compatto */
  .logo-powered { display: none; }
  .logo-mark { width: 28px; height: 28px; font-size: 13px; border-radius: 6px; }
  .logo-text { font-size: 16px; }
  .logo-mark-svg { width: 28px; height: 28px; }
  .logo-text-svg { height: 17px; }
  .site-logo { gap: 7px; }

  /* Riduce spaziatura interna della nav */
  .site-nav .wrap { gap: var(--sp-xs); }

  /* Link nav compatti */
  .nav-end { gap: 4px; }
  .nav-link { font-size: 12px; padding: 4px 8px; }
  .nav-dot { width: 3px; height: 3px; margin: 0; }
  .nav-sep { margin: 0 2px; height: 14px; }
  .lang-btn { padding: 4px 7px; gap: 3px; }
  .lang-chevron { width: 8px; height: 8px; }
  .lang-flag { font-size: 14px; }

  /* ── Search bar mobile nel catalogo ── */
  .mobile-search-bar { display: block; }

  /* ── Intestazione pagina catalogo ── */
  .page-header { padding: var(--sp-md) 0 var(--sp-sm); border-bottom: none; }
  .page-header .wrap { flex-direction: column; align-items: center; gap: 4px; }
  .page-title { font-size: 26px; text-align: center; width: 100%; }
  /* Pill "165 risultati" nascosta nell'header su mobile, compare nei filtri */
  .page-count { display: none; }

  /* ── Count inline a destra di ORDINA nei filtri ── */
  .mobile-count-filter {
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--slate);
    background: var(--cream); border: 1px solid var(--hairline);
    border-radius: var(--r-full); padding: 7px 13px;
    white-space: nowrap; align-self: end; height: 33px;
  }

  /* ── Filtri: griglia 2 colonne ─────────────────────────────────────
     Riga 1: [NOTA] [FAMIGLIA]
     Riga 2: [ORDINA] [Cancella (se presente)]
  ── */
  .filter-bar { padding: var(--sp-sm) 0; }
  .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-sm);
    align-items: end;
  }
  .filter-group { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .filter-group--sort { margin-left: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
  .filter-select { width: 100%; font-size: 13px; padding: 7px 28px 7px 11px; }
  .filter-label { font-size: 10px; }
  /* Cancella filtri: riga intera, centrato */
  .filter-clear { grid-column: 1 / -1; justify-self: center; }

  /* ── Griglia card: 1 colonna ── */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
    padding: var(--sp-sm) 0 var(--sp-xxl);
  }

  /* ── Plant detail ── */
  .plant-hero { height: 200px; }
  .hero-plant-name { font-size: 24px; }
  .hero-botanical { font-size: 15px; }
  .block { padding: var(--sp-md); }

  /* ── Home page ── */
  .home-logo-name { font-size: 34px; }
  .home-search-wrap { max-width: 100%; }
  .home-body { padding: var(--sp-xl) var(--sp-md); }
  .sug-chip { font-size: 12px; padding: 5px 13px; }
}
