:root {
  --bg: #ffffff;
  --bg-strong: #f7fbf8;
  --surface: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(248, 252, 249, 0.96) 100%);
  --surface-strong: #ffffff;
  --line: rgba(19, 111, 72, 0.14);
  --ink: #12261b;
  --muted: #5a6f65;
  --forest: #106b47;
  --forest-soft: #178f5f;
  --sage: #52b788;
  --sage-deep: #1d7a54;
  --gold: #52b788;
  --river: #2d9cdb;
  --rose-soil: #1d7a54;
  --shadow: 0 20px 56px rgba(19, 111, 72, 0.07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1080px;
  --header-width: 1360px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(82, 183, 136, 0.06), transparent 28%),
    radial-gradient(circle at top right, rgba(82, 183, 136, 0.045), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 107, 71, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 107, 71, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  opacity: 0.34;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.1;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--forest);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

small,
.small {
  font-size: 0.92rem;
}

.container {
  width: min(calc(100% - 2.4rem), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(19, 111, 72, 0.08);
}

.site-header .container {
  width: min(calc(100% - 2rem), var(--header-width));
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--sage));
  color: #ffffff;
  font-size: 1.15rem;
  box-shadow: 0 10px 20px rgba(16, 107, 71, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}

nav[aria-label="Navigation principale"] {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
}

.nav-list li {
  flex: 0 0 auto;
}

.nav-list a {
  padding: 0.68rem 0.82rem;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--muted);
  transition: 180ms ease;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--forest);
  background: rgba(16, 107, 71, 0.08);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--forest);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  background: linear-gradient(135deg, var(--forest), var(--forest-soft));
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(16, 107, 71, 0.18);
}

.button-secondary {
  border: 1px solid rgba(19, 111, 72, 0.16);
  background: #ffffff;
  color: var(--forest);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 4rem 0 1.8rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.15rem;
  align-items: start;
}

.hero-copy,
.hero-panel,
.panel,
.story-card,
.metric-card,
.notice,
.step-card,
.faq-card,
.silo-card,
.plant-card,
.legal-card,
.guide-meta,
.callout {
  background: var(--surface);
  border: 1px solid rgba(19, 111, 72, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.9rem 2rem 1.8rem;
}

.hero-copy h1 {
  max-width: 11.2ch;
  margin-bottom: 0;
  font-size: clamp(2.95rem, 5.2vw, 4.9rem);
}

.hero-copy p {
  max-width: 60ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--forest-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.eyebrow::before {
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--sage));
}

.hero-panel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.45rem;
}

.hero-panel h2 {
  max-width: 8.5ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.hero-panel .stat-grid,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.hero-panel .stat-grid,
.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));
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(247, 251, 248, 0.92);
  border: 1px solid rgba(19, 111, 72, 0.08);
}

.feature-card::before {
  position: absolute;
  left: 1rem;
  top: 0;
  width: 46px;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest), var(--sage));
}

.feature-card strong,
.feature-title,
.metric-card strong,
.story-card strong,
.step-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-card span,
.metric-card span {
  color: var(--muted);
}

