/* Layout: fascia verde in apertura, bande alternate bianco/menta con colonna centrale da 74rem,
   schede bianche arrotondate con icona, piè di pagina verde scuro. */
:root {
  --bg: #fafcf8;
  --surface: #eef6ea;
  --card: #ffffff;
  --fg: #15281a;
  --muted: #4f6352;
  --line: #d8e8d1;
  --accent: #227a2e;
  --accent-strong: #185f23;
  --accent-soft: #e0f1d7;
  --on-accent: #ffffff;
  --warm: #b9df8e;
  --warm-soft: #eef8e2;

  --hero-bg: #1a5f26;
  --hero-bg-2: #2f8a35;
  --hero-fg: #ffffff;
  --hero-muted: #d6eecb;

  --footer-bg: #14391b;
  --footer-fg: #e5f2e0;
  --footer-muted: #a9c8a2;

  --label: #fffdf5;
  --label-line: #d9c993;
  --plate: #ffffff;

  --shadow: 0 1px 2px rgba(16, 41, 30, 0.05), 0 10px 28px -14px rgba(16, 41, 30, 0.22);
  --shadow-lg: 0 2px 6px rgba(16, 41, 30, 0.06), 0 24px 48px -20px rgba(16, 41, 30, 0.35);

  --f-display: "Montserrat", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-brand: "Barlow", "Montserrat", system-ui, sans-serif;
  --brand-green: #58a04f;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 74rem;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 4.5rem;

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d150f;
    --surface: #132017;
    --card: #18291d;
    --fg: #e7f2e3;
    --muted: #a0b59b;
    --line: #273a2b;
    --accent: #86d26a;
    --accent-strong: #a9e392;
    --accent-soft: #1f3a22;
    --on-accent: #0c2010;
    --warm: #a6d77a;
    --warm-soft: #2b3a20;
    --hero-bg: #133d1a;
    --hero-bg-2: #1f5a27;
    --hero-fg: #f1faf5;
    --hero-muted: #b9dccb;
    --footer-bg: #0a1d0e;
    --footer-fg: #dceee5;
    --footer-muted: #94b5a5;
    --label: #1c2620;
    --label-line: #6e6440;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d150f;
  --surface: #132017;
  --card: #18291d;
  --fg: #e7f2e3;
  --muted: #a0b59b;
  --line: #273a2b;
  --accent: #86d26a;
  --accent-strong: #a9e392;
  --accent-soft: #1f3a22;
  --on-accent: #0c2010;
  --warm: #a6d77a;
  --warm-soft: #2b3a20;
  --hero-bg: #133d1a;
  --hero-bg-2: #1f5a27;
  --hero-fg: #f1faf5;
  --hero-muted: #b9dccb;
  --footer-bg: #0a1d0e;
  --footer-fg: #dceee5;
  --footer-muted: #94b5a5;
  --label: #1c2620;
  --label-line: #6e6440;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 7rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--card);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0; color: var(--fg); }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.prose { max-width: 65ch; display: grid; gap: 1rem; }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 58ch; }

.eyebrow {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 30; background: var(--card); padding: 0.5rem 0.8rem; border-radius: 8px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Testata */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem 2rem; min-height: var(--header-h); flex-wrap: wrap; padding-block: 0.55rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--fg); margin-right: auto; }
.brand strong { display: block; font-family: var(--f-brand); font-size: 1.45rem; font-weight: 700; letter-spacing: 0; line-height: 1.05; color: var(--brand-green); }
.brand small { display: block; font-size: 0.8rem; color: var(--muted); }
.brand-mark { width: 40px; height: 40px; flex: none; }

/* Menu principale */
.menu-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-item:hover { background: var(--surface); color: var(--accent-strong); }
.nav-item[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-desc { display: none; }
.nav-cta { background: var(--accent); color: var(--on-accent); margin-left: 0.5rem; padding-inline: 1.15rem; box-shadow: 0 6px 16px -8px rgba(34, 122, 46, 0.7); }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--accent-strong); color: var(--on-accent); }
.nav-calls { display: none; }

