/* ==========================================================================
   ANTIDOTO — design system
   Derivato dal branding H3L "D6" (2020): oliva, antracite, grigi neutri,
   accento salvia; tipografia monospace per etichette, display spaziato.
   ========================================================================== */

:root {
  /* Palette E2 (pp. 24–34): pietra, salvia, nero, bianco; giallo acido per evidenziare, rame per le linee */
  --stone: #e8e9e3;
  --sage: #a5b49f;
  --sage-deep: #8b9a85;
  --sage-ink: #4d5a48;
  --olive: var(--sage);
  --olive-dark: var(--sage-deep);
  --charcoal: #141414;
  --ink: #111111;
  --grey-light: #cfd0c9;
  --grey-mid: #7d7f76;
  --paper: #ffffff;
  --paper-warm: #f3f3ef;
  --acid: #ffff00;
  --copper: #b3875b;
  --blush: #f0b9b3;
  --line: rgba(17, 17, 17, 0.16);
  --line-strong: rgba(17, 17, 17, 0.38);

  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-display: "Newsreader", "Times New Roman", Georgia, serif;
  --font-serif: "Cutive", "Courier Prime", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

/* ---------- Typography ---------- */
.mono, .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.label--sm { font-size: 10px; }
.label--muted { color: var(--grey-mid); }
.spaced {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.6em;
  font-size: 11px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -.01em; }
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.1; }
.display { font-size: clamp(44px, 8vw, 120px); font-weight: 300; letter-spacing: -.02em; }
.h1 { font-size: clamp(36px, 5.2vw, 76px); }
.h2 { font-size: clamp(28px, 3.6vw, 52px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); }
.h4 { font-size: 19px; font-weight: 400; font-family: var(--font-serif); letter-spacing: 0; }
.tracked { text-transform: uppercase; letter-spacing: .32em; font-weight: 400; }
.lead { font-family: var(--font-serif); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; font-weight: 400; max-width: 50ch; }
.muted { color: var(--grey-mid); }
p { margin: 0 0 1em; }
.small { font-size: 14px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.section--tight { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.bg-olive { background: var(--paper); color: var(--ink); }
/* il salvia è riservato a poche sezioni scelte (tavola E2 p. 31): scheda prodotto, laboratorio */
.bg-sage { background: var(--sage); color: var(--ink); }
.bg-sage .muted { color: rgba(17,17,17,.65); }
.bg-charcoal { background: var(--ink); color: var(--paper); }
.bg-grey { background: var(--paper); }
.bg-mid { background: var(--paper); color: var(--ink); }
.bg-warm { background: var(--paper); }
.bg-acid { background: var(--acid); color: var(--ink); }
.bg-charcoal .muted { color: rgba(255,255,255,.62); }
.bg-olive .muted, .bg-mid .muted { color: rgba(17,17,17,.62); }
.grid { display: grid; gap: var(--gutter); }
.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)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--s, 16px); }
.stack > .btn:not(.btn--block), .stack > .link, .stack > .tag, .stack > .date-chip { align-self: flex-start; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.center { text-align: center; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.bg-charcoal .hr { background: rgba(255,255,255,.2); }
.bg-olive .hr { background: var(--line-strong); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-4.keep-2, .grid-3.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- Sheet header (the "confidential" document frame) ---------- */
.sheet-meta {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 680px) { .sheet-meta { grid-template-columns: 1fr 1fr; gap: 8px 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 2px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: #333; border-color: #333; color: var(--paper); }
.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); }
.btn--light { background: var(--paper); color: var(--charcoal); border-color: var(--paper); }
.btn--light:hover { background: var(--stone); border-color: var(--stone); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: var(--paper); color: var(--charcoal); }
.btn--sage { background: var(--sage); border-color: var(--ink); color: var(--ink); }
.btn--sage:hover { background: var(--paper); border-color: var(--paper); }
.btn--block { width: 100%; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 11px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  display: inline-flex; gap: 8px; align-items: center;
}
.link:hover { opacity: .6; }
.bg-charcoal .link:hover { color: var(--acid); }

.arrow::after { content: "→"; font-size: 1.1em; line-height: 1; }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
}
.tag--sage { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.tag--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.date-chip { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); font-family: var(--font-mono); font-size: 11px; padding: 2px 10px; letter-spacing: .1em; }

/* ---------- Dotted connector (action > reaction) ---------- */
.dots {
  height: 4px; flex: 1;
  background-image: radial-gradient(circle, var(--copper) 1.1px, transparent 1.5px);
  background-size: 8px 4px; background-repeat: repeat-x; background-position: left center;
}

/* ---------- Announcement + Header ---------- */
.announce {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 9px var(--gutter); overflow: hidden; white-space: nowrap;
}
.announce span { color: inherit; }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.header__logo img { height: 15px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a, .nav button { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 0; position: relative; }
.nav a::after, .nav button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--charcoal); transition: right .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav button:hover::after { right: 0; }
.header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; position: relative; }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.icon-btn .count {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--sage); color: var(--ink); border-radius: 9px;
  font-family: var(--font-mono); font-size: 10px; line-height: 17px; text-align: center;
}
.icon-btn .count:empty, .icon-btn .count[data-n="0"] { display: none; }
.lang { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; padding: 0 8px; height: 40px; }
.burger { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .header__logo { justify-self: center; }
  .lang { display: none; }
  .mega { display: none; }
}
@media (max-width: 420px) { .header__actions .hide-xs { display: none; } }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
.mega h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey-mid); margin-bottom: 14px; font-weight: 400; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 5px 0; font-size: 15px; }
.mega li a:hover { color: var(--olive); }
.mega__promo { background: var(--sage); color: var(--ink); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }

