/* ============================================================
   Gestionale Frantoio — main.css  (restyling "Oro Verde")
   Palette: verde oliva profondo + oro ambra
   Font: Inter (premium SaaS reference)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');


/* 1. CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Brand palette */
  --primary:              #2D5A3D;
  --primary-dark:         #1B3D28;
  --primary-light:        #EEF7F2;
  --accent:               #C9A227;
  --accent-deep:          #A8861B;
  --accent-light:         #FBF6E7;

  /* Neutrals */
  --dark:                 #211D18;
  --dark-mid:             #3A352D;
  --medium-gray:          #5C554A;
  --light-gray:           #F4EFE4;
  --border:               #E4DCCB;
  --white:                #FFFFFF;
  --surface:              #FBF9F3;

  /* Typography */
  --font-display:         'Fraunces', Georgia, serif;
  --font-sans:            'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max:        1200px;
  --nav-height:           68px;
  --section-py:           clamp(5.5rem, 11vw, 9rem);

  /* Radius */
  --radius-sm:            6px;
  --radius-md:            10px;
  --radius-lg:            16px;
  --radius-xl:            24px;

  /* Shadows */
  --shadow-xs:            0 1px 2px rgba(33, 29, 24, 0.05);
  --shadow-sm:            0 1px 4px rgba(33, 29, 24, 0.06), 0 2px 8px rgba(33, 29, 24, 0.04);
  --shadow-md:            0 4px 12px rgba(33, 29, 24, 0.08), 0 8px 24px rgba(33, 29, 24, 0.05);
  --shadow-lg:            0 8px 24px rgba(33, 29, 24, 0.10), 0 16px 48px rgba(33, 29, 24, 0.06);
  --shadow-primary:       0 8px 24px rgba(45, 90, 61, 0.20);

  /* Motion */
  --ease:                 cubic-bezier(0.4, 0, 0.2, 1);
  --transition:           220ms var(--ease);
  --transition-slow:      380ms var(--ease);
}


/* 2. CSS Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* L'header e' fisso: senza questo margine il titolo di destinazione di ogni
   ancora (#mes, #prezzi, #prenotazione...) finisce nascosto sotto la barra. */
[id] { scroll-margin-top: calc(var(--nav-height) + 28px); }
body { font-family: var(--font-sans); color: var(--dark); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; border-spacing: 0; }


/* 3. Typography */
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
p { line-height: 1.75; }
.lead { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--medium-gray); line-height: 1.75; }
strong { font-weight: 600; }
small { font-size: 0.85em; }
.text-center { text-align: center; }


/* 4. Layout Utilities */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-py) 0; }

.bg-light {
  background: linear-gradient(180deg, var(--surface) 0%, var(--light-gray) 50%, var(--surface) 100%);
}

.section-label {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  display: block;
}

.section-header { margin-bottom: 3.5rem; }
.section-header p { margin-top: 0.75rem; max-width: 600px; }
.section-header.text-center p { margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 1), 1fr); gap: var(--gap, 1.5rem); }
.grid-2 { --cols: 2; }
.grid-3 { --cols: 3; }
.grid-4 { --cols: 4; }
.flex { display: flex; align-items: center; gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { justify-content: center; }
.flex-between { justify-content: space-between; }
.spacer { flex: 1; }


/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition), transform var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  user-select: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: var(--shadow-primary); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 8px 32px rgba(45, 90, 61, 0.30); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--primary); color: var(--white); box-shadow: var(--shadow-primary); }

.btn-white { background: var(--white); color: var(--primary); border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.btn-white:hover, .btn-white:focus-visible { box-shadow: 0 4px 16px rgba(0,0,0,0.18); transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { filter: brightness(0.9); }

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }


/* 6. Navigation */
header.site-header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(251, 249, 243, 0.88);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
}
@media (max-width: 640px) {
  header.site-header { top: 8px; left: 8px; right: 8px; border-radius: 14px; }
}
header.site-header.scrolled {
  background: rgba(250, 250, 248, 0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
}
header.site-header > .container { height: 100%; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 2rem; }

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .nav-logo-img { height: 26px; }
}

