/*
Theme Name: Crops Fresh
Theme URI: https://example.com/crops-fresh
Author: Crops Fresh Dev Team
Author URI: https://example.com
Description: Starter Theme personalizzato per Crops Fresh, azienda di commercializzazione e intermediazione di prodotti ortofrutticoli (verdura secca, patate) tra produttori agricoli locali e la Grande Distribuzione Organizzata. Design elegante e minimalista con palette Giallo/Verde, realizzato con Tailwind CSS.
Version: 1.8.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crops-fresh
Tags: agricoltura, ortofrutta, vetrina, minimal, tailwind
*/

/* =====================================================================
   Crops Fresh - Stili di supporto a Tailwind CSS (CDN)
   Qui vivono solo le regole che Tailwind (via CDN, senza build step)
   non pu- esprimere con le sole utility class: keyframes, pseudo-elementi
   avanzati, scrollbar, selection, e piccoli componenti riutilizzati
   nei template (es. link del menu di navigazione).
   ===================================================================== */

/* Logo brand */
.crops-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.crops-logo {
  display: block;
  width: auto;
  height: 2.5rem;
  max-width: none;
  transition: transform 0.3s var(--crops-ease-out);
}

.crops-logo--sm {
  height: 2rem;
}

.crops-logo--lg {
  height: 3.25rem;
}

.crops-logo-link.group:hover .crops-logo {
  transform: scale(1.02);
}

:root {
  --crops-green: #025e2e;
  --crops-green-dark: #00562e;
  --crops-green-hero: #004824;
  --crops-green-rgb: 0, 86, 46;
  --crops-green-mid-rgb: 18, 130, 74;
  --crops-green-light: #d4eedc;
  --crops-yellow: #f0b429;
  --crops-lime: #95c11f;
  --crops-card-radius: 6px;
  --crops-card-glow: 0 2px 10px rgba(0, 86, 46, 0.07), 0 10px 32px rgba(0, 86, 46, 0.1);
  --crops-card-glow-hover: 0 4px 16px rgba(0, 86, 46, 0.1), 0 16px 40px rgba(0, 86, 46, 0.14);
  --crops-morph-text-transition: 0.28s var(--crops-ease-out);
  --crops-nav-height: 5rem;
  --crops-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --crops-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* =====================================================================
   Design squadrato — radius leggero su card e pulsanti (--crops-card-radius)
   ===================================================================== */

body.crops-squared .rounded-full,
body.crops-squared .rounded-3xl,
body.crops-squared .rounded-2xl,
body.crops-squared .rounded-xl,
body.crops-squared .rounded-lg,
body.crops-squared .rounded-md,
body.crops-squared .rounded-sm,
body.crops-squared .rounded,
body.crops-squared [class*="rounded-["],
body.crops-squared input,
body.crops-squared .newsletter-form,
body.crops-squared .blob,
body.crops-squared .img-zoom,
body.crops-squared article,
body.crops-squared .prose img {
  border-radius: 0 !important;
}

body.crops-squared .magnetic-btn,
body.crops-squared #back-to-top,
body.crops-squared #menu-toggle {
  border-radius: var(--crops-card-radius);
}

body.crops-squared .blob {
  filter: blur(40px);
  opacity: 0.35;
}

body.crops-squared .card-hover {
  border: 2px solid rgba(0, 86, 46, 0.08);
  border-radius: var(--crops-card-radius);
  box-shadow: var(--crops-card-glow);
}

body.crops-squared .card-hover:hover {
  border-color: var(--crops-yellow);
  transform: translateY(-8px);
  box-shadow: var(--crops-card-glow-hover);
}

body.crops-squared .magnetic-btn {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  z-index: 0;
}

body.crops-squared .magnetic-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--crops-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--crops-ease-out);
  z-index: -1;
}

body.crops-squared .magnetic-btn:hover::before {
  transform: scaleX(1);
}

body.crops-squared .magnetic-btn.bg-accent-500:hover,
body.crops-squared .magnetic-btn.bg-primary-700:hover {
  color: #00562e !important;
  border-color: #00562e;
}

@media (min-width: 1024px) {
  :root {
    --crops-nav-height: 5.25rem;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: var(--crops-yellow);
  color: #1b2a1e;
}

/* Scrollbar personalizzata */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f4f9ee;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--crops-green), var(--crops-yellow));
  border-radius: 999px;
}

