/* ==========================================================================
   Laura Natarella — Psicologa
   Foglio di stile principale
   Palette derivata dai colori Instagram: #f4e9e7 (sfondo) / #601d0e (testo)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token di design
   -------------------------------------------------------------------------- */
:root {
  /* Colori */
  --bg:          #fbf7f5;   /* crema, sfondo principale             */
  --bg-alt:      #f4e9e7;   /* rosa cipria Instagram, sezioni alt.  */
  --surface:     #ffffff;   /* schede e campi form                  */
  --brand:       #601d0e;   /* bordeaux Instagram, colore primario  */
  --brand-deep:  #4a1509;   /* bordeaux più scuro, hover            */
  --accent:      #a9705b;   /* terracotta, dettagli e numeri        */
  --text:        #3a2620;   /* testo corrente                       */
  --muted:       #6f5c54;   /* testo secondario                     */
  --line:        #e8d9d3;   /* bordi sottili                        */
  --line-strong: #d9c4bc;   /* bordi in evidenza                    */

  /* Tipografia */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Ritmo verticale */
  --section-y:  clamp(4.5rem, 9vw, 8.5rem);
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --maxw:       1180px;
  --maxw-text:  62ch;

  /* Forme */
  --radius:    4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(96, 29, 14, .04), 0 4px 14px rgba(96, 29, 14, .05);
  --shadow-md: 0 2px 6px rgba(96, 29, 14, .06), 0 16px 40px rgba(96, 29, 14, .09);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset essenziale
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* compensa l'header fisso quando si salta a un'ancora */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--brand);
  margin: 0 0 .6em;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-color: rgba(96, 29, 14, .3); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brand); color: var(--bg-alt); }

/* Accessibilità: link "salta al contenuto" */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand);
  color: var(--bg-alt);
  padding: .75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Un elemento con l'attributo hidden resta nascosto anche se una regola
   del sito gli assegna un display: cosi' nascondere una sezione e' sicuro. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Impalcatura
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
  margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
  padding-inline: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y);
 padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem);
 padding-block: clamp(3rem, 6vw, 5rem); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-left: auto; margin-right: auto;
 margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.section__head--center .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}

.section__title { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: .45em; }
.section__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.12rem);
  color: var(--muted);
  max-width: var(--maxw-text);
  margin-bottom: 0;
}
.section__head--center .section__lead { margin-left: auto; margin-right: auto;
 margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Bottoni
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--brand-deep); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--brand); background: rgba(96, 29, 14, .04); }

.btn--light {
  background: var(--bg-alt);
  color: var(--brand);
}
.btn--light:hover { background: #fff; }

.btn--block { width: 100%; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Link testuale con freccia */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--brand);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: .3rem;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--brand); gap: .75rem; }

/* --------------------------------------------------------------------------
   5. Header e navigazione
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; right: 0; bottom: auto; left: 0;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
  padding-block: 1.1rem;
}
/* Lo sfondo sfocato dell'header scorrendo sta su un livello separato, dietro
   al contenuto, e NON sull'header stesso. Motivo: un backdrop-filter su un
   elemento fa si' che i suoi figli "position: fixed" si misurino su di lui
   invece che sullo schermo. Messo sull'header, il menu da telefono (che e'
   fisso e sta dentro l'header) si schiacciava all'altezza dell'header appena
   si scorreva la pagina, e le prime voci finivano fuori dallo schermo. */
.site-header::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: -1;
  background: rgba(251, 247, 245, .88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  padding-top: .7rem; padding-bottom: .7rem;
  padding-block: .7rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: .01em;
}
.brand__role {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: .25rem;
}

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  position: relative;
  font-size: .87rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding-top: .4rem; padding-bottom: .4rem;
  padding-block: .4rem;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--brand); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--brand); font-weight: 500; }

.nav__cta { padding: .72rem 1.4rem; font-size: .84rem; }

