/* ==========================================================================
   Dott.ssa Valeria Postorino — Psicologa
   Palette dal brand: #1E4622 · #2F4A3A · #8B6F4E · #E9DEC8 · #2B2B2B
   ========================================================================== */

/* ---------- Font ospitati sul sito (nessuna richiesta a Google: GDPR) ---------- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colori del brand */
  --green: #1E4622;
  --green-soft: #2F4A3A;
  --brown: #8B6F4E;
  --cream: #E9DEC8;
  --ink: #2B2B2B;

  /* Derivati (tinte e varianti per il testo) */
  --brown-text: #735A3E;      /* marrone scurito: contrasto AA su fondo chiaro */
  --cream-light: #F3ECDF;
  --paper: #FAF7F1;
  --ink-soft: #55534E;
  --line: rgba(43, 43, 43, 0.12);
  --line-cream: rgba(233, 222, 200, 0.22);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 84px;
  --shadow: 0 18px 40px -24px rgba(30, 70, 34, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-soft); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 em, h2 em {
  font-style: italic;
  color: var(--green);
}
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Etichetta sopra i titoli: richiama "PSICOLOGA" del logo */
.eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.8em 1.6em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-soft); color: #fff; }

.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: #fff; }

.btn--small { min-height: 44px; padding: 0.55em 1.3em; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Sfondo sfocato su uno pseudo-elemento: un backdrop-filter sull'header
   confinerebbe il menu mobile (position: fixed) dentro l'header stesso */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 247, 241, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -28px rgba(0, 0, 0, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: auto; height: 54px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__role {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.hero__lead {
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}
.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
}
.hero__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.hero__contacts a:hover { color: var(--green); }
.hero__contacts svg { width: 18px; height: 18px; color: var(--brown); }

/* Arco con il disegno del logo: pronto per ospitare una foto */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.arch img.arch__mark { width: 62%; height: auto; }
.arch picture { display: block; width: 100%; height: 100%; }
.arch img.arch__photo { width: 100%; height: 100%; object-fit: cover; }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1px solid var(--brown);
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  opacity: 0.55;
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  right: -8px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 12px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.4;
}
.about__text h2 em { white-space: nowrap; }
.hero__badge picture { flex: none; }
.hero__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.hero__badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--cream { background: var(--cream-light); }

.section__head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Aree di intervento ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  height: 100%;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--cream-light);
  color: var(--green);
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 0.45em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Il mio approccio ---------- */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(40px, 7vw, 104px);
}
/* Resta fermo mentre scorre la colonna del testo, come in "Strumenti dello psicologo" */
.approach__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.approach__intro h2 { max-width: 14em; }
.approach__lead { font-size: 1.15rem; color: var(--ink); }
.approach__pre { margin-bottom: 0.4em; color: var(--ink-soft); }
.approach__quote {
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--brown);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.7vw, 2.05rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--green);
}
.approach__text {
  padding-top: clamp(0px, 5.5vw, 76px);
  color: var(--ink-soft);
}

/* Rimando alla pagina "Il mio approccio" */
.approach__teaser {
  margin-top: 2.2rem;
  padding: clamp(24px, 3vw, 32px);
  background: var(--cream-light);
  border-radius: var(--radius-lg);
}
.approach__teaser-label,
.article-toc__title {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-text);
}
.approach__teaser-list {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  counter-reset: capitolo;
}
.approach__teaser-list li {
  counter-increment: capitolo;
  border-bottom: 1px solid var(--line);
}
.approach__teaser-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.approach__teaser-list a::before {
  content: "0" counter(capitolo);
  flex: none;
  font-size: 0.95rem;
  color: var(--brown);
}
.approach__teaser-list a:hover { color: var(--green); }

/* ---------- Citazione ---------- */
.quote {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px);
  background: var(--green-soft);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.quote__mark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 300px;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}
