/* Salutherbae – "Erbario moderno"
   Cream paper, botanical plates (Köhler, 1887), specimen labels, sage green
   from the shop's logo and terracotta accents. */

/* Headings: Cormorant Garamond (variable). The logo's "Thrillers" is condensed; Cormorant keeps its
   thin-thick tapered strokes with balanced, normal-width letters, and has a true italic for Latin names.
   The 500–700 range makes weight 400 requests render at 500 (Cormorant's 400 is too thin on screen).
   Text and labels: Figtree, close to the logo's "Area Normal" (ERBORISTERIA). */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 500 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f3eee2;
  --paper-2: #e9e2d0;
  --card: #faf7ef;
  --ink: #23291f;
  --ink-soft: #5a5f50;
  --sage: #9bb15c;          /* logo green (SALUTHERBAE in brand/logo-salutherbae.jpg) */
  --sage-deep: #56693a;
  --forest: #1e3125;        /* logo dark green (lotus, ERBORISTERIA) */
  --terra: #a9542f;
  --line: rgba(35, 41, 31, 0.2);
  --line-soft: rgba(35, 41, 31, 0.1);
  --shadow: 0 1px 0 rgba(35,41,31,.05), 0 18px 40px -22px rgba(40, 53, 34, 0.45);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Figtree", system-ui, sans-serif;   /* labels: wide-tracked caps, like ERBORISTERIA in the logo */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink);
  background: var(--paper) var(--grain); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--forest); line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(3rem, 7vw, 6rem); margin: 0.15em 0 0.3em; }
h2 { font-size: clamp(2.35rem, 4.8vw, 4rem); margin: 0.15em 0 0.4em; }
h3 { font-size: 1.6rem; margin: 0.6em 0 0.3em; }
h1 em, h2 em { font-style: italic; color: var(--sage-deep); font-weight: 600; }
.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section-paper { background: var(--paper-2) var(--grain); }
.plate-no { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); margin: 0; display: flex; align-items: center; gap: 12px; }
.plate-no::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: 0.6; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
.section-intro { color: var(--ink-soft); max-width: 44ch; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.disclaimer { font-size: 0.74rem; color: var(--ink-soft); opacity: 0.85; margin: 28px 0 0; letter-spacing: 0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--forest); color: var(--paper); padding: 0.85em 1.6em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.98rem; border: 1px solid var(--forest); transition: background 0.25s, color 0.25s, transform 0.25s; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--terra); border-color: var(--terra); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.btn-small { padding: 0.55em 1.15em; font-size: 0.9rem; }
.btn-light { background: var(--paper); color: var(--forest); border-color: var(--paper); }

/* Top bar + header */
.topbar { background: var(--forest); color: #d8dfc8; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; flex-wrap: wrap; font-size: 0.82rem; }
.topbar .mono { font-size: 0.68rem; opacity: 0.85; }
.topbar-links { display: flex; gap: 18px; }
.topbar a { color: var(--paper); text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 238, 226, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--forest); text-decoration: none; }
.logo-mark { width: 54px; height: 30px; color: var(--forest); }
.logo-img { display: block; height: 50px; width: auto; }
.logo-text { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); line-height: 1; font-weight: 450; }
.logo-text small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.32em; color: var(--ink); margin-top: 6px; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 0.96rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--terra); transition: right 0.3s; }
.nav a:not(.btn):hover::after { right: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--forest); border-radius: 999px; padding: 0.45em 1.1em; font: inherit; }
.nav-group { position: relative; }
.nav-sub { display: none; position: absolute; top: 100%; left: -16px; min-width: 190px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 4px; box-shadow: var(--shadow); padding: 10px 0; }
.nav-sub a { display: block; padding: 6px 18px; }
.nav-sub a::after { display: none; }
.nav-sub a.nav-child { padding: 3px 18px 5px 34px; font-size: 0.9em; color: var(--ink-soft); }
.nav-sub a.nav-child::before { content: "– "; color: var(--sage, #9bb15c); }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: block; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: start; gap: 14px; background: var(--paper); padding: 20px 16px 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-sub { display: block; position: static; box-shadow: none; background: none; border: 0; padding: 4px 0 0 14px; }
  .topbar .mono { display: none; }
  /* Phone menu: a paper sheet with big serif entries */
  .nav { gap: 2px; padding: 8px 20px 26px; box-shadow: 0 24px 40px -24px rgba(35, 41, 31, 0.35); max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav > a:not(.btn), .nav .nav-group > a { display: block; font-family: var(--serif); font-size: 1.55rem; color: var(--forest); padding: 8px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-group { width: 100%; }
  .nav .nav-sub, .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 10px; }
  .nav .nav-sub a { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; }
  .nav .nav-sub a.nav-child { padding: 5px 13px; border-style: dashed; font-size: 0.82rem; margin-left: -4px; }
  .nav .nav-sub a.nav-child::before { content: "↳ "; }
  .nav .btn { margin-top: 14px; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.search { display: flex; gap: 8px; margin-top: 28px; max-width: 460px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.search input { flex: 1; min-width: 0; padding: 0.55em 1em; border: 0; background: transparent; font: inherit; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--sage-deep); }
.hero-art { position: relative; justify-self: center; width: min(100%, 500px); }
.arch { margin: 0; border-radius: 999px 999px 6px 6px; overflow: hidden; border: 1px solid var(--line); padding: 10px; background: var(--card); box-shadow: var(--shadow); }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 2px 2px; }
.hero-art .arch { position: relative; z-index: 1; width: 82%; margin-left: auto; }
.hero-plate { position: absolute; z-index: 0; left: -6%; top: 8%; width: 58%; mix-blend-mode: multiply; opacity: 0.9; transform: rotate(-6deg); filter: saturate(0.9) sepia(0.08); }
.specimen { background: var(--card); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -5px; padding: 14px 18px; font-family: var(--serif); font-size: 1.05rem; box-shadow: var(--shadow); }
.specimen .mono { display: block; font-size: 0.62rem; color: var(--ink-soft); }
.hero-label { position: absolute; z-index: 2; left: 0; bottom: 6%; display: grid; gap: 4px; transform: rotate(-2deg); }
.hero-label em { font-size: 1.25rem; white-space: nowrap; }
.hero-label { white-space: nowrap; }
/* The shop's seal, stuck on the photo like the sticker on their gift boxes */
.hero-seal { position: absolute; z-index: 3; right: -3%; top: -5%; width: clamp(96px, 28%, 150px); height: auto; transform: rotate(9deg); filter: drop-shadow(0 12px 18px rgba(40, 53, 34, 0.3)); }

/* Herb names strip */
.herb-strip { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: var(--paper); }
.herb-track { display: flex; gap: 48px; width: max-content; animation: drift 60s linear infinite; }
.herb-track span { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--sage-deep); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.herb-track span::after { content: "✿"; font-style: normal; font-size: 0.8rem; color: var(--terra); }
@keyframes drift { to { transform: translateX(-50%); } }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 7vw, 104px); align-items: center; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-size: 4.4em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--terra); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--sage-deep); margin: 8px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-photo { margin: 0; justify-self: center; width: min(100%, 420px); }
.about-photo figcaption { margin-top: 14px; color: var(--ink-soft); text-align: center; font-size: 0.66rem; }