/* =====================================================================
   Animazioni
   ===================================================================== */

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(14px) rotate(-4deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(240, 180, 41, 0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes borderPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(240, 180, 41, 0); }
  50% { box-shadow: inset 0 0 0 3px rgba(240, 180, 41, 0.45); }
}

@keyframes stripeMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

@keyframes heroWordUp {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scanLine {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(400%); opacity: 0; }
}

@keyframes counterPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 8s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 1.8s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2.4s ease-out infinite; }

.animate-marquee {
  animation: marquee 28s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 16s linear infinite;
}

@keyframes lineDraw {
  from { stroke-dashoffset: var(--line-length, 1000); }
  to { stroke-dashoffset: 0; }
}

.line-draw {
  stroke-dasharray: var(--line-length, 1000);
  stroke-dashoffset: var(--line-length, 1000);
  transition: stroke-dashoffset 1.4s ease;
}
.line-draw.is-visible {
  stroke-dashoffset: 0;
}

/* Reveal-on-scroll: varianti direzionali */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--crops-ease-out), transform 0.9s var(--crops-ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-70px);
  transition: opacity 0.9s var(--crops-ease-out), transform 0.9s var(--crops-ease-out);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(70px);
  transition: opacity 0.9s var(--crops-ease-out), transform 0.9s var(--crops-ease-out);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.85s var(--crops-ease-out), transform 0.85s var(--crops-ease-out);
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger: figli animati in sequenza dal JS */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--crops-ease-out), transform 0.7s var(--crops-ease-out);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hero: righe di titolo che salgono */
.hero-title .hero-line {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}
.hero-title .hero-word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
}
.hero-title.is-animated .hero-word {
  animation: heroWordUp 0.85s var(--crops-ease-out) forwards;
}
.hero-title.is-animated .hero-line:nth-child(1) .hero-word { animation-delay: 0.15s; }
.hero-title.is-animated .hero-line:nth-child(2) .hero-word { animation-delay: 0.35s; }
.hero-title.is-animated .hero-line:nth-child(3) .hero-word { animation-delay: 0.55s; }

/* Linee decorative che crescono allo scroll */
.section-line {
  height: 3px;
  background: linear-gradient(90deg, var(--crops-green), var(--crops-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--crops-ease-out);
}
.section-line.is-visible {
  transform: scaleX(1);
}

.section-line-center {
  transform-origin: center;
}

/* Banda diagonale animata (Hero / sezioni scure) */
.bg-stripe-anim {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(240, 180, 41, 0.04) 12px,
    rgba(240, 180, 41, 0.04) 24px
  );
  animation: stripeMove 8s linear infinite;
}

/* Scan line decorativa sulla hero image */
.hero-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240, 180, 41, 0.8), transparent);
  animation: scanLine 4s ease-in-out infinite;
  pointer-events: none;
}

/* Contatori con pop */
.crops-counter.is-counting {
  display: inline-block;
  animation: counterPop 0.5s var(--crops-ease-out);
}

/* Stat box con bordo animato */
.stat-box {
  position: relative;
  border: 2px solid rgba(0, 86, 46, 0.1);
  transition: border-color 0.4s ease, transform 0.4s var(--crops-ease-out);
}
.stat-box.is-visible {
  animation: borderPulse 2s ease 0.5s 1;
}
.stat-box:hover {
  border-color: var(--crops-yellow);
  transform: translateY(-4px);
}

/* Card tilt 3D (gestito da JS) */
.card-tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

/* Parallax background layers */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Marquee piu grande e veloce */
.marquee-wrap {
  border-top: 3px solid var(--crops-yellow);
  border-bottom: 3px solid var(--crops-yellow);
}