/* Mobile drawer menu */
.drawer {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
}
.drawer__scrim { position: absolute; inset: 0; background: rgba(17,17,17,.4); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; width: min(440px, 100%);
  background: var(--paper); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); }
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer__body { padding: 24px var(--gutter); flex: 1; }
.drawer__foot { padding: 20px var(--gutter); border-top: 1px solid var(--line); }
.m-nav a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 300; }

/* Search overlay */
.search {
  position: fixed; inset: 0; z-index: 95; background: rgba(255,255,255,.98);
  display: none; padding-top: 12vh;
}
.search.is-open { display: block; }
.search input {
  width: 100%; border: 0; border-bottom: 1px solid var(--charcoal); background: transparent;
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 56px); font-weight: 300; padding: 10px 0; outline: none;
}
.search__results { margin-top: 32px; display: grid; gap: 4px; }
.search__results a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.search__results a:hover { color: var(--olive); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h) - 34px); display: flex; flex-direction: column; padding-top: 32px; padding-bottom: 40px; }
.hero__body { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: var(--gutter); padding: 48px 0; }
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__visual img { width: min(340px, 70%); opacity: .95; }
.hero__foot { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; align-items: end; }
.legal-strip { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; line-height: 1.6; max-width: 70ch; }
@media (max-width: 860px) {
  .hero__body { grid-template-columns: 1fr; padding: 32px 0; }
  .hero__visual { order: -1; }
  .hero__visual img { width: 160px; }
  .hero__foot { grid-template-columns: 1fr; }
}

