:root {
  --leaf: #2f8f2f;
  --leaf-dark: #1e5f35;
  --moss: #6b8f3a;
  --sage: #dfead5;
  --gold: #d9a13e;
  --ink: #172119;
  --muted: #627064;
  --paper: #f7f7ef;
  --white: #ffffff;
  --line: rgba(31, 76, 47, 0.16);
  --shadow: 0 24px 70px rgba(20, 47, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::selection {
  color: var(--white);
  background: var(--leaf);
}

main {
  display: flex;
  flex-direction: column;
}

.hero { order: 1; }
.intro { order: 2; }
.objectives { order: 3; }
.crops { order: 4; }
.project-context { order: 5; }
.consortium { order: 6; }
.timeline { order: 7; }
.work { order: 8; }
.digital { order: 9; }
.news { order: 10; }
.contact { order: 11; }

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--leaf-dark);
  background: radial-gradient(circle at center, #ffffff 0, #f3f6e9 56%, #dfead5 100%);
}

.loader img {
  width: 86px;
  filter: drop-shadow(0 12px 24px rgba(38, 97, 42, 0.2));
}

.loader strong {
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.loader span {
  color: var(--muted);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
}

.page-enter,
[data-reveal] {
  opacity: 0;
  transform: translateY(42px) scale(0.98);
}

.page-enter.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-line] {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-line].line-visible {
  transform: scaleX(1);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(22, 42, 24, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: min-height 0.25s ease, padding 0.25s ease, background 0.25s ease;
}

.site-header.is-small {
  min-height: 58px;
  padding-block: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  color: var(--leaf-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #314238;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  color: var(--leaf-dark);
  background: rgba(68, 147, 53, 0.13);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf-dark);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 132px 24px 40px;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(110deg, rgba(9, 38, 23, 0.95), rgba(24, 82, 45, 0.85) 48%, rgba(34, 71, 49, 0.7)),
    url("./assets/laboratorio-aloe.png") center / cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(218, 161, 62, 0.28), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(96, 175, 83, 0.32), transparent 26%),
    linear-gradient(to bottom, transparent 66%, var(--paper) 100%);
}

.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(91, 181, 75, 0.45));
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.eyebrow,
.section-label p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  width: min(680px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #102015;
  background: var(--gold);
  box-shadow: 0 18px 42px rgba(217, 161, 62, 0.26);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.button.inline-button {
  width: fit-content;
  margin-top: 14px;
  color: var(--white);
  background: var(--leaf);
  box-shadow: 0 16px 34px rgba(47, 143, 47, 0.2);
}

.hero-visual {
  position: relative;
  margin: 0;
  border-radius: 26px;
  transform-style: preserve-3d;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 28% 22%, rgba(217, 161, 62, 0.34), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(91, 181, 75, 0.3), transparent 32%);
  opacity: 0.9;
  filter: blur(12px);
  animation: heroGlow 6s ease-in-out infinite alternate;
}

.hero-visual img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.34);
}

@keyframes heroGlow {
  from {
    transform: translate3d(-8px, 6px, 0) scale(0.98);
  }

  to {
    transform: translate3d(8px, -4px, 0) scale(1.03);
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: min(1180px, 100%);
  margin: 48px auto 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(74px, 11vw, 132px) 0;
}

.section-label {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-label h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-label span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.prose {
  color: #34453a;
  font-size: 1.08rem;
}

.prose p {
  margin: 0 0 18px;
}

.project-context {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 246, 232, 0.92)),
    radial-gradient(circle at 80% 24%, rgba(217, 161, 62, 0.16), transparent 28%);
}

.context-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
}

.context-figure {
  margin: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.context-figure img {
  width: 100%;
  border-radius: 6px;
}

.context-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.context-copy {
  font-size: 1.05rem;
}

.context-copy p {
  margin: 0 0 18px;
  color: #34453a;
}

.context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.context-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(47, 143, 47, 0.24);
  border-radius: 999px;
  color: var(--leaf-dark);
  background: rgba(47, 143, 47, 0.08);
  font-weight: 850;
  font-size: 0.86rem;
}

.tilt-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  overflow: hidden;
}

.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 42%, rgba(217, 161, 62, 0.2));
  transition: opacity 0.25s ease;
}

.tilt-card:hover::before {
  opacity: 1;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.objective-grid,
.work-grid,
.news-grid,
.result-grid {
  display: grid;
  gap: 18px;
}

.objective-grid {
  grid-template-columns: repeat(4, 1fr);
}

.objectives-notebook {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 6vw, 64px);
  align-items: center;
}

.objective-intro {
  text-align: right;
}

.objective-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.objective-intro p:not(.eyebrow) {
  width: min(520px, 100%);
  margin: 22px 0 0 auto;
  color: #243329;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.42;
}

.notebook-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  border: 0;
  color: var(--leaf);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.notebook-toggle span {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.32s ease, opacity 0.25s ease;
}

.notebook-toggle:hover span,
.notebook-toggle:focus-visible span {
  max-width: 240px;
  opacity: 1;
}