/* Pulsante menu mobile */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 18px; height: 10px; }
.nav-toggle__bars span {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-alt);
  padding-top: clamp(8rem, 15vw, 11rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::after {
  /* alone morbido decorativo */
  content: "";
  position: absolute;
  top: -18%; right: -12%;
  width: 46vw; height: 46vw;
  max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(169, 112, 91, .16) 0%, rgba(169, 112, 91, 0) 68%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: .4em;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.19rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.6rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta span:not(:last-child)::after {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: .6rem;
}

/* --------------------------------------------------------------------------
   7. Segnaposto fotografici
   Se il file immagine non esiste, il riquadro mostra le istruzioni.
   -------------------------------------------------------------------------- */
.photo {
  position: relative;
  /* larghezza esplicita: senza di essa il riquadro collassa a zero
     quando la foto non è ancora stata caricata */
  width: 100%;
  margin: 0;
  background: linear-gradient(140deg, #efe0dc 0%, #e6d2cc 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

.photo__hint {
  display: none;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.5rem;
  text-align: center;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--brand);
  letter-spacing: .04em;
}
.photo__hint code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem;
  background: rgba(255, 255, 255, .6);
  padding: .25rem .5rem;
  border-radius: 3px;
}
.photo__hint svg { opacity: .45; margin-bottom: .2rem; }
.photo.is-empty .photo__hint { display: flex; }
.photo.is-empty::before {
  content: "";
  position: absolute;
  top: 12px; right: 12px; bottom: 12px; left: 12px;
  inset: 12px;
  border: 1px dashed rgba(96, 29, 14, .25);
  border-radius: var(--radius);
}

.photo--portrait { aspect-ratio: 3 / 4; }
.photo--square   { aspect-ratio: 1 / 1; }
.photo--wide     { aspect-ratio: 4 / 3; }

.hero__photo { max-width: 440px; margin-left: auto; margin-right: auto;
 margin-inline: auto; box-shadow: var(--shadow-md); }

/* --------------------------------------------------------------------------
   8. Chi sono
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about__photo { position: sticky; top: 120px; }

.about__body { font-size: 1.03rem; }
.about__body p { color: var(--muted); }
.about__body p:first-of-type {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  color: var(--brand);
  margin-bottom: 1.4rem;
}

.credentials {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 1.8rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}
.credentials li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .85rem;
  align-items: start;
  font-size: .93rem;
  color: var(--muted);
}
.credentials li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: .62rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
}
.credentials strong { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   9. Approccio (come lavoro)
   -------------------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.pillar { padding-top: 1.6rem; border-top: 1px solid var(--line-strong); }
.pillar__icon { color: var(--accent); margin-bottom: 1.1rem; }
.pillar__title { font-size: 1.5rem; margin-bottom: .5em; }
.pillar p { font-size: .95rem; color: var(--muted); margin: 0; }

.quote {
  max-width: 44rem;
  margin: clamp(3.5rem, 7vw, 5.5rem) auto 0;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  line-height: 1.45;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   10. Servizi
   -------------------------------------------------------------------------- */
/* I servizi sono divisi in due gruppi: alle persone e agli enti. Ogni gruppo
   ha la sua griglia, con un numero pari di schede per le persone (due per riga)
   e tre schede in fila per le organizzazioni. */
.group + .group { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

.group__head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}
.group__label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .9rem;
}
.group__label::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.group__title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: .4em;
}
.group__lead {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}
.group__lead strong { color: var(--text); font-weight: 500; }

/* Pannello in chiusura di ogni gruppo: a chi si rivolge, e un pulsante vero
   verso il modulo. Sfondo cipria per staccarlo dalle schede bianche sopra. */
.group__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-top: 1.25rem;
  padding: 1.6rem 1.9rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.group__cta-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .7rem;
}
.group__cta-lista {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
}
.group__cta-lista li {
  font-size: .86rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .42rem 1rem;
}
.group__cta .btn { flex: 0 0 auto; }

@media (max-width: 700px) {
  .group__cta { padding: 1.4rem 1.3rem; }
  .group__cta .btn { width: 100%; }
}

.services { display: grid; gap: 1.25rem; }
.services--due { grid-template-columns: repeat(2, 1fr); }
.services--tre { grid-template-columns: repeat(3, 1fr); }

