:root {
  --green-dark: #0b3a2c;
  --green: #0f4c3a;
  --green-mid: #1f7a55;
  --lime: #8cc63f;
  --lime-dark: #5a9a1f;
  --mist: #f2f7f3;
  --ink: #1b2a24;
  --gray: #5a6b63;
  --line: #dfe8e2;
  --radius: 12px;
  --container: 1140px;
  --shadow: 0 12px 30px -16px rgba(11, 58, 44, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; color: var(--green-dark); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--lime-dark); margin-bottom: .7em; }
.lead { color: var(--gray); font-size: 1.08rem; max-width: 640px; }

.btn { display: inline-block; padding: .85em 1.7em; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--green-dark); }
.btn-primary:hover { background: #a0d853; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .93rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--lime); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 24px; height: 2px; background: var(--green-dark); margin: 5px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--green-dark); color: #fff; padding: 120px 0 108px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(105deg, rgba(11,58,44,.90) 0%, rgba(15,76,58,.72) 46%, rgba(15,76,58,.22) 100%), url("../assets/img/hero-natura.jpg") center 60% / cover no-repeat;
  animation: heroZoom 26s ease-in-out infinite alternate;
}
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero-orb-1 { width: 340px; height: 340px; right: 8%; top: -60px; background: rgba(140,198,63,.30); animation: drift 14s ease-in-out infinite alternate; }
.hero-orb-2 { width: 260px; height: 260px; right: 28%; bottom: -90px; background: rgba(31,122,85,.45); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(-40px, 30px); } }
.hero-in { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 760px; }
.hero .lead { color: rgba(255,255,255,.85); margin-bottom: 32px; }
.hero .eyebrow { color: var(--lime); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.card-media { margin: -30px -26px 22px; aspect-ratio: 8 / 5; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--mist); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card-media img { transform: scale(1.07); }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--gray); margin: 0; font-size: .95rem; }
.note { color: var(--gray); font-size: .85rem; margin-top: 22px; max-width: 760px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 1.02rem; }
.step p { color: var(--gray); font-size: .92rem; margin: 0; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.why-item { border-top: 3px solid var(--lime); padding-top: 20px; }
.why-item p { color: var(--gray); margin: 0; font-size: .95rem; }

.partner-card { display: flex; flex-direction: column; gap: 10px; }
.partner-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--mist); padding: 4px 10px; border-radius: 999px; }
.partner-card a.link { margin-top: 8px; font-weight: 700; color: var(--green-mid); text-decoration: none; }
.partner-card a.link:hover { text-decoration: underline; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 16px; background: var(--mist); padding: 32px; border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 700; font-size: .85rem; color: var(--green-dark); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; }
.contact-form label.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--gray); font-size: .85rem; margin: 0; }
.contact-form label.consent input { width: auto; margin-top: 3px; }
.form-status { margin: 0; font-weight: 700; font-size: .9rem; color: #b3382c; min-height: 1.2em; }

/* Footer */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.78); padding: 52px 0 28px; font-size: .9rem; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-top img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-top p { margin: 0; max-width: 420px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .78rem; color: rgba(255,255,255,.55); max-width: 900px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 14px; }

/* Immagini affiancate al testo */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 72px; }
.split-reverse .split-media { order: 2; }
.split-media { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.split:hover .split-media img { transform: scale(1.05); }
.split-media-duo { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 10px; border-radius: 0; overflow: visible; box-shadow: none; aspect-ratio: 16 / 10; }
.split-media-duo img { min-height: 0; border-radius: 14px; box-shadow: var(--shadow); }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 84px; margin-bottom: 8px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.partner-logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.partner-logo:hover { border-color: var(--lime); }

/* Animazioni allo scroll: attive solo se JS e se l'utente non riduce il movimento */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: revealIn .7s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes revealIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.card, .why-item { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(11,58,44,.4); }
.step::before { transition: transform .3s ease; }
.step:hover::before { transform: scale(1.12) rotate(-6deg); }
.btn-primary { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-orb { animation: none; }
  .hero-in { opacity: 1; transform: none; animation: none; }
  .js .reveal, .js .reveal.in { opacity: 1; animation: none; }
  .card, .why-item, .split-media img { transition: none; }
  html { scroll-behavior: auto; }
}

.legal h2 { font-size: 1.15rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--gray); }

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 14px 24px; gap: 2px; margin: 0; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-inner > .btn { display: none; }
  .card-grid, .card-grid-2, .why-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-reverse .split-media { order: 0; }
  .split-media-duo { aspect-ratio: auto; height: 240px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .steps, .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 64px; }
}