/* Services: specimen cards */
.specimens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.specimen-card { position: relative; padding: 28px 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; min-height: 300px; display: flex; flex-direction: column; transition: background 0.3s; }
/* own background: the card is its own stacking context (reveal), so the multiply blend of the plate needs paper behind it */
.specimen-card { background: var(--paper-2) var(--grain); }
.specimen-card:hover { background-color: var(--card); }
/* plate as tall as the card, on the right, faded like the plates on the printed gift cards (user, 2026-12-01) */
.specimen-card img { position: absolute; top: 0; right: 0; bottom: 0; height: 100%; width: auto; max-width: 62%; object-fit: contain; object-position: right center; mix-blend-mode: multiply; opacity: 0.35; transition: opacity 0.3s; filter: saturate(0.9) sepia(0.06); pointer-events: none; }
.specimen-card:hover img { opacity: 0.5; }
.specimen-card > :not(picture):not(img) { position: relative; z-index: 1; }
.specimen-card .mono { color: var(--terra); margin: 0; }
.specimen-card h3 { margin: 10px 0 8px; max-width: 12ch; }
.specimen-card > p:not(.mono):not(.latin) { color: var(--ink-soft); max-width: 22ch; margin: 0; position: relative; z-index: 1; }
.latin { margin-top: auto; padding-top: 20px; font-family: var(--serif); font-style: italic; color: var(--sage-deep); position: relative; z-index: 1; }

/* Anatomy plate (3D body) */
.anatomy-plate { position: relative; display: grid; grid-template-columns: 1fr 420px; gap: 0; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -7px; background: var(--card) var(--grain); }
.corner { position: absolute; z-index: 4; font-size: 0.62rem; color: var(--ink-soft); pointer-events: none; }
.corner-tl { top: 18px; left: 22px; }
.corner-tr { top: 18px; right: 442px; }
/* drag hint: inside the 3D view (not the plate), so it never sits on the organ list below it on phones */
.body3d-hint { position: absolute; z-index: 2; left: 22px; bottom: 18px; font-size: 0.62rem; color: var(--ink-soft); pointer-events: none; }
.no-webgl .body3d-hint { display: none; }
.body3d { position: relative; height: clamp(520px, 78vh, 760px); overflow: hidden; cursor: grab; background: radial-gradient(ellipse 50% 60% at 50% 48%, rgba(135, 181, 85, 0.16), transparent 70%); }
.body3d canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s; }
.body3d.is-loaded canvas { opacity: 1; }
.body3d-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--ink-soft); pointer-events: none; }
.body3d-status[hidden] { display: none; }
.body3d.no-webgl { height: auto; min-height: 240px; cursor: default; }
.body3d-popup { position: absolute; z-index: 5; width: min(330px, calc(100% - 24px)); display: grid; grid-template-columns: 92px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -5px; padding: 16px 18px 16px 14px; box-shadow: var(--shadow); animation: pop 0.2s ease-out; }
.body3d-popup[hidden] { display: none; }
.label-plate { width: 92px; height: 120px; object-fit: contain; mix-blend-mode: multiply; align-self: center; }
.label-body p { margin: 0 0 6px; }
.label-organ { color: var(--terra); }
.label-text { font-size: 0.95rem; color: var(--ink); line-height: 1.45; }
.label-latin { white-space: nowrap; }
.label-herb { font-family: var(--serif); font-size: 1.05rem; color: var(--sage-deep); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px !important; }
.label-body .btn { margin-top: 6px; }
.popup-close { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--ink-soft); cursor: pointer; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
/* 10 organs = 2 columns of 5 (I–V left, VI–X right), on desktop and on phones */
.organ-list { list-style: none; margin: 0; padding: 28px 22px; border-left: 1px solid var(--line); counter-reset: organ; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; align-content: center; column-gap: 18px; row-gap: 2px; }
.organ-list li { counter-increment: organ; }
.organ-list button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; background: none; border: 0; border-bottom: 1px dashed var(--line); padding: 10px 4px; font: inherit; font-size: 0.98rem; color: var(--ink); cursor: pointer; transition: color 0.2s, padding 0.2s; }
.organ-list button::before { content: counter(organ, upper-roman) "."; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-soft); min-width: 26px; flex: none; }
.organ-list button:hover, .organ-list button[aria-pressed="true"] { color: var(--terra); padding-left: 10px; }
@media (max-width: 900px) {
  .anatomy-plate { grid-template-columns: 1fr; }
  .corner-tr { right: 22px; }
  .organ-list { border-left: 0; border-top: 1px solid var(--line); column-gap: 8px; row-gap: 8px; padding: 18px; }
  .organ-list button { height: 100%; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; line-height: 1.25; }
  .organ-list button::before { display: none; }
  .organ-list button:hover, .organ-list button[aria-pressed="true"] { padding-left: 14px; border-color: var(--terra); }
  .body3d { height: 560px; }
}

/* Posts */
.posts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.post { display: flex; flex-direction: column; }
.post-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; filter: saturate(0.92); transition: filter 0.4s; }
.post:hover .post-img { filter: saturate(1.05); }
.post-feature .post-img { aspect-ratio: 5 / 5.4; }
.post-body { padding-top: 16px; }
.post-body h3 { margin: 6px 0; font-size: 1.6rem; }
.post-body p { color: var(--ink-soft); margin: 0 0 10px; }
.tags { color: var(--terra); margin: 0; }
.post time { color: var(--ink-soft); font-size: 0.66rem; }