/* Concept triad: seed + fingerprint + plant */
.triad { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; text-align: center; }
.triad__item { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.triad__item svg, .triad__item img { height: 160px; width: auto; }
.triad__plus { font-family: var(--font-mono); font-size: 22px; font-weight: 300; }
@media (max-width: 680px) {
  .triad { grid-template-columns: 1fr; }
  .triad__item svg, .triad__item img { height: 110px; }
}

/* Action > reaction timeline */
.reaction { display: flex; align-items: center; gap: 18px; }
.reaction__node { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 180px; }
.reaction__node svg { height: 90px; width: auto; }
@media (max-width: 760px) {
  .reaction { flex-direction: column; align-items: stretch; }
  .reaction .dots { height: 40px; flex: 0 0 40px; background-image: radial-gradient(circle, var(--sage) 1.6px, transparent 2px); background-size: 4px 12px; background-repeat: repeat-y; background-position: center top; }
  .reaction__node { max-width: none; }
}

/* ---------- Product card ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1100px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } }
.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative; aspect-ratio: 4 / 5; background: var(--paper-warm);
  display: grid; place-items: center; overflow: hidden;
}
.card__media .bottle { width: 46%; transition: transform .6s var(--ease); }
.card:hover .card__media .bottle { transform: translateY(-6px) scale(1.02); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card__wish { position: absolute; top: 6px; right: 6px; }
.card__wish.is-on svg { fill: var(--charcoal); }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  opacity: 0; transform: translateY(8px); transition: .3s var(--ease);
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; }
@media (hover: none) { .card__quick { display: none; } }
.card__body { padding-top: 14px; display: grid; gap: 4px; }
.card__cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-mid); }
.card__name { font-size: 18px; font-weight: 400; line-height: 1.25; }
.card__claim { font-size: 14px; color: var(--grey-mid); line-height: 1.4; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; }
.stars { color: var(--charcoal); letter-spacing: 1px; font-size: 12px; }
.stars small { color: var(--grey-mid); letter-spacing: 0; margin-left: 4px; font-family: var(--font-mono); }

/* ---------- Bottles (CSS / SVG product renders) ---------- */
.bottle { aspect-ratio: 1 / 2; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field label, .field .label { color: var(--grey-mid); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); background: var(--paper);
  border-radius: 0; outline: none; transition: border-color .2s;
}
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--charcoal); }
.bg-charcoal .input { background: transparent; border-color: rgba(255,255,255,.5); color: var(--paper); }
.bg-charcoal .input::placeholder { color: rgba(255,255,255,.6); }
.bg-olive .input { background: var(--paper); border-color: var(--line-strong); }
.inline-form { display: flex; gap: 0; }
.inline-form .input { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--charcoal); }