.nav-menu { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.nav-mobile-cta { display: none; }

.nav-link { display: flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.7rem; font-size: 0.875rem; font-weight: 500; color: var(--medium-gray); border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); cursor: pointer; user-select: none; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--dark); background: rgba(0,0,0,0.04); }
.nav-link svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--transition); }
.dropdown.open .nav-link svg { transform: rotate(180deg); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; border-radius: var(--radius-sm); transition: background var(--transition); }
.nav-toggle:hover { background: var(--light-gray); }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--dark); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 220px; padding: 0.5rem; list-style: none; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--transition), visibility var(--transition), transform var(--transition); z-index: 100; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: 0.5rem 0.75rem; font-size: 0.9rem; color: var(--dark); border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); }
.dropdown-item:hover { background: var(--light-gray); color: var(--primary); }
.dropdown-header { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--medium-gray); padding: 0.5rem 0.75rem; cursor: default; }
hr.dropdown-divider, .dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; }


/* 7. Hero */
.hero {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 6rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface) 0%, #EEF4F1 60%, var(--surface) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(45, 90, 61, 0.12);
}

.hero-title {
  font-size: clamp(3rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.hero-title span { color: var(--primary); }

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--medium-gray);
  line-height: 1.8;
  margin-bottom: 2.25rem;
  max-width: 460px;
}
.hero-actions { display: flex; align-items: center; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--medium-gray);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  60%  { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-visual { position: relative; }
.hero-graphic {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--primary-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-graphic img, .hero-graphic video { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Mockup iframe scalato */
.hero-mockup-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.hero-mockup-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1180px;
  height: 900px;
  border: none;
  transform: scale(0.47);
  transform-origin: top left;
  pointer-events: none;
  user-select: none;
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-float-card.card-tl { top: -1.25rem; left: -1.25rem; }
.hero-float-card.card-br { bottom: -1.25rem; right: -1.25rem; }


/* 8. Stats Bar — dark inversion */
.stats-bar {
  background: var(--dark);
  padding: 4rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; text-align: center; }
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); line-height: 1.4; }


/* 9. Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; color: var(--primary); stroke: var(--primary); fill: none; }
.card-icon.accent { background: var(--accent-light); }
.card-icon.accent svg { color: var(--accent); stroke: var(--accent); }
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--dark); line-height: 1.3; }
.card-text { color: var(--medium-gray); font-size: 0.925rem; line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); font-size: 0.875rem; font-weight: 600; margin-top: 1.25rem; transition: gap var(--transition), color var(--transition); }
.card-link:hover { gap: 0.65rem; }
.card-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.card-highlighted { border-color: var(--primary); background: var(--primary-light); }


/* 10. Feature Section */
.features-split { display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: 5rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; }
.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-check svg { width: 12px; height: 12px; stroke: var(--white); fill: none; }
.feature-text { line-height: 1.65; }
.feature-text strong { display: block; font-weight: 600; margin-bottom: 0.2rem; color: var(--dark); }
.feature-text p { color: var(--medium-gray); font-size: 0.925rem; }
.feature-visual {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px solid var(--border);
}


/* 11. Steps / Come funziona */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.6% + 27px);
  right: calc(16.6% + 27px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--primary), var(--border));
  z-index: 0;
  opacity: 0.5;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-primary);
}
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--medium-gray); line-height: 1.6; }


/* 12. WhatsApp Feature Block */
.whatsapp-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.whatsapp-mockup {
  background: #F0F2F5;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.whatsapp-msg { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; }
.whatsapp-msg:last-child { margin-bottom: 0; }
.whatsapp-avatar { width: 36px; height: 36px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3); }
.whatsapp-avatar svg { width: 20px; height: 20px; fill: white; }
.whatsapp-bubble { background: var(--white); border-radius: 0 10px 10px 10px; padding: 0.8rem 1rem; font-size: 0.875rem; line-height: 1.55; color: var(--dark); max-width: 240px; box-shadow: var(--shadow-xs); }
.whatsapp-time { font-size: 0.68rem; color: var(--medium-gray); text-align: right; margin-top: 0.3rem; }


/* 13. Compliance / SIAN Section */
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.compliance-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.compliance-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.compliance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  margin: 0 auto 1.25rem;
}
.compliance-badge svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; }
.compliance-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--dark); }
.compliance-card p { font-size: 0.875rem; color: var(--medium-gray); line-height: 1.65; }