/* Newsletter */
.newsletter[hidden] { display: none; }
.newsletter { position: relative; overflow: hidden; background: var(--forest); color: #dfe5d2; padding: clamp(72px, 9vw, 120px) 0; }
.newsletter h2 { color: var(--paper); }
.newsletter h2 em { color: var(--sage); }
.newsletter .plate-no { color: var(--sage); }
.newsletter-plate { position: absolute; right: -40px; top: -30px; width: 360px; opacity: 0.12; filter: grayscale(1) invert(1); mix-blend-mode: screen; transform: rotate(10deg); pointer-events: none; }
.newsletter-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.newsletter-form { display: grid; gap: 12px; }
.newsletter-form input:not([type="checkbox"]) { padding: 0.9em 1.2em; border: 1px solid rgba(243, 238, 226, 0.3); border-radius: 999px; font: inherit; background: rgba(243, 238, 226, 0.06); color: var(--paper); }
.newsletter-form input::placeholder { color: rgba(243, 238, 226, 0.6); }
.newsletter-form .btn { justify-self: start; }
.newsletter-form .btn:hover { background: var(--sage); border-color: var(--sage); color: var(--forest); }
.consent { font-size: 0.85rem; display: flex; gap: 10px; align-items: start; }
.consent a { color: var(--paper); }
.newsletter-benefits { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.newsletter-benefits li { position: relative; padding-left: 26px; line-height: 1.5; }
.newsletter-benefits li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border-radius: 50% 0; background: var(--sage); transform: rotate(-45deg); }
.newsletter-benefits strong { color: var(--paper); font-weight: 600; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(169, 84, 47, 0.28); color: var(--paper); font-size: 0.92rem; }
.nl-note { margin: 0; font-size: 0.85rem; color: rgba(243, 238, 226, 0.7); }
.nl-ok { padding: 22px 24px; border: 1px solid rgba(155, 177, 92, 0.6); border-radius: 18px; background: rgba(155, 177, 92, 0.12); outline: none; }
.nl-ok p { margin: 0; }
.nl-ok .nl-ok-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; color: var(--paper); margin-bottom: 6px; }
.newsletter-form .btn[disabled] { opacity: 0.7; cursor: wait; }

