/* Carbogrip · foglio di stile del sito.
   Nessuna risorsa esterna: i caratteri sono in fonts/ (licenza SIL OFL, file di licenza accanto). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/literata-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #eef0ea;
  --surface: #f8f9f5;
  --ink: #1d1a15;
  --muted: #55544a;
  --line: #d3d6cb;
  --accent: #2e6a3c;
  --accent-ink: #f4f7f1;
  --ochre: #8f6125;
  --soil-o: #2c2219;
  --soil-a: #4a3727;
  --soil-b: #7a5534;
  --soil-c: #b18e63;
  --root: #efe3cc;
  --carbon: #d4efc9;
  --seg-bg: #ffe27a;
  --seg-ink: #3a2a00;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130f;
    --surface: #1c1a15;
    --ink: #ece9df;
    --muted: #b3af9f;
    --line: #35312a;
    --accent: #86c491;
    --accent-ink: #10180f;
    --ochre: #d6a55e;
    --soil-o: #1f1812;
    --soil-a: #3a2b1f;
    --soil-b: #634529;
    --soil-c: #8f7350;
    --root: #d9cbb0;
    --carbon: #b9e6a8;
    --seg-bg: #ffe27a;
    --seg-ink: #2a1f00;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
sub { font-size: 0.7em; line-height: 0; }
.salta { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; }
.salta:focus { left: 12px; }

/* Segnaposto: dati ancora da inserire, ben visibili */
.seg { background: var(--seg-bg); color: var(--seg-ink); font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 3px; outline: 1px dashed var(--seg-ink); white-space: nowrap; }

/* Intestazione */
header.top { background: var(--bg); border-bottom: 1px solid var(--line); }
@media (min-width: 761px) {
  header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 6px 0; }
.brand svg { flex: none; }
.brand .nome { display: block; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1; }
.brand .motto { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--accent); margin-top: 3px; letter-spacing: 0.01em; }
nav ul { list-style: none; display: flex; gap: 4px 18px; margin: 0; padding: 0; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 0.98rem; white-space: nowrap; }
nav a:hover { color: var(--accent); }
@media (max-width: 1020px) { nav ul { gap: 4px 12px; } nav a { font-size: 0.92rem; } }
@media (max-width: 760px) {
  .top .wrap { flex-direction: column; align-items: stretch; gap: 0; }
  nav { margin: 0 -20px; border-top: 1px solid var(--line); }
  nav ul { overflow-x: auto; padding: 0 20px; gap: 0 20px; scrollbar-width: none; }
  nav ul::-webkit-scrollbar { display: none; }
}

/* Apertura */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { color: var(--muted); text-transform: uppercase; }
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.7rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 14px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 1.18rem; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  font-family: var(--display); font-weight: 650; font-size: 1.02rem;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn .price { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; opacity: 0.92; }
@media (max-width: 560px) { .cta .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:active { transform: none; } }

