/* Stampo comune delle landing "lavora con TrovaSagre":
   /per-organizzatori, /partner-locali, /partner-strategici, /partner-territoriali.
   Struttura fissa: hero → 3 card → prova → CTA (+ FAQ) → "Sei invece…".
   Gli elementi specifici di una sola pagina (es. ricerca/claim degli
   organizzatori) restano nello <style> inline della pagina. */

:root {
  --ld-green: #009246;
  --ld-green-dark: #007A38;
  --ld-green-deep: #005c29;
  --ld-green-soft: #E6F8EE;
  --ld-green-line: #CCEEDD;
  --ld-accent: #C2410C;          /* arancio: contrasto AA col testo bianco */
  --ld-accent-hover: #9A3412;
  --ld-gold: #FFD79A;
  --ld-ink: #111827;
  --ld-text: #374151;
  --ld-muted: #4B5563;
  --ld-line: #E5E7EB;
  --ld-alt: #F7F8FA;
  --ld-dark: #0f2a1a;
}

body { background: #fff; }
.ui-icon { width: 1em; height: 1em; stroke-width: 2; vertical-align: -2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ld-page :focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 3px; border-radius: 6px; }
.ld-hero :focus-visible, .ld-dark :focus-visible { outline-color: #fff; }

/* ── Comparsa on-scroll ── */
.anim { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.anim.visible { opacity: 1; transform: none; }
.anim-delay-1 { transition-delay: .1s; }
.anim-delay-2 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .anim { opacity: 1; transform: none; transition: none; } }

/* ── Bottoni ── */
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px; border-radius: 50px; border: none;
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
}
.ld-btn:hover { text-decoration: none; }
.ld-btn:active { transform: scale(.97); }
.ld-btn[disabled] { opacity: .65; cursor: default; }
.ld-btn-accent { background: var(--ld-accent); color: #fff; box-shadow: 0 6px 22px rgba(194,65,12,.35); }
.ld-btn-accent:hover { background: var(--ld-accent-hover); color: #fff; }
.ld-btn-green { background: var(--ld-green-dark); color: #fff; }
.ld-btn-green:hover { background: var(--ld-green-deep); color: #fff; }
.ld-link-ghost {
  color: #fff; font-size: .93rem; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px;
}
.ld-link-ghost:hover { color: #fff; text-decoration: none; border-color: #fff; }

/* ── Hero ──
   Immagine di sfondo per pagina: style="--ld-hero-img: url('/images/...')" */
.ld-hero {
  --ld-hero-img: none;
  background:
    linear-gradient(150deg, rgba(0,72,32,.86) 0%, rgba(0,122,56,.74) 55%, rgba(0,146,70,.66) 100%),
    var(--ld-hero-img) center 40% / cover no-repeat,
    var(--ld-green-deep);
  color: #fff; padding: 92px 20px 64px;
}
.ld-hero-inner { max-width: 1080px; margin: 0 auto; }
.ld-hero-text { max-width: 640px; }
.ld-hero--split .ld-hero-inner { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center; }
@media (max-width: 860px) {
  .ld-hero { padding: 80px 20px 48px; }
  .ld-hero--split .ld-hero-inner { grid-template-columns: 1fr; }
}
.ld-badge {
  display: inline-block; margin-bottom: 18px; padding: 5px 16px; border-radius: 50px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ld-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -.03em; margin: 0 0 18px;
}
.ld-hero h1 em { font-style: normal; color: var(--ld-gold); }
.ld-hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 1.55; color: rgba(255,255,255,.92); margin: 0 0 28px; max-width: 34em; }
.ld-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ld-stats { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.ld-stat strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.ld-stat span { font-size: .84rem; color: rgba(255,255,255,.88); }

/* ── Sezioni ── */
.ld-container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.ld-section { padding: 68px 0; }
.ld-section-alt { background: var(--ld-alt); }
.ld-dark { background: var(--ld-dark); color: rgba(255,255,255,.92); }
.ld-head { text-align: center; margin-bottom: 34px; }
.ld-label { display: inline-block; margin-bottom: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ld-green-dark); }
.ld-dark .ld-label { color: var(--ld-gold); }
.ld-title { font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--ld-ink); margin: 0; }
.ld-dark .ld-title { color: #fff; }
.ld-sub { margin: 12px auto 0; max-width: 600px; font-size: 1.03rem; line-height: 1.6; color: var(--ld-muted); }
.ld-dark .ld-sub { color: rgba(255,255,255,.82); }

/* ── 3 card "cosa ottieni" ── */
.ld-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 780px) { .ld-cards { grid-template-columns: 1fr; } }
.ld-card { position: relative; background: #fff; border: 1px solid var(--ld-line); border-radius: 18px; padding: 26px 22px; }
.ld-card-icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ld-green-soft); color: var(--ld-green-dark);
}
.ld-card-icon .ui-icon { width: 24px; height: 24px; }
.ld-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ld-ink); margin: 0 0 6px; }
.ld-card p { font-size: .93rem; line-height: 1.55; color: var(--ld-muted); margin: 0; }
.ld-card--soon { border-style: dashed; border-color: #D1D5DB; background: #FCFCFD; }
.ld-soon {
  position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 20px;
  background: #FFF4E8; color: var(--ld-accent-hover);
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

/* ── Prova sociale: "Collaboriamo già con" ── */
.ld-collab { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .ld-collab { grid-template-columns: 1fr; } }
.ld-collab-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--ld-line); border-radius: 18px; padding: 20px; }
.ld-collab-logo {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: 14px; padding: 8px;
  display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--ld-line);
}
.ld-collab-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ld-collab-name { font-weight: 800; font-size: 1.08rem; color: var(--ld-ink); }
.ld-collab-desc { font-size: .88rem; color: var(--ld-muted); line-height: 1.45; margin-top: 3px; }
.ld-chip {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 10px; border-radius: 20px;
  background: var(--ld-green-soft); color: var(--ld-green-dark);
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

/* ── Box offerta (prezzo / pilot) ── */
.ld-offer {
  max-width: 760px; margin: 0 auto; text-align: center; border-radius: 24px; padding: 48px 32px;
  background: linear-gradient(160deg, #0d2015 0%, #132b1c 60%, #0f2418 100%); color: rgba(255,255,255,.9);
}
@media (max-width: 560px) { .ld-offer { padding: 38px 20px; } }
.ld-offer .ld-label { color: var(--ld-gold); }
.ld-offer h2 { color: #fff; font-size: clamp(1.45rem, 3.6vw, 1.9rem); font-weight: 800; margin: 0 0 12px; }
.ld-offer p { color: rgba(255,255,255,.82); line-height: 1.6; margin: 0 auto 26px; max-width: 34em; }
.ld-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px; margin: 0 0 8px; }
.ld-price-main { display: flex; align-items: baseline; gap: 6px; }
.ld-price-main strong { font-size: clamp(1.9rem, 6vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; }
.ld-price-main span { color: rgba(255,255,255,.7); }
.ld-price-old { font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,.5); }
.ld-price-or { font-size: .9rem; color: rgba(255,255,255,.55); }
.ld-offer .ld-offer-note { font-size: .86rem; color: rgba(255,255,255,.62); margin-bottom: 26px; }

/* ── Form ── */
.ld-form { background: #fff; color: var(--ld-ink); border-radius: 22px; padding: 26px 22px; box-shadow: 0 12px 36px rgba(0,0,0,.25); }
.ld-form h3 { margin: 0 0 4px; font-size: 1.25rem; }
.ld-form .lead { margin: 0 0 16px; font-size: .9rem; color: var(--ld-muted); }
.ld-field { margin-bottom: 13px; }
.ld-field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 4px; color: #1F2937; }
.ld-field .opt { font-weight: 400; color: #6B7280; }
.ld-field input, .ld-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: .7rem .85rem;
  border: 1px solid #9CA3AF; border-radius: 10px; background: #fff; color: var(--ld-ink);
}
.ld-field textarea { min-height: 80px; resize: vertical; }
.ld-field input:focus, .ld-field textarea:focus { outline: none; border-color: var(--ld-green-dark); box-shadow: 0 0 0 3px rgba(0,122,56,.25); }
.ld-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: .92rem; color: #1F2937; }
.ld-check input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--ld-green-dark); }
.ld-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ld-form .ld-btn { width: 100%; }
.ld-form-msg { margin: 12px 0 0; font-size: .9rem; min-height: 1.2em; }
.ld-form-msg.err { color: #B91C1C; font-weight: 600; }
.ld-form-priv { margin: 12px 0 0; font-size: .78rem; color: #6B7280; line-height: 1.5; }
.ld-form-priv a { color: var(--ld-green-deep); }
.ld-thanks { text-align: center; padding: 22px 6px; }
.ld-thanks .big { font-size: 2.4rem; }

/* ── FAQ ── */
.ld-faq { max-width: 720px; margin: 0 auto; }
.ld-faq details { background: #fff; border: 1px solid var(--ld-line); border-radius: 14px; margin-bottom: 10px; }
.ld-faq summary {
  list-style: none; cursor: pointer; padding: 17px 22px; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-weight: 700; font-size: .98rem; color: var(--ld-ink);
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: '+'; font-size: 1.4rem; color: var(--ld-green-dark); flex-shrink: 0; }
.ld-faq details[open] summary::after { content: '–'; }
.ld-faq p { margin: 0; padding: 0 22px 18px; font-size: .94rem; line-height: 1.6; color: var(--ld-muted); }
.ld-faq p a { color: var(--ld-green-deep); }

/* ── "Sei invece…" ── */
.ld-others { border-top: 1px solid var(--ld-line); padding: 34px 20px; text-align: center; }
.ld-others p { margin: 0 0 14px; font-size: .9rem; font-weight: 700; color: var(--ld-muted); }
.ld-others nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ld-others a {
  padding: 9px 18px; border-radius: 30px; border: 1px solid var(--ld-line);
  font-size: .92rem; font-weight: 600; color: var(--ld-ink); text-decoration: none; background: #fff;
}
.ld-others a:hover { border-color: var(--ld-green); color: var(--ld-green-deep); text-decoration: none; }
.ld-others a[aria-current="page"] { display: none; }