/* 14. Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pricing-card.featured {
  background: linear-gradient(150deg, #2D5A3D 0%, #1B3D28 100%);
  border-color: transparent;
  box-shadow: var(--shadow-primary);
  color: var(--white);
}
.pricing-card.featured:hover { box-shadow: 0 12px 40px rgba(45, 90, 61, 0.35); transform: translateY(-3px); }
.pricing-card.featured .pricing-name { color: rgba(255,255,255,0.6); }
.pricing-card.featured .pricing-price { color: var(--white); }
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.55); }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.9); }
.pricing-card.featured .pricing-features li.disabled { color: rgba(255,255,255,0.3); }
.pricing-card.featured .pricing-features li svg { stroke: #4ADE80; }

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-name { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--medium-gray); margin-bottom: 0.75rem; }
.pricing-price { font-size: clamp(2.25rem, 4vw, 2.75rem); font-weight: 800; color: var(--dark); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.25rem; }
.pricing-price sup { font-size: 1.1rem; vertical-align: top; margin-top: 0.4rem; display: inline-block; font-weight: 600; }
.pricing-period { font-size: 0.82rem; color: var(--medium-gray); margin-bottom: 1.75rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--dark); }
.pricing-features li svg { width: 15px; height: 15px; stroke: #22C55E; fill: none; flex-shrink: 0; }
.pricing-features li.disabled { color: var(--medium-gray); text-decoration: line-through; opacity: 0.6; }


/* 15. Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-quote { color: var(--dark); line-height: 1.75; margin-bottom: 1.75rem; font-size: 0.975rem; font-weight: 400; }
.testimonial-quote::before { content: '"'; font-size: 1.5rem; color: var(--primary); font-weight: 700; line-height: 0; vertical-align: -0.25em; margin-right: 0.15rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 0.82rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.testimonial-role { font-size: 0.78rem; color: var(--medium-gray); margin-top: 0.15rem; }


/* 16. Free Trial CTA Form */
.trial-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 500; color: var(--dark); display: block; }
label .required { color: #DC2626; margin-left: 0.2rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--dark);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.12);
  background: var(--white);
}
input::placeholder, textarea::placeholder { color: var(--medium-gray); opacity: 0.6; }
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-group.botcheck { display: none !important; }
.form-error { font-size: 0.78rem; color: #DC2626; display: none; margin-top: 0.1rem; }
.form-error.visible { display: block; }
.form-failed { background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius-md); padding: 1rem 1.25rem; color: #991B1B; font-size: 0.9rem; display: none; margin-bottom: 1rem; }
.form-note { font-size: 0.78rem; color: var(--medium-gray); margin-top: 0.75rem; }
.recaptcha-wrap { margin-top: 0.5rem; }
.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; margin-top: 0.2rem; cursor: pointer; accent-color: var(--primary); flex-shrink: 0; }
.checkbox-group label { cursor: pointer; font-size: 0.875rem; color: var(--medium-gray); line-height: 1.55; }