/* =====================================================================
   Menu di navigazione (wp_nav_menu) - stile dei link generati da WordPress
   ===================================================================== */

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #00562e;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.15rem;
  height: 2px;
  background: linear-gradient(90deg, var(--crops-green), var(--crops-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover,
.nav-link:focus,
.current-menu-item > .nav-link,
.current_page_item > .nav-link {
  color: var(--crops-green);
}
.nav-link:hover::after,
.nav-link:focus::after,
.current-menu-item > .nav-link::after,
.current_page_item > .nav-link::after {
  transform: scaleX(1);
}

.nav-link-mobile {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #00562e;
  border-bottom: 1px solid rgba(18, 130, 74, 0.12);
}

.footer-link {
  color: #cfe3c6;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-link:hover {
  color: var(--crops-yellow);
  padding-left: 4px;
}

/* =====================================================================
   Elementi decorativi
   ===================================================================== */

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}

.bg-noise-dots {
  background-image: radial-gradient(rgba(0, 86, 46, 0.15) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.card-hover {
  border-radius: var(--crops-card-radius);
  box-shadow: var(--crops-card-glow);
  transition: transform 0.35s var(--crops-ease-out), box-shadow 0.35s var(--crops-ease-out), border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--crops-card-glow-hover);
}

.img-zoom {
  overflow: hidden;
  position: relative;
}
.img-zoom > * {
  transition: transform 0.55s var(--crops-ease-out);
}
.img-zoom:hover > * {
  transform: scale(1.12);
}
.img-zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.img-zoom:hover::after {
  opacity: 1;
}

/* Navbar fissa — opaca in cima, vetro smerigliato allo scroll */
.crops-site-header,
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(0, 86, 46, 0.08);
  transition:
    background-color 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    backdrop-filter 0.45s ease,
    -webkit-backdrop-filter 0.45s ease;
}

#site-header:not(.is-scrolled) {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  border-bottom-color: rgba(0, 86, 46, 0.1);
  box-shadow: 0 10px 30px -14px rgba(0, 86, 46, 0.14);
}

#site-header.is-scrolled.is-over-dark {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(1.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.04);
  border-bottom-color: rgba(0, 86, 46, 0.12);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.12);
}

/* Nessun padding globale: l'hero sale sotto la navbar (niente fascia verde morph) */
#site-content {
  padding-top: 0;
}

body:not(.home) #site-content {
  padding-top: 5rem;
}

@media (min-width: 1024px) {
  body:not(.home) #site-content {
    padding-top: 5.25rem;
  }
}

/* =====================================================================
   Marquee (striscia a scorrimento infinito)
   ===================================================================== */

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 14s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* =====================================================================
   Badge circolare rotante
   ===================================================================== */

.rotating-badge {
  animation: spin-slow 18s linear infinite;
}

/* =====================================================================
   Pulsanti CTA (classe legacy: magnetic-btn)
   ===================================================================== */

.magnetic-btn {
  display: inline-block;
  border-radius: var(--crops-card-radius);
}

.magnetic-btn--partner:hover,
.magnetic-btn--partner:focus-visible {
  color: #00562e;
}

/* =====================================================================
   Newsletter
   ===================================================================== */

.newsletter-form.is-success .newsletter-fields {
  display: none;
}
.newsletter-success {
  display: none;
}
.newsletter-form.is-success .newsletter-success {
  display: flex;
}

/* Skip link per accessibilit- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #00562e;
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* =====================================================================
   Riga 1 - Hero Produce Farm style
   ===================================================================== */

.hero-farm {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--crops-nav-height);
  padding-bottom: 2rem;
}

.hero-farm__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.hero-farm::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 86, 46, 0.92) 0%, rgba(0, 86, 46, 0.75) 45%, rgba(0, 86, 46, 0.35) 100%);
  z-index: 0;
}

.hero-farm__title-line {
  display: block;
  font-family: Poppins, sans-serif;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Stats bar (legacy preview) */
.stats-bar {
  position: relative;
  z-index: 20;
  margin-top: -1px;
  background: var(--crops-yellow);
  border-top: 4px solid #00562e;
  border-bottom: 4px solid #00562e;
}
.stats-bar__item {
  border-right: 2px solid rgba(0, 86, 46, 0.15);
  transition: background 0.3s ease;
}
.stats-bar__item:last-child {
  border-right: none;
}
.stats-bar__item:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* =====================================================================
   Mission & milestone — griglia editoriale (stile OURA)
   ===================================================================== */

.crops-about__mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 86, 46, 0.1);
}

.crops-about__mini-stat-value {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1;
  color: #00562e;
}

.crops-about__mini-stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(27, 42, 30, 0.65);
}