.notebook-toggle svg {
  width: 58px;
  height: 58px;
  padding: 14px;
  border: 2px solid rgba(47, 143, 47, 0.36);
  border-radius: 50%;
  fill: currentColor;
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.notebook-toggle:hover svg,
.notebook-toggle:focus-visible svg {
  color: var(--white);
  background: var(--leaf);
  transform: translateY(3px);
}

.notebook-toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.notebook-panel {
  position: relative;
  max-height: 520px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(47, 143, 47, 0.07) 39px 40px),
    #fbf8ef;
  box-shadow: 0 22px 60px rgba(32, 63, 38, 0.13);
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease, transform 0.36s ease;
}

.notebook-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 28px;
  width: 2px;
  background: rgba(47, 143, 47, 0.18);
}

.notebook-panel::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 161, 62, 0.18), transparent 68%);
  pointer-events: none;
}

.notebook-panel:not(.is-open) {
  max-height: 74px;
  opacity: 0.86;
  transform: rotateX(2deg) translateY(3px);
}

.notebook-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 12px 48px;
  color: #9fc787;
  font-size: 0.95rem;
  font-weight: 900;
}

.notebook-content {
  position: relative;
  z-index: 1;
  padding: 22px 34px 34px 48px;
  transition: opacity 0.24s ease, transform 0.32s ease;
}

.notebook-panel:not(.is-open) .notebook-content {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.notebook-content h3 {
  display: inline;
  margin: 0;
  padding: 1px 10px;
  color: var(--ink);
  background: rgba(168, 204, 144, 0.48);
  font-size: 1.28rem;
  line-height: 1.2;
}

.notebook-content ul {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.notebook-content li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}

.notebook-content li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: #a8cc90;
  font-size: 0.72rem;
  font-weight: 900;
}

.notebook-content li span::before {
  content: "";
  width: 8px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(42deg) translate(-1px, -1px);
}

.notebook-content li span {
  font-size: 0;
}

.notebook-content p {
  margin: 0;
  color: #2f352d;
}

.objective-summary {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(47, 143, 47, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(223, 234, 213, 0.72));
  box-shadow: 0 18px 46px rgba(32, 63, 38, 0.1);
}