@media (max-width: 1320px) { .brand small { display: none; } }

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 0; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--fg);
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: 0.55rem 1rem 0.55rem 0.85rem; cursor: pointer;
  }
  .menu-icon, .menu-icon span, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform 0.2s ease, opacity 0.2s ease; }
  .menu-icon { position: relative; background: transparent; }
  .menu-icon span { position: absolute; top: 0; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; }
  .menu-icon::before { top: -5px; }
  .menu-icon::after { top: 5px; }
  .is-open .menu-icon span { opacity: 0; }
  .is-open .menu-icon::before { transform: translateY(5px) rotate(45deg); }
  .is-open .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-block: 0.5rem 1rem; }
  .has-js .site-nav { display: none; }
  .has-js.is-open .site-nav { display: flex; }
  .nav-item { border-radius: 0; padding: 0.9rem 2rem 0.9rem 0; border-top: 1px solid var(--line); font-size: 1.1rem; gap: 0.1rem; margin: 0; white-space: normal; }
  .nav-item:hover, .nav-item[aria-current="page"] { background: transparent; }
  .nav-item::before {
    content: ""; position: absolute; right: 0.4rem; top: 50%; width: 9px; height: 9px;
    border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg);
  }
  .nav-desc { display: block; font-size: 0.88rem; font-weight: 400; color: var(--muted); }
  .nav-cta, .nav-cta:hover, .nav-cta[aria-current="page"] { background: transparent; color: var(--fg); margin: 0; padding-inline: 0 2rem; box-shadow: none; }
  .nav-cta[aria-current="page"] { color: var(--accent); }
  .nav-calls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
  .nav-calls a { display: grid; gap: 0.1rem; text-decoration: none; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; min-width: 0; }
  .nav-calls span { font-size: 0.8rem; opacity: 0.88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-calls strong { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
}

/* Bande */
.band { padding-block: clamp(3.25rem, 2rem + 4.5vw, 6rem); }
.band--tint { background: var(--surface); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.5rem; max-width: 62ch; align-content: start; }
.grid > .section-head { margin-bottom: 0; }

/* Apertura della home: fascia verde */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg-2) 100%);
  color: var(--hero-fg);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22.9 22.9'%3E%3Crect x='7.8' y='0.0' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='11.7' y='0.0' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='7.8' y='3.9' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='11.7' y='3.9' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='0.0' y='7.8' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='3.9' y='7.8' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='7.8' y='7.8' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='11.7' y='7.8' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='15.6' y='7.8' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='19.5' y='7.8' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='0.0' y='11.7' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='3.9' y='11.7' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='7.8' y='11.7' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='11.7' y='11.7' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='15.6' y='11.7' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='19.5' y='11.7' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='7.8' y='15.6' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='11.7' y='15.6' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='7.8' y='19.5' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3Crect x='11.7' y='19.5' width='3.4' height='3.4' rx='0.55' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero::before { width: 30rem; height: 30rem; right: -7rem; bottom: -10rem; opacity: 0.09; transform: rotate(8deg); }