/* Choice tiles (quiz, configurator) */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  border: 1px solid var(--line-strong); padding: 16px 18px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.choice > span small { color: var(--grey-mid); font-size: 13px; line-height: 1.4; }
.choice:hover > span { border-color: var(--charcoal); }
.choice input:checked + span { border-color: var(--charcoal); background: var(--charcoal); color: var(--paper); }
.choice input:checked + span small { color: rgba(255,255,255,.7); }
.choice input:focus-visible + span { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.choices--pills { display: flex; flex-wrap: wrap; gap: 8px; }
.choices--pills .choice > span { padding: 10px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 18px; font-weight: 300; transition: transform .25s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 0 24px; }
.bg-charcoal .acc, .bg-charcoal .acc details { border-color: rgba(255,255,255,.2); }
.bg-olive .acc, .bg-olive .acc details { border-color: var(--line-strong); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: 14px 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; color: var(--grey-mid);
}
.tabs button[aria-selected="true"] { border-color: var(--charcoal); color: var(--charcoal); }
.tabpanel[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 80px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-mid); font-weight: 400; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer a:hover { color: var(--acid); }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-end; }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.pay span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; border: 1px solid rgba(255,255,255,.3); padding: 4px 7px; text-transform: uppercase; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Cart drawer ---------- */
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line__media { aspect-ratio: 4/5; background: var(--paper-warm); display: grid; place-items: center; }
.cart-line__media .bottle { width: 52%; }
.cart-line__meta { font-size: 13px; color: var(--grey-mid); line-height: 1.4; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); height: 34px; align-items: center; }
.qty button { width: 32px; height: 32px; }
.qty span { min-width: 26px; text-align: center; font-family: var(--font-mono); font-size: 12px; }
.progress { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.progress > i { position: absolute; inset: 0 auto 0 0; background: var(--ink); transition: width .4s var(--ease); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 120;
  background: var(--charcoal); color: var(--paper); padding: 14px 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  opacity: 0; transition: .3s var(--ease); pointer-events: none; max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Assistant widget ---------- */
.assistant-fab {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; border-radius: 26px;
  height: 52px; padding: 0 20px 0 14px; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.assistant-fab img { width: 22px; height: auto; }
.assistant {
  position: fixed; right: 20px; bottom: 84px; z-index: 81; width: min(380px, calc(100% - 40px));
  height: min(560px, calc(100svh - 120px)); background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,.18); display: none; flex-direction: column;
}
.assistant.is-open { display: flex; }
.assistant__head { background: var(--ink); color: var(--paper); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.assistant__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.msg--bot { background: var(--stone); font-family: var(--font-serif); align-self: flex-start; }
.msg--me { background: var(--ink); color: var(--paper); align-self: flex-end; }
.assistant__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; }
.assistant__quick button { border: 1px solid var(--line-strong); padding: 6px 10px; font-size: 12px; }
.assistant__quick button:hover { border-color: var(--charcoal); }
.assistant form { display: flex; border-top: 1px solid var(--line); }
.assistant input { flex: 1; border: 0; padding: 0 16px; height: 52px; outline: none; min-width: 0; }
@media (max-width: 520px) { .assistant-fab span { display: none; } .assistant-fab { padding: 0 15px; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; padding: 16px; background: rgba(17,17,17,.5); }
.modal.is-open { display: grid; }
.modal__box { background: var(--paper); width: min(820px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; position: relative; }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.modal__split { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .modal__split { grid-template-columns: 1fr; } .modal__split > :first-child { display: none; } }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: var(--radius); z-index: 85; width: min(420px, calc(100% - 40px));
  background: var(--ink); color: var(--paper); padding: 22px; display: none;
}
.cookie.is-on { display: block; }

/* ---------- Page header ---------- */
.page-head { padding-top: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.crumbs { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-mid); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--charcoal); }

/* ---------- Shop ---------- */
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 120px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 6px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.filters legend { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; padding: 0; }
.filters .check { padding: 4px 0; font-size: 15px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.toolbar .select { width: auto; height: 40px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filters { display: none; position: static; max-height: none; }
  .filters.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
}

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-top: 32px; padding-bottom: 80px; }
.pdp__gallery { display: grid; gap: 12px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.pdp__main { aspect-ratio: 1 / 1; background: var(--paper-warm); display: grid; place-items: center; position: relative; }
.pdp__main .bottle { width: 30%; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp__thumbs button { aspect-ratio: 1; background: var(--paper-warm); display: grid; place-items: center; border: 1px solid transparent; }
.pdp__thumbs button[aria-pressed="true"] { border-color: var(--charcoal); }
.pdp__thumbs .bottle { width: 34%; }
.pdp__info { display: grid; gap: 22px; align-content: start; }
.price { font-family: var(--font-mono); font-size: 20px; letter-spacing: .02em; }
.price s { color: var(--grey-mid); font-size: 14px; margin-left: 8px; }
.purchase { display: grid; gap: 10px; }
.purchase .choice > span { flex-direction: row; justify-content: space-between; align-items: center; }
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.usp div { border: 1px solid var(--line); padding: 12px; font-size: 12px; line-height: 1.35; display: grid; gap: 6px; }
.usp svg { width: 20px; height: 20px; stroke: var(--olive); fill: none; stroke-width: 1.3; }
@media (max-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr); } .pdp__gallery { position: static; } }
.inci { font-family: var(--font-mono); font-size: 12px; line-height: 1.8; }
.inci a { border-bottom: 1px dotted var(--grey-mid); }
.inci a:hover { color: var(--olive); border-color: var(--olive); }
.trace { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.trace > div { padding: 16px; border-right: 1px solid var(--line); }
.trace > div:last-child { border-right: 0; }
@media (max-width: 680px) { .trace { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trace > div:nth-child(2) { border-right: 0; } .trace > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.review { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
@media (max-width: 680px) { .review { grid-template-columns: 1fr; gap: 8px; } }
.rating-bars { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 11px; }
.rating-bars div { display: grid; grid-template-columns: 24px 1fr 32px; gap: 10px; align-items: center; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--paper); border-top: 1px solid var(--line);
  padding: 12px var(--gutter); display: none; gap: 12px; align-items: center; justify-content: space-between;
}
@media (max-width: 900px) { .sticky-buy.is-on { display: flex; } }

/* ---------- Quiz ---------- */
.quiz { min-height: calc(100svh - var(--header-h)); display: grid; grid-template-rows: auto 1fr auto; }
.quiz__top { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.quiz__step { display: none; padding: 32px 0 48px; max-width: 920px; }
.quiz__step.is-active { display: block; animation: fadeUp .5s var(--ease); }
.quiz__nav { padding: 20px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; background: var(--paper); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dropzone { border: 1px dashed var(--line-strong); padding: 40px 24px; text-align: center; display: grid; gap: 12px; place-items: center; cursor: pointer; }
.dropzone:hover { border-color: var(--charcoal); }
.scan { position: relative; width: 220px; aspect-ratio: 3/4; background: var(--paper-warm); overflow: hidden; }
.scan img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--sage); box-shadow: 0 0 18px var(--sage); animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 4%; } to { top: 94%; } }
.meter { display: grid; gap: 6px; }
.meter__bar { height: 6px; background: var(--line); position: relative; }
.meter__bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }

.formula-card { background: var(--ink); border-radius: var(--radius); color: var(--paper); padding: clamp(24px, 4vw, 48px); display: grid; gap: 24px; }
.formula-card .grid { gap: 16px; }

/* ---------- Calendar / booking ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal button { aspect-ratio: 1; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; display: grid; place-items: center; }
.cal button:hover:not([disabled]) { border-color: var(--charcoal); }
.cal button[aria-pressed="true"] { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); }
.cal button[disabled] { color: var(--grey-light); border-color: transparent; cursor: default; }
.cal .dow { font-family: var(--font-mono); font-size: 10px; color: var(--grey-mid); text-align: center; text-transform: uppercase; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 120px; }
.account__nav { display: grid; gap: 2px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
.account__nav button { text-align: left; padding: 12px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-left: 2px solid transparent; }
.account__nav button[aria-selected="true"] { border-color: var(--charcoal); background: var(--paper-warm); }
@media (max-width: 860px) {
  .account { grid-template-columns: minmax(0, 1fr); }
  .account__nav { position: static; display: flex; overflow-x: auto; gap: 0; border-bottom: 1px solid var(--line); }
  .account__nav button { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .account__nav button[aria-selected="true"] { border-color: var(--charcoal); background: none; }
}
.stat { border: 1px solid var(--line); padding: 20px; display: grid; gap: 6px; }
.stat b { font-family: var(--font-display); font-size: 36px; font-weight: 300; line-height: 1; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-mid); font-weight: 400; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* ---------- Benchmark matrix ---------- */
.matrix { border-collapse: collapse; font-size: 13px; min-width: 980px; width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: var(--paper); z-index: 1; min-width: 230px; }
.matrix thead th { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; vertical-align: bottom; height: 120px; }
.matrix thead th span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-block; }
.matrix .grp td { background: var(--paper-warm); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-align: left; }
.matrix .grp td:first-child { background: var(--paper-warm); }
.matrix .y { color: var(--charcoal); }
.matrix .n { color: var(--grey-light); }
.matrix .q { color: var(--grey-mid); }
.matrix .us { background: rgba(180,184,116,.18); font-weight: 500; }
.matrix td.us:first-child { background: var(--paper); }

/* ---------- Journal ---------- */
.post { display: grid; gap: 14px; }
.post__media { aspect-ratio: 4/3; background: var(--paper); border-radius: var(--radius); color: var(--ink) !important; display: grid; place-items: center; overflow: hidden; }
.post__media.olive { background: var(--paper); color: var(--ink) !important; }
.post__media.charcoal { background: var(--paper); color: var(--ink) !important; }
.post__media.mid { background: var(--paper); color: var(--ink) !important; }
.post__media svg, .post__media img { height: 56%; width: auto; max-height: 200px; }

/* ---------- Misc ---------- */
.ticker { display: flex; gap: 48px; white-space: nowrap; animation: tick 40s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.num { font-family: var(--font-mono); font-size: 11px; color: var(--copper); letter-spacing: .1em; }
.bg-charcoal .num { color: rgba(255,255,255,.55); }
.bg-olive .num { color: var(--ink); }
.feature { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.bg-charcoal .feature { border-color: rgba(255,255,255,.22); }
.bg-olive .feature { border-color: var(--line-strong); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
.reveal.is-in { animation: rise .8s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.empty { padding: 48px 0; text-align: center; color: var(--grey-mid); }
.badge-line { display: flex; flex-wrap: wrap; gap: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__text { padding: clamp(64px, 10vw, 140px) var(--gutter); max-width: calc(var(--max) / 2); justify-self: end; width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__text { justify-self: stretch; max-width: none; } }
.split-media { min-height: 520px; display: grid; place-items: center; }
@media (max-width: 860px) { .split-media { min-height: 320px; } }
.gift-card {
  aspect-ratio: 1.6; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.gift-card img { width: 34px; }
.steps { counter-reset: s; display: grid; gap: 0; }
.steps > li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps > li::before { content: "0" counter(s); font-family: var(--font-mono); font-size: 12px; color: var(--sage-deep); padding-top: 4px; }
.bg-charcoal .steps > li { border-color: rgba(255,255,255,.2); }
.bg-charcoal .steps > li::before { color: rgba(255,255,255,.55); }
.steps { margin: 0; padding: 0; }

/* main + aside two-column layout */
.grid-aside { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gutter); }
.grid-aside--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 900px) { .grid-aside, .grid-aside--wide { grid-template-columns: minmax(0, 1fr); } .grid-aside > aside { position: static !important; } }
.btn--wrap { white-space: normal; height: auto; min-height: 52px; padding: 12px 20px; text-align: center; line-height: 1.4; }

.banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 28px; }
@media (max-width: 640px) { .banner { grid-template-columns: minmax(0, 1fr); } }
#buy-row .btn { min-width: 0; padding: 0 14px; }

/* ==========================================================================
   E2 — componenti dalle tavole web (pp. 24–34)
   ========================================================================== */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.serif { font-family: var(--font-serif); letter-spacing: 0; text-transform: none; }
mark, .hl { background: var(--acid); color: var(--ink); padding: 0 2px; }
.bg-sage img[src*="-light"], .bg-olive img[src*="-light"], .bg-mid img[src*="-light"] { filter: invert(1); }
.post__media img { filter: invert(1); }
.k-label { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0; text-transform: none; }

/* Finestra: barra bianca con A ······ O */
.win { background: var(--sage); color: var(--ink); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.win--white { background: var(--paper); }
.win--acid { background: var(--acid); }
.win--ink { background: var(--ink); color: var(--paper); }
.win__bar { background: var(--paper); color: var(--ink); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line-strong); flex: 0 0 auto; }
.win__bar .dots { background-image: radial-gradient(circle, var(--ink) .8px, transparent 1.1px); background-size: 6px 4px; opacity: .55; }
.win__bar .wordmark { font-family: var(--font-mono); font-size: 10px; letter-spacing: .5em; padding-left: .5em; }
.win__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* Catalogo: card con flacone su fondo chiaro (versione preferita dello shop) */
body[data-page="shop"] { background: var(--paper); }
.card__media { border-radius: 2px; }

/* Tavola prodotto (p. 31) */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet__rows { border-right: 1px solid var(--line-strong); display: grid; grid-template-rows: auto auto auto auto; }
.sheet__row { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-strong); min-height: 96px; }
.sheet__row:last-child { border-bottom: 0; }
.sheet__row .val { font-family: var(--font-serif); font-size: 17px; line-height: 1.35; }
.sheet__row .val.small { font-size: 13px; line-height: 1.55; }
.sheet__process { position: relative; padding: 18px 20px 20px 44px; display: flex; flex-direction: column; min-height: 520px; --callout-bg: var(--sage); }
.sheet__process .v-label { position: absolute; left: 14px; top: 18px; writing-mode: vertical-rl; transform: rotate(180deg); }
.sheet__process .plant { flex: 1; width: 100%; max-height: 440px; }
.sheet__process .scroll-hint { position: absolute; right: 18px; bottom: 22px; width: 10px; height: 80px; }
.sheet__process .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet__process .cta .btn { background: transparent; color: var(--ink); border-color: var(--line-strong); height: 44px; }
.sheet__process .cta .btn:hover { background: var(--acid); border-color: var(--ink); }
.formats { display: flex; gap: 22px; flex-wrap: wrap; }
.format { display: grid; justify-items: start; gap: 6px; cursor: pointer; position: relative; }
.format input { position: absolute; opacity: 0; }
.format .bottle-ico { width: 26px; height: 52px; }
.format .fmt-l { font-family: var(--font-serif); font-size: 12px; line-height: 1.25; }
.format { opacity: .55; }
.format:has(input:checked) { opacity: 1; }
.format input:checked ~ .fmt-l { text-decoration: underline; text-underline-offset: 3px; }
.format input:focus-visible ~ svg { outline: 2px solid var(--ink); outline-offset: 2px; }
.eco-icons { display: flex; gap: 6px; }
.eco-icons svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet__rows { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .sheet__process { min-height: 420px; }
}
@media (max-width: 520px) { .sheet__row { grid-template-columns: minmax(0, 1fr); gap: 6px; min-height: 0; } }

/* Linea Natura ○—— pianta ——✳ Risultato (p. 25) */
.nature-line { display: grid; grid-template-columns: auto auto 1fr auto 1fr auto auto; align-items: center; gap: 12px; color: var(--copper); }
.nature-line .pill { border: 1px solid var(--copper); border-radius: 999px; padding: 6px 22px 8px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 40px); color: var(--ink); line-height: 1.1; }
.nature-line .dash { height: 1px; border-top: 1px dashed var(--copper); }
.ring { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: clamp(140px, 22vw, 300px); color: var(--ink); }
.ring .ring-c { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--copper); }
.ring .plant { width: 88%; height: 88%; position: relative; }
@media (max-width: 760px) {
  .nature-line { grid-template-columns: auto 1fr auto; row-gap: 18px; }
  .nature-line > .g-hide { display: none; }
  .nature-line .ring { grid-column: 1 / -1; justify-self: center; order: -1; }
}
.callout-legend { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 13px; }
.callout-legend span { display: inline-flex; align-items: center; gap: 8px; }

/* Bottiglie icona (p. 27) */
.bottle-ico { display: block; width: 26px; height: 52px; flex: 0 0 auto; }
body[data-page="diagnosi"] .assistant-fab { display: none; }

/* interfaccia pulita */
.assistant-fab { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
.assistant-fab img { width: 20px; }
.assistant { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); border-radius: var(--radius); overflow: hidden; }
.announce { padding: 7px var(--gutter); font-size: 10px; }
.mega__grid { grid-template-columns: repeat(3, minmax(0, 220px)); gap: 64px; }
.footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 760px) { .steps-row { grid-template-columns: minmax(0, 1fr); } }

/* Accesso */
.login { max-width: 400px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); padding: clamp(28px, 5vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.login__mark { width: 44px; height: auto; margin-bottom: 4px; }
.btn--provider { width: 100%; background: var(--paper); color: var(--ink); border-color: var(--line-strong); font-family: var(--font-body); font-size: 15px; letter-spacing: 0; text-transform: none; gap: 12px; }
.btn--provider:hover { background: var(--stone); color: var(--ink); border-color: var(--ink); }
.btn--provider svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn--provider[disabled] { opacity: .5; }
.login__error { margin: 0; color: #a3271b; font-size: 14px; }
.login__demo { margin: 0; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 4px; }
.icon-btn.is-signed::after { content: ""; position: absolute; right: 8px; bottom: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--sage-ink); }

/* Logo originale: simbolo SVG + scritta in Jost (OFL) */
.wordmark-txt { font-family: "Jost", "Futura", "Avenir Next", sans-serif; font-weight: 400; font-size: 17px; letter-spacing: .42em; padding-left: .42em; line-height: 1; color: inherit; white-space: nowrap; }
.footer .wordmark-txt { font-size: 15px; }
.mark { display: block; flex: 0 0 auto; }
.login__mark { width: auto; display: block; }
.assistant-fab .mark { color: var(--paper); }
@media (max-width: 420px) { .header .wordmark-txt { font-size: 14px; letter-spacing: .32em; } }

/* pagine legali */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 120px; }
.legal h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 12px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 1.2em; }
.todo { background: var(--acid); padding: 0 .3em; font-family: var(--font-mono); font-size: .85em; }
