:root {
  --verde-profondo: #274E13;
  --verde-medio: #31681c;
  --verde-chiaro: #568C3D;
  --arancio: #E05A00;
  --arancio-scuro: #C24A00;
  --testo: #1c1c1c;
  --chiaro: #f7f7f5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--testo);
  line-height: 1.6;
  background: #fff;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 26px; font-weight: 800; color: var(--verde-profondo); text-decoration: none; letter-spacing: -0.5px; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-app { color: var(--arancio); }
.nav { display: flex; align-items: center; gap: 12px; }
.nav a {
  color: var(--verde-profondo);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 9px;
  border: 2px solid var(--verde-profondo);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.nav a:visited { color: var(--verde-profondo); }
.nav a:hover {
  background: var(--verde-profondo);
  color: #fff;
  transform: translateY(-1px);
}
.nav-cta {
  background: var(--verde-profondo);
  color: #fff;
  box-shadow: 0 3px 8px rgba(39,78,19,0.25), inset 0 1px 0 rgba(255,255,255,0.20);
}
.nav-cta:visited { color: #fff; }
.nav-cta:hover {
  background: var(--verde-chiaro);
  border-color: var(--verde-chiaro);
  color: #fff;
}

.hero {
  background: linear-gradient(160deg, var(--verde-profondo) 0%, var(--verde-medio) 55%, var(--verde-chiaro) 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}
.hero h1 { font-size: 42px; line-height: 1.15; max-width: 760px; margin: 0 auto 18px; }
.hero p { font-size: 19px; color: #eaf4e2; max-width: 660px; margin: 0 auto 30px; }

.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--arancio) 0%, var(--arancio-scuro) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.35); }

.articles { padding: 40px 0 64px; display: grid; gap: 20px; }

.article-card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 26px;
  transition: box-shadow 0.2s ease;
}
.article-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.article-card h2 { font-size: 24px; margin-bottom: 8px; }
.article-card h2 a { color: var(--testo); text-decoration: none; }
.article-card h2 a:hover { color: var(--verde-profondo); }
.article-card p { color: #4a4a4a; }
.article-meta { font-size: 14px; color: #888; margin-top: 12px; }

/* Pagina articolo */
.article-page { max-width: 760px; margin: 0 auto; padding: 40px 0 64px; }
.article-page.breadcrumb {}
.breadcrumb a { color: var(--arancio-scuro); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.article-page h1 { font-size: 36px; line-height: 1.2; letter-spacing: -0.5px; margin: 12px 0 8px; }
.article-page .article-meta { margin-bottom: 24px; }
.article-page h2 { font-size: 26px; margin: 28px 0 12px; letter-spacing: -0.3px; }
.article-page h2, .article-page strong { color: var(--verde-profondo); }
.article-page p { margin-bottom: 16px; font-size: 18px; color: #333; }

/* Lead magnet — homepage card */
.guide-card {
  border-color: var(--verde-chiaro);
  background: var(--chiaro);
}
.guide-badge {
  display: inline-block;
  background: var(--verde-chiaro);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.guide-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}
.guide-bullets li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 16px;
  color: #4a4a4a;
}
.guide-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--verde-chiaro);
  font-weight: 700;
}
.guide-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.guide-cta-link {
  color: var(--verde-profondo);
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 2px solid var(--verde-chiaro);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.guide-cta-link:hover { color: var(--verde-chiaro); }

/* Lead magnet — article page extras */
.article-page .guide-bullets li {
  font-size: 18px;
  color: #333;
  padding: 10px 16px 10px 44px;
  margin-bottom: 8px;
  background: var(--chiaro);
  border-left: 3px solid var(--verde-chiaro);
  border-radius: 0 8px 8px 0;
}
.article-page .guide-bullets li::before { left: 14px; }
.guide-cta-box {
  background: var(--chiaro);
  border: 1.5px solid var(--verde-chiaro);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  margin: 32px 0;
}
.guide-disclaimer {
  border-left: 3px solid var(--arancio);
  background: var(--chiaro);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--testo);
  margin-top: 32px;
}

.site-footer {
  background: var(--verde-profondo);
  color: #cfe5c0;
  padding: 32px 0;
}
.site-footer p { margin-bottom: 6px; }
.footer-note { font-size: 14px; color: #a9c99a; }

/* Lead magnet — email form */
.lead-field { margin-bottom: 14px; text-align: left; }
.lead-label { display: block; font-size: 15px; font-weight: 600; color: var(--verde-profondo); margin-bottom: 6px; }
.lead-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  color: var(--testo);
  background: #fff;
  transition: border-color 0.15s;
}
.lead-input:focus { outline: none; border-color: var(--verde-chiaro); }
.lead-consent { margin: 14px 0 10px; text-align: left; }
.lead-checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #4a4a4a;
  cursor: pointer;
  line-height: 1.5;
}
.lead-checkbox-label input[type="checkbox"] { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--verde-chiaro); cursor: pointer; }
.lead-checkbox-label a { color: var(--verde-profondo); font-weight: 600; }
.lead-error { color: #c0392b; font-size: 13px; margin: 4px 0 0; min-height: 18px; }
.lead-submit { margin-top: 14px; width: 100%; border: none; cursor: pointer; font-family: inherit; }
.lead-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 30px; }
  .nav a { margin-left: 14px; }
  .article-page h1 { font-size: 28px; }
}