/* 17. CTA Band */
.cta-band {
  background: linear-gradient(135deg, #2D5A3D 0%, #1B3D28 55%, #7A5010 100%);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 2.5rem; font-size: 1.05rem; max-width: 520px; margin-left: auto; margin-right: auto; position: relative; line-height: 1.7; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }


/* 18. Footer */
footer.site-footer {
  background: #0A0F0C;
  color: rgba(255,255,255,0.6);
  padding: 5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer-logo { font-size: 1.35rem; font-weight: 800; color: var(--white); display: block; margin-bottom: 1rem; letter-spacing: -0.03em; text-decoration: none; }
.footer-desc { font-size: 0.875rem; line-height: 1.75; margin-bottom: 1.5rem; color: rgba(255,255,255,0.5); }
.footer-social { display: flex; align-items: center; gap: 0.75rem; }
.footer-social a { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; transition: background var(--transition); color: rgba(255,255,255,0.6); }
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-social a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.footer-heading { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--white); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact p { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; margin-bottom: 0.65rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; stroke: rgba(74, 222, 128, 0.7); fill: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.copyright { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; align-items: center; gap: 1.5rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }


/* 19. Animations */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: var(--delay, 0ms); }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }


/* 20. Responsive */
@media (max-width: 1200px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }

@media (max-width: 992px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none; position: absolute; top: calc(100% + 8px); left: -1px; right: -1px; max-height: calc(100vh - var(--nav-height) - 40px); max-height: calc(100dvh - var(--nav-height) - 40px); background: var(--white); flex-direction: column; padding: 1.25rem; overflow-y: auto; gap: 0; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 999; }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 0.875rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; width: 100%; justify-content: space-between; color: var(--dark); }
  .nav-link:hover, .nav-link.active { background: transparent; color: var(--primary); }
  .dropdown { position: static; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 1rem; display: none; min-width: auto; border-radius: 0; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-item { padding: 0.625rem 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .dropdown-item:hover { background: transparent; color: var(--primary); }
  .nav-mobile-cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
  .nav-mobile-cta .btn { width: 100%; justify-content: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-lead { max-width: 100%; }
  .hero-float-card { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 2rem; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .grid-3 { --cols: 2; }
  .grid-4 { --cols: 2; }
  .features-split { grid-template-columns: 1fr; gap: 2rem; }
  .feature-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .whatsapp-block { grid-template-columns: 1fr; }
  .process-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compliance-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .section-header { margin-bottom: 2.5rem; }
  .cta-band { padding: 4.5rem 0; }
  .trial-form-wrap { padding: 2.25rem 1.75rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.75rem; }
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  :root { --section-py: clamp(3.5rem, 8vw, 5.5rem); }
  .container { padding: 0 1.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { --cols: 1; }
  .grid-3 { --cols: 1; }
  .grid-4 { --cols: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  footer.site-footer { padding: 3.5rem 0 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-legal { justify-content: center; flex-wrap: wrap; }
  .cta-band { padding: 3.5rem 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-bar { padding: 0; }
  .card { padding: 1.75rem; }
  .pricing-grid { max-width: 100%; }
  .testimonial-grid { max-width: 100%; }
  .compliance-grid { max-width: 100%; }
  .whatsapp-block { padding: 2rem; }
  .process-media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 1.5rem 1rem; }
  .stat-value { font-size: 1.85rem; }
  .nav-logo { font-size: 1.2rem; }
  .hero-title { font-size: 2.25rem; letter-spacing: -0.03em; }
}


/* 20. Family Switcher — ecosistema AdHoc Oil
   ------------------------------------------------------------ */
.family-switcher {
  position: relative;
  background:
    radial-gradient(900px 380px at 50% -30%, rgba(201, 162, 39, .10), transparent 60%),
    var(--light-gray);
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 7vw, 5.5rem) 0;
}
.family-switcher__head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.family-switcher__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.family-switcher__eyebrow::before,
.family-switcher__eyebrow::after {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}
.family-switcher__title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 500; letter-spacing: -0.015em;
}
.family-switcher__title em {
  font-style: italic; color: var(--accent-deep); position: relative; white-space: nowrap;
}
.family-switcher__title em::after {
  content: ''; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .16em;
  background: var(--accent); opacity: .35; border-radius: 100% 60% 100% 60%; z-index: -1;
}
.family-switcher__sub { color: var(--medium-gray); margin-top: 0.75rem; line-height: 1.7; }
.family-switcher__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.family-card {
  position: relative;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.9rem 1.75rem 1.6rem;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
a.family-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.family-card__logo { height: 26px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; }
.family-card__desc { font-size: 0.9rem; color: var(--medium-gray); line-height: 1.65; }
.family-card__domain {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-deep);
}
.family-card__cta { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--primary); }
a.family-card:hover .family-card__cta { color: var(--accent-deep); }
.family-card--current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.family-card__here {
  position: absolute; top: -11px; right: 18px;
  background: var(--accent); color: var(--dark);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
@media (max-width: 900px) {
  .family-switcher__grid { grid-template-columns: 1fr; }
  .family-card__logo { height: 30px; }
}
.footer-poweredby { font-size: 0.78rem; color: var(--medium-gray); margin-top: 0.75rem; }
.footer-poweredby a { color: var(--primary); text-decoration: none; font-weight: 600; }



/* Cookie consent banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 15, 12, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.85);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.875rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
}
#cookie-banner p { margin: 0; flex: 1; line-height: 1.5; }
#cookie-banner a { color: #4ADE80; }
#cookie-banner button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}
#cookie-banner button:hover { background: var(--primary-dark); }


/* ============================================================
   Process Visual Slideshow (come funziona)
   ============================================================ */

.process-visual {
  margin-top: 4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  background: var(--dark);
}

.process-slides {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.process-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.process-slide.active {
  opacity: 1;
}

.process-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
}

.process-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.process-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* SIAN Visual proof images */
.sian-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.sian-slide-img {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.sian-slide-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.sian-slide-img:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .sian-visual {
    grid-template-columns: 1fr;
  }

  .process-slides {
    aspect-ratio: 4 / 3;
  }
}


/* ============================================================
   Animated Process Flow — Flusso automatizzato
   ============================================================ */

.flow-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow-section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(183, 121, 31, 0.08);
  border: 1px solid rgba(183, 121, 31, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 1rem;
  display: block;
}

.flow-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 3.5rem;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 150px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--step-delay, 0ms);
}

.flow-section.flow-active .flow-step {
  opacity: 1;
  transform: translateY(0);
}

.flow-step__circle {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.flow-step__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}

.flow-step__ring-fill {
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--step-delay, 0ms);
}

.flow-section.flow-active .flow-step__ring-fill {
  stroke-dashoffset: 0;
}

.flow-step__inner {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fff;
  transition: transform 0.2s ease;
}

.flow-step__inner--accent { background: var(--accent); }
.flow-step__inner svg { opacity: 0.9; }

.flow-step__num {
  font-size: 0.55rem;
  font-weight: 800;
  opacity: 0.6;
  letter-spacing: 0.02em;
}

.flow-step__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.flow-step__desc {
  font-size: 0.78rem;
  color: var(--medium-gray);
  line-height: 1.5;
  max-width: 125px;
}

.flow-step__badge {
  margin-top: 0.6rem;
  background: rgba(183, 121, 31, 0.1);
  border: 1px solid rgba(183, 121, 31, 0.25);
  border-radius: 100px;
  padding: 3px 10px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease 1.45s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 1.45s;
}

.flow-section.flow-active .flow-step__badge {
  opacity: 1;
  transform: scale(1);
}

.flow-step__badge span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.flow-connector {
  display: flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 40px;
  flex-shrink: 0;
  width: clamp(20px, 3.5vw, 44px);
}

.flow-connector__line {
  flex: 1;
  height: 2px;
  background: rgba(45, 90, 61, 0.12);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.flow-connector__fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  transition-delay: var(--conn-delay, 200ms);
}

.flow-section.flow-active .flow-connector__fill {
  transform: scaleX(1);
}

.flow-connector__arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  transition-delay: calc(var(--conn-delay, 200ms) + 370ms);
}

.flow-section.flow-active .flow-connector__arrow {
  opacity: 0.8;
  transform: translateX(0);
}

.flow-footnote {
  text-align: center;
  font-size: 0.8rem;
  color: var(--medium-gray);
  margin-top: 3rem;
  opacity: 0.75;
}

.process-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.process-media-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.process-media-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.process-media-card__visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-light);
}
.process-media-card__visual img,
.process-media-card__visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.process-media-card__body {
  padding: 1.15rem;
}
.process-media-card__label {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.process-media-card h3 {
  font-size: 0.96rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
  color: var(--dark);
}
.process-media-card p {
  color: var(--medium-gray);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 992px) {
  .process-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .process-media-grid { grid-template-columns: 1fr; }

  .flow-track {
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
  }

  .flow-step {
    flex-direction: row;
    text-align: left;
    max-width: 100%;
    width: 100%;
    max-width: 340px;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-20px);
  }

  .flow-section.flow-active .flow-step {
    opacity: 1;
    transform: translateX(0);
  }

  .flow-step__circle { margin-bottom: 0; }
  .flow-step__desc { max-width: none; }

  .flow-connector {
    flex-direction: column;
    margin-top: 0;
    margin-left: 39px;
    width: 2px;
    height: 28px;
    align-self: auto;
  }

  .flow-connector__line { flex: 1; width: 2px; }
  .flow-connector__fill {
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transition-delay: var(--conn-delay, 200ms);
  }
  .flow-section.flow-active .flow-connector__fill { transform: scaleY(1); }
  .flow-connector__arrow { display: none; }
}