.service {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.service__num {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.service__title { font-size: 1.42rem; margin-bottom: .55em; }
.service p { font-size: .94rem; color: var(--muted); margin-bottom: 1.4rem; }
.service__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: auto 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}
.service__tags li {
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 100px;
  padding: .32rem .78rem;
}
@media (max-width: 1024px) {
  /* Il gruppo da tre passa a due per riga con la terza centrata sotto:
     su quattro colonne ogni scheda ne occupa due, e la terza parte
     dalla seconda colonna. Il gruppo da quattro resta due per riga. */
  .services--tre { grid-template-columns: repeat(4, 1fr); }
  .services--tre .service { grid-column: span 2; }
  .services--tre .service:nth-child(3) { grid-column: 2 / span 2; }
}

@media (max-width: 700px) {
  .services--due,
  .services--tre { grid-template-columns: 1fr; }
  .services--tre .service,
  .services--tre .service:nth-child(3) { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   11. Percorso in quattro passi
   Stile minimal: numero, titolo e testo, uniti da una linea sottile che
   va da un passaggio all'altro. Il numero viene dal contatore CSS, quindi
   aggiungere o togliere un passaggio nell'HTML non richiede di rinumerare.
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: step;
}
.step { position: relative; padding-top: 3.4rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  opacity: .55;
}
.step::after {
  /* linea di collegamento verso il passaggio successivo */
  content: "";
  position: absolute;
  top: 1.35rem; left: 3.6rem; right: -1.5rem;
  height: 1px;
  background: var(--line-strong);
}
.step:last-child::after { display: none; }
.step__title { font-size: 1.35rem; margin-bottom: .45em; }
.step p { font-size: .94rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   12. Sedi
   -------------------------------------------------------------------------- */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.place {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
}
.place__icon { color: var(--accent); margin-bottom: 1.1rem; }
.place__title { font-size: 1.35rem; margin-bottom: .35em; }
.place p { font-size: .92rem; color: var(--muted); margin-bottom: .4rem; }
.place__note {
  display: inline-block;
  margin-top: .8rem;
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 50rem; margin-left: auto; margin-right: auto;
 margin-inline: auto; }
.faq__item {
  border-bottom: 1px solid var(--line-strong);
}
.faq__item:first-child { border-top: 1px solid var(--line-strong); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--brand);
  transition: color .25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }

.faq__sign {
  position: relative;
  flex: 0 0 auto;
  width: 16px; height: 16px;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.faq__sign::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq__sign::after  { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq__item[open] .faq__sign::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq__a { padding: 0 3rem 1.7rem 0; color: var(--muted); font-size: .96rem; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__item[open] .faq__a { animation: fadeSlide .4s var(--ease); }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   14. Contatti e modulo
   -------------------------------------------------------------------------- */
/* La sezione e' divisa a meta' fin dall'alto: il titolo sta dentro la colonna
   di sinistra, non sopra tutto. Cosi' chi arriva qui dal pulsante "Prenota un
   colloquio" si trova il modulo gia' in vista, senza dover scorrere oltre. */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.contact__head .section__lead { margin-bottom: 0; }
.contact__details { margin-top: clamp(2rem, 4vw, 2.75rem); }

.contact-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.4rem; }
.contact-list a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
.contact-list__icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.contact-list a:hover .contact-list__icon {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg-alt);
}
.contact-list__label {
  display: block;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .15rem;
}
.contact-list__value { font-size: 1rem; color: var(--text); }

.notice {
  border-left: 2px solid var(--accent);
  padding: .35rem 0 .35rem 1.15rem;
  font-size: .87rem;
  color: var(--muted);
}
.notice strong { color: var(--text); font-weight: 500; }

/* Modulo */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { margin-bottom: 1.25rem; }
.field > label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .55rem;
}
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.65; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9705b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(96, 29, 14, .09);
}
.field input::placeholder, .field textarea::placeholder { color: #b7a49c; }

.field--invalid input,
.field--invalid select,
.field--invalid textarea { border-color: #b3402c; }
.field__error {
  display: none;
  margin-top: .4rem;
  font-size: .8rem;
  color: #b3402c;
}
.field--invalid .field__error { display: block; }

.field--check { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.6rem; }
.field--check input {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  margin-top: .18rem;
  accent-color: var(--brand);
  cursor: pointer;
}
.field--check label {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}
.field--check.field--invalid label { color: #b3402c; }

/* Honeypot antispam: invisibile alle persone, non ai bot */
.hp {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  pointer-events: none;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.form__hint { font-size: .8rem; color: var(--muted); margin: 0; }

.form__status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: .9rem;
}
.form__status.is-visible { display: block; animation: fadeSlide .35s var(--ease); }
.form__status.is-ok    { background: #eef3ec; border: 1px solid #cbdcc4; color: #33562a; }
.form__status.is-error { background: #fbeeea; border: 1px solid #e8c9c0; color: #8c2f1c; }
.form__status a { color: inherit; }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* --------------------------------------------------------------------------
   15. Fascia CTA
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--brand);
  color: rgba(244, 233, 231, .8);
  text-align: center;
  padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta-band h2 { color: var(--bg-alt); font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.cta-band p { max-width: 40rem; margin-left: auto; margin-right: auto;
 margin-inline: auto; margin-bottom: 2.2rem; }
.cta-band .eyebrow { color: rgba(244, 233, 231, .65); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-deep);
  color: rgba(244, 233, 231, .62);
  padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .87rem;
}
.site-footer a { color: rgba(244, 233, 231, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 233, 231, .16);
}
.footer__brand .brand__name { color: var(--bg-alt); }
.footer__brand p { margin-top: 1rem; max-width: 26rem; }

.footer__title {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(244, 233, 231, .5);
  margin-bottom: 1.1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  justify-content: space-between;
  padding-top: 1.8rem;
  font-size: .78rem;
  color: rgba(244, 233, 231, .45);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }

.social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.social a {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 233, 231, .25);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.social a:hover { background: var(--bg-alt); border-color: var(--bg-alt); color: var(--brand-deep); }

/* --------------------------------------------------------------------------
   17. Pagine di testo (privacy, grazie)
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--bg-alt);
  padding-top: clamp(8rem, 14vw, 10rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2.5rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--muted); font-size: .96rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.prose__note {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-size: .88rem;
}

.thanks { text-align: center; max-width: 34rem; margin-left: auto; margin-right: auto;
 margin-inline: auto; padding-top: clamp(6rem, 14vw, 9rem); padding-bottom: clamp(6rem, 14vw, 9rem);
 padding-block: clamp(6rem, 14vw, 9rem); }
.thanks__mark {
  width: 68px; height: 68px;
  margin: 0 auto 2rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   18. Animazioni di ingresso
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__grid,
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 380px; }
  /* In colonna unica le due foto finirebbero una sotto l'altra, come una
     galleria. Resta solo quella di "Chi sono", accanto a "Piacere, Laura." */
  .hero__photo { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  /* quattro passaggi: due per riga, cioe' una griglia 2x2. La linea di
     collegamento sparisce: andando a capo punterebbe nel vuoto. */
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* In colonna unica il modulo sale subito sotto il titolo, e i recapiti
     diretti scendono in fondo: anche da telefono la prima cosa che si vede
     arrivando qui e' il modulo. "display: contents" scioglie il contenitore
     di sinistra, cosi' i suoi due blocchi si possono riordinare da soli. */
  .contact__info { display: contents; }
  .contact__head { order: 1; }
  .form { order: 2; }
  .contact__details { order: 3; margin-top: 0; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: var(--bg);
    padding: 5rem var(--gutter) 3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 1.6rem; text-align: center; }
  .nav__link { font-size: 1.35rem; font-family: var(--font-display); }
  .nav__cta { padding: .9rem 2rem; font-size: .9rem; }

  body.nav-open { overflow: hidden; }
  /* nome e pulsante restano visibili sopra il pannello aperto */
  .nav-toggle,
  .brand { position: relative; z-index: 110; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .faq__a { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Deve stare DOPO il blocco a 1024px: su un telefono valgono entrambi,
   e a parita' di selettore vince la regola che compare per ultima. */
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
  .service { padding: 1.6rem; }
}

/* --------------------------------------------------------------------------
   20. Preferenze utente e stampa
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav, .cta-band, .form, .reveal { display: revert; }
  .site-header, .nav-toggle { display: none; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. Ripiego per browser piu' datati
   aspect-ratio non esiste prima di Safari 15 e Chrome 88: senza questo blocco
   i riquadri delle foto avrebbero altezza zero su quei dispositivi.
   -------------------------------------------------------------------------- */
@supports not (aspect-ratio: 1 / 1) {
  .photo--portrait { height: 0; padding-top: 133.33%; }
  .photo--square   { height: 0; padding-top: 100%; }
  .photo--wide     { height: 0; padding-top: 75%; }
  .photo img {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
  }
}
