/* Farmalytica — brand site (allineato a Care / Aderenza teal) */
:root {
  --fml-teal: #00897B;
  --fml-teal-dark: #00695C;
  --fml-teal-soft: #E0F2F1;
  --fml-ink: #1A2423;
  --fml-muted: #5A6B68;
  --fml-bg: #F4FAF9;
  --fml-white: #FFFFFF;
  --fml-border: #C5D5D2;
}

body {
  background: var(--fml-bg) !important;
  color: var(--fml-ink);
}

.wp-site-blocks {
  background: transparent;
}

/* Header */
header.wp-block-template-part,
.wp-block-template-part header,
header .wp-block-group {
  background: var(--fml-white);
  border-bottom: 1px solid var(--fml-border);
}

.wp-block-site-title a,
.wp-block-site-title {
  color: var(--fml-teal) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
}

.wp-block-navigation a {
  color: var(--fml-ink) !important;
  font-weight: 600;
}

.wp-block-navigation a:hover {
  color: var(--fml-teal) !important;
}

/* Hero / home */
.entry-content > .wp-block-heading:first-child,
.fml-hero h1,
.fml-hero h2 {
  color: var(--fml-ink);
  font-size: clamp(1.75rem, 4vw, 2.4rem) !important;
  line-height: 1.2 !important;
  max-width: 18ch;
}

.fml-hero {
  background: linear-gradient(165deg, var(--fml-teal-soft) 0%, var(--fml-white) 55%, var(--fml-bg) 100%);
  border: 1px solid var(--fml-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0.5rem 0 1.75rem;
}

.fml-kicker {
  color: var(--fml-teal);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.fml-lead {
  color: var(--fml-muted);
  font-size: 1.1rem;
  max-width: 40rem;
}

.fml-cta {
  display: inline-block !important;
  margin: 0.75rem 0.75rem 0.75rem 0 !important;
  padding: 0.9rem 1.4rem !important;
  border-radius: 12px !important;
  background: var(--fml-teal) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: none !important;
}

.fml-cta:hover {
  background: var(--fml-teal-dark) !important;
  color: #fff !important;
}

.fml-cta-ghost {
  display: inline-block !important;
  margin: 0.75rem 0.75rem 0.75rem 0 !important;
  padding: 0.85rem 1.3rem !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--fml-teal-dark) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 2px solid var(--fml-teal) !important;
}

.fml-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.fml-card {
  background: var(--fml-white);
  border: 1px solid var(--fml-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.fml-card h3 {
  margin: 0 0 0.5rem;
  color: var(--fml-teal-dark);
  font-size: 1.15rem;
}

.fml-card p {
  margin: 0;
  color: var(--fml-muted);
}

/* Footer */
footer.wp-block-template-part,
footer .wp-block-group {
  background: #0F2E2B !important;
  color: #D7E8E5 !important;
  margin-top: 2rem;
}

footer a {
  color: #A7D7D1 !important;
}

footer .wp-block-site-title a,
footer .wp-block-site-title {
  color: #fff !important;
}

footer .wp-block-heading {
  color: #fff !important;
}

/* Contact Form 7 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  border: 2px solid var(--fml-border) !important;
  border-radius: 10px !important;
  padding: 0.75rem 0.9rem !important;
  background: #fff;
}

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  background: var(--fml-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 0.9rem 1.6rem !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--fml-teal-dark) !important;
}

.entry-content a:not(.fml-cta):not(.fml-cta-ghost) {
  color: var(--fml-teal-dark);
  font-weight: 600;
}

@media (max-width: 600px) {
  .fml-cta,
  .fml-cta-ghost {
    display: block !important;
    text-align: center;
  }
}
