/* ===========================================================
   Adele de Martino — Counselor professionista
   Stile ispirato al biglietto da visita: verde petrolio,
   carta chiara, serif elegante, filo che si scioglie.
   =========================================================== */

:root {
  --teal-900: #1c3f3b;
  --teal-800: #23504b;   /* colore del biglietto */
  --teal-700: #2d625c;
  --teal-600: #3c766f;
  --paper: #f5f0e7;
  --paper-2: #ece4d6;
  --ink: #1f3532;
  --ink-soft: #4b5f5b;
  --line: #f3eee4;       /* il filo bianco */
  --sand: #c9b48c;
  --radius: 14px;
  --maxw: 1120px;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 1.75rem); }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.9em;
}
.dark .eyebrow { color: var(--sand); }

/* ---------------- Header ---------------- */
.site-header {
  background: var(--teal-800);
  color: var(--line);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(243, 238, 228, 0.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; }
.brand-role { font-size: 0.85rem; opacity: 0.8; letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(243,238,228,0.35); color: var(--line);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 0.95rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav a {
  text-decoration: none; font-size: 1.05rem; padding: 6px 0;
  border-bottom: 1px solid transparent; transition: border-color .2s, opacity .2s;
  opacity: .9;
}
.site-nav a:hover { opacity: 1; border-bottom-color: rgba(243,238,228,.5); }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--sand); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--teal-800);
    border-bottom: 1px solid rgba(243,238,228,.12);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 22px 18px; }
  .site-nav a { display: block; padding: 12px 0; font-size: 1.2rem; border-bottom: 1px solid rgba(243,238,228,.08); }
  .site-nav a[aria-current="page"] { color: var(--sand); border-bottom-color: rgba(243,238,228,.08); }
}

/* ---------------- Sezioni ---------------- */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section.tight { padding: clamp(48px, 7vw, 80px) 0; }
.dark {
  background: var(--teal-800);
  color: var(--line);
  /* leggera grana come il cartoncino del biglietto */
  background-image:
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
}
.paper-2 { background: var(--paper-2); }

/* ---------------- Hero ---------------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 9vw, 110px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 36px;
}
.hero h1 { margin-bottom: 0.15em; }
.hero .role { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 0 0 1.6em; opacity: .9; }
.hero .motto {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1.8em;
}
.thread { width: 100%; height: auto; color: var(--line); }
.thread path {
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.thread.animate path {
  stroke-dasharray: 2200; stroke-dashoffset: 2200;
  animation: draw 3.6s cubic-bezier(.55,.1,.3,1) .2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .thread.animate path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
.divider-thread { max-width: 520px; margin: 0 auto 8px; color: var(--teal-600); opacity: .55; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-grid .thread { order: -1; max-width: 520px; }
}

/* ---------------- Bottoni ---------------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  font: inherit; font-size: 1.08rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-light { background: var(--line); color: var(--teal-900); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: rgba(243,238,228,.55); color: var(--line); }
.btn-ghost:hover { border-color: var(--line); background: rgba(243,238,228,.07); }
.btn-dark { background: var(--teal-800); color: var(--line); }
.btn-dark:hover { background: var(--teal-700); }
.btn-outline { border-color: var(--teal-700); color: var(--teal-800); }
.btn-outline:hover { background: rgba(35,80,75,.07); }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }

/* ---------------- Split (foto + testo) ---------------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse .split-media { order: 2; }
.portrait {
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2);
  box-shadow: 0 20px 50px -28px rgba(28,63,59,.55);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split-media { max-width: 400px; margin: 0 auto; width: 100%; }
}

/* ---------------- Cards percorsi ---------------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.card {
  background: #fbf8f2; border: 1px solid rgba(35,80,75,.12);
  border-radius: var(--radius); padding: 28px 24px 26px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(28,63,59,.5); }
.card .icon { width: 44px; height: 44px; color: var(--teal-700); margin-bottom: 16px; }
.card .icon path, .card .icon circle { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .35em; }
.card p { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------------- Citazione ---------------- */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto; max-width: 820px;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem); line-height: 1.25;
}
.quote .thread { max-width: 380px; margin: 0 auto 26px; opacity: .8; }

/* ---------------- Pagine interne ---------------- */
.page-head { padding: clamp(56px, 9vw, 96px) 0 clamp(44px, 7vw, 72px); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.page-head .lead { font-size: clamp(1.2rem, 2.2vw, 1.4rem); max-width: 680px; opacity: .92; margin: 0; }
.page-head .thread { max-width: 300px; margin-bottom: 24px; opacity: .85; }

.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal-600); }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid rgba(35,80,75,.25); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 10px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--teal-700);
}
.timeline .year { font-size: .85rem; letter-spacing: .18em; color: var(--teal-600); text-transform: uppercase; }
.timeline .what { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin: 2px 0 2px; }
.timeline .where { color: var(--ink-soft); font-size: 1.05rem; }

.service { padding: 40px 0; border-top: 1px solid rgba(35,80,75,.15); display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 32px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: clamp(1.8rem, 3.6vw, 2.3rem); }
.service .for { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-600); margin-bottom: .6em; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 6px; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step; position: relative;
  background: #fbf8f2; border: 1px solid rgba(35,80,75,.12); border-radius: var(--radius);
  padding: 26px 26px 22px 84px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 24px; top: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  background: var(--teal-800); color: var(--line);
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 480px) {
  .steps li { padding: 76px 22px 22px; }
  .steps li::before { left: 22px; top: 22px; }
}

.note {
  background: #fbf8f2; border-left: 3px solid var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px; font-size: 1.05rem; color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* ---------------- Contatti ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  background: #fbf8f2; border: 1px solid rgba(35,80,75,.12); border-radius: var(--radius);
  padding: 30px 26px; text-decoration: none; display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s, box-shadow .25s; min-width: 0;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(28,63,59,.5); }
.contact-card .label { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-600); }
.contact-card .value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.contact-card .hint { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.badge-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.badge-row img { width: 96px; }
.badge-row p { margin: 0; font-size: 1.02rem; color: var(--ink-soft); max-width: 460px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--teal-900); color: rgba(243,238,228,.85); padding: 56px 0 30px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1.6rem; color: var(--line); margin-bottom: .3em; }
.site-footer h3 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); font-weight: 500; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-badge { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.footer-badge img { width: 58px; background: #fff; border-radius: 10px; padding: 4px; }
.legal {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(243,238,228,.12);
  font-size: .9rem; color: rgba(243,238,228,.62); line-height: 1.55;
}
.legal p { margin: 0 0 .5em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Barra contatti fissa su mobile */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--teal-800); border-top: 1px solid rgba(243,238,228,.15);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .mobile-cta a {
    flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; text-decoration: none; font-size: 1.02rem;
  }
  .mobile-cta a:first-child { background: var(--line); color: var(--teal-900); }
  .mobile-cta a:last-child { border: 1px solid rgba(243,238,228,.5); color: var(--line); }
  .mobile-cta svg { width: 17px; height: 17px; }
  body { padding-bottom: 72px; }
}

/* Comparsa morbida delle sezioni */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