.crops-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(0, 86, 46, 0.12);
  border-radius: var(--crops-card-radius);
  overflow: hidden;
  box-shadow: var(--crops-card-glow);
  background: #fff;
}

@media (min-width: 640px) {
  .crops-about__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.crops-about__cell {
  border-bottom: 1px solid rgba(0, 86, 46, 0.12);
}

@media (min-width: 640px) {
  .crops-about__cell {
    border-right: 1px solid rgba(0, 86, 46, 0.12);
  }

  .crops-about__cell:nth-child(2n) {
    border-right: none;
  }

  .crops-about__cell:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.crops-about__cell:last-child {
  border-bottom: none;
}

.crops-about__stat {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 11rem;
  padding: 1.5rem 1.35rem;
  background: #fff;
}

.crops-about__stat-label {
  margin: 0;
  max-width: 11rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(27, 42, 30, 0.72);
}

.crops-about__stat-num {
  margin: 0;
  flex-shrink: 0;
  font-family: Poppins, sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #00562e;
}

.crops-about__media {
  padding: 0;
  min-height: 12rem;
  background: #eef8f1;
}

.crops-about__media-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.crops-about__values {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 12rem;
  padding: 1.5rem 1.35rem;
  background: #00562e;
  color: #fdfbf3;
}

.crops-about__values-quote {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(253, 251, 243, 0.92);
}

.crops-about__values-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f0b429;
  transition: color 0.25s ease, gap 0.25s ease;
}

.crops-about__values-link:hover {
  color: #f7c948;
  gap: 0.55rem;
}

/* =====================================================================
   Prodotti — carosello espansivo (foto attaccate)
   ===================================================================== */

.crops-product-rail {
  position: relative;
  outline: none;
  border-radius: var(--crops-card-radius);
  box-shadow: var(--crops-card-glow);
  overflow: hidden;
}

.crops-product-rail:focus-visible {
  box-shadow: var(--crops-card-glow), 0 0 0 3px rgba(240, 180, 41, 0.45);
}

.crops-product-rail__track {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: clamp(20rem, 48vh, 28rem);
}

.crops-product-slide {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  min-height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: flex 0.65s var(--crops-ease-out);
}

.crops-product-slide:last-child {
  border-right: none;
}

.crops-product-slide.is-active {
  flex: 4.75 1 0;
}

.crops-product-slide__media {
  position: absolute;
  inset: 0;
}

.crops-product-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.65s var(--crops-ease-out);
}

.crops-product-slide.is-active .crops-product-slide__media img {
  transform: scale(1);
}

.crops-product-slide__strip-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 0.35rem;
  background: linear-gradient(to top, rgba(0, 36, 20, 0.72), transparent 58%);
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.crops-product-slide__strip-title span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: Poppins, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253, 251, 243, 0.92);
  white-space: nowrap;
}

.crops-product-slide.is-active .crops-product-slide__strip-title {
  opacity: 0;
}

.crops-product-slide__panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(to top, rgba(0, 36, 20, 0.9) 0%, rgba(0, 36, 20, 0.42) 52%, transparent 78%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s var(--crops-ease-out);
  pointer-events: none;
}

.crops-product-slide.is-active .crops-product-slide__panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.crops-product-slide__title {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fdfbf3;
}

.crops-product-slide__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.crops-product-slide__points li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(253, 251, 243, 0.88);
}

.crops-product-slide__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: #f0b429;
}

.crops-product-slide__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crops-product-slide__badges span {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00562e;
  background: #f0b429;
  border: 1px solid rgba(0, 86, 46, 0.15);
}

@media (max-width: 767px) {
  .crops-product-rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 0;
    box-shadow: none;
  }

  .crops-product-rail::-webkit-scrollbar {
    display: none;
  }

  .crops-product-rail__track {
    width: max-content;
    min-width: 100%;
    height: clamp(18rem, 62vw, 22rem);
  }

  .crops-product-slide {
    flex: 0 0 18%;
    min-width: 3.75rem;
    scroll-snap-align: center;
  }

  .crops-product-slide.is-active {
    flex: 0 0 68%;
    min-width: 15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crops-product-rail {
    overflow: visible;
  }

  .crops-product-rail__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    width: 100%;
    height: auto;
  }

  .crops-product-slide,
  .crops-product-slide.is-active {
    flex: none;
    min-height: 16rem;
    border-right: none;
    border-radius: var(--crops-card-radius);
    box-shadow: var(--crops-card-glow);
  }

  .crops-product-slide__strip-title {
    opacity: 0;
  }

  .crops-product-slide__panel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .crops-product-slide__media img {
    transform: none;
  }
}

