/* ============================================
   Studio Dott.ssa Ombretta Greco
   Palette A — Salvia & crema · Design editoriale
   Mobile-first
   ============================================ */

:root {
  --bg: #f6f4ee;
  --bg-alt: #edeae1;
  --sage-light: #e4e6da;
  --sage: #a8b8a0;
  --sage-deep: #5f7a61;
  --sage-deep-hover: #4e6650;
  --ink: #2f3e34;
  --ink-soft: #4a5a4f;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 6px 30px rgba(47, 62, 52, 0.07);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Nunito Sans', system-ui, sans-serif;
  --space-section: clamp(72px, 12vw, 150px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.12; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }

h1 em, h2 em { font-style: italic; color: var(--sage-deep); }

a { color: var(--sage-deep); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

/* ---------- Accessibilità ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; z-index: 300;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--sage); flex: none; }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after { content: ""; width: 34px; height: 1.5px; background: var(--sage); flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 184, 160, 0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px; max-width: 1240px; margin: 0 auto;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.brand span { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-deep); }

.site-header .header-cta { display: none; }

.nav-toggle {
  background: none; border: none; cursor: pointer; padding: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--sage-light);
  box-shadow: var(--shadow);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; padding: 12px 0 20px; }
.site-nav a {
  display: block; padding: 13px 28px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 1.05rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sage-deep); }
.site-nav a[aria-current="page"] { border-left: 3px solid var(--sage-deep); background: var(--sage-light); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block; padding: 16px 34px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--sage-deep-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--sage); padding: 14.5px 32px; }
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

/* ---------- Hero home (full) ---------- */
.hero-full {
  min-height: calc(100svh - 73px);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; position: relative;
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--sage-light) 0%, transparent 60%),
    var(--bg);
}
.hero-full .eyebrow { justify-content: center; }
.hero-full h1 { max-width: 15em; margin: 0 auto 28px; }
.hero-full .hero-sub { max-width: 36em; margin: 0 auto 12px; font-size: 1.08rem; }
.hero-full .hero-where { font-weight: 700; color: var(--ink); letter-spacing: 0.02em; margin-top: 10px; }
.hero-full .hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sage-deep); text-decoration: none; font-weight: 700;
}

/* ---------- Hero pagine interne ---------- */
.hero-page { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero-page h1 { max-width: 14em; margin-bottom: 26px; }
.hero-page .lead { max-width: 38em; font-size: 1.1rem; }

/* ---------- Sezioni ---------- */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 7vw, 80px); }
.section-head h2 { margin-bottom: 20px; }
.section-head .lead { font-size: 1.06rem; }

/* ---------- Split (testo + foto) ---------- */
.split { display: grid; gap: 44px; align-items: center; }
.split .split-text h2 { margin-bottom: 22px; }
.split .split-text p + p { margin-top: 16px; }
.split .split-text .btn { margin-top: 30px; }

/* Placeholder foto ad arco (forma organica) */
.arch {
  background: linear-gradient(160deg, var(--sage-light), var(--sage) 130%);
  border-radius: 999px 999px var(--radius) var(--radius);
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep); font-weight: 600; text-align: center; padding: 28px;
  font-size: 0.9rem; max-width: 420px; margin: 0 auto; width: 100%;
}

/* ---------- Blocchi numerati (01 · 02 · 03) ---------- */
.num-list { display: grid; gap: 0; }
.num-item {
  display: grid; gap: 8px;
  padding: 36px 0; border-top: 1px solid rgba(168, 184, 160, 0.45);
}
.num-item:last-child { border-bottom: 1px solid rgba(168, 184, 160, 0.45); }
.num-item .num {
  font-size: 0.78rem; letter-spacing: 0.2em; font-weight: 700;
  color: var(--sage-deep); text-transform: uppercase;
}
.num-item .num::before { content: none; }
.num-item h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.num-item p { max-width: 56em; }

/* ---------- Banda numeri ---------- */
.stats { display: grid; grid-template-columns: 1fr; gap: 40px; text-align: center; }
.stat .stat-n { font-family: var(--font-serif); font-size: clamp(2.8rem, 7vw, 4rem); color: var(--ink); line-height: 1; }
.stat .stat-n em { font-style: italic; color: var(--sage-deep); }
.stat .stat-l {
  margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; color: var(--ink-soft);
}

/* ---------- Righe servizi (editoriale) ---------- */
.service-row {
  padding: 40px 0; border-top: 1px solid rgba(168, 184, 160, 0.45);
  display: grid; gap: 14px;
}
.service-row:last-of-type { border-bottom: 1px solid rgba(168, 184, 160, 0.45); }
.service-row .service-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.service-row h3 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.service-row .price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--sage-deep); white-space: nowrap; }
.service-row .price small { font-family: var(--font-sans); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; }
.service-row p { max-width: 52em; }

/* ---------- Card ---------- */
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.card-soft { background: var(--sage-light); box-shadow: none; }

/* ---------- Aree (griglia editoriale) ---------- */
.area-item {
  background: var(--white); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.area-item .num {
  font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 700; color: var(--sage);
}

/* ---------- Testimonianze ---------- */
.quote-big {
  text-align: center; padding: clamp(36px, 6vw, 60px) 0;
  border-top: 1px solid rgba(168, 184, 160, 0.45);
}
.quote-big:last-of-type { border-bottom: 1px solid rgba(168, 184, 160, 0.45); }
.quote-big p {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.35rem, 3.6vw, 2rem); line-height: 1.4;
  color: var(--ink); max-width: 26em; margin: 0 auto 18px;
}
.quote-big footer {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--sage-deep);
}

/* ---------- Form ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 15px 16px; border: 1.5px solid var(--sage);
  border-radius: 12px; font-family: var(--font-sans); font-size: 1rem;
  background: var(--white); color: var(--ink);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; margin-top: 8px; }
.checkbox-group { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-group input { width: auto; margin-top: 5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--sage-deep); color: #fff;
  padding: var(--space-section) 0; text-align: center;
}
.cta-band .eyebrow { color: #cfdccf; justify-content: center; }
.cta-band .eyebrow::before, .cta-band .eyebrow.centered::after { background: rgba(255,255,255,0.4); }
.cta-band h2 { color: #fff; margin-bottom: 18px; }
.cta-band h2 em { color: #d9e4d4; }
.cta-band p { max-width: 34em; margin: 0 auto 34px; color: #e4ebe4; font-size: 1.05rem; }
.cta-band .btn-primary { background: #fff; color: var(--sage-deep); }
.cta-band .btn-primary:hover { background: var(--sage-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cfd8d0; padding: 64px 0 32px;
  font-size: 0.94rem;
}
.site-footer h3 { color: #fff; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-sans); font-weight: 700; }
.site-footer a { color: #b9ccbc; }
.footer-brand { font-family: var(--font-serif); font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 22px;
  font-size: 0.8rem; color: #94a396;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ Tablet / Desktop ============ */
@media (min-width: 760px) {
  .site-header .header-cta { display: inline-block; padding: 11px 24px; font-size: 0.88rem; }
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: none; box-shadow: none; }
  .site-nav ul { display: flex; gap: 2px; padding: 0; }
  .site-nav a { padding: 8px 14px; border-radius: 8px; font-size: 0.94rem; }
  .site-nav a[aria-current="page"] { border-left: none; background: var(--sage-light); }

  .split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); }
  .split.reverse .split-media { order: 2; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

  .stats { grid-template-columns: repeat(3, 1fr); }

  .num-item { grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
  .num-item .num { padding-top: 8px; }
  .num-item p { grid-column: 2; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
