/* ============================================================
   L'ARTE DELLA MEDITAZIONE — stile del sito
   Concetto: una pagina lunga e quieta. Un'apertura notturna con il volto
   della statua, poi sezioni avorio e salvia che si alternano come
   pagine di un quaderno. Il corsivo di Cormorant è l'unica voce
   "decorativa"; tutto il resto è misura, spazio e leggibilità.
   ============================================================ */

@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/cormorant-regular.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/cormorant-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/cormorant-semibold.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("fonts/sourcesans3-var.woff2") format("woff2"); }

:root {
  /* colori */
  --night: #141615;          /* antracite profondo (apertura e piè di pagina) */
  --ink: #272A28;            /* testo principale */
  --ink-soft: #4B514D;       /* testo secondario */
  --paper: #FBF9F4;          /* bianco caldo */
  --ivory: #F2EDE0;          /* avorio */
  --sage-tint: #E2E8DB;      /* salvia chiarissimo */
  --sage: #8FA088;           /* salvia */
  --sage-deep: #50655A;      /* salvia scuro: pulsanti e accenti su chiaro */
  --sage-light: #B9C6AF;     /* salvia chiaro: accenti su scuro */
  --on-night: #F1ECDF;
  --on-night-soft: #C9C4B4;
  --line: rgba(39, 42, 40, .16);
  --line-night: rgba(241, 236, 223, .22);

  /* tipografia */
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

/* fascia sopra l'header sticky, per i telefoni con tacca */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--night); z-index: 40; }

img { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 2px; }
.on-night :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--sage-light); }

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

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.wrap--narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.2rem); }
h3 { font-size: 1.55rem; line-height: 1.2; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.eyebrow { font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 1rem; }
.on-night .eyebrow, .eyebrow--light { color: var(--sage-light); }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 54px; padding: .85rem 1.7rem;
  font-family: var(--body); font-weight: 600; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--sage-deep); color: #fff; }
.btn--primary:hover { background: #3E5047; color: #fff; }
.btn--light { background: var(--on-night); color: var(--night); }
.btn--light:hover { background: #fff; color: var(--night); }
.btn--outline { background: transparent; color: var(--sage-deep); border-color: var(--sage-deep); }
.btn--outline:hover { background: var(--sage-deep); color: #fff; }
.btn--block { width: 100%; }
.btn--small { min-height: 42px; padding: .5rem 1.1rem; font-size: .78rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(20, 22, 21, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-night); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--on-night); text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: #fff; }

/* ---------- apertura ---------- */
.hero { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.hero::before { /* volto della statua */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--night) url("assets/hero.jpg") 62% 6% / cover no-repeat;
}
.hero::after { /* velo per la leggibilità */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,22,21,.42) 0%, rgba(20,22,21,.70) 42%, rgba(20,22,21,.96) 100%);
}
.hero .wrap { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); }
.hero__text { max-width: 36rem; }
.hero h1 { font-size: clamp(3.1rem, 10.5vw, 5.9rem); line-height: .98; color: #fff; }
.hero__sub { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 4.4vw, 2.1rem); line-height: 1.2; color: var(--sage-light); margin: 1rem 0 0; }
.hero__lead { margin: 1.7rem 0 0; font-size: 1.15rem; color: var(--on-night); max-width: 32rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; margin: 2.2rem 0 0; padding: 1.6rem 0 0; border-top: 1px solid var(--line-night); max-width: 32rem; }
.facts div { min-width: 0; }
.facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--sage-light); margin: 0 0 .15rem; }
.facts dd { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--on-night); }
.hero__cta { margin-top: 2.4rem; }
.hero__cta .btn { width: 100%; }
@media (min-width: 520px) { .hero__cta .btn { width: auto; } }