.core { margin: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.core svg { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .core { max-width: 460px; } }
.suolo .s-bg { fill: var(--surface); }
.suolo .s-o { fill: var(--soil-o); } .suolo .s-a { fill: var(--soil-a); } .suolo .s-b { fill: var(--soil-b); } .suolo .s-c { fill: var(--soil-c); }
.suolo .s-chiaro { fill: rgba(255,255,255,0.07); } .suolo .s-scuro { fill: rgba(0,0,0,0.14); }
.suolo .s-radice { fill: none; stroke: var(--root); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.suolo .s-ramo { fill: none; stroke: var(--root); stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.5; }
.suolo .s-carbonio { fill: none; stroke: var(--carbon); stroke-width: 3.4; stroke-linecap: round; }
.suolo .s-erba { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; }
.suolo .s-aria { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; opacity: 0.55; }
.suolo .s-fascia { fill: rgba(255,255,255,0.06); }
.suolo .s-30 { stroke: rgba(255,255,255,0.65); stroke-dasharray: 5 5; }
.suolo .s-etich { fill: rgba(0,0,0,0.55); }
.suolo .s-etich-t { fill: #f4efe3; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.suolo .s-righello { fill: rgba(0,0,0,0.35); }
.suolo .s-tacche { fill: none; stroke: rgba(255,255,255,0.8); }
.suolo .s-num { fill: rgba(255,255,255,0.92); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.suolo .s-testo { fill: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 500; }

/* Movimento del disegno, senza JavaScript: il carbonio scende lungo le radici, la CO2 scende verso l'erba, l'erba ondeggia.
   Con «riduci movimento» attivo sul dispositivo tutto resta fermo e si vedono i puntini fermi. */
.suolo .s-flusso circle { fill: var(--carbon); }
.suolo .s-co2 circle { fill: var(--accent); fill-opacity: 0.6; }
.suolo .s-erba-g { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .suolo .s-aria { display: none; }
  .suolo .s-erba-g { animation: vento 6s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .suolo .s-anim { display: none; }
}
@keyframes vento { from { transform: skewX(-4deg); } to { transform: skewX(4deg); } }

/* Entrata della parte iniziale, una sola volta all'apertura */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero .cta, .hero .core { animation: entra 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero h1 { animation-delay: 0.06s; }
  .hero .lede { animation-delay: 0.14s; }
  .hero .cta { animation-delay: 0.22s; }
  .hero .core { animation-delay: 0.1s; }
}
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Fatti */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 22px 20px 22px 0; display: grid; gap: 4px; align-content: start; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact strong { font-family: var(--display); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.fact span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 700px) {
  .facts .wrap { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 16px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* Sezioni */
section.block { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 64px; }
section.block + section.block { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(16px, 4vw, 56px); align-items: end; margin-bottom: 40px; }
.sec-head p { color: var(--muted); max-width: 36em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; margin-bottom: 28px; } }

/* Pratiche */
.practices { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
@media (max-width: 760px) { .practices { grid-template-columns: 1fr; } }
.practice { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.practice p { grid-column: 1 / -1; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 420px) { .practice { grid-template-columns: 1fr; } .practice .tag { justify-self: start; } }
.tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; white-space: nowrap; padding: 3px 9px; border-radius: 999px; align-self: start; border: 1px solid currentColor; }
.tag.soil { color: var(--ochre); } .tag.bio { color: var(--accent); } .tag.emi { color: var(--muted); }
.nope { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; max-width: 60em; }
.nope strong { font-family: var(--display); color: var(--ochre); }
@media (max-width: 560px) { .nope { grid-template-columns: 1fr; } }

/* Percorso e prezzi */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.price-col { padding: 26px 24px 28px 0; display: grid; gap: 14px; align-content: start; }
.price-col + .price-col { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 1000px) {
  .prices { grid-template-columns: 1fr 1fr; }
  .price-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .price-col:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .prices { grid-template-columns: 1fr; }
  .price-col, .price-col + .price-col { padding: 24px 0; border-left: 0; }
  .price-col + .price-col { border-top: 1px solid var(--line); }
}
.level { font-family: var(--mono); font-size: 0.78rem; color: var(--ochre); text-transform: uppercase; letter-spacing: 0.05em; }
.amount { font-family: var(--display); font-weight: 800; font-size: 3.2rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount.sm { font-size: 2.4rem; }
.amount small { display: block; margin-top: 8px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-col p { color: var(--muted); font-size: 0.98rem; }
.iva { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.note { margin-top: 26px; padding: 16px 18px; border-left: 3px solid var(--ochre); background: var(--surface); font-size: 0.98rem; max-width: 60em; }
.note + .note { margin-top: 12px; }
.note.verde { border-left-color: var(--accent); }

/* Come iniziare */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 42em; }
.steps p + p { margin-top: 8px; }
.steps .btn { margin-top: 14px; }
@media (max-width: 560px) { .steps li { grid-template-columns: 1fr; gap: 8px; } .steps .btn { width: 100%; } }

/* Gruppi */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .groups { grid-template-columns: 1fr; } }
.groups .testo p + p { margin-top: 14px; }
.groups h2 { margin-bottom: 18px; }
.tabelle { display: grid; gap: 36px; }
table.cmp { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.12rem; padding-bottom: 8px; }
.cmp th, .cmp td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; vertical-align: top; }
.cmp thead th { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.cmp td + td, .cmp th + th { text-align: right; padding-left: 12px; }
.cmp td + td { white-space: nowrap; }
.groups > *, .assoc > *, .norme > *, .hero .wrap > *, .contact .wrap > * { min-width: 0; }
.cmp tr.tot td { font-family: var(--display); font-weight: 750; border-top: 2px solid var(--ink); }
.piccolo { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* Chi fa cosa */
table.roles { width: 100%; border-collapse: collapse; }
.roles th, .roles td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.roles thead th { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--ink); }
.roles tbody th { font-family: var(--display); font-weight: 700; font-size: 1.08rem; width: 24%; }
.roles td { font-size: 0.98rem; }
.roles tr.us th, .roles tr.us td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.roles tr.us th { padding-left: 12px; }
.roles td.pay { color: var(--muted); width: 24%; }
@media (max-width: 700px) {
  .roles thead { display: none; }
  .roles, .roles tbody, .roles tr, .roles th, .roles td { display: block; width: auto; }
  .roles tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .roles tbody th, .roles td, .roles td.pay { padding: 0; border: 0; width: auto; }
  .roles tbody th { margin-bottom: 4px; }
  .roles td.pay { margin-top: 6px; }
  .roles td.pay::before { content: "Chi lo paga: "; font-family: var(--mono); font-size: 0.78rem; }
  .roles tr.us { padding: 16px 12px; }
  .roles tr.us th, .roles tr.us td { background: none; padding-left: 0; }
  .roles tr.us { background: color-mix(in srgb, var(--accent) 9%, transparent); }
}

/* Associazioni */
.assoc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .assoc { grid-template-columns: 1fr; } }
.assoc .testo p + p { margin-top: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Quadro normativo */
.norme { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 860px) { .norme { grid-template-columns: 1fr; } }
.norma { padding: 18px 0; border-top: 1px solid var(--line); }
.norma h3 { font-size: 1.12rem; margin-bottom: 6px; }
.norma p { color: var(--muted); font-size: 0.98rem; }
.norma.attesa { border-top: 2px solid var(--ochre); }
.stato { display: inline-block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; margin-bottom: 8px; }
.stato.ok { color: var(--accent); } .stato.no { color: var(--ochre); }
.impegni { margin: 10px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 0.98rem; }
.impegni li + li { margin-top: 4px; }
.fonti { margin-top: 28px; color: var(--muted); font-size: 0.9rem; }
.fonti ul { margin: 0; padding-left: 1.1em; }
.fonti a { display: inline-block; padding: 12px 0; }

/* Domande */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-weight: 650; font-size: 1.18rem; letter-spacing: -0.01em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 42em; }
.faq details p + p { margin-top: -8px; }

/* Contatti */
.contact { background: var(--ink); color: var(--bg); }
.contact h2 { color: var(--bg); }
.contact .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact p { color: color-mix(in srgb, var(--bg) 82%, var(--ink)); max-width: 36em; }
.contact p + p { margin-top: 12px; }
.contact a { color: var(--bg); }
.mailbox { display: grid; gap: 14px; justify-items: start; }
.mailbox .addr { font-family: var(--display); font-weight: 750; font-size: clamp(1.4rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; color: var(--bg); overflow-wrap: anywhere; }
.contact .btn { border-color: var(--bg); color: var(--bg); }
.contact .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.contact .mono { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
@media (max-width: 560px) { .mailbox, .mailbox .btn { width: 100%; } }

/* Piè di pagina */
footer { padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer p + p { margin-top: 8px; }
footer a { color: var(--muted); }
footer .marchio { font-family: var(--display); font-weight: 800; color: var(--ink); }
footer .marchio span { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; color: var(--accent); margin-left: 6px; }

/* Pagina privacy */
.doc { padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 88px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 18px; }
.doc h2 { font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .indietro { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 600; }