.quote blockquote { max-width: 860px; margin: 0 auto; }
.quote blockquote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.3vw, 2.5rem);
  font-style: italic;
  line-height: 1.35;
}
.quote__rule {
  width: 56px;
  height: 1px;
  margin: 0 auto 32px;
  background: var(--brown);
  border: 0;
}
.quote figure { margin: 0; }
.quote figcaption {
  margin-top: 1.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}

/* ---------- Percorso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--brown);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brown);
}
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Chi sono ---------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: clamp(40px, 7vw, 104px);
}
.about__photo { position: relative; width: min(100%, 420px); justify-self: center; }
.about__photo .arch { aspect-ratio: 3 / 4; background: var(--cream); }
.about__caption {
  position: absolute;
  inset: auto 0 22px;
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-text);
}
.about__text p { color: var(--ink-soft); }
.facts {
  display: grid;
  gap: 14px;
  margin: 2rem 0 2.2rem;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.facts svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--brown); }

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq-layout .section__head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 24px 56px 24px 0;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--green);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);  /* rotazione con un piccolo rimbalzo */
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--green); }
.faq__answer { padding: 0 48px 24px 0; color: var(--ink-soft); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__notes {
  margin-top: 1.2em;
  padding-top: 1em;
  border-top: 1px dashed rgba(43, 43, 43, 0.25);
  color: var(--ink);
}
.faq__notes strong { font-weight: 700; }
.faq__fineprint { font-size: 0.92rem; font-style: italic; color: #6E6C66; }
.faq__answer ul { margin: 0 0 1em; padding-left: 1.25em; }
.faq__answer li { margin-bottom: 0.35em; }
.faq__answer li::marker { color: var(--brown); }

/* ---------- Strumenti dello psicologo ---------- */
.tools__title { margin-bottom: 0.9em; font-size: clamp(1.45rem, 2.4vw, 1.75rem); }

/* ---------- Contatti ---------- */
.contact__box {
  position: relative;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 88px);
  background: var(--green);
  border-radius: var(--radius-lg);
  color: var(--cream);
  overflow: hidden;
}
.contact__box h2 { color: #fff; }
.contact__box .eyebrow { color: var(--cream); }
.contact__box .section__head p { color: rgba(233, 222, 200, 0.85); }
.contact__mark {
  position: absolute;
  right: clamp(-60px, -2vw, 0px);
  top: 32px;
  width: clamp(160px, 22vw, 260px);
  height: auto;
  opacity: 0.16;
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);  /* più spazio alla card dell'email */
  gap: 20px;
  max-width: 920px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  background: rgba(250, 247, 241, 0.07);
  border: 1px solid var(--line-cream);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-card:hover { background: rgba(250, 247, 241, 0.14); color: #fff; transform: translateY(-3px); }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}
.contact-card__value {
  display: block;
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-variant-numeric: lining-nums;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-card__value--email { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.contact__extra {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
}
.contact__extra a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(233, 222, 200, 0.4);
  text-underline-offset: 5px;
}
.contact__extra a:hover { color: #fff; text-decoration-color: currentColor; }
.contact__extra svg { width: 20px; height: 20px; flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 72px 32px;
  background: var(--green-soft);
  color: rgba(233, 222, 200, 0.82);
  font-size: 0.95rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-cream);
}
.footer__brand .brand { color: var(--cream); margin-bottom: 20px; }
.footer__brand .brand__role { color: var(--cream); }
.footer__brand p { margin: 0 0 0.5em; }
.footer__title {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; overflow-wrap: anywhere; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  font-size: 0.85rem;
}

/* ---------- Pagina "Il mio approccio" ---------- */
.page-hero { background: var(--cream-light); }
.page-hero__mark {
  position: absolute;
  right: clamp(-90px, -4vw, -20px);
  top: 50%;
  width: clamp(190px, 26vw, 340px);
  height: auto;
  opacity: 0.1;
  transform: translateY(-50%);
  pointer-events: none;
}
.page-hero__content { position: relative; max-width: 50rem; }
.page-hero h1 { max-width: 13em; }
.page-hero__lead {
  max-width: 40em;
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

.breadcrumb { margin: 0 0 2rem; font-size: 0.92rem; color: var(--ink-soft); }
.breadcrumb a { font-weight: 600; text-decoration: none; }
.breadcrumb span { margin-inline: 0.5em; color: var(--brown); }

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 44rem);
  justify-content: center;
  align-items: start;
  gap: clamp(40px, 7vw, 110px);
}
.article-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}
.article-toc a {
  position: relative;
  display: block;
  padding: 10px 0 10px 20px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
/* Linea marrone accanto al capitolo che si sta leggendo */
.article-toc a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brown);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}
.article-toc a:hover,
.article-toc a.is-active { color: var(--green); }
.article-toc a.is-active::before { transform: scaleY(1); }

.article { counter-reset: capitolo; }
.article__intro {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
}
.article__chapter {
  counter-increment: capitolo;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--brown);
}
.article__chapter h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.article__chapter h2::before {
  content: "0" counter(capitolo);
  display: block;
  margin-bottom: 14px;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brown);
}
.article__chapter p { font-size: 1.1rem; line-height: 1.8; color: var(--ink-soft); }
.article__chapter p:last-child { margin-bottom: 0; }
.article__back { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Pagina privacy ---------- */
.legal {
  max-width: calc(46rem + 2 * var(--gutter));
  padding-block: clamp(32px, 6vw, 72px) clamp(64px, 9vw, 112px);
}
.legal h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.legal h2 { margin-top: 2.2em; font-size: 1.45rem; }
.legal p,
.legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.6em; }
.legal__back { font-weight: 600; text-decoration: none; }
.legal__updated { margin-top: 2.5rem; font-size: 0.9rem; }
.site-footer.site-footer--compact { padding-block: 8px; }