@media (min-width: 900px) {
  .hero::before { background-position: right center; background-size: auto 100%; }
  .hero::after { background:
      linear-gradient(90deg, var(--night) 0%, var(--night) 36%, rgba(20,22,21,.78) 52%, rgba(20,22,21,.15) 76%, rgba(20,22,21,0) 100%),
      linear-gradient(180deg, rgba(20,22,21,.35) 0%, rgba(20,22,21,0) 25%, rgba(20,22,21,0) 80%, rgba(20,22,21,.8) 100%); }
  .hero .wrap { min-height: 640px; display: flex; align-items: center; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- sezioni ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--paper { background: var(--paper); }
.section--ivory { background: var(--ivory); }
.section--sage { background: var(--sage-tint); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 1.1rem; }

/* senso del percorso */
.senso { display: grid; gap: 2.5rem; }
.senso__quote { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 3.8vw, 2.5rem); line-height: 1.22; color: var(--sage-deep); margin: 0; padding-left: 1.25rem; border-left: 2px solid var(--sage); text-wrap: balance; }
.senso__body p { color: var(--ink); }
@media (min-width: 900px) { .senso { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; } .senso__side { position: sticky; top: 110px; } }

/* programma: un percorso con quattro tappe */
.tappe { list-style: none; margin: 0; padding: 0; counter-reset: tappa; display: grid; gap: 0; }
.tappa { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 1rem; padding-bottom: 2.4rem; }
.tappa:last-child { padding-bottom: 0; }
.tappa::before { content: ""; position: absolute; left: 1.6rem; top: 3.1rem; bottom: .4rem; width: 1px; background: var(--sage); opacity: .6; }
.tappa:last-child::before { display: none; }
.tappa__n { width: 3.2rem; height: 3.2rem; border: 1px solid var(--sage-deep); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--sage-deep); background: var(--ivory); }
.tappa h3 { margin: .2rem 0 .5rem; }
.tappa p { color: var(--ink-soft); }
.nota { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 1.02rem; max-width: 42rem; }
@media (min-width: 900px) { .programma { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; align-items: start; } .programma .section__head { margin-bottom: 0; position: sticky; top: 110px; } }