/* =====================================================================
   Riga 2 - Timeline orizzontale
   ===================================================================== */

.crops-timeline {
  position: relative;
}
.crops-timeline__track {
  display: none;
}
@media (min-width: 768px) {
  .crops-timeline__track {
    display: block;
    position: absolute;
    top: 2.5rem;
    left: 8%;
    right: 8%;
    height: 3px;
    background: #c9e3ac;
    z-index: 0;
  }
  .crops-timeline__track-fill {
    height: 100%;
    width: 0;
    background: var(--crops-yellow);
    transition: width 1.4s var(--crops-ease-out);
  }
  .crops-timeline.is-visible .crops-timeline__track-fill {
    width: 100%;
  }
}
.crops-timeline__step {
  position: relative;
  z-index: 1;
  border: 2px solid rgba(0, 86, 46, 0.1);
  background: #fff;
  border-radius: var(--crops-card-radius);
  box-shadow: var(--crops-card-glow);
  transition: border-color 0.3s ease, transform 0.3s var(--crops-ease-out), box-shadow 0.3s var(--crops-ease-out);
}
.crops-timeline__step:hover {
  border-color: var(--crops-yellow);
  transform: translateY(-6px);
  box-shadow: var(--crops-card-glow-hover);
}
.crops-timeline__num {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  background: var(--crops-green);
  color: #fdfbf3;
  margin-bottom: 1rem;
}

/* Video reel placeholder */
.media-reel {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--crops-yellow);
}
.media-reel__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 86, 46, 0.35);
  transition: background 0.3s ease;
}
.media-reel:hover .media-reel__play {
  background: rgba(0, 86, 46, 0.5);
}

/* =====================================================================
   Riga 3 - Servizi + Premium + Accordion
   ===================================================================== */

.service-card--highlight {
  background: linear-gradient(135deg, #fff0c4 0%, #fff8e6 62%) !important;
}

.service-card--premium {
  border: 3px solid var(--crops-yellow) !important;
  background: linear-gradient(135deg, #fffbea 0%, #ffffff 60%) !important;
  position: relative;
}
.service-card--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: calc(var(--crops-card-radius) - 1px);
  pointer-events: none;
}
.premium-badge {
  display: inline-block;
  background: var(--crops-yellow);
  color: #00562e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 2px solid #00562e;
  margin-bottom: 1rem;
}

.crops-accordion__item {
  border: 2px solid rgba(0, 86, 46, 0.12);
  background: #fff;
}
.crops-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  text-align: left;
  color: #00562e;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease;
}
.crops-accordion__trigger:hover,
.crops-accordion__item.is-open .crops-accordion__trigger {
  background: #f4f9ee;
}
.crops-accordion__icon {
  flex-shrink: 0;
  transition: transform 0.3s var(--crops-ease-out);
}
.crops-accordion__item.is-open .crops-accordion__icon {
  transform: rotate(45deg);
}
.crops-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--crops-ease-out);
}
.crops-accordion__item.is-open .crops-accordion__panel {
  max-height: 320px;
}
.crops-accordion__panel-inner {
  padding: 0 1.25rem 1.25rem;
  color: rgba(27, 42, 30, 0.75);
  line-height: 1.65;
}

/* =====================================================================
   Riga 4 - Tab switcher + logo carousel
   ===================================================================== */

