/*
Theme Name: Marta Lucchi
Theme URI: https://martalucchi.it
Author: Marta Lucchi
Author URI: https://martalucchi.it
Description: Tema personalizzato per Marta Lucchi — Pedagogista & Educatrice. Design essenziale con palette verde e terra.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marta-lucchi
Tags: custom-colors, custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde:       #4a7c59;
  --verde-dark:  #335c3e;
  --verde-light: #eef4f0;
  --verde-mid:   #c8ddd0;
  --terra:       #8b6347;
  --terra-light: #f5f0eb;
  --terra-mid:   #d9c4b0;
  --ink:         #1e2420;
  --muted:       #6b7570;
  --border:      #e0e0dc;
  --white:       #ffffff;
  --font-main:   'Georgia', serif;
  --font-ui:     system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.3; color: var(--ink); }
h1 { font-size: clamp(26px, 4vw, 36px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: 16px; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* === BUTTONS === */
.btn-solid {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.btn-solid:hover { background: var(--verde-dark); color: #fff; }

.btn-ghost {
  display: inline-block;
  color: var(--terra);
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--terra-mid);
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--terra); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--verde);
  color: var(--verde);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--verde); color: #fff; }

/* === NAVIGATION === */
.site-header {
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo { display: flex; flex-direction: column; gap: 1px; }
.site-logo .logo-name { font-size: 17px; font-weight: 500; color: var(--ink); }
.site-logo .logo-sub  { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--verde); }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); margin: 5px 0;
  transition: all 0.25s;
}

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.hero-content {
  background: var(--verde-light);
  padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 18px;
}

.hero-title { margin-bottom: 18px; }

.hero-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(30, 36, 32, 0.6);
  padding: 18px 24px;
}
.hero-caption p {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* === DIVIDER BAR === */
.color-divider { height: 4px; display: flex; }
.color-divider .d-verde { flex: 1; background: var(--verde); }
.color-divider .d-terra { flex: 1; background: var(--terra); }

/* === SERVICES === */
.section-services {
  padding: clamp(48px, 7vw, 88px) 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}

.section-title { margin-bottom: 48px; }

.services-list { border-top: 0.5px solid var(--border); }

.service-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: start;
}

.service-num {
  font-size: 11px;
  color: var(--verde);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-top: 3px;
}

.service-body h3 { font-size: 15px; margin-bottom: 8px; }
.service-body p  { font-size: 13px; color: var(--muted); line-height: 1.75; margin: 0; }

/* === FORMAZIONE === */
.section-formazione {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.formazione-image {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.formazione-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.formazione-content {
  background: var(--terra-light);
  padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.formazione-content .section-eyebrow { color: var(--verde); }
.formazione-content .section-title { font-size: 22px; margin-bottom: 28px; }

.form-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }

.form-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.form-list .line {
  width: 2px;
  background: var(--verde-mid);
  flex-shrink: 0;
  align-self: stretch;
  min-height: 14px;
}

.form-list span {
  font-size: 13px;
  color: #4a5250;
  line-height: 1.75;
}

/* === CTA === */
.section-cta {
  background: var(--verde);
  padding: clamp(48px, 7vw, 80px) 40px;
  text-align: center;
}

.section-cta h2 { color: #fff; margin-bottom: 12px; }
.section-cta p  { color: rgba(255,255,255,0.75); margin-bottom: 32px; font-size: 14px; }

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--verde);
  padding: 13px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.9; color: var(--verde); }

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  padding: 24px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p, .footer-nav a {
  font-size: 12px;
  color: #4a5250;
}

.footer-nav { display: flex; gap: 24px; }
.footer-nav a:hover { color: var(--verde-mid); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 280px; }
  .hero-content { padding: 40px 24px; }

  .section-formazione { grid-template-columns: 1fr; }
  .formazione-image { min-height: 260px; }
  .formazione-content { padding: 40px 24px; }

  .nav-inner { padding: 0 20px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 0.5px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
    z-index: 99;
  }
  .nav-hamburger { display: block; }

  .section-services { padding: 48px 24px; }
  .section-cta { padding: 48px 24px; }
  .site-footer { padding: 20px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
