/* ============================================================
   GERMINA LAB — stile del sito statico
   Colori e font ricavati dal sito originale su Figma Sites
   ============================================================ */

:root {
  --green: #6CAF46;        /* verde principale */
  --green-dark: #314F20;   /* verde scuro (titoli, badge) */
  --terra: #B57D5A;        /* terracotta sezione collaborazione */
  --ink: rgba(0, 0, 0, 0.55);   /* testo grigio */
  --ink-strong: rgba(0, 0, 0, 0.80);
  --cream: #FBF9F5;        /* fondo sezioni chiare */
  --card: #F4F2EE;         /* fondo card esperimenti */
  --radius: 14px;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

h1, h2, .wordmark { font-family: 'Kantumruy Pro', 'Inter', sans-serif; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sfondo a pattern (piantine e mattoncini) ---------- */
.patterned {
  background-color: var(--cream);
  background-image: linear-gradient(rgba(251, 249, 245, 0.78), rgba(251, 249, 245, 0.78)), url('assets/pattern.jpg');
  background-size: cover, 340px;
  background-repeat: repeat;
}
.patterned--terra {
  background-image: linear-gradient(rgba(244, 219, 203, 0.82), rgba(244, 219, 203, 0.82)), url('assets/pattern.jpg');
  background-size: cover, 340px;
}
.patterned--soft {
  background-image: linear-gradient(rgba(251, 249, 245, 0.80), rgba(251, 249, 245, 0.80)), url('assets/pattern.jpg');
  background-size: cover, 340px;
}

/* ---------- Header ---------- */
header {
  background: #fff;
  padding: 22px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #000;
  text-decoration: none;
}
.wordmark strong { font-weight: 600; }
.wordmark span { font-weight: 200; margin-left: 6px; }
.nav-link {
  font-weight: 500;
  font-size: 16px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nav-link:hover { color: var(--green); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  background: var(--green);
  padding: 12px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(0.92); }
.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}
.btn--terra { background: var(--terra); }
.btn--outline {
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--green);
  border-radius: 8px;
  padding: 10px 24px;
}
.btn--outline:hover { background: rgba(108, 175, 70, 0.08); filter: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 80px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--green); }
.hero p {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  margin-bottom: 16px;
}
.hero .btn { margin-top: 20px; }
.hero-logo { max-width: 440px; margin: 0 auto; }

/* ---------- Ipotesi ---------- */
.ipotesi { padding: 90px 0; }
.ipotesi .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.ipotesi h2 {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  padding: 28px 30px;
}
.card + .card { margin-top: 24px; }
.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--green);
  margin-bottom: 12px;
}
.card-title .icon { width: 18px; height: 18px; flex: none; }
.card-title em { font-style: italic; }
.card p strong { color: var(--ink-strong); }
.card p + p { margin-top: 10px; }

/* ---------- Esperimenti ---------- */
.esperimenti { padding: 90px 0 100px; }
.esperimenti h2 {
  text-align: center;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--green);
  margin-bottom: 56px;
}
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.exp-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px 60px;
  display: flex;
  flex-direction: column;
}
.exp-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.exp-card p { font-size: 16px; margin-bottom: 24px; }
.exp-figure { position: relative; margin-top: auto; }
.exp-figure img {
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.badge {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* ---------- Collaborazione ---------- */
.collab { padding: 90px 0; }
.collab .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.collab h2 {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  color: var(--terra);
  margin-bottom: 24px;
}
.collab .btn { margin-top: 20px; }
.collab .card-title { color: var(--terra); }
.collab .note { font-style: italic; font-size: 17px; margin-top: 12px; }

/* ---------- Chi siamo ---------- */
.chi-siamo { padding: 90px 0; }
.chi-siamo .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.chi-siamo .testo { text-align: center; }
.chi-siamo h2 {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  color: var(--green-dark);
  margin-bottom: 24px;
}
.chi-siamo p { margin-bottom: 14px; }
.chi-siamo p strong { color: var(--ink-strong); }
.social-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.chi-siamo img { border-radius: 18px; }

/* ---------- Newsletter CTA ---------- */
.newsletter { padding: 110px 0; text-align: center; }
.newsletter .lead {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 26px;
}
.newsletter .sub { max-width: 760px; margin: 0 auto 34px; }
.newsletter h2 {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
  color: var(--green-dark);
  margin-bottom: 34px;
}

/* ---------- Footer ---------- */
footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  padding: 44px 0;
  font-size: 16px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand .wordmark { font-size: 22px; color: var(--ink); }
.footer-brand p { margin-top: 10px; line-height: 1.55; }
.footer-brand strong { color: var(--ink-strong); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.footer-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--green); }

/* ---------- Pagine legali ---------- */
.legal { padding: 60px 0 90px; max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.legal .updated { font-style: italic; margin-bottom: 32px; }
.legal h2 { font-size: 24px; font-weight: 600; color: var(--ink-strong); margin: 36px 0 12px; font-family: 'Inter', sans-serif; }
.legal h3 { font-size: 19px; font-weight: 600; color: var(--ink-strong); margin: 26px 0 10px; }
.legal p, .legal li { font-size: 17px; margin-bottom: 12px; }
.legal ul { padding-left: 24px; margin-bottom: 16px; }
.legal a { color: var(--green-dark); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
.legal th, .legal td { border: 1px solid rgba(0,0,0,0.15); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--card); color: var(--ink-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container,
  .ipotesi .container,
  .collab .container,
  .chi-siamo .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-logo { max-width: 320px; }
  .exp-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-links { align-items: flex-start; }
  .chi-siamo img { width: 100%; max-width: 420px; margin: 0 auto; }
}