.objective-summary span {
  color: var(--leaf);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.objective-summary p {
  margin: 0;
  color: #2f4236;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 760;
  line-height: 1.35;
}

.objective-card {
  padding: 24px;
}

.objective-card strong {
  color: var(--gold);
  font-size: 0.92rem;
}

.objective-card h3,
.work-card h3,
.news-grid h3 {
  margin: 14px 0 10px;
  font-size: 1.25rem;
  line-height: 1.12;
}

.objective-card p,
.work-card p,
.news-grid p,
.crop-panels p,
.digital-panel p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.crops {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: #eef4e7;
}

.crop-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.crop-panels article {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: stretch;
  min-height: 340px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 50px rgba(32, 63, 38, 0.12);
  overflow: hidden;
}

.crop-panels img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crop-panels div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.crop-panels h3 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.work-grid {
  grid-template-columns: repeat(3, 1fr);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card div {
  padding: 22px;
}

.work-card span,
.news-grid span {
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.consortium {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
}

.map-wrap {
  padding: clamp(10px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-wrap img {
  width: 100%;
  border-radius: 4px;
}

.consortium-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.consortium-logos article {
  min-height: 150px;
  display: grid;
  grid-template-rows: 82px auto;
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(32, 63, 38, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.consortium-logos article:hover {
  border-color: rgba(47, 143, 47, 0.34);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(32, 63, 38, 0.13);
}

.consortium-logos img {
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  filter: saturate(0.95);
}

.consortium-logos article:nth-child(2) img {
  max-height: 96px;
  transform: scale(1.9);
}

.consortium-logos article:nth-child(4) img {
  max-height: 72px;
  transform: none;
}

.consortium-logos span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.partner-grid article {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(32, 63, 38, 0.08);
}

.partner-grid strong {
  display: block;
  color: var(--leaf-dark);
  font-size: 0.95rem;
  line-height: 1.15;
}

.partner-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline {
  position: relative;
}

.valorization-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 20px 0;
}

.valorization-flow::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, rgba(47, 143, 47, 0.12), var(--leaf), rgba(217, 161, 62, 0.55));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}

.valorization-flow.is-visible::before {
  transform: scaleX(1);
}

.flow-card {
  position: relative;
  z-index: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(32, 63, 38, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.74;
  background:
    radial-gradient(circle at var(--flow-x, 72%) var(--flow-y, 18%), rgba(255, 255, 255, 0.84), transparent 17%),
    radial-gradient(circle at 72% 18%, rgba(217, 161, 62, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(47, 143, 47, 0.06), transparent 44%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.flow-card::after {
  content: "";
  position: absolute;
  right: -14px;
  top: calc(50% - 12px);
  width: 24px;
  height: 24px;
  border-top: 3px solid var(--leaf);
  border-right: 3px solid var(--leaf);
  background: var(--paper);
  transform: rotate(45deg);
}

.flow-card:last-child::after {
  display: none;
}

.flow-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 24px 62px rgba(32, 63, 38, 0.16);
}

.flow-card:hover::before {
  opacity: 1;
}

.flow-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 143, 47, 0.18);
  border-radius: 50%;
  color: var(--leaf-dark);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), rgba(223, 234, 213, 0.9)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(32, 63, 38, 0.16);
  opacity: 0;
  transform: translate3d(10px, -10px, 0) scale(0.72) rotate(-10deg);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flow-icon svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.flow-card:hover .flow-icon,
.flow-card.is-pointer-active .flow-icon {
  opacity: 1;
  transform: translate3d(var(--icon-x, 0), var(--icon-y, 0), 0) scale(1) rotate(0deg);
}

.flow-card span,
.flow-card strong,
.flow-card p {
  position: relative;
}

.flow-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: var(--leaf);
  font-weight: 900;
}

.flow-card strong {
  color: var(--leaf-dark);
  font-size: 1.1rem;
  line-height: 1.1;
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.flow-caption {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  color: var(--leaf-dark);
  font-weight: 900;
}

.flow-caption div {
  height: 2px;
  background: linear-gradient(90deg, var(--leaf), rgba(217, 161, 62, 0.7));
}

.result-grid {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 42px;
}

.result-grid div {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--leaf-dark);
  background: var(--white);
  font-weight: 850;
  text-align: center;
  box-shadow: 0 14px 34px rgba(32, 63, 38, 0.08);
}

.digital {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: linear-gradient(130deg, #17331f, #2c6735 62%, #8c802b);
}

.digital .section-label h2,
.digital .section-label span {
  color: var(--white);
}

.digital-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.digital-panel h3,
.contact-panel h3 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.digital-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.mini-map {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 22% 72%, rgba(217, 161, 62, 0.78) 0 10px, transparent 11px),
    radial-gradient(circle at 64% 34%, rgba(255, 255, 255, 0.78) 0 8px, transparent 9px),
    radial-gradient(circle at 78% 62%, rgba(162, 214, 91, 0.8) 0 10px, transparent 11px);
  background-size: 38px 38px, 38px 38px, auto, auto, auto;
  overflow: hidden;
}

.mini-map span {
  position: absolute;
  width: 130px;
  height: 2px;
  background: rgba(255, 255, 255, 0.44);
  transform-origin: left center;
}

.mini-map span:nth-child(1) {
  left: 24%;
  top: 72%;
  rotate: -31deg;
}

.mini-map span:nth-child(2) {
  left: 64%;
  top: 35%;
  rotate: 56deg;
}

.mini-map span:nth-child(3) {
  left: 33%;
  top: 54%;
  rotate: 7deg;
}

.news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.news {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(135deg, rgba(31, 95, 53, 0.94), rgba(47, 103, 53, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(217, 161, 62, 0.28), transparent 30%);
}

.news .section-label h2,
.news .section-label span {
  color: var(--white);
}

.news-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(8, 29, 14, 0.22);
}


.contact {
  padding-top: clamp(32px, 5vw, 56px);
}

.financing-strip {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.financing-strip img {
  display: block;
  max-width: 680px;
  width: 100%;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: clamp(22px, 4vw, 46px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 44, 24, 0.86), rgba(18, 44, 24, 0.62)),
    url("./assets/aloe-campo.png") center / cover;
  box-shadow: var(--shadow);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px max(18px, calc((100% - 1180px) / 2));
  color: #425044;
  background: #e6ecdc;
}

footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf-dark);
  font-weight: 900;
}

footer img {
  width: 42px;
}

footer p {
  max-width: 620px;
  margin: 0;
  text-align: right;
}

@media (max-width: 1020px) {
  .hero-content,
  .split-grid,
  .context-grid,
  .objectives-notebook,
  .digital-panel,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .objective-intro {
    text-align: left;
  }

  .objective-intro p:not(.eyebrow) {
    margin-left: 0;
  }

  .objective-grid,
  .result-grid,
  .consortium-logos,
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .valorization-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .valorization-flow::before,
  .flow-card::after {
    display: none;
  }

  .work-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .crop-panels {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
  }

  .menu-button {
    display: block;
  }

  nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, calc(100vw - 32px));
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  nav.is-open {
    display: flex;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 108px 16px 32px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .objective-grid,
  .result-grid,
  .consortium-logos,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    margin-top: 8px;
  }

  .crop-panels article {
    grid-template-columns: 1fr;
  }

  .crop-panels img {
    aspect-ratio: 16 / 10;
  }

  .objective-summary,
  .flow-caption {
    grid-template-columns: 1fr;
  }

  .notebook-top,
  .notebook-content {
    padding-left: 34px;
    padding-right: 22px;
  }

  .notebook-panel::before {
    left: 18px;
  }

  .valorization-flow {
    grid-template-columns: 1fr;
  }

  footer {
    display: grid;
  }

  footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .particle-canvas {
    display: none;
  }
}
