/* stile.css — Alessio Esposito, Psicologo Clinico — Roma Prati */

:root {
  --paper: #F0EEE7;
  --paper-soft: #E8E5DB;
  --ink: #26312D;
  --ink-soft: #4B5A54;
  --sage: #6E8577;
  --sage-deep: #3F5349;
  --rose: #AE6C5E;
  --line: #D9D5C9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER & NAV ---------- */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(240,238,231,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500;
  text-decoration: none;
}

.nav-links {
  list-style: none; display: flex; gap: 32px; margin: 0; padding: 0;
}

.nav-links a {
  text-decoration: none; font-size: 15px; color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px; z-index: 1001;
}

.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- HERO ---------- */
.hero { padding: 88px 0 96px; overflow: hidden; }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}

.eyebrow {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 18px; font-weight: 600;
}

.hero h1 { font-size: clamp(30px,4.2vw,44px); line-height: 1.18; }

.hero .lede {
  font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--sage-deep); color: var(--paper); }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }

/* ---------- BREATHE ANIMATION ---------- */
.breathe-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}

.breathe { position: relative; width: 230px; height: 230px; }

.ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--sage); opacity: 0.55;
}

.ring.r2 { inset: 26px; opacity: 0.75; }
.ring.r3 { inset: 52px; opacity: 0.9; }

.core {
  position: absolute; inset: 78px; border-radius: 50%;
  background: var(--sage-deep);
  animation: breathe 7s ease-in-out infinite;
}

.caption {
  position: absolute; bottom: -38px; left: 0; right: 0;
  text-align: center; font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.02em;
}

@keyframes breathe {
  0%,100% { transform: scale(0.85); }
  50% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) { .core { animation: none; } }

/* ---------- SECTIONS ---------- */
section { padding: 76px 0; }

.section-head { max-width: 56ch; margin-bottom: 44px; }

.section-head h2 { font-size: clamp(24px,3vw,30px); }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- QUOTE CARDS ---------- */
.quotes { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

.quote-card {
  background: var(--paper-soft); border-radius: 14px;
  padding: 24px 26px; border: 1px solid var(--line);
}

.quote-card p {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 17px; line-height: 1.5; margin: 0; color: var(--ink);
}

/* ---------- PROCESS (dark bg) ---------- */
.process-alt { background: var(--sage-deep); color: var(--paper); }
.process-alt .section-head p { color: #DDE5DB; }
.process-alt h2 { color: var(--paper); }

.steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 32px;
  counter-reset: step;
}

.step { position: relative; padding-top: 8px; }

.step::before {
  counter-increment: step; content: counter(step);
  font-family: 'Fraunces', serif; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(240,238,231,0.7); margin-bottom: 18px;
  color: var(--paper);
}

.step h3 { color: var(--paper); font-size: 18px; }
.step p { color: #DDE5DB; font-size: 15px; margin: 0; }

.process-links { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

.process-alt .btn-ghost {
  border-color: rgba(240,238,231,0.35); color: var(--paper);
}
.process-alt .btn-ghost:hover { border-color: var(--paper); }

/* ---------- ABOUT STRIP ---------- */
.about {
  display: grid; grid-template-columns: auto 1fr; gap: 28px;
  align-items: start; background: var(--paper-soft);
  border-radius: 16px; padding: 34px 36px; border: 1px solid var(--line);
}

.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--sage);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; color: var(--paper); font-size: 22px;
}

.about h3 { font-size: 19px; margin-bottom: 2px; }

.about .role {
  color: var(--sage-deep); font-size: 14px; font-weight: 500; margin-bottom: 14px;
}

.about-details {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 14px; color: var(--ink-soft);
  margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px;
}

/* ---------- CONTACT GRID ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin: 30px 0;
}

.contact-item {
  background: var(--paper-soft); padding: 28px; border-radius: 14px;
  border: 1px solid var(--line); text-align: center;
}

.contact-item h3 { font-size: 18px; margin-bottom: 8px; }
.contact-item p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:first-child { padding-top: 0; }

.faq-item h3 {
  font-size: 17px; cursor: pointer; margin-bottom: 8px;
  transition: color 0.2s;
}

.faq-item h3:hover { color: var(--sage-deep); }
.faq-item p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25D366; color: white; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line); padding: 40px 0 48px;
  font-size: 14px; color: var(--ink-soft);
}

.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}

.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--sage-deep); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .breathe-wrap { order: -1; min-height: 200px; }
  .breathe { width: 170px; height: 170px; }
  .hero h1 { font-size: 28px; }

  section { padding: 48px 0; }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .about { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(240,238,231,0.98); backdrop-filter: blur(10px);
    padding: 24px; gap: 18px; border-bottom: 1px solid var(--line);
  }

  .nav-links.open { display: flex; }

  .footer-row { flex-direction: column; text-align: center; }
}