/* Products: shelf of jars */
.shelf { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; }
.jar { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.jar-img { width: 100%; aspect-ratio: 3 / 4; border-radius: 999px 999px 8px 8px; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: transform 0.35s, box-shadow 0.35s; }
.jar-img img { width: 100%; height: 100%; object-fit: cover; }
.jar-plate img { object-fit: contain; padding: 14px 8px 4px; mix-blend-mode: multiply; }
.jar:hover .jar-img { transform: translateY(-6px); box-shadow: var(--shadow); }
.jar-label { font-family: var(--serif); font-size: 1.05rem; text-align: center; line-height: 1.2; padding: 6px 10px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.jar:hover .jar-label { color: var(--terra); }

/* Reviews */
.rating { font-style: normal; color: var(--terra); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review { margin: 0; padding: 44px 0 0; border-top: 1px solid var(--ink); position: relative; }
.review::before { content: "“"; position: absolute; top: -14px; left: 0; height: 40px; overflow: hidden; font-family: var(--serif); font-size: 4rem; line-height: 0.95; color: var(--sage); background: var(--paper-2); padding-right: 10px; }
.review p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; margin: 0 0 18px; color: var(--forest); }
.review footer { color: var(--terra); font-size: 0.68rem; }

/* Events */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.events li { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); padding: 20px 24px; background: var(--card); }
.event-date { font-family: var(--serif); font-size: 1.8rem; color: var(--terra); min-width: 48px; text-align: center; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.address { font-family: var(--serif); font-size: 1.7rem; line-height: 1.25; color: var(--forest); margin: 0 0 16px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.social a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.92rem; color: var(--forest); }
.social a:hover { border-color: var(--terra); color: var(--terra); }
.hours-label { padding: 28px 30px; transform: rotate(1deg); }
.hours-label > .mono { margin: 0 0 12px; color: var(--terra); }
.hours { border-collapse: collapse; width: 100%; margin-bottom: 20px; font-family: var(--sans); font-size: 1rem; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.hours th { font-weight: 500; padding-right: 16px; }
.hours-special > .mono { margin: 4px 0 4px; color: var(--terra); }
.hours-label .hours th { width: 58%; }

/* Footer */
.site-footer { background: var(--forest) var(--grain); color: #c9d1b8; padding: 64px 0 28px; font-size: 0.92rem; }
.site-footer a { color: var(--paper); }
.site-footer p { margin: 6px 0; }
.site-footer h3 { color: var(--paper); font-size: 1.15rem; margin-top: 0; }
.logo-light .logo-mark { color: var(--sage); --paper: var(--forest); }
.logo-light .logo-text { color: var(--sage); }
.logo-light .logo-text small { color: #c9d1b8; }
.footer-note { font-family: var(--serif); font-style: italic; font-size: 1.1rem; max-width: 28ch; margin-top: 6px !important; }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; width: 230px; height: auto; }
.footer-claim { font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; color: var(--paper); margin: 18px 0 0 !important; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 32px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(243,238,226,0.15); padding-top: 18px; font-size: 0.8rem; }
.credits { opacity: 0.75; max-width: 70ch; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25d366; color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.wa-float:hover { color: #fff; transform: translateY(-2px); }

/* Open-now status (filled by main.js) */
.open-now { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 4px; }
.open-now:empty { display: none; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
.open-now.is-open { color: var(--sage-deep); }
.open-now.is-open::before { background: #5f9a3a; box-shadow: 0 0 0 4px rgba(95, 154, 58, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(95, 154, 58, 0); } }

/* Mobile quick-action bar: call, WhatsApp, directions (replaces the floating pill on phones) */
.action-bar { display: none; }
.swipe-hint { display: none; }
@media (max-width: 900px) {
  .wa-float { display: none; }
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 60; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); background: rgba(40, 53, 34, 0.94); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border-radius: 18px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55); padding: 6px;
    transition: transform 0.35s ease;
  }
  .action-bar.is-hidden { transform: translateY(calc(100% + 24px)); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 6px; color: var(--paper); text-decoration: none; font-size: 0.74rem; font-weight: 500; border-radius: 12px; }
  .action-bar a:active { background: rgba(243, 238, 226, 0.12); }
  .action-bar a + a { border-left: 1px solid rgba(243, 238, 226, 0.12); }
  .action-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .action-bar .chat svg { color: #c9dc93; }
}

/* Scroll reveal (enabled by main.js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .shelf { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner, .about, .contact, .newsletter-inner { grid-template-columns: 1fr; }
  .hero-art { width: min(100%, 420px); }
  .specimens { grid-template-columns: repeat(2, 1fr); }
  .posts, .reviews { grid-template-columns: 1fr; }
  .post-feature .post-img, .post-img { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; } /* the action bar covers call / WhatsApp on phones */
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 24px; }
  h1 { font-size: clamp(2.5rem, 11.5vw, 3.2rem); }
  .lead { font-size: 1.05rem; }

  /* Hero: compact art beside a peek of the label, so the photo shows on the first screen */
  .hero { padding: 28px 0 48px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .search { margin-top: 18px; }
  .hero-art { width: 92%; margin-top: 8px; }
  .hero-art .arch { width: 74%; }
  .hero-art .arch img { aspect-ratio: 5 / 6; }
  .hero-plate { width: 50%; left: -4%; top: 4%; }
  .hero-label { bottom: 4%; padding: 10px 14px; }
  .hero-label em { font-size: 1.05rem; }

  .about-photo { width: 82%; }
  .about-photo .arch img { aspect-ratio: 4 / 5; }

  /* Swipeable rows instead of long stacks: services, articles, reviews */
  .specimens, .posts, .reviews {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 4px 16px 10px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .specimens::-webkit-scrollbar, .posts::-webkit-scrollbar, .reviews::-webkit-scrollbar { display: none; }
  .specimens > *, .posts > *, .reviews > * { flex: 0 0 82%; scroll-snap-align: start; }
  .specimens { border: 0; }
  .specimen-card { border: 1px solid var(--line); background: var(--card); min-height: 290px; padding: 24px 22px 20px; }
  .specimen-card img { max-width: 60%; }
  .specimen-card > p:not(.mono):not(.latin) { max-width: 24ch; }
  .posts > .post { flex-basis: 78%; }
  .post-feature .post-img, .post-img { aspect-ratio: 4 / 3; }
  .post-body h3 { font-size: 1.35rem; }
  .reviews > .review { flex-basis: 86%; }
  .review p { font-size: 1.12rem; }
  .swipe-hint { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 0.64rem; color: var(--ink-soft); }
  .swipe-hint::after { content: ""; flex: 0 0 36px; height: 1px; background: currentColor; animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(6px); } }

  .newsletter { padding: 64px 0; }
  .newsletter-plate { width: 200px; right: -50px; top: -20px; }
  .newsletter-form .btn { justify-self: stretch; justify-content: center; }

  .shelf {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 8px 16px 10px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf > .jar { flex: 0 0 42%; scroll-snap-align: start; }
  .jar-label { font-size: 0.98rem; }
  .logo-text { font-size: 1.15rem; }
  .logo-mark { width: 44px; height: 24px; }
  .logo-img { height: 42px; }
  .corner-tr { display: none; }
  .body3d-hint { top: 18px; right: 22px; bottom: auto; left: auto; } /* top-right corner is free on phones, away from the feet */
  .body3d { height: 480px; }
  .organ-list { padding: 14px; gap: 6px; }
  .body3d-popup { width: calc(100% - 20px); grid-template-columns: 66px 1fr; gap: 12px; padding: 12px 14px 12px 10px; }
  .label-plate { width: 66px; height: 92px; }
  .label-text { font-size: 0.9rem; line-height: 1.4; }
  .label-herb { font-size: 0.98rem; }
  .organ-list button { padding: 8px 13px; font-size: 0.88rem; }
  .address { font-size: 1.45rem; }
  .hours-label { padding: 22px 20px; transform: none; }
  .hours-label .btn { width: 100%; justify-content: center; }
  .events li { padding: 16px; }
  .site-footer { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .herb-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .body3d-popup { animation: none; }
  .open-now.is-open::before, .swipe-hint::after { animation: none; }
}

/* Remedies page */
.remedies { max-width: 860px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 48px; }
.toc a { border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: 0.9rem; color: var(--forest); }
.toc a:hover { border-color: var(--terra); color: var(--terra); }
.remedy { position: relative; background: var(--card); border: 1px solid var(--line); padding: 32px 36px; margin-bottom: 28px; overflow: hidden; }
.remedy:target { border-color: var(--terra); box-shadow: var(--shadow); }
.remedy h2 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.remedy h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); margin-top: 20px; }
.remedy ul { padding-left: 1.2em; }
.remedy li { margin-bottom: 6px; }

/* ===================================================================== */
/* Content pages (generated by tools/build_pages.py) and home additions  */
/* ===================================================================== */

/* Current page in the menu */
.nav a[aria-current="page"] { color: var(--terra); }

/* Hero: Google rating badge */
.rating-badge { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 0.86rem; color: var(--ink-soft); text-decoration: none; }
.rating-badge span { color: #c99a2e; letter-spacing: 1px; font-size: 0.8rem; }
.rating-badge:hover { color: var(--terra); }

/* Service cards on the home page: whole card is the link */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.specimen-card h3::after { content: " →"; color: var(--terra); font-size: 0.8em; opacity: 0; transition: opacity 0.25s; }
.specimen-card:hover h3::after { opacity: 1; }

/* Chips (areas, filters) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font: inherit; font-size: 0.86rem; color: var(--forest); background: transparent; text-decoration: none; cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--terra); color: var(--terra); }
.chip[aria-pressed="true"] { background: rgba(169, 84, 47, 0.07); }
.filter-chips { margin: 0 0 28px; }

/* Article cards */
.post-link { display: block; }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--terra); }
.post-plate { display: grid; place-items: center; background: var(--card) var(--grain); border: 1px solid var(--line); }
.post-plate img { height: 88%; width: auto; mix-blend-mode: multiply; }
.posts-2 { grid-template-columns: 1fr 1fr; }
.posts-grid { grid-template-columns: repeat(3, 1fr); }
.posts-grid .post-img { aspect-ratio: 4 / 3; }
.post[hidden] { display: none; }

/* Page top for sub pages */
.page-top { padding-top: clamp(40px, 6vw, 88px); }
.page-top h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
.subpage .section-head h1 { margin-bottom: 0; }

/* Article page */
.article-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(36px, 5vw, 72px); }
.article-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.article-head .plate-no a { color: inherit; text-decoration: none; }
.byline { color: var(--ink-soft); font-size: 0.7rem; letter-spacing: 0.06em; margin: 10px 0 0; }
.article-arch { width: min(100%, 380px); justify-self: center; }
.article-arch img { aspect-ratio: 4 / 5; }
.article-plate { justify-self: center; width: min(100%, 340px); }
.article-plate img { mix-blend-mode: multiply; }
.article-body { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.prose { max-width: 66ch; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.6em 0 0.4em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 0.3em; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--sage-deep); }
.prose a { color: var(--sage-deep); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 2px solid var(--terra); background: rgba(250, 247, 239, 0.7); font-family: var(--serif); font-size: 1.15rem; color: var(--forest); }
.prose blockquote p { margin: 0; color: inherit; }
.article-cta { margin-top: 36px; padding: 22px 24px; }
.article-cta p { margin: 0 0 6px; }
.article-cta .cta-row { margin-top: 14px; }

/* Herb cards (erbario grid) */
.herb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.herb-grid-large { grid-template-columns: repeat(5, 1fr); }
.herb-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); text-align: center; }
.herb-card-img { width: 100%; aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--card) var(--grain); border: 1px solid var(--line); border-radius: 999px 999px 6px 6px; padding: 18px 10px 8px; transition: transform 0.35s, box-shadow 0.35s; }
.herb-card-img img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.herb-card:hover .herb-card-img { transform: translateY(-5px); box-shadow: var(--shadow); }
.herb-card-name { font-family: var(--serif); font-size: 1.15rem; margin-top: 8px; color: var(--forest); }
.herb-card:hover .herb-card-name { color: var(--terra); }
.herb-card-latin { font-family: var(--serif); font-style: italic; font-size: 0.88rem; color: var(--sage-deep); }
.credits-note { margin-top: 32px; font-size: 0.64rem; color: var(--ink-soft); }