/* ============================================================
   Hero v2 — Editoriale rurale (gestionale-frantoio)
   ============================================================ */
.hero-v2--editorial {
  position: relative;
  padding: 0;
  background: #F8F2E6;
  color: #1A1612;
  overflow: hidden;
}
.hero-v2__paper-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184,90,58,.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(74,93,35,.05) 0%, transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.hero-v2__paper-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .04;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-v2--editorial .container {
  position: relative;
  z-index: 5;
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 30px;
}
.hero-v2__ed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Eyebrow */
.hero-v2__ed-eyebrow {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 32px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #8A7E70;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-v2__ed-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: #4A5D23;
}
.hero-v2__ed-eyebrow strong { color: #4A5D23; font-weight: 600; }

/* Title */
.hero-v2__ed-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 5.8vw, 84px);
  line-height: .98;
  letter-spacing: -.03em;
  margin-bottom: 32px;
  color: #1A1612;
}
.hero-v2__ed-title em {
  font-style: italic;
  font-weight: 400;
  color: #4A5D23;
}
.hero-v2__ed-eyebrow-small {
  display: inline-block;
  font-size: .35em;
  font-weight: 600;
  vertical-align: top;
  margin-top: .8em;
  color: #A8861B;
  letter-spacing: 0;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

/* Lead */
.hero-v2__ed-lead {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
  color: #5A4F44;
  margin-bottom: 40px;
  max-width: 540px;
  font-weight: 400;
}
.hero-v2__ed-lead em { color: #4A5D23; font-style: italic; }

/* CTAs */
.hero-v2__ed-btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  background: #4A5D23;
  color: #F8F2E6;
  border-radius: 0;
  font-weight: 600; font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 12px 28px rgba(45,58,17,.18);
}
.hero-v2__ed-btn-primary::after { content: '→'; font-size: 18px; transition: transform .2s; }
.hero-v2__ed-btn-primary:hover {
  background: #2D3A11;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(45,58,17,.28);
}
.hero-v2__ed-btn-primary:hover::after { transform: translateX(6px); }
.hero-v2__ed-btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 18px 20px;
  color: #1A1612;
  font-weight: 600; font-size: 15px;
  border-bottom: 1px solid #1A1612;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.hero-v2__ed-btn-text:hover { color: #4A5D23; border-color: #4A5D23; }

.hero-v2--editorial .hero-v2__cta { margin-top: 0; margin-bottom: 56px; }

/* Featurettes */
.hero-v2__ed-featurettes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid rgba(74, 93, 35, 0.18);
}
.hero-v2__ed-featurette {
  font-size: 13.5px;
  line-height: 1.55;
  color: #5A4F44;
}
.hero-v2__ed-num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 13px;
  color: #A8861B;
  display: block;
  margin-bottom: 6px;
  letter-spacing: .12em;
}
.hero-v2__ed-featurette strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 16px;
  color: #1A1612;
  margin-bottom: 4px;
}

