/* ============================================================
   Elena Badea — Personal Trainer
   Restyling fedele: nero + lime + titoli serif, divisori diagonali
   ============================================================ */

:root {
  --black:   #0d0d0d;
  --black-2: #161616;
  --cream:   #f4f2ec;   /* sezioni chiare */
  --lime:    #dcef34;   /* accento principale */
  --lime-2:  #c3d400;
  --white:   #ffffff;
  --muted-d: #b7b7b2;   /* testo secondario su scuro */
  --muted-l: #5c5750;   /* testo secondario su chiaro */
  --line-d:  #2c2c2c;

  --serif: "Aleo", "Roboto Slab", Georgia, serif;  /* slab simile a Museo Slab */
  --sans:  "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --slant: clamp(34px, 5vw, 90px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--black);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--lime); color: var(--black); }

/* ----------------------------- Tipografia ----------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
.display-xl { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.display-l  { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.display-m  { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

.kicker { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lime-2); margin-bottom: .6rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.text-lime { color: var(--lime); }

/* ----------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--dark { background: var(--black); color: var(--cream); }
.section--dark .lead { color: var(--muted-d); }

/* Divisori diagonali (rivelano il fondo crema del body) */
.diag-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); padding-bottom: calc(clamp(3.5rem, 8vw, 7rem) + var(--slant)); }
.diag-top    { clip-path: polygon(0 calc(var(--slant) - 2px), 100% -2px, 100% 100%, 0 100%); padding-top: calc(clamp(3.5rem, 8vw, 7rem) + var(--slant)); margin-top: calc(var(--slant) * -1); }

/* ----------------------------- Bottoni ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1.05em 2em; border-radius: 100px; border: 1.5px solid currentColor;
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.btn--outline-light { color: var(--cream); background: transparent; }
.btn--outline-light:hover { background: var(--lime); border-color: var(--lime); color: var(--black); transform: translateY(-2px); }
.btn--outline-dark { color: var(--black); background: transparent; }
.btn--outline-dark:hover { background: var(--black); color: var(--cream); transform: translateY(-2px); }
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--black); }
.btn--lime:hover { background: var(--lime-2); border-color: var(--lime-2); transform: translateY(-2px); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled { background: rgba(13,13,13,.92); backdrop-filter: blur(10px); padding-block: 0.7rem; box-shadow: 0 8px 30px -18px rgba(0,0,0,.8); }
.brand img { height: clamp(38px, 4.4vw, 54px); width: auto; }
.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--lime); transition: width .3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; z-index: 110; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 6px 0; transition: .3s var(--ease); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2.2rem;
    background: var(--black); transform: translateX(100%); transition: transform .45s var(--ease);
  }
  .nav a { font-size: 1.1rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { transform: translateX(0); }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative; overflow: hidden; background: var(--black); color: var(--cream);
  min-height: 90vh; display: flex; align-items: center;
  padding-top: clamp(8rem, 16vw, 11rem); padding-bottom: clamp(4rem, 8vw, 7rem);
}
/* Foto a tutto schermo, sfumata sotto il contenuto */
.hero__bg { position: absolute; top: -8%; left: 0; right: 0; bottom: -8%; z-index: 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,13,13,.97) 0%, rgba(13,13,13,.88) 32%, rgba(13,13,13,.6) 62%, rgba(13,13,13,.42) 100%),
    linear-gradient(0deg, rgba(13,13,13,.85) 0%, rgba(13,13,13,0) 38%);
}
.hero__content { position: relative; z-index: 1; }
/* Variante 404: viso di Elena come presenza tenue sullo sfondo */
.hero__bg--portrait img { filter: grayscale(1); opacity: .35; object-position: 50% 22%; }
.hero__bg--portrait::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 50% 32%, rgba(13,13,13,.45), rgba(13,13,13,.92) 78%),
    linear-gradient(0deg, var(--black) 0%, rgba(13,13,13,.6) 45%, rgba(13,13,13,.78) 100%);
}
.hero__title { margin: 0.4rem 0 1.6rem; }
.hero__title .rinasci { display: block; color: var(--lime); font-family: var(--serif); }
.hero__title .resto { display: block; color: var(--cream); }
.hero__lead { max-width: 46ch; }
.hero__lead strong { font-weight: 800; color: var(--white); }
.hero__actions { margin-top: 2.2rem; }
@media (max-width: 860px) {
  .hero { min-height: 88vh; }
  .hero__bg img { object-position: 64% center; }
}