/* Plant / service sheet */
.herb-sheet-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.herb-sheet-plate { margin: 0; position: sticky; top: 100px; background: var(--card) var(--grain); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -7px; padding: clamp(18px, 3vw, 36px); text-align: center; }
.herb-sheet-plate img { margin: 0 auto; max-height: 72vh; width: auto; mix-blend-mode: multiply; }
.herb-sheet-plate figcaption { margin-top: 10px; font-size: 0.6rem; color: var(--ink-soft); }
.herb-sheet-text .plate-no a { color: inherit; text-decoration: none; }
.herb-sheet-text h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 0.2em; }
.herb-label { display: inline-grid; gap: 4px; transform: rotate(-1.5deg); margin: 6px 0 18px; }
.herb-label em { font-size: 1.25rem; }
.herb-areas-label { font-size: 0.66rem; color: var(--ink-soft); margin: 26px 0 0; }
.h-small { font-size: 1.4rem; margin: 26px 0 8px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.link-list a { font-family: var(--serif); font-size: 1.12rem; color: var(--forest); text-decoration: none; }
.link-list a:hover { color: var(--terra); }
.link-list-large li { display: grid; gap: 2px; padding: 16px 0; }
.link-list-large a { font-size: 1.6rem; }
.link-list-large span { color: var(--ink-soft); }
.service-facts { display: grid; gap: 10px; margin: 8px 0 24px; padding: 18px 22px; font-family: var(--sans); font-size: 1rem; }
.service-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.service-facts dt { margin: 0; color: var(--terra); font-size: 0.66rem; padding-top: 4px; }
.service-facts dd { margin: 0; }

/* Free pages (idee regalo) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 40px; }
.gallery .arch img { aspect-ratio: 3 / 4; }
.page-free .prose { margin-bottom: 28px; }

/* Search */
.search-dropdown { max-width: 460px; }
.search-dropdown:empty { display: none; }
.search-results-list { list-style: none; margin: 8px 0 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.search-results-list a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-results-list a:hover, .search-results-list a:focus { background: rgba(135, 181, 85, 0.12); }
.search-results-list .mono { font-size: 0.6rem; color: var(--terra); letter-spacing: 0.08em; text-transform: uppercase; }
.search-results-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--forest); }
.search-results-list span:last-child { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
.search-empty { margin: 10px 4px; color: var(--ink-soft); font-size: 0.92rem; }
.search-more { display: inline-block; margin: 8px 12px 0; font-size: 0.9rem; }
.search-page { max-width: 760px; }
.search-large { max-width: none; margin-top: 18px; }
.search-results-page { margin-top: 18px; }
.search-results-page .search-results-list { box-shadow: none; }

/* Tisana del mese */
.tisana-mese { background: var(--card) var(--grain); border-block: 1px solid var(--line); overflow: hidden; }
.tisana-inner { position: relative; display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.tisana-photo { width: min(100%, 340px); justify-self: center; }
.tisana-photo img { aspect-ratio: 4 / 5; }
.tisana-text h2 { margin-bottom: 0.2em; }
.tisana-label { display: inline-block; margin: 6px 0 4px; font-family: var(--sans); font-size: 0.95rem; transform: rotate(1deg); }
.tisana-label ul { margin: 6px 0 0; padding-left: 1.1em; }
.tisana-plate { position: absolute; right: -40px; bottom: -40px; width: 240px; opacity: 0.16; mix-blend-mode: multiply; pointer-events: none; transform: rotate(-8deg); }

/* Instagram strip */
.ig-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ig-strip a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); }
.ig-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.ig-strip a:hover img { transform: scale(1.05); }

/* Events */
.event-date { display: grid; line-height: 1; }
.event-date small { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-top: 4px; }
.event-text { line-height: 1.5; }
.event-links { display: block; margin-top: 6px; font-size: 0.9rem; }
.events li[hidden] { display: none; }