.hero::after { width: 8rem; height: 8rem; left: 47%; top: -1.5rem; opacity: 0.07; transform: rotate(-8deg); }
.hero h1 { color: var(--hero-fg); }
.hero .lead { color: var(--hero-muted); }
.hero .eyebrow { color: var(--hero-muted); }
.hero .eyebrow::before { background: var(--warm); }
.hero .btn--primary { background: #ffffff; color: #1a5f26; border-color: #ffffff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); }
.hero .btn--primary:hover { background: var(--warm-soft); border-color: var(--warm-soft); color: #1a5f26; }
.hero .btn--ghost { color: var(--hero-fg); border-color: rgba(255, 255, 255, 0.6); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--hero-fg); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }

/* Testata delle pagine interne */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(2.75rem, 1.75rem + 3.5vw, 5rem);
  background: linear-gradient(160deg, var(--accent-soft) 0%, var(--surface) 70%);
}
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  right: -4rem;
  top: -5rem;
  transform: rotate(10deg);
  opacity: 0.1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22.9 22.9'%3E%3Crect x='7.8' y='0.0' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='11.7' y='0.0' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='7.8' y='3.9' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='11.7' y='3.9' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='0.0' y='7.8' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='3.9' y='7.8' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='7.8' y='7.8' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='11.7' y='7.8' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='15.6' y='7.8' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='19.5' y='7.8' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='0.0' y='11.7' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='3.9' y='11.7' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='7.8' y='11.7' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='11.7' y='11.7' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='15.6' y='11.7' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='19.5' y='11.7' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='7.8' y='15.6' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='11.7' y='15.6' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='7.8' y='19.5' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3Crect x='11.7' y='19.5' width='3.4' height='3.4' rx='0.55' fill='%2358a04f'/%3E%3C/svg%3E") center / contain no-repeat;
}
.page-hero .wrap { display: grid; gap: 1.1rem; }

/* Pulsanti */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 22px -12px rgba(34, 122, 46, 0.8); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn--ghost { color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); }