/* a chi è rivolto */
.pubblico { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pubblico article { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.pubblico h3 { margin-bottom: .5rem; }
.pubblico p { color: var(--ink-soft); }
@media (min-width: 760px) { .pubblico { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; } }
.rassicura { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.3; color: var(--sage-deep); margin: 2.6rem 0 0; max-width: 40rem; }

/* come si svolge */
.svolgimento { display: grid; gap: 2.5rem; }
.dettagli { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.dettagli li { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.dettagli b { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); padding-top: .25rem; }
.dettagli span { min-width: 0; }
@media (min-width: 900px) { .svolgimento { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; } }

/* insegnante */
.insegnante { display: grid; gap: 2.2rem; align-items: start; }
.ritratto { width: min(260px, 70%); aspect-ratio: 4 / 5; background: var(--sage-tint); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.ritratto img { width: 100%; height: 100%; object-fit: cover; }
.ritratto__ini { font-family: var(--display); font-size: 4.2rem; color: var(--sage-deep); letter-spacing: .04em; }
.insegnante .nome { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.05; margin-bottom: 1.4rem; }
.insegnante p { max-width: 38rem; }
@media (min-width: 760px) { .insegnante { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; } .ritratto { width: 100%; } }

/* iscrizione */
.opzioni { display: grid; gap: 1.5rem; align-items: stretch; }
.opzione { background: #fff; border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.4rem); display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.opzione--principale { border-color: var(--sage-deep); box-shadow: 0 1px 0 var(--sage-deep), 0 18px 40px -28px rgba(39, 42, 40, .45); }
.opzione--quieta { background: transparent; }
.opzione h3 { margin: 0; }
.prezzo { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: 0; }
.prezzo strong { font-family: var(--display); font-weight: 600; font-size: 3.6rem; line-height: 1; color: var(--ink); }
.prezzo span { color: var(--ink-soft); }
.opzione .btn { margin-top: auto; }
.opzione--principale .consenso { margin-top: .2rem; }
.consenso { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; line-height: 1.5; color: var(--ink-soft); margin-top: .4rem; }
.consenso input { flex: none; width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--sage-deep); }
.consenso label { cursor: pointer; }
.avviso { margin: 0; font-size: .95rem; line-height: 1.5; padding: .75rem 1rem; border-left: 3px solid var(--sage-deep); background: var(--sage-tint); color: var(--ink); }
.avviso[hidden] { display: none; }
.avviso--errore { border-left-color: #8C3B2E; background: #F6E6E1; }
.piccolo { font-size: .92rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
@media (min-width: 900px) { .opzioni { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem; } }

.dopo { margin-top: clamp(3rem, 6vw, 4.5rem); }
.dopo h3 { margin-bottom: 1.6rem; }
.passi { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; counter-reset: passo; }
.passi li { counter-increment: passo; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .9rem; }
.passi li::before { content: counter(passo); width: 2.4rem; height: 2.4rem; border: 1px solid var(--sage-deep); border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--sage-deep); }
.passi b { display: block; font-weight: 600; }
.passi span { color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 900px) { .passi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; } }

/* domande frequenti */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.3rem 0; font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--body); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--sage-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq .risposta { padding: 0 0 1.5rem; color: var(--ink-soft); max-width: 44rem; }

/* chiusura */
.chiusura { background: var(--night); color: var(--on-night); padding-block: clamp(4.5rem, 10vw, 7.5rem); text-align: left; }
.chiusura .wrap { display: grid; gap: 2.4rem; }
.chiusura blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.18; color: #fff; max-width: 34rem; text-wrap: balance; }
.chiusura p { color: var(--on-night-soft); font-size: 1.12rem; max-width: 36rem; }
.chiusura .btn { justify-self: start; }
@media (max-width: 519px) { .chiusura .btn { justify-self: stretch; } }
.condividi { border-top: 1px solid var(--line-night); padding-top: 1.8rem; display: grid; gap: .9rem; }
.condividi h3 { font-family: var(--body); font-size: .78rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--sage-light); }
.condividi ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--line-night); border-radius: 2px; background: transparent; color: var(--on-night); font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s; }
.chip:hover { border-color: var(--sage-light); background: rgba(241, 236, 223, .06); color: #fff; }
.condividi .piccolo { color: var(--on-night-soft); }

/* piè di pagina */
.site-footer { background: #0D0F0E; color: var(--on-night-soft); padding-block: 3rem 3.5rem; font-size: .95rem; line-height: 1.65; }
.site-footer .wrap { display: grid; gap: 2rem; }
.site-footer a { color: var(--on-night); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: inline-block; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.site-footer small { display: block; font-size: .85rem; color: #9C9887; }
.nonterapia { max-width: 46rem; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* pagine di servizio: grazie, richiesta ricevuta, privacy, condizioni */
.servizio { min-height: 70vh; padding-block: clamp(3rem, 8vw, 5.5rem); background: var(--paper); }
.servizio h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 1.4rem; }
.servizio h2 { font-size: 1.9rem; margin: 2.6rem 0 .8rem; }
.servizio h3 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
.servizio ul, .servizio ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.servizio li { margin-bottom: .45rem; }
.servizio .lead { font-size: 1.2rem; color: var(--ink-soft); }
.torna { display: inline-block; margin-bottom: 2rem; font-size: .92rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.cardina { background: #fff; border: 1px solid var(--line); padding: clamp(1.4rem, 4vw, 2.2rem); margin: 2rem 0; }
.bozza { background: #FBF1D9; border: 1px solid #D9BF7A; border-left-width: 4px; padding: 1rem 1.2rem; margin: 0 0 2.2rem; font-size: .98rem; color: #4A3D12; }
.bozza[hidden] { display: none; }
mark.da-completare { background: #FBE9A8; color: #3E3410; padding: 0 .25em; border-radius: 2px; }
.tabella { overflow-x: auto; margin: 1rem 0 1.4rem; }
.tabella table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .96rem; }
.tabella th, .tabella td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.tabella th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); }

/* utilità */
.visually-hidden-h { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-footer .piccolo { color: var(--on-night-soft); }
mark:not(.da-completare) { background: none; color: inherit; padding: 0; }

.site-footer ul { margin-bottom: 1.2rem; }
.site-footer small { margin-top: .9rem; }

/* Data di inizio: la prima lettera ("Domenica") in maiuscolo e un po' più grande */
.facts dd[data-c="dataInizio"]::first-letter,
.dettagli [data-c="dataInizio"]::first-letter { text-transform: uppercase; font-size: 1.28em; line-height: 1; }
.dettagli [data-c="dataInizio"] { display: inline-block; }