/* Remedies page: links to plant pages and articles */
.remedy-links { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.remedy-links > .mono { font-size: 0.64rem; color: var(--ink-soft); margin: 10px 0 0; text-transform: uppercase; letter-spacing: 0.1em; }
.remedy-links .chips { margin: 8px 0; }

@media (max-width: 900px) {
  .article-head, .herb-sheet-inner, .tisana-inner { grid-template-columns: 1fr; }
  .herb-sheet-plate { position: static; }
  .herb-sheet-plate img { max-height: 46vh; }
  .herb-grid, .herb-grid-large { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .tisana-photo { width: min(78%, 320px); }
}
@media (max-width: 600px) {
  .article-head { padding-top: 24px; gap: 20px; }
  .article-arch { width: 78%; }
  .article-arch img { aspect-ratio: 5 / 4; }
  .article-plate { width: 62%; }
  .prose { font-size: 1.04rem; }
  .herb-grid, .herb-grid-large { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .herb-sheet-plate { padding: 14px; }
  .herb-sheet-plate img { max-height: 40vh; }
  .service-facts div { grid-template-columns: 1fr; gap: 2px; }
  .link-list-large a { font-size: 1.3rem; }
  /* Index pages are lists, not swipe rows */
  .posts.posts-grid, .posts.posts-2 { display: grid; grid-template-columns: 1fr; gap: 28px; overflow: visible; margin-inline: 0; padding: 0; }
  .posts-grid > .post, .posts-2 > .post { flex-basis: auto; }
  .ig-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 8px; gap: 10px; scrollbar-width: none; }
  .ig-strip::-webkit-scrollbar { display: none; }
  .ig-strip a { flex: 0 0 44%; scroll-snap-align: start; }
  .tisana-plate { width: 150px; right: -30px; bottom: -20px; }
  .tisana-text .btn { width: 100%; justify-content: center; }
  .search-dropdown { max-width: none; }
  .event-links { font-size: 0.86rem; }
}
.site-footer p + h3 { margin-top: 22px; }
@media (max-width: 900px) { .action-bar.is-typing { transform: translateY(calc(100% + 24px)); } }
.label-herb-link { color: inherit; text-decoration: none; } .label-herb-link:hover { color: var(--terra); }
/* Mid-size screens (small laptops, tablets in landscape): keep the menu on one line */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1120px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { font-size: 0.86rem; }
  .nav .btn-small { padding: 0.5em 0.95em; font-size: 0.84rem; }
  .logo-text { font-size: 1.2rem; }
}

/* Corporate gift ideas (/regali-aziendali/) */
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gift-card { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); padding: 24px 24px 20px; min-height: 360px; }
.gift-card[hidden] { display: none; }
.gift-plate { position: absolute; right: -10px; top: 10px; height: 46%; width: auto; max-width: 40%; object-fit: contain; mix-blend-mode: multiply; opacity: 0.55; pointer-events: none; }
.gift-meta { margin: 0; font-size: 0.62rem; color: var(--terra); letter-spacing: 0.1em; text-transform: uppercase; max-width: 70%; }
.gift-card h3 { font-size: 1.6rem; margin: 8px 0 4px; max-width: 70%; position: relative; }
.gift-note { color: var(--ink-soft); margin: 0 0 14px; max-width: 75%; position: relative; }
.gift-label { margin: 0 0 4px; font-size: 0.6rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; position: relative; }
.gift-items { list-style: none; padding: 0; margin: 0 0 18px; position: relative; }
.gift-items li { padding: 6px 0 6px 18px; border-bottom: 1px dashed var(--line); position: relative; font-size: 0.96rem; }
.gift-items li::before { content: "✿"; position: absolute; left: 0; top: 6px; font-size: 0.7rem; color: var(--sage-deep); }
.gift-foot { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; }
.gift-price { font-family: var(--serif); font-size: 1.2rem; color: var(--terra); letter-spacing: 0.08em; }
.gift-legend { margin-top: 24px; font-size: 0.64rem; color: var(--ink-soft); }
@media (max-width: 900px) { .gift-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .gift-grid { grid-template-columns: 1fr; gap: 16px; }
  .gift-card { min-height: 0; padding: 20px 18px 18px; }
  .gift-plate { height: 150px; }
}
.gift-note { max-width: 66%; } .gift-plate { opacity: 0.45; }

/* Topic filters on /consigli/ and static topic chips */
.filter-label { margin: 0 0 8px; font-size: 0.66rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; }
.chip-static { cursor: default; color: var(--ink-soft); }
.chip-static:hover { border-color: var(--line); color: var(--ink-soft); }
@media (max-width: 600px) {
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chips .chip { flex: 0 0 auto; }
}

/* Sources (plant pages, articles) and author box */
.sources { margin: 28px 0 8px; padding: 20px 22px; font-family: var(--sans); font-size: 0.95rem; }
.sources-title { margin: 0 0 8px; font-size: 0.66rem; color: var(--terra); text-transform: uppercase; letter-spacing: 0.1em; }
.evidence-badge { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: rgba(135, 181, 85, 0.16); color: var(--sage-deep); font-size: 0.85rem; font-weight: 600; }
.evidence-badge.is-strong { background: rgba(169, 84, 47, 0.12); color: var(--terra); }
.sources-list { list-style: none; padding: 0; margin: 0; }
.sources-list li { padding: 8px 0; border-top: 1px dashed var(--line); line-height: 1.5; }
.src-name { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.src-lang { color: var(--ink-soft); font-size: 0.85em; }
.sources-note { margin: 10px 0 0; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }
.article-sources { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.article-sources ul { padding-left: 1.1em; font-size: 0.95rem; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 28px 0 0; padding: 18px 20px; background: rgba(250, 247, 239, 0.75); border: 1px solid var(--line); border-radius: 4px; }
.author-box .logo-mark { flex: 0 0 auto; width: 52px; height: 28px; color: var(--sage-deep); margin-top: 4px; }
.author-seal { flex: 0 0 auto; width: 64px; height: 64px; }
.author-box .mono { margin: 0 0 4px; font-size: 0.62rem; color: var(--terra); text-transform: uppercase; letter-spacing: 0.1em; }
.author-box p { margin: 0; font-size: 0.95rem; }

/* "La mia lista" link in the header */
.header-inner .nav { order: 2; }
.list-link { order: 3; position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--forest); text-decoration: none; font-size: 0.9rem; padding: 6px 8px; border-radius: 999px; }
.list-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.list-link:hover { color: var(--terra); }
.list-count { position: absolute; top: 0; left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center; }
.list-count[hidden] { display: none; }
.nav-toggle { order: 4; }
.list-link-text { display: none; }
@media (max-width: 900px) {
  .list-link { margin-left: auto; }
}

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.product-grid-compact { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); padding: 14px 14px 16px; }
.product-card[hidden] { display: none; }
.product-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--paper) var(--grain); border: 1px solid var(--line-soft); margin-bottom: 12px; overflow: hidden; }
.product-photo { width: 100%; height: 100%; object-fit: cover; }
.product-plate { height: 88%; width: auto; mix-blend-mode: multiply; }
.product-lotus { width: 64px; height: 34px; color: var(--sage-deep); opacity: 0.6; }
.product-status { position: absolute; top: 8px; left: 8px; background: var(--card); border: 1px solid var(--terra); color: var(--terra); font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; }
.product-cat { margin: 0; font-size: 0.6rem; color: var(--terra); text-transform: uppercase; letter-spacing: 0.1em; }
.product-card h3 { font-size: 1.2rem; margin: 4px 0 4px; }
.product-desc { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 10px; line-height: 1.45; }
.product-herbs { margin: 0 0 10px; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.product-herbs .mono { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); margin-right: 4px; }
.product-herbs a { color: var(--sage-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.product-meta { margin: auto 0 10px; display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 8px; }
.add-to-list { justify-content: center; width: 100%; }
.add-to-list.is-added { background: var(--sage-deep); border-color: var(--sage-deep); }
.catalog-note { margin: -8px 0 22px; padding: 10px 14px; border-left: 2px solid var(--sage); background: rgba(135, 181, 85, 0.1); font-size: 0.9rem; color: var(--ink-soft); }
.in-shop { margin-top: 40px; }
.brands { margin-top: 48px; }
.brand-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.brand-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.brand-list strong { font-family: var(--serif, inherit); font-size: 1.2rem; font-weight: 600; }
.brand-list span { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.in-shop-more { font-size: 0.9rem; margin-top: 10px; }

/* Toast */
.list-toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 140%); display: flex; gap: 14px; align-items: center; background: var(--forest); color: var(--paper); padding: 12px 18px; border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); font-size: 0.92rem; transition: transform 0.35s ease; max-width: calc(100% - 24px); }
.list-toast.is-visible { transform: translate(-50%, 0); }
.list-toast a { color: var(--sage); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .list-toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* The /lista/ page */
.list-page { max-width: 760px; }
.list-items { margin: 24px 0; border-top: 1px solid var(--line); }
.list-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.list-name { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--forest); }
.list-formato { color: var(--ink-soft); font-size: 0.9rem; }
.list-note { display: block; width: 100%; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 0.88rem; background: var(--card); }
.list-qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.list-qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 1.2rem; color: var(--forest); cursor: pointer; border-radius: 50%; }
.list-qty button:hover { background: rgba(135, 181, 85, 0.15); }
.list-qty span { min-width: 22px; text-align: center; font-weight: 600; }
.list-remove { border: 0; background: none; font-size: 1.5rem; color: var(--ink-soft); cursor: pointer; padding: 4px 8px; }
.list-remove:hover { color: var(--terra); }
.list-empty { margin: 28px 0; }
.list-form { display: grid; gap: 14px; padding: 22px; font-family: var(--sans); font-size: 1rem; }
.list-form > .mono { margin: 0; color: var(--terra); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; }
.list-form label { display: grid; gap: 6px; font-weight: 500; }
.list-form input, .list-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.list-form .optional { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }
.list-privacy { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }
.list-clear { justify-self: start; border: 0; background: none; color: var(--ink-soft); text-decoration: underline; font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0; }
.list-form[hidden], .list-empty[hidden] { display: none; }

