/* ==========================================================================
   PEIRANO VIVAI — pagina "Verde & CO₂" (co2.html)
   Riusa i token di style.css; qui solo ciò che è specifico della pagina.
   ========================================================================== */

/* ---------- hero ---------- */
.c-hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.c-hero-media, .c-hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.c-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,10,.55) 0%, rgba(8,16,10,.28) 45%, rgba(8,16,10,.72) 100%);
}
.c-hero-content {
  position: relative; z-index: 1; max-width: var(--max); margin: 0 auto;
  padding: 140px 24px 90px; width: 100%;
}
.c-hero-eyebrow {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: #d3e6c2; margin: 0 0 18px; font-weight: 600;
}
.c-hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem); color: #fff; max-width: 15ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.c-hero h1 em { color: #b9e6a8; }
.c-hero-sub {
  max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.12rem); color: #e4ecda;
  margin: 22px 0 30px; text-shadow: 0 1px 14px rgba(0,0,0,.4);
}
.c-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.c-hero-chip {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  background: rgba(10, 18, 12, .55); border: 1px solid rgba(185, 230, 168, .35);
  backdrop-filter: blur(8px); border-radius: 999px; padding: 12px 22px 12px 18px;
}
.c-hero-chip b {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 480; color: #b9e6a8;
  line-height: 1;
}
.c-hero-chip span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #cfdfc0; max-width: 22ch; line-height: 1.35; }
.c-hero-caption {
  position: absolute; right: 18px; bottom: 12px; z-index: 1; margin: 0;
  font-size: .72rem; letter-spacing: .08em; color: rgba(255,255,255,.75);
}

/* ---------- il problema ---------- */
.c-problem { padding: 110px 0 80px; }
.c-problem-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center;
}
.c-problem-txt p { color: var(--ink-2); max-width: 58ch; }
.c-problem-txt p b { color: var(--ink); }
.c-problem-photo { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.c-problem-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.c-problem-photo figcaption {
  font-size: .78rem; color: var(--soft); padding: 12px 16px; background: var(--card);
}

/* ---------- cosa fa un albero ---------- */
.c-facts { padding: 40px 0 30px; background: var(--bg-2); }
.c-facts > .wrap:first-child { padding-top: 50px; }
.c-facts-sub { color: var(--soft); max-width: 62ch; margin-top: -6px; }
.c-facts-grid { padding: 40px 24px 10px; }
.c-facts .num b { white-space: nowrap; }
.c-facts .num b small {
  font-family: var(--sans); font-size: .38em; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--soft); vertical-align: middle; margin-right: 2px;
}
.c-facts .num > span { max-width: 26ch; margin: 8px auto 0; display: block; line-height: 1.5; }
.c-sources {
  font-size: .78rem; color: var(--soft); max-width: 90ch; line-height: 1.6;
  padding-top: 26px; padding-bottom: 46px; margin: 0 auto;
}

/* ---------- prima / dopo ---------- */
.c-ba-sec { padding: 100px 0 90px; }
.c-ba-sub { color: var(--ink-2); max-width: 62ch; margin-bottom: 34px; }
.c-ba {
  position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 16/10; max-height: 620px; width: 100%;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.c-ba img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.c-ba-before {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0);
}
.c-ba-before img { position: absolute; inset: 0; }
.c-ba-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: rgba(12, 18, 12, .72); color: #edf4e3; backdrop-filter: blur(6px);
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.c-ba-tag-after { left: auto; right: 16px; }
.c-ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba, 50%); z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 0;
}
.c-ba-handle i {
  position: absolute; left: -1.25px; width: 2.5px; background: #fff; opacity: .9;
}
.c-ba-handle i:first-child { top: 0; bottom: calc(50% + 26px); }
.c-ba-handle i:last-child { top: calc(50% + 26px); bottom: 0; }
.c-ba-handle svg {
  width: 46px; height: 46px; padding: 11px; flex: none;
  background: #fff; color: #16301e; border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.c-ba input[type="range"] {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}

/* ---------- soluzioni ---------- */
.c-sol { padding: 30px 0 100px; }
.c-sol-sub { color: var(--soft); max-width: 60ch; margin-bottom: 40px; }
.c-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.c-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.c-card:hover { transform: translateY(-5px); }
.c-card figure { margin: 0; overflow: hidden; }
.c-card figure img {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.c-card:hover figure img { transform: scale(1.05); }
.c-card-body { padding: 26px 28px 28px; }
.c-card-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.c-card-body p { color: var(--ink-2); font-size: .95rem; margin: 0 0 6px; }

/* ---------- perché conviene (sezione scura, come .contact) ---------- */
.c-why {
  background: #101a11; padding: 100px 0;
}
.c-why h2 { color: #eef6e3; }
.c-why h2 em { color: #a7dc9e; }
.c-why .eyebrow.light { color: var(--gold); }
.c-why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px;
}
.c-why-item h3 { color: #e3eed4; font-size: 1.18rem; margin: 14px 0 8px; }
.c-why-item p { color: #a9b89b; font-size: .89rem; line-height: 1.6; margin: 0; }
.c-why-ico {
  display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(167, 220, 158, .12); color: #a7dc9e;
  border: 1px solid rgba(167, 220, 158, .25);
}
.c-why-ico svg { width: 26px; height: 26px; }

/* ---------- come lavoriamo ---------- */
.c-how { padding: 100px 0 90px; }
.c-how-steps { margin-top: 40px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .c-how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .c-how-steps { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .c-problem-grid { grid-template-columns: 1fr; gap: 36px; }
  .c-problem-photo img { aspect-ratio: 16/10; }
  .c-cards { grid-template-columns: 1fr; }
  .c-why-grid { grid-template-columns: 1fr 1fr; }
  .c-ba { aspect-ratio: 4/3; }
}
@media (max-width: 580px) {
  .c-hero { min-height: 78vh; }
  .c-hero-content { padding: 120px 20px 70px; }
  .c-hero-chip { gap: 10px; padding: 10px 18px 10px 14px; }
  .c-hero-chip b { font-size: 1.35rem; }
  .c-why-grid { grid-template-columns: 1fr; }
  .c-problem, .c-ba-sec, .c-how { padding-top: 70px; padding-bottom: 60px; }
  .c-ba-tag { font-size: .64rem; padding: 6px 10px; }
}