.crops-tabs__nav {
  display: flex;
  border-bottom: 3px solid rgba(0, 86, 46, 0.12);
}
.crops-tabs__btn {
  flex: 1;
  padding: 1rem 1.25rem;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(0, 86, 46, 0.6);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.crops-tabs__btn:hover {
  color: #00562e;
  background: #f4f9ee;
}
.crops-tabs__btn.is-active {
  color: #00562e;
  border-bottom-color: var(--crops-yellow);
  background: #fff;
}
.crops-tabs__panel {
  display: none;
  animation: fadeInUp 0.5s var(--crops-ease-out) forwards;
}
.crops-tabs__panel.is-active {
  display: block;
}

.logo-carousel-wrap {
  overflow: hidden;
  border-top: 3px solid rgba(0, 86, 46, 0.1);
  border-bottom: 3px solid rgba(0, 86, 46, 0.1);
  background: #f4f9ee;
}
.logo-carousel-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}
.logo-carousel-wrap:hover .logo-carousel-track {
  animation-play-state: paused;
}
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 1.25rem 2rem;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00562e;
  border-right: 2px solid rgba(0, 86, 46, 0.08);
  white-space: nowrap;
}

/* =====================================================================
   Transizione Freddie — colore che sale + "Get more out of now"
   ===================================================================== */

.crops-rise {
  position: relative;
  z-index: 2;
  --crops-rise-split: 100%;
  --crops-rise-scale: 0.82;
  --crops-rise-opacity: 0.72;
}

.crops-rise__track {
  height: clamp(120vh, 155vh, 180vh);
  position: relative;
  background-color: #00562e;
}

.crops-rise__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 32rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crops-rise__base,
.crops-rise__panel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crops-rise__base {
  z-index: 0;
  background-color: #00562e;
}

.crops-rise__panel {
  z-index: 1;
  background-color: #ffffff;
  transform: translateY(100%);
  transform-origin: center bottom;
  will-change: transform;
}

.crops-rise__line-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transform: scale(var(--crops-rise-scale));
  opacity: var(--crops-rise-opacity);
  will-change: transform, opacity;
}

.crops-rise__line-clip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.crops-rise__line-clip--dark {
  z-index: 1;
  clip-path: inset(0 0 calc(100% - var(--crops-rise-split)) 0);
}

.crops-rise__line-clip--light {
  z-index: 2;
  clip-path: inset(var(--crops-rise-split) 0 0 0);
}

.crops-rise__line {
  position: relative;
  margin: 0;
  padding: 0;
  max-width: 12ch;
  font-family: Poppins, sans-serif;
  font-size: clamp(2.35rem, 7.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
}

.crops-rise__line-clip--dark .crops-rise__line {
  color: #ffffff;
}

.crops-rise__line-clip--light .crops-rise__line {
  color: #00562e;
}

.crops-rise__line--quote {
  width: 100%;
  max-width: min(68rem, 94vw);
  font-size: clamp(1.5rem, 3.75vw, 2.95rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-transform: none;
  text-wrap: balance;
}

.crops-rise.is-complete {
  --crops-rise-split: 0%;
  --crops-rise-scale: 1.06;
  --crops-rise-opacity: 1;
}

.crops-rise.is-complete .crops-rise__panel {
  transform: translateY(0);
}

.crops-why-split-wrap {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .crops-rise__track {
    height: auto;
  }

  .crops-rise__sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 5rem 0;
  }

  .crops-rise__panel {
    transform: none;
    opacity: 0.35;
  }

  .crops-rise__line-clip--dark {
    display: none;
  }

  .crops-rise__line-clip--light {
    clip-path: none;
  }
}

/* =====================================================================
   Riga 5 - Split list (Freddie "Get more out of now")
   ===================================================================== */

.crops-why-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .crops-why-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }

  .crops-why-split__aside {
    position: sticky;
    top: 7rem;
  }
}

.crops-why-split__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 86, 46, 0.55);
}