@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .product-grid, .product-grid-compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 10px 10px 12px; }
  .product-card h3 { font-size: 1.02rem; }
  .product-desc { display: none; }
  .product-herbs { font-size: 0.74rem; margin-bottom: 8px; }
  .product-meta { flex-direction: column; gap: 2px; font-size: 0.8rem; }
  .add-to-list { font-size: 0.8rem; padding: 0.55em 0.6em; }
  .list-row { grid-template-columns: 1fr auto; }
  .list-remove { grid-column: 2; grid-row: 1; align-self: start; }
  .list-qty { grid-column: 1; }
  .list-form .btn { width: 100%; justify-content: center; }
}
.list-toast { width: max-content; }
@media (max-width: 600px) {
  .header-inner { gap: 6px; }
  .logo { gap: 8px; }
  .logo-img { height: 36px; }
  .logo-text { font-size: 1.04rem; }
  .logo-text small { letter-spacing: 0.12em; font-size: 0.56rem; white-space: nowrap; }
  .nav-toggle { padding: 0.4em 0.85em; }
  .list-link { padding: 6px 4px; }
}
@media (max-width: 360px) { .logo-text small { display: none; } }
.list-qty { justify-self: start; }
@media (max-width: 360px) {
  .logo-mark { width: 36px; height: 20px; }
  .logo-img { height: 32px; }
  .logo-text { letter-spacing: 0.08em; font-size: 0.98rem; }
  .nav-toggle { padding: 0.35em 0.7em; font-size: 0.9rem; }
}

/* "Erbe e farmaci, insieme" block (home, chi siamo) and note on rimedi.html */
.approach { margin: 22px 0 6px; padding: 16px 20px; font-family: var(--sans); font-size: 0.98rem; transform: rotate(-0.6deg); }
.approach .mono { margin: 0 0 6px; color: var(--terra); }
.approach p { margin: 0 0 8px; color: var(--ink); }
.approach a { font-weight: 600; }
.approach-note { margin: 0 0 8px; padding: 12px 16px; border-left: 2px solid var(--sage); background: rgba(135, 181, 85, 0.1); font-size: 0.95rem; }

