:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #f6f3ed;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, sans-serif;
}
a { color: inherit; }

.home-page { overflow-x: hidden; }
.hero-home {
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.hero-canvas {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}
.hero-base,
.hero-soften {
  position: absolute;
  inset: 0;
}
.hero-base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  filter: brightness(1.08) saturate(0.92) contrast(0.96);
  opacity: 0.9;
}
.hero-soften {
  background: rgba(246, 243, 237, 0.10);
  pointer-events: none;
}

/* Diagrammi statici sovrapposti alla sezione paesaggistica */
.hero-graphics {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: max(100%, 209.815svh);
  height: max(100%, 47.661vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.graphic {
  display: block;
  position: absolute;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.76;
}
.graphic-photosynthesis { left: 18.3%; top: 28.9%; width: 6.0%; }
.graphic-ecosystem { left: 85.2%; top: 13.2%; width: 13.6%; }
.graphic-nitrogen { left: 35.5%; top: 81.8%; width: 7.6%; }
.graphic-water { left: 67.3%; top: 74.7%; width: 7.0%; }
.graphic-nutrient { left: 94.3%; top: 80.0%; width: 7.6%; }

.hero-brand {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  top: 42.7%;
  bottom: auto;
  inset-inline: 0;
  height: auto;
  pointer-events: none;
}
.brand-link, .hero-nav { pointer-events: auto; }
.hero-logo {
  display: block;
  width: min(20.5vw, 10.8rem);
  min-width: 7.2rem;
  height: auto;
}
.hero-nav {
  transform: translateY(0.5rem);
  display: flex;
  gap: clamp(0.65rem, 1.6vw, 1.45rem);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-nav a {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.02vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(17, 17, 17, 0.95);
}
.hero-nav a:hover, .hero-nav a:focus-visible { opacity: 0.66; }

.page-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
}
.page-shell nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.page-shell nav a {
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.86rem;
}
.page-shell h1 { font-size: clamp(2rem, 6vw, 4rem); margin: 10vh 0 0.3em; }
.page-shell p { max-width: 62ch; line-height: 1.6; }

@media (max-width: 900px) {
  .hero-canvas { min-height: auto; aspect-ratio: 1817 / 866; }
  .hero-graphics { width: 100%; height: 100%; }
  .hero-brand { top: 41%; gap: 0.9rem; }
  .hero-logo { width: min(29vw, 9rem); min-width: 6.8rem; }
  .hero-nav { gap: 0.55rem 0.8rem; }
  .hero-nav a {
    font-size: clamp(0.72rem, 2.2vw, 0.92rem);
    letter-spacing: 0.26em;
  }
}