.crops-why-split__title {
  margin: 0;
  font-family: var(--crops-font-display, inherit);
  font-size: clamp(2.35rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #111827;
}

.crops-why-split__title span {
  display: block;
}

.crops-why-split__list {
  display: flex;
  flex-direction: column;
}

.crops-why-item {
  padding: 2.75rem 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.crops-why-item:first-child {
  padding-top: 0;
}

.crops-why-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.crops-why-item__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.15rem;
  color: #111827;
}

.crops-why-item__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.crops-why-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.crops-why-item__title {
  margin: 0;
  font-family: var(--crops-font-display, inherit);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

.crops-why-item__mark {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--crops-yellow);
}

.crops-why-item__text {
  margin: 0;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(17, 24, 39, 0.68);
}

@media (min-width: 768px) {
  .crops-why-item {
    padding: 3.25rem 0;
  }
}

/* =====================================================================
   Riga 6 - Form contatti + mappa
   ===================================================================== */

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(0, 86, 46, 0.15);
  background: #fff;
  color: #1b2a1e;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--crops-yellow);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.25);
}
.contact-form.is-success .contact-form__fields {
  display: none;
}
.contact-form__success {
  display: none;
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--crops-yellow);
  background: #fffbea;
}
.contact-form.is-success .contact-form__success {
  display: block;
}
.map-frame {
  border: 4px solid var(--crops-green);
  filter: grayscale(20%) contrast(1.05);
  min-height: 360px;
}
.map-frame--fill {
  height: 100%;
  min-height: 22rem;
}
#contatti .map-frame--fill iframe {
  min-height: 22rem;
  height: 100%;
}
@media (min-width: 1024px) {
  #contatti .map-frame--fill {
    min-height: 100%;
  }
  #contatti .map-frame--fill iframe {
    min-height: 100%;
  }
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* =====================================================================
   Scroll morph background — dissolvenza per sezione (IntersectionObserver)
   ===================================================================== */

#crops-scroll-morph {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #004824;
  will-change: background-color;
  transition: background-color 0.85s ease;
}

body.crops-morph-scroll {
  background-color: #004824;
  transition: background-color 0.85s ease;
}

body.crops-morph-scroll #site-content {
  position: relative;
  z-index: 1;
}

body.crops-morph-scroll #site-header {
  position: fixed;
  z-index: 50;
}

body.crops-morph-scroll .crops-morph-section {
  background-color: transparent !important;
}

body.crops-morph-scroll .stats-bar {
  position: relative;
  z-index: 2;
}

.crops-site-footer {
  position: relative;
  z-index: 2;
  background-color: #00562e;
}

/* Contrasto adattivo: testo leggibile finché lo sfondo morph non coincide con la sezione */
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] .text-primary-900,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] .text-primary-800,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] .text-primary-700,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] .text-primary-600,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] [class*="text-dark"],
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] .crops-about__mini-stat-value,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] .crops-about__mini-stat-label,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] .crops-about__mini-stats,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="light"] .border-primary-800.text-primary-900,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="dark"]:not(#hero) .text-cream,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="dark"]:not(#hero) .text-primary-100,
body.crops-morph-scroll .crops-morph-section[data-morph-tone="dark"]:not(#hero) [class*="text-primary-100"],
body.crops-morph-scroll .crops-morph-section[data-morph-tone="dark"]:not(#hero) .text-accent-300 {
  transition:
    color var(--crops-morph-text-transition),
    border-color var(--crops-morph-text-transition);
}

body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .text-primary-900,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .text-primary-800,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .text-primary-700,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .text-primary-600,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] [class*="text-dark"] {
  color: rgba(253, 251, 243, 0.94) !important;
}

body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .crops-about__mini-stat-value {
  color: #f0b429;
}

body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .crops-about__mini-stat-label {
  color: rgba(253, 251, 243, 0.72);
}

body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .crops-about__mini-stats {
  border-bottom-color: rgba(253, 251, 243, 0.22);
}

body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .border-primary-800.text-primary-900 {
  color: #fdfbf3 !important;
  border-color: rgba(253, 251, 243, 0.72) !important;
}

body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .crops-about__grid .text-primary-900,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .bg-white .text-primary-900,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .bg-white .text-primary-800,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .bg-white [class*="text-dark"],
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .card-hover .text-primary-900,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .card-tilt .text-primary-900,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .crops-timeline__step .text-primary-900,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="light"] .crops-timeline__step [class*="text-dark"] {
  color: #00562e !important;
}

body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="dark"] .text-cream,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="dark"] .text-primary-100,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="dark"] [class*="text-primary-100"],
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="dark"] .text-accent-300 {
  color: #00562e !important;
}

body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="dark"] .bg-white .text-primary-900,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="dark"] .card-hover .text-primary-900,
body.crops-morph-scroll .crops-morph-section.is-morph-mismatch[data-morph-tone="dark"] .card-tilt .text-primary-900 {
  color: #00562e !important;
}

.crops-site-footer footer {
  background-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  #crops-scroll-morph,
  body.crops-morph-scroll {
    transition: none !important;
  }
}