.feature-card span:last-child {
  display: block;
  font-size: 0.98rem;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-card {
  padding: 1.2rem 1.25rem;
}

.metric-card .metric-value {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--forest);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.section {
  padding: 1.6rem 0 2rem;
}

.media-gallery {
  align-items: start;
}

.editorial-figure {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
  padding: 0.9rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(19, 111, 72, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.editorial-figure img {
  width: 100%;
  height: clamp(240px, 22vw, 320px);
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-xl) - 10px);
  background: #f8fbf9;
}

.editorial-figure--wide img {
  height: clamp(220px, 20vw, 290px);
}

.editorial-figure figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0 0.15rem 0.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.editorial-figure figcaption strong {
  color: var(--forest);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.figure-credit {
  font-size: 0.76rem;
  line-height: 1.45;
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.panel,
.notice,
.callout,
.guide-meta,
.legal-card {
  padding: 1.5rem;
}

.notice {
  border-left: 6px solid var(--gold);
}

.callout {
  background: linear-gradient(135deg, rgba(16, 107, 71, 0.98), rgba(29, 122, 84, 0.92));
  color: #ffffff;
}

.callout h3,
.callout p,
.callout li {
  color: inherit;
}

.silo-card,
.story-card,
.step-card,
.faq-card,
.plant-card {
  padding: 1.45rem;
}

.silo-card,
.story-card,
.plant-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.story-card,
.callout {
  height: 100%;
}

.silo-card .kicker,
.story-card .kicker,
.faq-card .kicker {
  color: var(--sage-deep);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.story-card footer,
.silo-card footer,
.plant-card footer {
  margin-top: auto;
  color: var(--forest-soft);
  font-weight: 700;
}

.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.list-check li::before {
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--sage));
}

.page-hero {
  padding: 3.4rem 0 1.6rem;
}

.page-hero-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
}

.page-hero h1 {
  max-width: 9.5ch;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
}

.breadcrumbs {
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.page-hero .lede,
.article-meta,
.toolbar-note,
.muted {
  color: var(--muted);
}

.article-meta {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1.1rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(19, 111, 72, 0.08);
  box-shadow: var(--shadow);
}

.article-meta span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(247, 251, 248, 0.92);
  border: 1px solid rgba(19, 111, 72, 0.08);
}

.mini-stat {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(247, 251, 248, 0.95);
  border: 1px solid rgba(19, 111, 72, 0.08);
}

.mini-stat strong {
  display: block;
  font-size: 1.35rem;
}

.calculator {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(19, 111, 72, 0.16);
  border-radius: var(--radius-md);
  background: #ffffff;
  font: inherit;
  color: var(--ink);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.result-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(82, 183, 136, 0.1);
  color: var(--forest);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(82, 183, 136, 0.14);
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
}

.technical-figure {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f6fffa 0%, #ffffff 100%);
  border: 1px solid rgba(19, 111, 72, 0.08);
  padding: 1rem;
}

.toc {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(247, 251, 248, 0.95);
  border: 1px solid rgba(19, 111, 72, 0.08);
}

.toc ul {
  list-style: none;
  padding: 0;
}

.toc li {
  margin-bottom: 0.55rem;
}

.toc a {
  color: var(--forest-soft);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list details {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(19, 111, 72, 0.08);
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--forest);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin-top: 0.8rem;
}

.plant-toolbar {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 1.2rem;
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.plant-card h3 {
  margin-bottom: 0.2rem;
}

.plant-card p {
  margin-bottom: 0.7rem;
}

.plant-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.45rem 0.8rem;
  margin: 0;
}

.plant-card dt {
  color: var(--muted);
  font-weight: 700;
}

.plant-card dd {
  margin: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(82, 183, 136, 0.14);
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 700;
}

.split-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: start;
}

.home-guide-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.timeline {
  list-style: none;
  padding: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 1.2rem 1.4rem;
  border-left: 2px solid rgba(19, 111, 72, 0.12);
}

.timeline li::before {
  position: absolute;
  left: -7px;
  top: 0.15rem;
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--sage));
}

.timeline li strong {
  display: block;
  color: var(--forest);
}

.legal-card h2 {
  font-size: 1.6rem;
}

.site-footer {
  padding: 2rem 0 2.8rem;
}

.footer-shell {
  display: grid;
  gap: 1.25rem 2.4rem;
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) minmax(220px, 0.85fr);
  padding: 1.8rem 2rem;
  border-radius: var(--radius-xl);
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(19, 111, 72, 0.08);
  box-shadow: var(--shadow);
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.55rem;
  line-height: 1;
}

.footer-brand p {
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-title {
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--forest);
  font-size: 1.02rem;
  line-height: 1.35;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links--credit a:last-child {
  max-width: 18ch;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(100% - 2rem, 420px);
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(19, 111, 72, 0.12);
  box-shadow: 0 28px 70px rgba(19, 111, 72, 0.16);
}

.cookie-banner p {
  color: var(--muted);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-actions button,
.cookie-actions a {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-accept {
  background: linear-gradient(135deg, var(--forest), var(--forest-soft));
  color: #ffffff;
}

.cookie-decline {
  background: rgba(16, 107, 71, 0.08);
  color: var(--forest);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header .container {
    width: min(calc(100% - 2.4rem), var(--content-width));
  }

  .hero-grid,
  .page-hero-shell,
  .split-panel,
  .home-guide-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .grid-3,
  .data-strip,
  .plant-grid,
  .plant-toolbar {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  nav[aria-label="Navigation principale"] {
    margin-left: 0;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 1.2rem;
    right: 1.2rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    display: block;
  }

  .hero {
    padding-top: 3.4rem;
  }

  h1 {
    font-size: clamp(2.3rem, 9vw, 3.3rem);
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .silo-card,
  .story-card,
  .plant-card,
  .legal-card,
  .callout,
  .guide-meta,
  .notice {
    padding: 1.2rem;
  }

  .article-meta {
    grid-template-columns: 1fr;
  }

}