/* La nostra storia (nella fascia verde) */
.story {
  background: var(--card);
  color: var(--fg);
  border-radius: 22px;
  padding: 1.75rem 1.75rem 1.5rem;
  display: grid;
  gap: 1.15rem;
  max-width: 29rem;
  width: 100%;
  justify-self: end;
  box-shadow: var(--shadow-lg);
}
.story h2 { font-size: 1.45rem; color: var(--fg); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.timeline li { position: relative; padding-left: 1.75rem; display: grid; gap: 0.2rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: calc(0.425rem - 1px); top: 1.25rem; bottom: -1.1rem; width: 2px; background: var(--line); }
.timeline li:last-child::before { background: var(--accent); }
.timeline .when { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.timeline p { font-size: 0.98rem; color: var(--muted); }

/* Etichetta del preparato */
.rx-label {
  background: var(--label);
  border: 1px solid var(--label-line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem 1.25rem;
  font-family: var(--f-mono);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--fg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  max-width: 26rem;
  justify-self: center;
  width: 100%;
}
.rx-label header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px dashed var(--label-line); padding-bottom: 0.7rem; margin-bottom: 0.8rem; }
.rx-label .rx { font-family: var(--f-display); font-size: 2.1rem; font-weight: 800; font-style: italic; color: var(--accent); line-height: 1; }
.rx-label dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; }
.rx-label dt { color: var(--muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; padding-top: 0.15em; }
.rx-label dd { margin: 0; }
.rx-label footer { border-top: 1px dashed var(--label-line); margin-top: 0.9rem; padding-top: 0.7rem; color: var(--muted); font-size: 0.78rem; }

/* Griglie e schede */
.grid { display: grid; gap: 1.35rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-width: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.card ul li::marker { color: var(--accent); }
.card p { color: var(--muted); }
.card .tag { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card a.more { font-weight: 700; text-decoration: none; margin-top: 0.35rem; }
.card a.more:hover { text-decoration: underline; }
.card-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.card-icon svg { width: 1.6rem; height: 1.6rem; }

/* Schede delle farmacie */
.pharmacy-card { padding: 1.8rem; gap: 0.95rem; border-top: 5px solid var(--accent); }
.pharmacy-card h3 { font-size: 1.6rem; }
.pharmacy-card .badge {
  justify-self: start;
  font-weight: 700; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #173d1c; background: var(--warm);
  border-radius: 999px; padding: 0.25rem 0.75rem;
}
.pharmacy-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 1.1rem; }
.pharmacy-card dt { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
.pharmacy-card dd { margin: 0; font-weight: 500; }

/* Elenchi */
.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; align-content: start; align-self: center; }
.plain-list li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.plain-list li::before {
  content: "";
  width: 1.5rem; height: 1.5rem; margin-top: 0.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 0.85rem no-repeat,
    var(--accent);
}

/* Passaggi */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; gap: 0.6rem; align-content: start; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem;
}
.steps p { color: var(--muted); }

/* Tabella forme farmaceutiche */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 36rem; font-size: 1rem; }
th, td { text-align: left; padding: 0.95rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 700; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.via { font-weight: 700; font-size: 0.85rem; color: var(--accent); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em; }
tbody th { font-weight: 700; font-family: var(--f-display); }

/* Domande frequenti */
.faq { display: grid; gap: 0.8rem; max-width: 52rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 1.25rem; line-height: 1; font-weight: 600;
}
.faq details[open] summary::after { content: "–"; background: var(--accent); color: var(--on-accent); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); max-width: 65ch; }

/* Fascia informazioni */
.info-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1.5rem 2rem; align-items: center; }
.info-strip > div { display: grid; gap: 0.25rem; min-width: 0; }
.info-label { font-weight: 700; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.info-value { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
.info-value a { color: var(--fg); text-decoration: none; }
.info-value a:hover { color: var(--accent); }

/* Orari */
.hours-shared { margin-top: 2.25rem; display: grid; gap: 1rem; }
.hours-shared h3 { font-size: 1.3rem; }
.hours-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow-x: auto; max-width: 36rem; width: 100%; box-shadow: var(--shadow); align-self: center; }
table.hours { min-width: 0; width: 100%; font-size: 0.98rem; }
.hours caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hours th, .hours td { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hours thead th { background: var(--accent-soft); color: var(--accent); font-size: 0.74rem; }
.hours tbody th { font-weight: 700; font-family: var(--f-body); }
.hours td { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.is-turno td { color: var(--muted); font-weight: 500; }
.turno-chip {
  display: inline-block; margin-left: 0.4rem;
  font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: #173d1c; background: var(--warm);
  border-radius: 999px; padding: 0.12rem 0.55rem;
  vertical-align: 0.12em; white-space: nowrap;
}
.turni-note { margin: 0; padding: 0.95rem 1.1rem; font-size: 0.93rem; color: var(--muted); background: var(--surface); }
@media (max-width: 520px) {
  .hours th, .hours td { padding: 0.65rem 0.6rem; }
  .hours tbody th { font-size: 0.93rem; }
  .hours td { font-size: 0.86rem; }
  .turno-chip { display: block; width: max-content; margin: 0.3rem 0 0; }
}

/* Comuni */
.towns { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; list-style: none; align-content: center; }
.towns li { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.95rem; font-size: 0.95rem; font-weight: 600; background: var(--card); box-shadow: 0 1px 2px rgba(16, 41, 30, 0.05); }

/* Segnaposto da completare */
.todo { background: rgba(214, 170, 40, 0.2); border: 1px dashed #b8901f; border-radius: 5px; padding: 0 0.35em; font-weight: 600; font-style: italic; }

/* Apoteca Natura e marchi */
.partner-logo { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; max-width: 20rem; margin-bottom: 0.5rem; box-shadow: var(--shadow); }
.partner-logo img { display: block; width: 100%; height: auto; }
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; max-width: 54rem; }
.brand-tile { display: grid; place-items: center; min-height: 7rem; padding: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.brand-tile span { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--fg); }
.brand-tile img { max-width: 100%; max-height: 3.5rem; width: auto; height: auto; }
.brands-note { margin-top: 1.35rem; color: var(--muted); }
@media (max-width: 520px) { .brands { grid-template-columns: minmax(0, 1fr); } .brand-tile { min-height: 4.75rem; } }

/* Offerte ed eventi */
.news-card { gap: 0.6rem; }
.news-when { display: flex; align-items: baseline; gap: 0.55rem; padding-bottom: 0.75rem; border-bottom: 1px dashed var(--line); margin-bottom: 0.2rem; }
.news-day { font-family: var(--f-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.news-month { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.news-until { color: #173d1c; background: var(--warm); border-radius: 999px; padding: 0.2rem 0.7rem; }
.news-card--offerta .news-when { padding-top: 0.2rem; }
.example-chip { justify-self: start; margin-top: 0.35rem; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(214, 170, 40, 0.2); border: 1px dashed #b8901f; border-radius: 999px; padding: 0.12rem 0.65rem; color: var(--fg); }
.is-empty { grid-template-columns: minmax(0, 1fr); }
.news-empty { color: var(--muted); }

/* Piè di pagina */
.site-footer { background: var(--footer-bg); color: var(--footer-muted); padding-block: 3.5rem 2.75rem; font-size: 0.96rem; }
.site-footer a { color: var(--footer-fg); }
.site-footer a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr; gap: 2.25rem; }
.footer-grid strong { color: var(--footer-fg); font-family: var(--f-display); font-size: 1.08rem; }
.footer-grid nav { display: grid; gap: 0.45rem; align-content: start; }
.footer-grid nav a { text-decoration: none; font-weight: 600; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-note { margin-top: 2.25rem; padding-top: 1.35rem; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.86rem; }
.site-footer .todo { color: var(--footer-fg); }

/* Adattamento */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .story { justify-self: start; max-width: none; }
  .rx-label { justify-self: start; transform: rotate(-1deg); }
  .grid--3, .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--4, .info-strip { grid-template-columns: minmax(0, 1fr); }
  .hero::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .nav-item, .menu-icon span, .menu-icon::before, .menu-icon::after { transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* Loghi delle farmacie (su fondo bianco anche in tema scuro) */
.pharmacy-logo { background: var(--plate); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; max-width: 19rem; }
.pharmacy-logo img { display: block; width: 100%; height: auto; }
.pharmacy-card .pharmacy-logo { margin: 0 0 0.2rem -0.8rem; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.page-hero-copy { display: grid; gap: 1.1rem; min-width: 0; }
.pharmacy-logo--lg { max-width: 24rem; width: 100%; justify-self: end; padding: 1.2rem 1.4rem; border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: var(--radius); }
@media (max-width: 820px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .pharmacy-logo--lg { justify-self: start; order: -1; max-width: 18rem; }
}
@media (max-width: 520px) {
  .brand { gap: 0.55rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand strong { font-size: 1.22rem; }
  .menu-toggle { padding: 0.5rem 0.85rem 0.5rem 0.75rem; }
}
.pharmacy-card .pharmacy-logo { max-width: 100%; padding: 0.4rem 0.6rem; }
.pharmacy-card .pharmacy-logo img { width: auto; height: 4.4rem; max-width: 100%; object-fit: contain; object-position: left center; }

/* Riquadri marchi su fondo bianco, come i loghi ufficiali */
.brand-tile { background: var(--plate); }
.brand-tile span { color: #15281a; }
.brand-tile img { max-height: 3.4rem; max-width: 80%; }
.brand-tile img[src*="rilastil"] { max-height: 4.6rem; }
.brand-tile img.brand-badge { max-height: 4.4rem; border-radius: 10px; }
.brand-tile img[src*="svr"] { max-height: 4rem; }

/* Offerte con immagine e prezzo */
.news-media { display: block; margin: -1.6rem -1.6rem 0.4rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--plate); border-bottom: 1px solid var(--line); }
.news-media img { display: block; width: 100%; height: 13rem; object-fit: contain; padding: 0.75rem; }
a.news-media img { object-fit: cover; object-position: top; padding: 0; }
.news-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem 0.75rem; margin-top: 0.2rem; }
.news-price-now { font-family: var(--f-display); font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.news-price-old { color: var(--muted); font-size: 1.05rem; }
.news-price-off { font-weight: 700; font-size: 0.85rem; color: #ffffff; background: #c8352c; border-radius: 999px; padding: 0.15rem 0.6rem; }
.news-omnibus { font-size: 0.85rem; }

/* Pagine di testo (informativa privacy) */
.legal { gap: 1.1rem; max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin-top: 1rem; }
.legal p { color: var(--muted); }
.legal p strong { color: var(--fg); }
.legal-date { margin-top: 1rem; font-size: 0.9rem; }