/* ---------- Barra contatti su mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Animazioni all'ingresso ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
  :root { --header-h: 72px; }
  .brand__mark { height: 46px; }

  .nav-toggle,
  .header__inner > .brand { position: relative; z-index: 60; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 22px; text-align: center; }
  .site-nav a:not(.btn) { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; }
  .site-nav .btn { margin-top: 12px; min-height: 52px; padding-inline: 2em; font-size: 1rem; }
}

@media (max-width: 980px) {
  .hero__grid,
  .approach,
  .about,
  .faq-layout { grid-template-columns: 1fr; }
  .hero__visual { width: min(88%, 340px); margin-top: 12px; }
  .hero__content { text-align: left; }
  .faq-layout .section__head,
  .approach__intro { position: static; }
  .approach__text { padding-top: 0; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  /* L'indice diventa un riquadro sopra il testo */
  .article-toc {
    position: static;
    padding: 22px 24px;
    background: var(--cream-light);
    border-radius: var(--radius);
  }
  .article-toc ol { border-left: 0; }
  .article-toc li + li { border-top: 1px solid var(--line); }
  .article-toc a { padding-left: 0; }
  .article-toc a::before { display: none; }
  .about__photo { width: min(100%, 360px); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .cards,
  .steps,
  .contact__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero__visual,
  .about__photo { width: min(80%, 290px); }
  .hero__badge { right: -12px; bottom: 20px; gap: 10px; padding: 8px 16px 8px 8px; }
  .hero__avatar { width: 42px; height: 42px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .approach__teaser .btn,
  .article__back .btn { width: 100%; }
  .contact-card { padding: 22px; }

  .mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(250, 247, 241, 0.96);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.3);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.4s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding-inline: 1em; }
  .site-footer { padding-bottom: 104px; }
}

@media (max-width: 520px) {
  .brand__name { font-size: 0.9rem; letter-spacing: 0.14em; }
  .brand__role { font-size: 0.6rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .faq__answer { padding-right: 0; }
  /* Icona sopra il testo: l'email lunga va a capo dopo la "@" e non a metà nome */
  .contact-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-card__icon { width: 48px; height: 48px; }
}

@media (max-width: 360px) {
  .contact-card { padding: 18px; }
  .contact-card__value--email { font-size: 0.95rem; }
}