/* RIGHT photo composition */
.hero-v2__ed-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 580px;
  justify-self: end;
  width: 100%;
}
.hero-v2__ed-photo {
  position: absolute; inset: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(45,58,17,.25);
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 25%, transparent 70%, rgba(0,0,0,.25) 100%),
    linear-gradient(135deg, #8AA055 0%, #4A5D23 50%, #2D3A11 100%);
}
.hero-v2__ed-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 5%, rgba(244,228,193,.45) 0%, transparent 35%),
    radial-gradient(circle at 30% 25%, rgba(200,155,60,.25) 0%, transparent 25%),
    radial-gradient(circle at 70% 60%, rgba(74,93,35,.6) 0%, transparent 40%);
  mix-blend-mode: overlay;
}
.hero-v2__ed-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .85;
  pointer-events: none;
}
.hero-v2__ed-caption {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  color: #F8F2E6;
  z-index: 5;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-v2__ed-caption small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(248,242,230,.7);
  margin-bottom: 8px;
}

/* Stamp */
.hero-v2__ed-stamp {
  position: absolute;
  top: 32px; right: 32px;
  z-index: 7;
  border: 2px solid #F8F2E6;
  border-radius: 50%;
  width: 92px; height: 92px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #F8F2E6;
  font-family: 'Fraunces', Georgia, serif;
  transform: rotate(-12deg);
  background: rgba(45, 58, 17, 0.35);
  backdrop-filter: blur(4px);
}
.hero-v2__ed-stamp-y { font-size: 24px; font-weight: 700; }
.hero-v2__ed-stamp-l {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.hero-v2__ed-stamp-v { font-size: 11px; margin-top: 4px; font-style: italic; }

/* Polaroids */
.hero-v2__ed-polaroid {
  position: absolute;
  background: #FDFBF5;
  padding: 14px 14px 24px;
  box-shadow: 0 18px 36px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.04);
  z-index: 6;
  transition: transform .3s ease;
}
.hero-v2__ed-polaroid:hover { transform: scale(1.05) rotate(0deg) !important; z-index: 10; }
.hero-v2__ed-pad {
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  color: #F8F2E6;
}
.hero-v2__ed-pad--text {
  color: #F8F2E6;
  background: linear-gradient(135deg, #C9A227, #A8861B);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  padding: 14px;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-v2__ed-pad--text small { opacity: .7; font-size: 9.5px; letter-spacing: .1em; }
.hero-v2__ed-pad--text strong { font-size: 22px; font-weight: 700; margin-top: 4px; }
.hero-v2__ed-cap {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic; font-size: 12px;
  color: #5A4F44;
  text-align: center;
  line-height: 1.3;
}
.hero-v2__ed-polaroid--1 {
  width: 150px;
  top: 8%; left: -60px;
  --rot: -7deg;
  transform: rotate(-7deg);
  animation: heroV2EdBob 7s ease-in-out infinite;
}
.hero-v2__ed-polaroid--2 {
  width: 140px;
  top: 32%; right: -50px;
  --rot: 6deg;
  transform: rotate(6deg);
  animation: heroV2EdBob 8s ease-in-out infinite -2s;
}
.hero-v2__ed-polaroid--3 {
  width: 160px;
  bottom: 6%; left: -40px;
  --rot: 4deg;
  transform: rotate(4deg);
  animation: heroV2EdBob 9s ease-in-out infinite -4s;
}
@keyframes heroV2EdBob {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(var(--rot, 0deg)) translateY(-12px); }
}

/* Marquee */
.hero-v2__ed-marquee {
  border-top: 1px solid rgba(74, 93, 35, 0.18);
  border-bottom: 1px solid rgba(74, 93, 35, 0.18);
  overflow: hidden;
  padding: 18px 0;
  margin-top: 20px;
  background: rgba(74,93,35,.04);
  position: relative;
  z-index: 5;
}
.hero-v2__ed-marquee-track {
  display: flex;
  gap: 56px;
  animation: heroV2EdScroll 35s linear infinite;
  width: max-content;
}
@keyframes heroV2EdScroll { to { transform: translateX(-50%); } }
.hero-v2__ed-marquee-item {
  display: flex; align-items: center; gap: 12px;
  color: #5A4F44;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  white-space: nowrap;
}
.hero-v2__ed-marquee-item::before {
  content: '✦';
  color: #A8861B;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-v2__ed-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-v2__ed-visual { justify-self: center; max-width: 460px; aspect-ratio: 4/4; }
  .hero-v2__ed-featurettes { grid-template-columns: 1fr; gap: 18px; }
  .hero-v2__ed-polaroid--1 { left: -10px; }
  .hero-v2__ed-polaroid--2 { right: -10px; }
  .hero-v2__ed-polaroid--3 { left: -10px; }
}
@media (max-width: 640px) {
  .hero-v2__ed-title { font-size: 44px; }
  .hero-v2__ed-lead { font-size: 17px; }
  .hero-v2__ed-stamp { width: 70px; height: 70px; top: 18px; right: 18px; }
  .hero-v2__ed-polaroid { display: none; }
}
/* ============================================================
   LOGHI CLIENTI — componente condiviso
   Usato da: gestionale-oleificio, gestionale-frantoio, adhocoil
   ============================================================ */

.clienti {
  padding: 0 0 var(--section-padding-y, 72px);
}

.clienti__inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 44px 48px 40px;
}