/* "Ogni persona è diversa" invitation (consigli, articles, remedies) */
.personal-note { position: relative; margin: 30px 0 32px; padding: 22px 24px 22px 26px; background: var(--forest) var(--grain); color: #dfe5d2; border-radius: 4px; }
.personal-note::after { content: ""; position: absolute; top: -26px; right: 18px; width: 78px; height: 78px; background: url("../img/logo/sigillo.svg") center / contain no-repeat; transform: rotate(8deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
.personal-note .personal-title { padding-right: 84px; }
.personal-note::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; background: var(--sage); border-radius: 2px; }
.personal-title { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; color: var(--paper); }
.personal-title em { color: var(--sage); }
.personal-note p { margin: 0 0 10px; max-width: 62ch; }
.personal-shop { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 0.88rem; color: #c9d1b8; }
.personal-note .open-now { color: #c9d1b8; margin: 0; }
.personal-note .open-now.is-open { color: var(--sage); }
.personal-note .cta-row { margin-top: 14px; }
.personal-note .btn { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.personal-note .btn:hover { background: var(--sage); border-color: var(--sage); color: var(--forest); }
.personal-note .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(243, 238, 226, 0.4); }
.prose .personal-note { margin-top: 36px; }
.personal-line { margin: 10px 0 0; font-size: 0.98rem; color: var(--ink-soft); max-width: 52ch; }
.personal-line a { font-weight: 600; }
.remedy-personal { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.95rem; }
@media (max-width: 600px) {
  .personal-note { padding: 20px 18px 20px 22px; }
  .personal-note .btn { width: 100%; justify-content: center; }
}
.prose .personal-note p { color: #dfe5d2; } .prose .personal-note .personal-title { color: var(--paper); } .prose .personal-note a.btn:not(.btn-ghost) { color: var(--forest); } .prose .personal-note a.btn-ghost { color: var(--paper); }

/* Responsive images: tools/build_pages.py wraps <img> in <picture> for the WebP versions.
   display: contents keeps the <img> laid out as if the wrapper weren't there. */
picture { display: contents; }
picture > source { display: none; } /* else it becomes an empty grid/flex item */

/* 404 page */
.not-found { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.not-found-plate { width: 100%; height: auto; mix-blend-mode: multiply; opacity: .85; }
.not-found .search { margin: 20px 0 28px; max-width: 520px; }
@media (max-width: 700px) {
  .not-found { grid-template-columns: 1fr; }
  .not-found-plate { max-width: 160px; }
}

@media (max-width: 600px) {
  .hero-seal { right: 0; top: -6%; width: 92px; }
  .personal-note::after { width: 64px; height: 64px; top: -22px; right: 12px; }
  .personal-note .personal-title { padding-right: 66px; }
  .footer-logo img { width: 200px; }
}
@media (max-width: 600px) { .hide-phone { display: none; } }
.plate-fallback { display: block; width: 46%; height: auto; aspect-ratio: 41 / 25; margin: auto; color: var(--sage-deep); opacity: 0.45; }
.herb-card-img:has(.plate-fallback), .herb-sheet-plate:has(.plate-fallback) { display: grid; place-items: center; min-height: 180px; }
.herb-card-img { overflow: hidden; }
.herb-card-img img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }

/* Product sheet (/prodotti/<id>/): the shop photo, not a plate */
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-sheet .herb-sheet-plate img.product-sheet-photo { mix-blend-mode: normal; width: 100%; max-height: none; height: auto; border: 1px solid var(--line, rgba(0,0,0,.15)); }
.product-sheet .personal-note { margin-top: 28px; }

/* /grazie/: landing page of the QR on the gift-box cards */
.grazie-seal { display: block; width: 88px; height: 88px; margin-bottom: 18px; transform: rotate(-8deg); }
.grazie h1 { margin-top: 12px; }
.grazie .prose { margin-top: 20px; }
.grazie-visit { margin: 0; text-align: center; color: var(--ink-soft); }
.grazie-cta { margin-top: 26px; }
.grazie-more { margin: 14px 0 0; text-align: center; color: var(--ink-soft); font-size: 0.95rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.grazie-end { padding: 44px 0; }
.nl-confirmed { max-width: 640px; margin: 0 auto; text-align: center; }
.nl-confirmed .grazie-seal { margin: 0 auto 18px; }
.nl-confirmed .prose { margin: 20px auto 0; }
.nl-confirmed .cta-row { justify-content: center; margin-top: 26px; }
.footer-share { background: none; border: 0; padding: 0; font: inherit; color: var(--paper); text-decoration: underline; cursor: pointer; }
.share-done { font-size: 0.85rem; color: var(--sage-deep); margin-left: 6px; }
.site-footer .share-done { color: #c9d1b8; }
@media (max-width: 900px) { .grazie .about-photo { width: min(100%, 300px); } }

/* /recensione/: welcome page with one button to Google's review window */
.review-page .prose { margin-top: 20px; }
.review-go { margin-top: 30px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.4);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.review-stars-deco { font-size: 2.2rem; line-height: 1; letter-spacing: 0.08em; color: var(--terra); }
.review-btn { font-size: 1.08rem; padding: 1em 2em; }
.review-note { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.review-page .signature { margin-top: 28px; }

/* The /chat/ page (js/chat.js) */
.chat-page { max-width: 760px; }
.chat-page [hidden] { display: none !important; }
.chat-loading { color: var(--ink-soft); }
.chat-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 28px 0 16px; }
.chat-tabs button { border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; }
.chat-tabs button[aria-selected="true"] { color: var(--forest); border-bottom-color: var(--terra); }
.chat-form { display: grid; gap: 14px; padding: 22px; font-family: var(--sans); font-size: 1rem; }
.chat-form > .mono { margin: 0; color: var(--terra); font-size: 0.66rem; letter-spacing: 0.1em; }
.chat-form label, .chat-delete label { display: grid; gap: 6px; font-weight: 500; }
.chat-form input:not([type=checkbox]), .chat-delete input, .chat-compose textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.chat-form .optional { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }
.chat-form .btn { justify-self: start; }
label.chat-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.92rem; line-height: 1.45; }
.chat-check input { margin: 3px 0 0; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--forest); }
.chat-error { margin: 0; color: var(--terra); font-weight: 600; font-size: 0.92rem; }
.chat-hint { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.chat-ok { margin: 0; color: var(--sage-deep); font-weight: 600; font-size: 0.92rem; }
.chat-form .chat-link { justify-self: start; }
.chat-link { border: 0; background: none; padding: 0; font: inherit; font-size: 0.9rem; color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chat-link:hover { color: var(--terra); }

.chat-room { margin-top: 28px; }
.chat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.chat-head p { margin: 0; }
.chat-settings { display: grid; gap: 10px; margin: 14px 0; padding: 16px 18px; font-family: var(--sans); font-size: 0.95rem; }
.chat-account { margin: 0; color: var(--ink-soft); font-size: 0.88rem; overflow-wrap: anywhere; }
.chat-settings-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.chat-delete { display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.chat-delete .btn { justify-self: start; }

.chat-thread { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chat-day { align-self: center; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 8px 0 2px; }
.chat-msg { max-width: min(82%, 520px); padding: 10px 14px 8px; border-radius: 16px; box-shadow: 0 1px 0 rgba(35, 41, 31, 0.06); }
.chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.chat-meta { display: block; margin-top: 4px; font-size: 0.72rem; opacity: 0.75; }
.chat-msg-shop { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg-shop .chat-meta { color: var(--sage-deep); opacity: 1; font-weight: 600; }
.chat-msg-me { align-self: flex-end; background: var(--forest); color: var(--paper); border-bottom-right-radius: 4px; }
.chat-msg-me .chat-meta { text-align: right; }

.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; position: sticky; bottom: 12px; background: var(--paper) var(--grain); padding: 10px 0; }
.chat-compose textarea { resize: none; min-height: 48px; max-height: 220px; line-height: 1.45; }
.chat-compose .chat-error { grid-column: 1 / -1; }
@media (max-width: 900px) {
  body:has([data-chat]) .action-bar { display: none; }   /* the bar would cover the message box */
  .chat-compose { bottom: env(safe-area-inset-bottom); }
  .chat-msg { max-width: 88%; }
}
@media (max-width: 600px) { .chat-form .btn { width: 100%; justify-content: center; } }

/* The /scrivici/ page: choose the site chat or email (2026-12-01) */
.write-page { max-width: 860px; }
.write-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0 22px; }
.write-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; font-family: var(--sans); font-size: 1rem; color: inherit; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.write-choice:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(30, 49, 37, 0.45); }
.write-choice svg { width: 34px; height: 34px; fill: none; stroke: var(--sage-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.write-choice .mono { margin: 4px 0 0; color: var(--terra); font-size: 0.66rem; letter-spacing: 0.1em; }
.write-title { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; color: var(--forest); }
.write-text { flex: 1; color: var(--ink-soft); line-height: 1.5; }
.write-choice .btn { margin-top: 10px; }
.write-voice { color: var(--ink-soft); }
@media (max-width: 600px) { .write-choices { grid-template-columns: 1fr; gap: 14px; } }