/* placeholder (in attesa di immagini) */
.ph { display: flex; align-items: center; justify-content: center; text-align: center; background: #20201e; color: #6f6f68; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ----------------------------- Chi sono ----------------------------- */
.chisono__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.chisono__media { aspect-ratio: 1; border-radius: 50%; overflow: hidden; max-width: 460px; margin-inline: auto; box-shadow: 0 30px 60px -35px rgba(13,13,13,.5); }
.chisono__media img { width: 100%; height: 134%; object-fit: cover; object-position: center top; filter: grayscale(1); will-change: transform; }
.chisono__body { text-align: left; }
.chisono__body h2 { text-align: center; margin-bottom: 1.6rem; }
.chisono__lead { font-weight: 800; font-size: 1.15rem; text-align: center; margin-bottom: 1.4rem; }
.chisono__body p + p { margin-top: 1.1rem; color: var(--muted-l); }
.chisono__cta { text-align: center; margin-top: 2rem; }
@media (max-width: 860px) { .chisono__grid { grid-template-columns: 1fr; } }

/* ----------------------------- Come funziona (passi) ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; margin-top: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.step__num { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--lime-2); margin-bottom: 0.7rem; }
.step__title { font-size: 1.2rem; margin-bottom: 0.6rem; }
.step__text { color: var(--muted-l); font-size: 0.96rem; }

/* ----------------------------- Per chi è / per chi non è ----------------------------- */
.per-chi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 860px) { .per-chi__grid { grid-template-columns: 1fr; } }
.per-chi__col h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 1.1rem; }
.per-chi__list { display: grid; gap: 0.8rem; }
.per-chi__list li { display: flex; gap: 0.7rem; font-size: 0.96rem; line-height: 1.5; color: var(--muted-l); }
.per-chi__list li::before { flex: none; font-weight: 800; }
.per-chi__list--yes li::before { content: "✔"; color: var(--lime-2); }
.per-chi__list--no li::before { content: "✕"; color: #b5473a; }
.per-chi__closing { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; max-width: 640px; margin-inline: auto; font-style: italic; color: var(--muted-l); }

/* ----------------------------- Offerta (teaser modalità in home) ----------------------------- */
.offerta__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: clamp(2.4rem, 4vw, 3.2rem); }

/* ----------------------------- Programmi ----------------------------- */
.programmi__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.programmi__head h2 { margin-bottom: 1rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.card { display: flex; flex-direction: column; }
.card__media { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; margin-bottom: 1.4rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__nome { color: var(--lime); font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0; margin-bottom: 0.3rem; }
.card__sub { font-weight: 800; font-size: 0.98rem; margin-bottom: 0.5rem; }
.card__desc { color: var(--muted-d); font-size: 0.98rem; margin-bottom: 1.2rem; }
.card__include-label { font-weight: 800; font-size: 0.95rem; margin-bottom: 0.7rem; }
.card__include { display: grid; gap: 0.7rem; margin-bottom: 1.6rem; }
.card__include li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--muted-d); line-height: 1.5; }
.card__include li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.5em; border-radius: 50%; background: var(--lime); }
.card .btn { align-self: flex-start; }
.card__actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }

/* ----------------------------- Testimonianze ----------------------------- */
.test__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.test-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
@media (max-width: 980px) { .test-cards { grid-template-columns: 1fr; } }
.test-card { border: 1px solid var(--line-d); border-radius: 8px; padding: 2rem 1.8rem; }
.test-card h3 { font-size: 1.45rem; color: var(--cream); margin-bottom: 1.1rem; }
.test-card p { color: var(--muted-d); font-size: 0.96rem; }
.test-card__stars { color: #e3b73a; letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 1rem; }
.test-card__author { margin-top: 1.1rem; font-size: 0.85rem; font-weight: 700; color: var(--cream); opacity: 0.85; }
.test-card__reply { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-d); }
.test-card__reply span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; margin-bottom: 0.4rem; }
.test-card__reply p { font-size: 0.9rem; font-style: italic; }
.review-cta { margin-top: clamp(2.2rem, 4vw, 3rem); text-align: center; }
.review-cta p { color: var(--muted-d); margin-bottom: 1rem; }
.theme-sage .test-card__author { color: #3c3327; }
.theme-sage .test-card__reply { border-color: #d3c4a3; }
.theme-sage .test-card__reply p { color: #5c503e; }
.theme-sage .review-cta p { color: #5c503e; }
.test-cards--compact { grid-template-columns: repeat(3, 1fr); }
.test-cards--compact .test-card { padding: 1.5rem 1.4rem; }
.test-cards--compact .test-card h3 { font-size: 1.15rem; }
@media (max-width: 980px) { .test-cards--compact { grid-template-columns: 1fr; } }

/* ----------------------------- Storie di donne vere (case study) ----------------------------- */
.storie-list { display: flex; flex-direction: column; gap: 2.4rem; margin-bottom: 3rem; }
.storia { border: 1px solid var(--line-d); border-radius: 10px; padding: clamp(1.6rem, 3vw, 2.6rem); }
.storia__head { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.storia__nome { font-size: 1.4rem; color: var(--lime); }
.storia__tag { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.35em 1em; border-radius: 100px; background: rgba(220,239,52,0.12); color: var(--lime); }
.storia__block { margin-bottom: 1.3rem; }
.storia__block:last-of-type { margin-bottom: 1.5rem; }
.storia__label { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-d); margin-bottom: 0.5rem; }
.storia__block p { color: var(--muted-d); font-size: 0.98rem; }
.storia__quote { border-left: 3px solid var(--lime); padding-left: 1.2rem; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--cream); }
.theme-sage .storia { border-color: #d3c4a3; }
.theme-sage .storia__nome { color: #6f5a37; }
.theme-sage .storia__tag { background: #e1e9d8; color: #5f7050; }
.theme-sage .storia__label { color: #9a7d4f; }
.theme-sage .storia__block p { color: #5c503e; }
.theme-sage .storia__quote { border-color: #8a9a70; color: #3c3327; }
.theme-sage .storia .card__include li { color: #4a4031; }
.theme-sage .storia .card__include li::before { background: #8a9a70; }
.theme-sage #storie-vere .lead { color: #5c503e; }
.theme-sage #storie-vere .lead strong { color: #2c271f; }

.quotes-grid { border-top: 1px solid var(--line-d); padding-top: 2.4rem; }
.quotes-grid__label { font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-d); margin-bottom: 1.4rem; }
.quotes-grid__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.quotes-grid__item { font-family: var(--serif); font-size: 1.05rem; color: var(--cream); }
.theme-sage .quotes-grid { border-color: #d3c4a3; }
.theme-sage .quotes-grid__label { color: #9a7d4f; }
.theme-sage .quotes-grid__item { color: #3c3327; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--black); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.footer__logo img { height: 70px; width: auto; }
.footer__center { text-align: center; }
.footer__claim { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; margin-bottom: 1rem; }
.footer__legal { font-size: 0.78rem; color: var(--muted-d); }
.footer__contatti { text-align: right; }
.footer__contatti a { display: block; margin-bottom: 0.4rem; font-weight: 700; }
.footer__contatti a:hover { color: var(--lime); }
.footer__wa { display: inline-block; margin-top: 1.2rem; transition: transform .3s var(--ease); }
.footer__wa img { width: 220px; height: auto; }
.footer__wa:hover { transform: translateY(-2px); }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer__logo img { margin-inline: auto; }
  .footer__contatti { text-align: center; }
}

/* ----------------------------- Articoli / pagine testo ----------------------------- */
.article-prose { max-width: 760px; }
.article-prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2rem 0 1rem; }
.article-prose p { margin-bottom: 1.1rem; color: #34302b; }
.article-prose ol, .article-prose ul { margin: 0 0 1.1rem 1.2rem; }
.article-prose ol { list-style: decimal; }
.article-prose ol li, .article-prose ul li { margin-bottom: .6rem; padding-left: .3rem; }
.article-prose strong { font-weight: 800; }
.article-prose a { color: var(--lime-2); font-weight: 700; }

/* ----------------------------- Form di contatto ----------------------------- */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .02em; margin-bottom: 1.2rem; color: var(--black); }
.form input, .form textarea {
  width: 100%; margin-top: .45rem; padding: .9em 1em; font: inherit; color: var(--black);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--lime-2); box-shadow: 0 0 0 3px rgba(220,239,52,.3); }
.form__check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted-l); }
.form__check input { width: auto; margin-top: .25rem; flex: none; }
.form__check a { color: var(--lime-2); font-weight: 700; }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__submit { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: .4rem; }
.form__status { margin: 0; font-weight: 700; font-size: .9rem; }
.form__status.is-ok { color: #2e7d32; }
.form__status.is-err { color: #c0392b; }
.form.is-sending button { opacity: .6; pointer-events: none; }

/* ----------------------------- Cookie bar + overlay ----------------------------- */
.cookie-overlay { position: fixed; inset: 0; z-index: 900; display: none; background: rgba(13,13,13,.42); backdrop-filter: blur(2px); }
.cookie-overlay.is-open { display: block; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modale avviso "ambiente di test" prima del checkout */
.testpay-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(13,13,13,.55); backdrop-filter: blur(3px); }
.testpay-overlay.is-open { display: flex; animation: fadeIn .3s var(--ease); }
.testpay { max-width: 460px; width: 100%; background: var(--cream); color: #2a2418; border-radius: 14px; padding: 1.8rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.testpay__badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a5a00; background: #ffe08a; padding: .3em .7em; border-radius: 999px; margin-bottom: .9rem; }
.testpay h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
.testpay p { font-size: .95rem; line-height: 1.55; margin: 0 0 1.4rem; color: #4a4031; }
.testpay__actions { display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }

.cookie-bar {
  position: fixed; left: 50%; bottom: clamp(1rem, 3vw, 2rem); transform: translateX(-50%);
  z-index: 901; display: none; width: min(720px, calc(100% - 2rem));
  background: var(--black-2); color: var(--cream);
  border: 1px solid var(--line-d); border-top: 3px solid var(--lime); border-radius: 12px;
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.85);
}
.cookie-bar.is-open { display: block; animation: cookieUp .55s var(--ease); }
@keyframes cookieUp { from { opacity: 0; transform: translateX(-50%) translateY(24px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.cookie-bar__inner { padding: 1.4rem 1.5rem; display: flex; gap: 1.3rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-bar h3 { font-size: 1.1rem; color: var(--cream); margin-bottom: .35rem; }
.cookie-bar p { font-size: .85rem; color: var(--muted-d); margin: 0; max-width: 48ch; line-height: 1.5; }
.cookie-bar p a { color: var(--lime); font-weight: 700; }
.cookie-bar__text { flex: 1 1 320px; }
.cookie-bar__actions { display: flex; gap: .7rem; flex-shrink: 0; }
.cookie-bar__actions .btn { padding: .85em 1.5em; }
@media (max-width: 560px) {
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1; justify-content: center; }
}

/* ----------------------------- Reveal ----------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(38px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}

/* ============================================================
   Enhancements: animazioni ed effetti (intensità dinamica)
   ============================================================ */

/* Barra di avanzamento scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--lime); transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* Filo lime disegnato esattamente sul taglio diagonale (banda di 5px) */
.diag-bottom, .diag-top { position: relative; }
.diag-bottom::before, .diag-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg,
    var(--lime) 0%, var(--lime) 40%,
    #ecff6a 47%, #f7ffb0 50%, #ecff6a 53%,
    var(--lime) 60%, var(--lime) 100%);
  background-size: 220% 100%; background-repeat: no-repeat;
  animation: limeFlow 5.2s linear infinite;
}
.diag-bottom::before {
  clip-path: polygon(0 calc(100% - 4px), 100% calc(100% - var(--slant) - 4px), 100% calc(100% - var(--slant)), 0 100%);
}
.diag-top::before {
  clip-path: polygon(0 calc(var(--slant) - 2px), 100% -2px, 100% 4px, 0 calc(var(--slant) + 4px));
  animation-delay: -2.6s;
}
@keyframes limeFlow { from { background-position: 160% 0; } to { background-position: -60% 0; } }

/* Hero: grana sottile sopra la foto */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Card programmi: numero, bordo e hover */
.card { position: relative; border: 1px solid var(--line-d); border-radius: 10px; padding: 1.4rem; background: rgba(255,255,255,.015); transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover { transform: translateY(-8px); border-color: var(--lime); box-shadow: 0 30px 60px -36px rgba(0,0,0,.9); }
.card__media { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; margin-bottom: 1.3rem; }
.card__num {
  position: absolute; top: 1rem; right: 1.2rem; z-index: 2;
  font-family: var(--serif); font-weight: 700; font-size: 2.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(220,239,52,.55); text-stroke: 1.5px rgba(220,239,52,.55);
  transition: -webkit-text-stroke-color .4s var(--ease);
}
.card:hover .card__num { -webkit-text-stroke-color: var(--lime); }

/* Underline che si "disegna" sotto i titoli */
.ul-draw { position: relative; display: inline-block; padding-bottom: .18em; }
.ul-draw::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--lime); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .9s var(--ease) .25s;
}
.ul-draw--center::after { left: 50%; transform: translateX(-50%) scaleX(0); transform-origin: 50% 50%; }
.is-visible .ul-draw::after, .ul-draw.is-visible::after { transform: scaleX(1); }
.is-visible .ul-draw--center::after, .ul-draw--center.is-visible::after { transform: translateX(-50%) scaleX(1); }

/* ============================================================
   TEMA "WARM" — variante cromatica ispirata a giuliafiumi.me
   (salvia / sabbia / crema / marrone-espresso, accento oro)
   Attiva con <body class="theme-warm"> (pagina /anteprima/)
   ============================================================ */
.theme-warm {
  --black:   #2b2620;   /* espresso caldo al posto del nero */
  --black-2: #342e26;
  --cream:   #f3eee4;   /* crema calda */
  --cream-2: #fbf7ef;
  --lime:    #c7a25e;   /* accento oro caldo (al posto del lime) */
  --lime-2:  #ad8745;
  --muted-d: #cabfa8;   /* testo secondario su scuro */
  --muted-l: #6f5e48;   /* testo secondario su chiaro */
  --line:    #ddd0bc;
  --line-d:  #463d30;
}
/* kicker in salvia, per richiamare la palette di riferimento */
.theme-warm .kicker { color: #8a9a80; }
/* overlay hero in tono caldo */
.theme-warm .hero__bg::after {
  background:
    linear-gradient(90deg, rgba(43,38,32,.97) 0%, rgba(43,38,32,.86) 32%, rgba(43,38,32,.58) 62%, rgba(43,38,32,.42) 100%),
    linear-gradient(0deg, rgba(43,38,32,.85) 0%, rgba(43,38,32,0) 40%);
}
/* header scrolled in espresso */
.theme-warm .site-header.scrolled { background: rgba(43,38,32,.93); }
/* filo diagonale: bagliore oro invece che lime */
.theme-warm .diag-bottom::before, .theme-warm .diag-top::before {
  background: linear-gradient(100deg,
    var(--lime) 0%, var(--lime) 40%,
    #e6cd94 47%, #f6e8c6 50%, #e6cd94 53%,
    var(--lime) 60%, var(--lime) 100%);
}
/* numeri delle card in oro */
.theme-warm .card__num { -webkit-text-stroke-color: rgba(199,162,94,.55); text-stroke-color: rgba(199,162,94,.55); }
.theme-warm .card:hover .card__num { -webkit-text-stroke-color: var(--lime); }
/* focus campi form in oro */
.theme-warm .form input:focus, .theme-warm .form textarea:focus { box-shadow: 0 0 0 3px rgba(199,162,94,.3); }

/* ============================================================
   TEMA "SAGE" — variante chiara/salvia (più vicina a giuliafiumi.me)
   Hero ancorato scuro (logo lime leggibile); sezioni centrali
   in salvia/sabbia con testo scuro; accento salvia/oliva.
   ============================================================ */
.theme-sage {
  --black:   #2c271f;   /* espresso: hero, footer, testo scuro */
  --black-2: #363027;
  --cream:   #f2efe6;   /* bg chiaro */
  --cream-2: #fbf8f1;
  --lime:    #97a784;   /* accento salvia/oliva */
  --lime-2:  #7c8d69;
  --muted-d: #cabfa8;
  --muted-l: #6f5e48;
  --line:    #ddd2bf;
  --line-d:  #463d30;
}
/* hero: accento oliva + kicker salvia */
.theme-sage .kicker { color: #8a9a80; }
.theme-sage .hero__bg::after {
  background:
    linear-gradient(90deg, rgba(44,39,31,.96) 0%, rgba(44,39,31,.85) 32%, rgba(44,39,31,.55) 62%, rgba(44,39,31,.4) 100%),
    linear-gradient(0deg, rgba(44,39,31,.85) 0%, rgba(44,39,31,0) 40%);
}
.theme-sage .site-header.scrolled { background: rgba(44,39,31,.93); }

/* ---- Sezione PROGRAMMI → salvia chiara, testo scuro ---- */
.theme-sage #programmi { background: #c5ccbe; color: #3c3327; }
.theme-sage #programmi .lead,
.theme-sage #programmi .card__desc,
.theme-sage #programmi .card__sub,
.theme-sage #programmi .card__include-label,
.theme-sage #programmi .card__include li { color: #4a4031; }
.theme-sage #programmi .lead strong { color: #2c271f; }
.theme-sage #programmi .kicker { color: #5f7050; }
.theme-sage #programmi .card { background: rgba(255,255,255,.55); border-color: #aab4a0; }
.theme-sage #programmi .card__nome { color: #6f5a37; }
.theme-sage #programmi .card__num { -webkit-text-stroke-color: rgba(255,255,255,.92); text-stroke-color: rgba(255,255,255,.92); text-shadow: 0 2px 10px rgba(20,16,10,.5); }
.theme-sage #programmi .card:hover .card__num { -webkit-text-stroke-color: #fff; text-stroke-color: #fff; }
.theme-sage #programmi .card:hover { border-color: #6f5a37; }
.theme-sage #programmi .card__include li::before { background: #8a9a70; }
.theme-sage #programmi .btn--outline-light { color: #3c3327; }
.theme-sage #programmi .btn--outline-light:hover { background: #3c3327; color: var(--cream); border-color: #3c3327; }
.theme-sage #programmi .ul-draw::after { background: #8a9a70; }

/* ---- Sezione PERCORSI ONLINE → stessa palette salvia di Programmi ---- */
.theme-sage #percorsi-online { background: #c5ccbe; color: #3c3327; }
.theme-sage #percorsi-online .lead,
.theme-sage #percorsi-online .card__desc,
.theme-sage #percorsi-online .card__sub,
.theme-sage #percorsi-online .card__include-label,
.theme-sage #percorsi-online .card__include li,
.theme-sage #percorsi-online .card__rate,
.theme-sage #percorsi-online p { color: #4a4031; }
.theme-sage #percorsi-online .lead strong { color: #2c271f; }
.theme-sage #percorsi-online .kicker { color: #5f7050; }
.theme-sage #percorsi-online .card { background: rgba(255,255,255,.55); border-color: #aab4a0; }
.theme-sage #percorsi-online .card--highlight { border-color: #6f5a37; }
.theme-sage #percorsi-online .card__nome { color: #6f5a37; }
.theme-sage #percorsi-online .card__price-now { color: #3c3327; }
.theme-sage #percorsi-online .card:hover { border-color: #6f5a37; }
.theme-sage #percorsi-online .card__include li::before { background: #8a9a70; }
.theme-sage #percorsi-online .card__rate a { color: #2c271f; }
.theme-sage #percorsi-online .ul-draw::after { background: #8a9a70; }

/* ---- Sezione OFFERTA (teaser modalità in home) → stessa palette salvia di Programmi ---- */
.theme-sage #offerta { background: #c5ccbe; color: #3c3327; }
.theme-sage #offerta .lead,
.theme-sage #offerta .card__desc { color: #4a4031; }
.theme-sage #offerta .kicker { color: #5f7050; }
.theme-sage #offerta .card { background: rgba(255,255,255,.55); border-color: #aab4a0; }
.theme-sage #offerta .card__nome { color: #6f5a37; }
.theme-sage #offerta .card:hover { border-color: #6f5a37; }
.theme-sage #offerta .btn--outline-light { color: #3c3327; }
.theme-sage #offerta .btn--outline-light:hover { background: #3c3327; color: var(--cream); border-color: #3c3327; }
.theme-sage #offerta .ul-draw::after { background: #8a9a70; }

/* ---- Sezione TESTIMONIANZE → sabbia, testo scuro ---- */
.theme-sage section.section--dark:not(#programmi):not(#percorsi-online):not(#offerta) { background: #ecdcc0; color: #3c3327; }
.theme-sage section.section--dark:not(#programmi):not(#percorsi-online):not(#offerta) .kicker { color: #9a7d4f; }
.theme-sage section.section--dark:not(#programmi):not(#percorsi-online):not(#offerta) h2 { color: #3c3327; }
.theme-sage section.section--dark:not(#programmi):not(#percorsi-online):not(#offerta) .ul-draw::after { background: #c2a25f; }
.theme-sage .test-card { border-color: #d3c4a3; }
.theme-sage .test-card h3 { color: #3c3327; }
.theme-sage .test-card p { color: #5c503e; }

/* filo diagonale in tono caldo/oliva */
.theme-sage .diag-bottom::before, .theme-sage .diag-top::before {
  background: linear-gradient(100deg,
    #b9a86a 0%, #b9a86a 40%, #e2d49a 47%, #f1e7c4 50%, #e2d49a 53%, #b9a86a 60%, #b9a86a 100%);
}

/* Hero (tema sage): immagine armonizzata alla palette (caldo/desaturato) */
.theme-sage .hero__bg--toned img { filter: grayscale(.85) sepia(.18) brightness(.95) contrast(1.02); }

/* Fix: link Privacy/Cookie nel footer su una sola riga */
.footer__legal a { display: inline; }

/* ============================================================
   HERO CHIARO (home) — immagine luminosa, testo scuro, logo scuro
   ============================================================ */
/* doppio logo nell'header */
.brand__logo { height: clamp(38px, 4.4vw, 54px); width: auto; display: block; }
.brand__logo--dark { display: none; }

/* velo caldo: leggibile a sinistra, arioso a destra */
.hero--light .hero__bg img { object-position: 72% 30%; filter: none; }
.hero--light .hero__bg::after {
  background:
    linear-gradient(90deg, rgba(244,241,233,.88) 0%, rgba(244,241,233,.62) 28%, rgba(244,241,233,.18) 54%, rgba(244,241,233,0) 76%),
    linear-gradient(0deg, rgba(244,241,233,.35) 0%, rgba(244,241,233,0) 30%);
}
/* testo scuro sull'area chiara */
.hero--light .hero__title .rinasci { color: #5f6e49; }
.hero--light .hero__title .resto   { color: #2c271f; }
.hero--light .hero__lead           { color: #4a4031; }
.hero--light .hero__lead strong    { color: #2c271f; }
.hero--light .kicker               { color: #6f7d59; }

/* Header sopra l'hero chiaro (non scrollato): logo scuro, MENÙ bianco */
.hero-light .site-header:not(.scrolled) .brand__logo--light { display: none; }
.hero-light .site-header:not(.scrolled) .brand__logo--dark  { display: block; }
/* il menù resta bianco anche all'inizio, con ombra per la leggibilità */
.hero-light .site-header:not(.scrolled) .nav a,
.hero-light .site-header:not(.scrolled) .nav .btn { color: #ffffff; text-shadow: 0 1px 10px rgba(20,16,10,.5); }
.hero-light .site-header:not(.scrolled) .nav .btn { border-color: rgba(255,255,255,.85); }
.hero-light .site-header:not(.scrolled) .nav .btn:hover { background: #ffffff; color: #2c271f; text-shadow: none; }
.hero-light .site-header:not(.scrolled) .nav-toggle span { background: #ffffff; box-shadow: 0 1px 8px rgba(20,16,10,.4); }

/* Hero a rotazione (crossfade) + puntini */
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.8s ease-in-out; }
.hero__slide.is-active { opacity: 1; }
.hero__dots { position: absolute; left: var(--gutter); bottom: clamp(2rem, 5vw, 3.2rem); display: flex; gap: .7rem; z-index: 2; }
.hero__dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #2c271f; background: transparent; cursor: pointer; padding: 0; transition: background .3s var(--ease), transform .3s var(--ease); }
.hero__dot.is-active { background: #2c271f; }
.hero__dot:hover { transform: scale(1.18); }

/* Hero articolo: copertina in overlay sullo sfondo scuro */
.hero__bg--cover img { object-position: center; }
.hero__bg--cover::after {
  background: linear-gradient(0deg, rgba(20,17,13,.86) 0%, rgba(20,17,13,.6) 50%, rgba(20,17,13,.72) 100%);
}

/* Card percorsi: posti, prezzo, offerta */
.card__posti { display:inline-block; font-size:.76rem; font-weight:800; letter-spacing:.02em; padding:.3em .8em; border-radius:100px; margin-bottom:.9rem; }
.theme-sage #programmi .card__posti { background:#e1e9d8; color:#5f7050; }
.card__price { display:flex; align-items:baseline; gap:.6rem; margin:.1rem 0 .25rem; }
.card__price-now { font-family:var(--serif); font-weight:700; font-size:1.7rem; line-height:1; }
.theme-sage #programmi .card__price-now { color:#3c3327; }
.card__price-old { text-decoration:line-through; opacity:.55; font-size:1.05rem; font-weight:700; }
.card__offer { font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; margin-bottom:1rem; }
.theme-sage #programmi .card__offer { color:#9a7d4f; }

/* Card percorsi online: piano a rate + badge "Il più scelto" */
.card__rate { font-size:.88rem; color:var(--muted-d); margin-bottom:1.2rem; }
.card__rate a { color:inherit; text-decoration:underline; text-underline-offset:2px; }
.card--highlight { border-color:var(--lime); box-shadow:0 24px 54px -32px rgba(220,239,52,.4); }
.card--highlight:hover { border-color:var(--lime); }
.card__badge {
  position:absolute; top:-.9rem; left:1.4rem; z-index:2;
  background:var(--lime); color:var(--black); font-size:.72rem; font-weight:800;
  letter-spacing:.04em; text-transform:uppercase; padding:.4em 1.1em; border-radius:100px;
}

/* Sezione Percorsi online: intro/checklist e chiusura */
.programmi__head.percorsi-online__head { max-width: 920px; }
.percorsi-online__intro { max-width:none; margin-bottom:clamp(3rem, 6vw, 4.5rem); }
.percorsi-online__intro h3 { font-family:var(--serif); font-size:1.3rem; margin-bottom:1.5rem; }
.percorsi-online__features { display:grid; grid-template-columns:repeat(2, 1fr); gap:2rem 2.6rem; }
@media (max-width: 700px) { .percorsi-online__features { grid-template-columns:1fr; } }
.percorsi-online__feature strong { display:block; font-size:1.03rem; margin-bottom:.55rem; }
.percorsi-online__feature p { font-size:.94rem; }
.percorsi-online__chi { max-width:640px; margin:clamp(3.5rem, 6vw, 5rem) auto 0; }
.percorsi-online__chi h3 { font-family:var(--serif); font-size:1.3rem; margin-bottom:1.3rem; }
.percorsi-online__cta { max-width:600px; margin:clamp(3.5rem, 6vw, 5rem) auto 0; text-align:center; }
.percorsi-online__cta p { margin-bottom:.6rem; }
.percorsi-online__cta p:last-child { margin-bottom:0; }

/* Card challenge: stato del lancio (in arrivo / chiuso) */
.card__status { display:inline-flex; align-items:center; font-size:.76rem; font-weight:800; letter-spacing:.02em; padding:.5em 1.1em; border-radius:100px; background:var(--cream); color:var(--muted-l); border:1px solid var(--line); }

/* ============================================================
   Hero delle challenge a coorte ricorrenti (es. Body Restart):
   tre stili scelti dall'admin per edizione (stile_hero), stessa
   base grafica del sito, un solo accento nuovo ("germoglio").
   ============================================================ */
:root { --restart-accent: #5c8a3a; --restart-accent-deep: #3f6527; }

.hero-restart__inner { padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero-restart .kicker { display:inline-block; }

/* --- Germoglio: crescita, spazio ampio, rito calmo --- */
.hero-restart--germoglio { background: var(--cream); color: var(--black); text-align: center; }
.hero-restart--germoglio .hero-restart__sprout { width: 46px; height: 64px; margin: 0 auto 1.2rem; display: block; }
.hero-restart--germoglio .kicker { color: var(--restart-accent-deep); }
.hero-restart--germoglio h1 { font-family: var(--serif); font-weight: 400; margin: .7rem 0 .9rem; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero-restart--germoglio .lead { color: var(--muted-l); max-width: 46ch; margin: 0 auto 1.8rem; }
.hero-restart--germoglio .btn--restart { background: var(--restart-accent); border-color: var(--restart-accent); color: var(--cream); }
.hero-restart--germoglio .btn--restart:hover { background: var(--restart-accent-deep); border-color: var(--restart-accent-deep); }
.hero-restart--germoglio .hero-restart__cadence { margin-top: 2rem; font-size: .88rem; color: var(--muted-l); }
.hero-restart--germoglio .hero-restart__cadence b { color: var(--restart-accent-deep); font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }

/* --- Cerchio: community in evidenza, ritmo circolare --- */
.hero-restart--cerchio { background: var(--black); color: var(--cream); }
.hero-restart--cerchio .kicker { text-align: center; display: block; color: var(--lime); }
.hero-restart--cerchio h1 { font-family: var(--serif); font-weight: 400; text-align: center; margin: .8rem 0; font-size: clamp(2rem, 4.6vw, 3rem); }
.hero-restart--cerchio .lead { text-align: center; color: var(--muted-d); max-width: 44ch; margin: 0 auto 1.4rem; }
.hero-restart--cerchio .hero-restart__count { text-align: center; font-size: .85rem; color: var(--lime); margin-bottom: 2rem; }
.hero-restart__orbit { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 2rem); margin-bottom: 2.2rem; flex-wrap: wrap; }
.hero-restart__orbit-item { text-align: center; max-width: 140px; }
.hero-restart__orbit-dot { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--lime); display: flex; align-items: center; justify-content: center; margin: 0 auto .6rem; font-family: var(--serif); font-size: .95rem; }
.hero-restart__orbit-lbl { font-size: .74rem; color: var(--muted-d); line-height: 1.4; }
.hero-restart--cerchio .hero-restart__cta-row { display: flex; justify-content: center; }
.hero-restart--cerchio .btn--restart { background: var(--lime); border-color: var(--lime); color: var(--black); }
.hero-restart--cerchio .btn--restart:hover { background: var(--lime-2); border-color: var(--lime-2); }

/* --- Respiro: minimale, tipografia protagonista --- */
.hero-restart--respiro { background: var(--cream); color: var(--black); }
.hero-restart--respiro .hero-restart__grid { display: grid; grid-template-columns: 3px 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: stretch; }
.hero-restart__breath { background: var(--line); border-radius: 3px; position: relative; }
.hero-restart__breath::after { content: ""; position: absolute; left: -2.5px; top: 8%; width: 8px; height: 8px; border-radius: 50%; background: var(--restart-accent); }
.hero-restart--respiro .kicker { color: var(--muted-l); margin-bottom: 1rem; display: block; }
.hero-restart--respiro h1 { font-family: var(--serif); font-weight: 400; margin: 0 0 1.1rem; letter-spacing: -.01em; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
.hero-restart--respiro .lead { color: var(--muted-l); max-width: 48ch; margin: 0 0 2rem; }
.hero-restart__count-inline { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 2rem; }
.hero-restart__count-inline b { font-family: var(--serif); font-weight: 400; font-size: 3rem; color: var(--restart-accent-deep); }
.hero-restart__count-inline span { font-size: .82rem; color: var(--muted-l); }
.hero-restart--respiro .btn--restart { background: transparent; border-color: var(--black); color: var(--black); }
.hero-restart--respiro .btn--restart:hover { background: var(--black); color: var(--cream); }

@media (max-width: 700px) {
  .hero-restart--respiro .hero-restart__grid { grid-template-columns: 1fr; }
  .hero-restart__breath { display: none; }
}