.clienti__label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--medium-gray);
  margin-bottom: 8px;
}

.clienti__title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
  color: var(--primary, #1B3A4B);
  margin: 0 0 40px;
}

/* fila dei loghi: si avvolgono e restano centrati */
.clienti__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clienti__item { flex: 0 1 auto; }

.clienti__item img {
  display: block;
  height: 84px;                 /* altezza visiva uniforme */
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .82;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.clienti__item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-2px);
}

.clienti__item a { display: inline-block; }

/* versione piu' piccola (per aree secondarie / footer) */
.clienti--compact .clienti__item img { height: 56px; max-width: 140px; }
.clienti--compact .clienti__inner { padding: 28px 32px 26px; }

/* su fondo scuro (es. footer): loghi invertiti */
.clienti--dark .clienti__inner { background: transparent; border: 0; }
.clienti--dark .clienti__item img { filter: grayscale(100%) brightness(0) invert(1); opacity: .75; }
.clienti--dark .clienti__item img:hover { filter: grayscale(0%); opacity: 1; }

@media (max-width: 640px) {
  .clienti__inner { padding: 30px 22px 26px; }
  .clienti__item img { height: 60px; max-width: 130px; }
  .clienti__row { gap: 14px 24px; }
}

/* ============================================================
   CONTENUTI AGGIUNTI: cassoni RFID, MES, tracciabilità/costi, BI
   ============================================================ */
.flow-note {
  margin-top: 48px;
}
.flow-note__inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 30px;
  max-width: 760px;
  margin: 0 auto;
}
.flow-note__icon {
  flex-shrink: 0;
  color: var(--primary);
  opacity: .8;
}
.flow-note__text strong { display: block; font-size: 17px; color: var(--dark); margin-bottom: 6px; }
.flow-note__text p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--medium-gray); }

/* MES */
.mes-grid { margin-bottom: 20px; }
.mes-card .card-icon { color: var(--primary); }
.mes-note {
  text-align: center;
  font-size: 14px;
  color: var(--medium-gray);
  margin-top: 30px;
}
.mes-note a { color: var(--accent-deep); }

/* BI + E-commerce compatti */
.moduli-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.moduli-extra__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
}
.moduli-extra__item strong { display: block; font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.moduli-extra__item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--medium-gray); }

/* Tracciabilità e costi KPI */
.costi-kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 32px;
}
.costi-kpi__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--medium-gray);
}
.costi-kpi__row:last-child { border-bottom: 0; }
.costi-kpi__row strong {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 26px;
  color: var(--primary);
  font-weight: 600;
}
.costi-kpi__row--ok strong { color: #2e7d32; font-size: 20px; }


/* ============================================================
   BANDI E FINANZIAMENTI
   Stessa struttura di gestionale-oleificio; variabili del tema frantoio.
   ============================================================ */
.bandi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.bandi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.bandi-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.bandi-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-light);
  border-radius: 3px;
  padding: 4px 9px;
}
.bandi-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  color: var(--primary);
  margin: 2px 0 0;
}
.bandi-card__desc { font-size: 15px; line-height: 1.65; color: var(--medium-gray); margin: 0; }
.bandi-card__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--dark-mid);
  font-weight: 600;
}

/* Rassegna automatica — layout compatto */
.bandi-feed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 26px 20px;
}
.bandi-feed__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.bandi-feed__head h3 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--primary);
  margin: 0;
}
.bandi-feed__updated { font-size: 12px; color: var(--medium-gray); }
.bandi-feed__note { font-size: 12px; color: var(--medium-gray); margin: 0 0 14px; line-height: 1.5; }

/* due colonne su desktop, righe dense */
.bandi-feed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
}
.bandi-feed__item { border-top: 1px solid var(--border); }
.bandi-feed__item a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}
.bandi-feed__item a:hover .bandi-feed__title { color: var(--accent-deep); }
.bandi-feed__title {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--dark);
  /* massimo due righe: mantiene la griglia ordinata */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bandi-feed__src {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bandi-feed__deadline { color: #B3261E; font-weight: 700; }
.bandi-feed__loading, .bandi-feed__empty { padding: 14px 0; color: var(--medium-gray); font-size: 14px; }

@media (max-width: 860px) {
  .bandi-feed__list { grid-template-columns: 1fr; }
}

.bandi-cta {
  margin-top: 44px;
  text-align: center;
}
.bandi-cta p { color: var(--medium-gray); margin-bottom: 18px; }

@media (max-width: 640px) {
  .bandi-feed { padding: 22px 20px 8px; }
  .bandi-feed__item a { grid-template-columns: 1fr; }
}

/* --- Video di presentazione ---------------------------------------------
   Facciata cliccabile: mostra una miniatura locale e carica l'iframe di
   YouTube solo al clic, evitando cookie di terze parti a pagina aperta. */
.video-facade { max-width: 900px; margin: 0 auto; }
.video-facade__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-facade__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.video-facade__btn img { width: 100%; height: auto; display: block; }
.video-facade__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(45, 90, 61, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.video-facade__btn:hover .video-facade__play { background: var(--primary); transform: scale(1.06); }
.video-facade__play svg { margin-left: 4px; }
.video-facade__note {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--medium-gray);
}
.video-facade iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); display: block; }

/* --- Banner cookie: due scelte con pari evidenza ------------------------- */
#cookie-banner .cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
#cookie-banner .cookie-btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.45);
}
#cookie-banner .cookie-btn-secondary:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 640px) {
  #cookie-banner .cookie-actions { width: 100%; }
  #cookie-banner .cookie-actions button { flex: 1; }
}

/* Testo del finto messaggio WhatsApp: ha l'aspetto di un link ma non lo e',
   perche' non porterebbe da nessuna parte. */
.whatsapp-link { color: var(--primary); font-weight: 600; }
