:root {
  --leaf: #486b43;
  --leaf-2: #6f8a54;
  --leaf-dark: #263f2d;
  --beige: #f3ead8;
  --beige-2: #eadcc5;
  --sand: #d9c7a5;
  --sand-soft: #fbf7ee;
  --walnut: #624732;
  --walnut-2: #8a6a4d;
  --walnut-dark: #33261d;
  --warm-black: #18140f;
  --muted: #71685e;
  --white: #fffdf7;
  --line: rgba(24, 20, 15, 0.14);
  --line-strong: rgba(24, 20, 15, 0.24);
  --danger: #963424;
  --success: #2e6939;
  --radius: 8px;
  --max: 1160px;
  --wide: 940px;
  --text: 700px;
  --pad: clamp(1.25rem, 4vw, 3.75rem);
  --section: clamp(3.5rem, 5.5vw, 5.5rem);
  --shadow-soft: 0 18px 48px rgba(51, 38, 29, 0.12);
  --shadow-lift: 0 26px 74px rgba(51, 38, 29, 0.2);
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", "Aptos", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  color: var(--warm-black);
  background:
    linear-gradient(90deg, rgba(24, 20, 15, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 20, 15, 0.026) 1px, transparent 1px),
    var(--beige);
  background-size: 56px 56px, 56px 56px, auto;
  font-family: var(--body);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(72, 107, 67, 0.38);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--warm-black);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 0.72rem max(var(--pad), calc((100vw - var(--max)) / 2 + 2rem));
  border-bottom: 1px solid rgba(51, 38, 29, 0.12);
  background: rgba(243, 234, 216, 0.92);
  backdrop-filter: blur(18px) saturate(1.08);
  transition: box-shadow 220ms ease, background 220ms ease,
    border-color 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
  border-color: rgba(51, 38, 29, 0.18);
  background: rgba(251, 247, 238, 0.96);
  box-shadow: 0 12px 32px rgba(51, 38, 29, 0.08);
}

.brand img {
  transition: width 220ms ease;
}

.site-header.is-scrolled .brand img {
  width: 108px;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .brand img {
    transition: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand img {
  width: 126px;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}


.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(72, 107, 67, 0.34);
  border-radius: 999px;
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(38, 63, 45, 0.14);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] > span:not(.sr-only):nth-of-type(2) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:not(.sr-only):nth-of-type(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:not(.sr-only):nth-of-type(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.91rem;
  font-weight: 700;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.52rem 0.72rem;
  border-radius: 999px;
  color: var(--walnut-dark);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.32rem;
  height: 2px;
  border-radius: 2px;
  background: var(--leaf-dark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.primary-nav a:not(.nav-cta):hover,
.primary-nav a:not(.nav-cta).is-active {
  background: rgba(72, 107, 67, 0.1);
  color: var(--leaf-dark);
}

.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a:not(.nav-cta).is-active::after {
  transform: scaleX(1);
}

@media (max-width: 1080px) {
  .primary-nav a:not(.nav-cta)::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav a:not(.nav-cta)::after {
    transition: none;
  }
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.12rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.18;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-cta,
.button-primary {
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(38, 63, 45, 0.16);
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--leaf-dark);
  box-shadow: 0 16px 34px rgba(38, 63, 45, 0.24);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: rgba(255, 253, 247, 0.46);
  color: var(--white);
  background: rgba(255, 253, 247, 0.03);
}

.button-secondary:hover {
  border-color: rgba(255, 253, 247, 0.76);
  background: rgba(255, 253, 247, 0.1);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, 430px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(4rem, 7vw, 7rem) max(var(--pad), calc((100vw - var(--max)) / 2 + 2rem));
  background:
    linear-gradient(135deg, rgba(24, 20, 15, 0.98), rgba(51, 38, 29, 0.94)),
    linear-gradient(90deg, rgba(255, 253, 247, 0.04) 1px, transparent 1px);
  background-size: auto, 64px 64px;
  color: var(--white);
}

.hero-home {
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.72fr);
  justify-content: center;
  min-height: auto;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.hero-home h1 {
  overflow-wrap: normal;
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 1.6rem;
  background: var(--leaf-2);
  transform: scaleX(0);
  transform-origin: left center;
  animation: divider-draw 720ms cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s forwards;
}

@keyframes divider-draw {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy::before { transform: scaleX(1); animation: none; }
}

.eyebrow,
.form-kicker {
  margin: 0 0 0.85rem;
  color: var(--leaf);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d5e1c8;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.08;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.9rem, 5vw, 5rem);
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2rem, 3.3vw, 3.45rem);
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 690px;
  margin: 1.35rem 0 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero-visual {
  justify-self: end;
  width: min(100%, 560px);
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 253, 247, 0.18);
  border-radius: 10px;
  background: var(--warm-black);
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
  object-fit: contain;
  object-position: center;
}

.contact-form {
  border: 1px solid rgba(98, 71, 50, 0.18);
  border-top: 5px solid var(--leaf);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(251, 247, 238, 0.98)),
    var(--sand-soft);
  color: var(--warm-black);
  box-shadow: var(--shadow-lift);
}

.hero-copy {
  min-width: 0;
}

.lead-form {
  display: grid;
  gap: 0.88rem;
  margin-top: 1.1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.78rem;
}

label {
  display: grid;
  gap: 0.36rem;
  color: var(--walnut-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(98, 71, 50, 0.27);
  border-radius: 7px;
  background: var(--white);
  color: var(--warm-black);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  min-height: 48px;
  padding: 0 0.82rem;
}

select {
  min-height: 48px;
  padding: 0 0.82rem;
  appearance: none;
  -webkit-appearance: none;
  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' stroke='%2333261d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.82rem center;
  padding-right: 2.5rem;
}

textarea {
  min-height: 104px;
  padding: 0.78rem 0.82rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(72, 107, 67, 0.48);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(72, 107, 67, 0.11);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(150, 52, 36, 0.09);
}

.privacy-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 0.68rem;
  padding: 0.85rem;
  border: 1px solid rgba(98, 71, 50, 0.16);
  border-radius: 7px;
  background: rgba(217, 199, 165, 0.18);
  color: var(--muted);
  font-size: 0.81rem;
  font-weight: 600;
}

/* Honeypot anti-spam: invisibile agli umani, visibile ai bot generici.
   Non usare display:none/visibility:hidden — vengono riconosciuti.
   Off-screen + opacity 0 + dimensione zero. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.18rem;
  accent-color: var(--leaf);
}

.form-submit {
  position: relative;
  width: 100%;
  border: 0;
  overflow: hidden;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.92;
  transform: none;
}

.form-submit .submit-label,
.form-submit .submit-spinner,
.form-submit .submit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 180ms ease, transform 220ms ease;
}

.form-submit .submit-spinner,
.form-submit .submit-check {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.form-submit[data-state="loading"] .submit-label,
.form-submit[data-state="success"] .submit-label {
  opacity: 0;
  transform: translateY(-6px);
}

.form-submit[data-state="loading"] .submit-spinner {
  opacity: 1;
  transform: translateY(0);
}

.form-submit[data-state="success"] {
  background: var(--success);
}

.form-submit[data-state="success"] .submit-check {
  opacity: 1;
  transform: translateY(0);
}

.submit-spinner svg {
  width: 22px;
  height: 22px;
  animation: spinner-rot 0.85s linear infinite;
}

.submit-spinner svg circle {
  fill: none;
  stroke: rgba(255, 253, 247, 0.85);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 60 100;
}

.submit-check svg {
  width: 22px;
  height: 22px;
}

.submit-check svg path {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
}

.form-submit[data-state="success"] .submit-check svg path {
  animation: check-draw 460ms cubic-bezier(0.22, 0.61, 0.36, 1) 80ms forwards;
}

@keyframes spinner-rot {
  to { transform: rotate(360deg); }
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes form-success-pulse {
  0%   { box-shadow: var(--shadow-lift), 0 0 0 0 rgba(46, 105, 57, 0.32); }
  60%  { box-shadow: var(--shadow-lift), 0 0 0 14px rgba(46, 105, 57, 0); }
  100% { box-shadow: var(--shadow-lift), 0 0 0 0 rgba(46, 105, 57, 0); }
}

.contact-form.is-success {
  animation: form-success-pulse 900ms ease-out;
  border-top-color: var(--success);
}

.form-note {
  min-height: 1.35em;
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.form-note.success {
  color: var(--success);
}

.form-note.loading {
  color: var(--walnut-dark);
}

@media (prefers-reduced-motion: reduce) {
  .form-submit .submit-label,
  .form-submit .submit-spinner,
  .form-submit .submit-check {
    transition: none;
  }
  .submit-spinner svg { animation: none; }
  .submit-check svg path { animation: none; stroke-dashoffset: 0; }
  .contact-form.is-success { animation: none; }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: -1.65rem auto 0;
  padding: 0 var(--pad);
  position: relative;
  z-index: 3;
}

.trust-strip p {
  margin: 0;
  padding: 1rem 0.8rem;
  border: 1px solid rgba(98, 71, 50, 0.16);
  background: rgba(251, 247, 238, 0.96);
  color: var(--walnut-dark);
  font-size: 0.94rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 32px rgba(51, 38, 29, 0.08);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 0 var(--pad);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  padding: 1.6rem 1rem;
  border: 1px solid rgba(98, 71, 50, 0.16);
  background: rgba(255, 253, 247, 0.88);
  text-align: center;
  box-shadow: 0 8px 24px rgba(51, 38, 29, 0.06);
}

.stat-num {
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--leaf-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-num::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--leaf);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.stat-num.is-counted::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .stat-num::after {
    transform: scaleX(1);
    transition: none;
  }
}

.stat-label {
  display: block;
  color: var(--walnut-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
}

.section {
  max-width: calc(var(--max) + (var(--pad) * 2));
  margin: 0 auto;
  padding: var(--section) var(--pad);
}

.page-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, var(--wide));
  justify-content: center;
  max-width: none;
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 60px;
  padding-left: var(--pad);
  padding-right: var(--pad);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(251, 247, 238, 0.92), rgba(234, 220, 197, 0.82)),
    var(--beige);
}

.page-intro h1 {
  max-width: 900px;
  font-size: clamp(38px, 4.25vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-intro::before,
.page-course::before,
.page-links::before,
.home-form-section::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 1.4rem;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.page-intro.is-revealed::before,
.page-course.is-revealed::before,
.page-links.is-revealed::before,
.home-form-section.is-revealed::before {
  transform: scaleX(1);
}

.page-intro::before,
.page-course::before,
.page-links::before {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center center;
}

@media (prefers-reduced-motion: reduce) {
  .page-intro::before,
  .page-course::before,
  .page-links::before,
  .home-form-section::before {
    transform: scaleX(1);
    transition: none;
  }
}

.page-intro > *,
.page-links > *,
.home-form-section > * {
  position: relative;
}

.home-form-section {
  position: relative;
}

.home-form-section::before {
  grid-column: 1 / -1;
  margin-bottom: -0.25rem;
}

#form-call {
  position: absolute;
  top: 0;
  left: 0;
  scroll-margin-top: 120px;
}

.anchor-target {
  display: block;
  height: 0;
}

.page-intro .content-stack {
  max-width: var(--text);
  margin-top: 1.35rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-split.page-intro > div:first-child {
  text-align: center;
}

.page-course .course-copy {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 3.8vw, 3.25rem);
  align-items: start;
}

.section-split.page-intro {
  display: grid;
  grid-template-columns: minmax(0, var(--wide));
  justify-content: center;
  gap: 0;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 1.05rem;
  color: var(--walnut-dark);
  font-size: clamp(1.03rem, 1.4vw, 1.13rem);
}

.content-stack p {
  margin: 0;
}

.strong-line {
  margin-top: 0.4rem !important;
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--leaf);
  background: rgba(217, 199, 165, 0.24);
  color: var(--warm-black);
  font-weight: 900;
}

.sand {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(217, 199, 165, 0.86), rgba(234, 220, 197, 0.88)),
    var(--sand);
}

.page-links {
  border-top: 1px solid var(--line);
  background: rgba(251, 247, 238, 0.54);
}

.page-links .principles-grid article {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.page-links .text-link {
  margin-top: auto;
}

.sand > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.35rem, 2.5vw, 2rem);
  text-align: center;
}

.section-heading p {
  color: var(--walnut-dark);
  font-size: 1.06rem;
}

.principles-grid,
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: clamp(0.95rem, 1.6vw, 1.25rem);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.principles-grid article,
.trainer-grid article,
.steps li,
.field-case {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(98, 71, 50, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
  padding: 1.3rem;
  box-shadow: 0 12px 34px rgba(51, 38, 29, 0.06);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.principles-grid article::before,
.trainer-grid article::before,
.steps li::before,
.field-case::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  background: var(--leaf);
  border-radius: 0 3px 3px 0;
  opacity: 0.9;
}

.principles-grid article,
.trainer-grid article,
.steps li,
.field-case {
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 220ms ease, border-color 220ms ease;
}

.principles-grid article:hover,
.trainer-grid article:hover,
.steps li:hover,
.field-case:hover {
  border-color: rgba(72, 107, 67, 0.46);
  box-shadow: 0 22px 56px rgba(38, 63, 45, 0.16);
  transform: translateY(-5px);
}

/* ── Spotlight cursor-aware su card ──────────────────────── */
.principles-grid article,
.trainer-grid article,
.testimonial-card,
.social-card,
.field-case {
  --mx: 50%;
  --my: 50%;
}

.principles-grid article::after,
.trainer-grid article::after,
.testimonial-card::after,
.social-card::after,
.field-case::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mx) var(--my),
    rgba(111, 138, 84, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 0;
}

.principles-grid article:hover::after,
.trainer-grid article:hover::after,
.testimonial-card:hover::after,
.social-card:hover::after,
.field-case:hover::after {
  opacity: 1;
}

.principles-grid article > *,
.trainer-grid article > *,
.testimonial-card > *,
.social-card > *,
.field-case > * {
  position: relative;
  z-index: 1;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .principles-grid article::after,
  .trainer-grid article::after,
  .testimonial-card::after,
  .social-card::after,
  .field-case::after {
    display: none;
  }
}

.principles-grid article:hover::before,
.trainer-grid article:hover::before,
.steps li:hover::before {
  width: 6px;
  opacity: 1;
}

.principles-grid article::before,
.trainer-grid article::before,
.steps li::before {
  transition: width 220ms ease, opacity 220ms ease;
}

.principles-grid p,
.trainer-grid p,
.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  color: var(--leaf-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: color 160ms ease, text-underline-offset 160ms ease;
}

.text-link:hover {
  color: var(--walnut);
  text-underline-offset: 0.35em;
}

.how {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand-soft);
}

.how > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: clamp(0.95rem, 1.6vw, 1.25rem);
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.steps span {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--leaf-dark);
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 700;
}

.course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: calc(var(--max) + (var(--pad) * 2));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(251, 247, 238, 0.98), rgba(234, 220, 197, 0.86)),
    var(--beige);
  color: var(--warm-black);
}

.course.page-course {
  max-width: none;
  background:
    linear-gradient(135deg, rgba(251, 247, 238, 0.92), rgba(234, 220, 197, 0.82)),
    var(--beige);
}

.page-course,
.page-bio,
.page-faq {
  min-height: auto;
}

.page-course {
  display: grid;
  grid-template-columns: minmax(0, 940px);
  row-gap: 0;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 60px;
}

.page-course h1 {
  max-width: 880px;
  font-size: clamp(38px, 4.25vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.course-copy {
  max-width: 820px;
  min-width: 0;
  margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

.page-course > * {
  min-width: 0;
}

.course-copy p:not(.eyebrow) {
  color: var(--walnut-dark);
  font-size: 1.06rem;
}

.course .button {
  margin-top: 1rem;
}

.course-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.72rem, 1.4vw, 0.95rem);
  width: 100%;
  max-width: 940px;
  margin-top: 1.7rem;
}

.course-list > p {
  margin: 0;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(98, 71, 50, 0.18);
  border-left: 4px solid var(--leaf);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
  color: var(--walnut-dark);
  font-weight: 800;
}

.course-list details {
  border-left: 4px solid var(--leaf);
}

.bio {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.page-bio {
  align-items: center;
  grid-template-columns: minmax(260px, 390px) minmax(0, 620px);
  justify-content: center;
  max-width: calc(var(--max) + (var(--pad) * 2));
  padding-top: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}

.page-bio .bio-copy {
  max-width: 620px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(98, 71, 50, 0.14);
  border-radius: 10px;
  background: rgba(251, 247, 238, 0.76);
  box-shadow: var(--shadow-soft);
}

.bio-image {
  overflow: hidden;
  border: 1px solid rgba(98, 71, 50, 0.14);
  border-radius: 10px;
  background: var(--sand);
  box-shadow: var(--shadow-lift);
}

.bio-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.92) contrast(1.03);
}

.bio-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bio-certs {
  overflow: hidden;
  border: 1px solid rgba(98, 71, 50, 0.14);
  border-radius: 10px;
  background: var(--sand);
  box-shadow: var(--shadow-soft);
}

.bio-certs img {
  width: 100%;
  display: block;
  filter: saturate(0.92) contrast(1.03);
}

/* ── Home: CTA link sotto "Cosa ottieni" ─────────────────── */
.home-section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ── Home: blocco fiducia Francesco Lanza ─────────────────── */
.home-trust-stack {
  max-width: var(--text);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

/* (Patch precedenti rimosse — sostituite dal sistema unificato C1/C2/C3 più sotto.) */

.page-bio h1 {
  max-width: 600px;
  font-size: clamp(36px, 3.7vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.bio-copy p {
  color: var(--walnut-dark);
  font-size: 1.04rem;
}

.faq {
  max-width: none;
  background: var(--sand-soft);
}

.faq > * {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.faq .section-heading {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.faq-group-label {
  margin-top: 1.25rem;
  margin-bottom: -0.25rem;
}

.faq-group-label:first-child {
  margin-top: 0;
  margin-bottom: 0;
}

details {
  border: 1px solid rgba(98, 71, 50, 0.16);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(51, 38, 29, 0.045);
}

summary {
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  color: var(--walnut-dark);
  font-weight: 900;
}

summary::marker {
  color: var(--leaf);
}

details[open] {
  border-color: rgba(72, 107, 67, 0.32);
}

details p {
  margin: 0;
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 0.94fr);
  gap: clamp(1.25rem, 3vw, 2.35rem);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 120px;
  max-width: 500px;
}

.contact-copy p {
  color: var(--walnut-dark);
  font-size: 1.08rem;
}

.contact-form {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-top: 0;
  padding: clamp(1.25rem, 3vw, 1.7rem);
}

.home-form-section {
  align-items: start;
  max-width: calc(1000px + (var(--pad) * 2));
  padding-top: clamp(2.9rem, 4.5vw, 4.25rem);
  padding-bottom: clamp(3.1rem, 5vw, 4.75rem);
}

.home-form-section .contact-copy {
  justify-self: end;
  padding-top: 0.35rem;
}

.home-form-section .contact-form {
  justify-self: start;
}

.privacy-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 4.5rem;
  color: var(--muted);
}

.privacy-section h2 {
  color: var(--warm-black);
  font-size: 1.75rem;
}

.page-privacy h1 {
  color: var(--warm-black);
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.page-privacy .button {
  margin-top: 1rem;
}

.setup-visual img {
  width: min(100%, 820px);
  max-height: 520px;
  margin: 0 auto;
  border: 1px solid rgba(98, 71, 50, 0.16);
  border-radius: 10px;
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

.setup-visual {
  max-width: calc(var(--max) + (var(--pad) * 2));
  text-align: left;
  padding-top: clamp(3rem, 4.5vw, 4.25rem);
  padding-bottom: clamp(3rem, 4.5vw, 4.25rem);
}

.setup-visual .section-heading {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
}

.setup-visual h2 {
  max-width: 740px;
  margin-inline: auto;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.04;
}

.setup-visual.sand {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trainer {
  max-width: calc(var(--max) + (var(--pad) * 2));
}

/* .team: background gestito dal sistema unificato C1/C2/C3 più sotto */

.trainer .section-heading {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta {
  max-width: calc(900px + (var(--pad) * 2));
  padding-top: clamp(1rem, 2.2vw, 1.8rem);
  padding-bottom: clamp(2.25rem, 3.8vw, 3.4rem);
  text-align: center;
}

.final-cta .button {
  width: auto;
}

.final-cta p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(150px, 0.7fr) minmax(190px, 0.9fr) minmax(190px, auto);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.8rem, 5vw, 4.4rem) max(var(--pad), calc((100vw - var(--max)) / 2 + 2rem));
  border-top: 5px solid var(--leaf);
  background: var(--warm-black);
  color: var(--white);
}

.site-footer img {
  width: 148px;
  max-width: 180px;
  max-height: 120px;
  height: auto;
  margin-bottom: 1.1rem;
  padding: 0.45rem;
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.88);
  object-fit: contain;
}

.site-footer p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 253, 247, 0.72);
}

.footer-legal {
  margin-top: 0.75rem !important;
  font-size: 0.78rem;
  color: rgba(255, 253, 247, 0.42) !important;
}

.privacy-check a {
  color: var(--leaf-dark);
  text-underline-offset: 0.2em;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 0.58rem;
}

.site-footer nav[aria-label="Link ufficiali"] {
  padding-left: clamp(0.75rem, 1.8vw, 1.25rem);
  border-left: 1px solid rgba(255, 253, 247, 0.16);
}

.site-footer nav[aria-label="Link ufficiali"] a[href^="mailto:"] {
  margin-top: 0.85rem;
}

.site-footer a {
  color: rgba(255, 253, 247, 0.82);
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.site-footer span {
  color: rgba(255, 253, 247, 0.48);
}

.site-footer a:hover {
  color: var(--white);
  text-underline-offset: 0.32em;
}

.site-footer .button-footer {
  align-self: start;
  white-space: normal;
  border-color: rgba(255, 253, 247, 0.32);
  color: var(--white);
  background: rgba(255, 253, 247, 0.04);
  text-decoration: none;
}

.site-footer .button-footer:hover {
  background: var(--leaf);
  text-decoration: none !important;
}

/* --- Explore more (back-nav after form) --- */

.section.explore-more {
  max-width: none;
  padding-top: clamp(1.4rem, 2.5vw, 2rem);
  padding-bottom: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand-soft);
  text-align: center;
}

.explore-more > p {
  max-width: 640px;
  margin: 0 auto 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.explore-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1.75rem;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.92rem;
  font-weight: 800;
}

/* --- Cookie consent banner --- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 70;
  width: min(96vw, 720px);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 220ms ease;
  pointer-events: none;
}

.cookie-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner.is-leaving {
  transform: translate(-50%, 130%);
  opacity: 0;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 1.05rem 1.25rem;
  border: 1px solid rgba(98, 71, 50, 0.22);
  border-top: 4px solid var(--leaf);
  border-radius: 10px;
  background: rgba(251, 247, 238, 0.98);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: 0 22px 56px rgba(38, 63, 45, 0.20);
}

.cookie-banner-text h2 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--warm-black);
}

.cookie-banner-text p {
  margin: 0;
  color: var(--walnut-dark);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner-link {
  color: var(--leaf-dark);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(98, 71, 50, 0.32);
  border-radius: 7px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  color: var(--walnut-dark);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cookie-btn:hover {
  background: rgba(72, 107, 67, 0.08);
  border-color: rgba(72, 107, 67, 0.46);
  color: var(--leaf-dark);
  transform: translateY(-1px);
}

.cookie-btn-accept {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(38, 63, 45, 0.18);
}

.cookie-btn-accept:hover {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  color: var(--white);
}

@media (max-width: 640px) {
  .cookie-banner {
    width: calc(100vw - 1.5rem);
    bottom: 0.75rem;
  }
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
  }
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: opacity 120ms ease;
    transform: translate(-50%, 0);
  }
}

/* --- Pagina legale (privacy-policy) --- */
.legal-stack {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.legal-stack h2 {
  margin-top: 2rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.01em;
}

.legal-stack p,
.legal-stack ul {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--walnut-dark);
}

.legal-stack ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-stack li {
  margin-bottom: 0.45rem;
}

.legal-stack code {
  padding: 0.1rem 0.35rem;
  background: rgba(217, 199, 165, 0.32);
  border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.92em;
}

.legal-meta {
  margin: 0 0 1.5rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--leaf-2);
  background: rgba(217, 199, 165, 0.18);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* --- Esperienze, casi e osservazioni dal campo --- */

.field-cases {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand-soft);
}

.field-cases > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.field-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.95rem, 1.6vw, 1.25rem);
  margin: 0 auto;
}

.field-case {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem 1.4rem 1.3rem;
}

.field-case h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--warm-black);
}

.field-case-cat {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-dark);
}

.field-case-body {
  margin: 0;
  color: var(--walnut-dark);
  font-size: 0.98rem;
  line-height: 1.55;
}

.field-case-observation {
  margin: 0.2rem 0 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--leaf-2);
  background: rgba(217, 199, 165, 0.22);
  border-radius: 4px;
  color: var(--warm-black);
  font-size: 0.92rem;
  line-height: 1.5;
}

.field-case-label {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-dark);
}

.field-case-context {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--walnut-2);
  background: rgba(98, 71, 50, 0.06);
  border-radius: 4px;
  color: var(--walnut-dark);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
}

.field-case-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
}

.field-case-cta {
  margin-top: auto;
  font-size: 0.95rem;
}

.field-case-cta-secondary {
  font-size: 0.92rem;
  color: var(--walnut);
  font-weight: 700;
}

.field-case-disclaimer {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.4;
}

.field-cases-note {
  max-width: 720px;
  margin: clamp(1.8rem, 3vw, 2.5rem) auto 0;
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-style: italic;
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .field-cases-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Social proof (post da Instagram / Facebook) --- */

.social-proof {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand-soft);
}

.social-proof > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.95rem, 1.6vw, 1.25rem);
  margin: 0 auto;
}

.social-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(98, 71, 50, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 34px rgba(51, 38, 29, 0.06);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 220ms ease, border-color 220ms ease;
  --mx: 50%;
  --my: 50%;
}

.social-post-card:hover {
  border-color: rgba(72, 107, 67, 0.46);
  box-shadow: 0 22px 56px rgba(38, 63, 45, 0.16);
  transform: translateY(-5px);
}

.social-post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--leaf);
  opacity: 0.9;
  transition: width 220ms ease, opacity 220ms ease;
  z-index: 2;
}

.social-post-card:hover::before {
  width: 6px;
  opacity: 1;
}

.social-post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    240px circle at var(--mx) var(--my),
    rgba(111, 138, 84, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 1;
}

.social-post-card:hover::after {
  opacity: 1;
}

.social-post-card > * {
  position: relative;
  z-index: 1;
}

.social-post-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem 0.65rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--walnut-dark);
  letter-spacing: 0.01em;
}

.social-post-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
}

.social-post-platform svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social-post-platform[data-platform="instagram"] {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
  color: #fff;
}

.social-post-platform[data-platform="facebook"] {
  background: #1877f2;
  color: #fff;
}

.social-post-handle {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-post-date {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.social-post-media {
  position: relative;
  aspect-ratio: 1 / 1; /* default per image / carousel */
  overflow: hidden;
  background: var(--sand);
  border-top: 1px solid rgba(98, 71, 50, 0.10);
  border-bottom: 1px solid rgba(98, 71, 50, 0.10);
}

/* Aspect-ratio in base al formato del post */
.social-post-media[data-format="image"]    { aspect-ratio: 1 / 1; }
.social-post-media[data-format="reel"]     { aspect-ratio: 9 / 16; }
.social-post-media[data-format="video"]    { aspect-ratio: 16 / 9; }

.social-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.social-post-card:hover .social-post-media img {
  transform: scale(1.04);
}

.social-post-media[data-type="placeholder"] {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(72, 107, 67, 0.08), rgba(217, 199, 165, 0.18)),
    var(--sand-soft);
}

.social-post-media[data-type="placeholder"]::before {
  content: "Placeholder";
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.6;
}

.social-post-media-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.32rem 0.55rem;
  background: rgba(24, 20, 15, 0.62);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.social-post-media-badge svg {
  width: 12px;
  height: 12px;
}

.social-post-body {
  padding: 0.95rem 1.1rem 0.75rem;
  color: var(--warm-black);
  font-size: 0.96rem;
  line-height: 1.5;
}

.social-post-body p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.1rem 1rem;
  margin-top: auto;
}

.social-post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--leaf-dark);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.social-post-link svg {
  width: 13px;
  height: 13px;
  transition: transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.social-post-card:hover .social-post-link svg,
.social-post-card:focus-visible .social-post-link svg {
  transform: translateX(3px);
}

.social-proof-follow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.8rem 2rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  font-size: 0.95rem;
}

.social-proof-follow .text-link {
  display: inline-block;
  text-align: center;
}

@media (max-width: 640px) {
  .social-proof-follow {
    flex-direction: column;
    gap: 0.95rem;
  }
  .social-proof-follow .text-link {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .social-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .social-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .social-post-card::after { display: none; }
  .social-post-card:hover .social-post-media img { transform: none; }
  .social-post-card:hover .social-post-link svg { transform: none; }
}

/* --- Testimonials --- */

.testimonials {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(0.95rem, 1.6vw, 1.25rem);
  max-width: var(--max);
  margin: 0 auto;
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 1.5rem 1.4rem 1.3rem;
  border: 1px solid rgba(98, 71, 50, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 12px 34px rgba(51, 38, 29, 0.06);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 220ms ease, border-color 220ms ease;
}

.testimonial-card:hover {
  border-color: rgba(72, 107, 67, 0.46);
  box-shadow: 0 22px 56px rgba(38, 63, 45, 0.16);
  transform: translateY(-5px);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--leaf);
  opacity: 0.9;
  transition: width 220ms ease, opacity 220ms ease;
}

.testimonial-card:hover::before {
  width: 6px;
  opacity: 1;
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  padding: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  color: var(--warm-black);
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-card figcaption {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  html {
    scroll-padding-top: 104px;
  }

  .site-header {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 1rem 0.85rem;
  }

  .brand img {
    width: 116px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.36rem;
    max-width: none;
    padding: 0.78rem;
    border: 1px solid rgba(98, 71, 50, 0.16);
    border-radius: 12px;
    background: rgba(251, 247, 238, 0.98);
    box-shadow: 0 18px 42px rgba(51, 38, 29, 0.12);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    padding: 0.62rem 0.78rem;
    border-radius: 7px;
    background: rgba(255, 253, 247, 0.64);
    font-size: 0.9rem;
  }

  .primary-nav .nav-cta {
    justify-content: center;
    margin-top: 0.3rem;
    background: var(--leaf);
  }
}

@media (max-width: 980px) {
  .hero,
  .section-split,
  .course,
  .bio,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    max-width: 100vw;
    padding: clamp(2.8rem, 8vw, 4.5rem) var(--pad);
  }

  .hero-home {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: start;
    width: min(100%, 620px);
  }

  .contact-copy {
    position: static;
  }

  .home-form-section .contact-copy,
  .home-form-section .contact-form {
    justify-self: stretch;
    max-width: 720px;
  }

  .page-course,
  .page-bio {
    justify-content: stretch;
  }

  .trust-strip,
  .steps,
  .principles-grid,
  .trainer-grid,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    align-items: start;
  }
}

/* ── Social channels ─────────────────────────────────────── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface-2, #f5f5f0);
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: var(--radius-card, 12px);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 220ms ease, border-color 220ms ease;
}

.social-card:hover {
  border-color: rgba(72, 107, 67, 0.46);
  box-shadow: 0 22px 56px rgba(38, 63, 45, 0.18);
  transform: translateY(-5px);
}

.social-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.social-card:hover .social-icon {
  transform: scale(1.08);
}

.social-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink, #0e0e0b);
}

.social-desc {
  font-size: 0.88rem;
  color: var(--muted, #6b6b60);
  line-height: 1.45;
}

/* ── Scroll-reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Trust-strip: entrata laterale (più adatta a un elenco orizzontale) */
.trust-strip p.reveal {
  transform: translateX(-14px);
}

.trust-strip p.reveal.is-visible {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Image-rise (immagini pagine interne) ────────────────── */
img.image-rise {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 820ms ease,
    translate 820ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--image-rise-delay, 0ms);
}

img.image-rise.is-revealed {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  img.image-rise {
    opacity: 1;
    translate: 0;
    transition: none;
  }
}

/* ── Word-stagger sui titoli ─────────────────────────────── */
.h-stagger .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
}

.h-stagger .word > .inner {
  display: inline-block;
  transform: translateY(108%);
  opacity: 0;
  transition: transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 600ms ease;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.h-stagger.is-animated .word > .inner {
  transform: translateY(0);
  opacity: 1;
}

/* Word-stagger H1 hero home: stagger leggermente più rapido (40ms)
   + delay base 150ms per sincronizzarsi con la cascata eyebrow→texts→CTA */
.hero-home h1.h-stagger .word > .inner {
  transition: transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 540ms ease;
  transition-delay: calc(150ms + var(--i, 0) * 40ms);
}

/* Overshoot/bounce sulla CTA primaria del hero
   easing con leggero overshoot (~6%) per dare presenza in entrata,
   senza esagerazione "bouncy" da agency */
.hero-actions .button-primary.hero-rise {
  animation-timing-function: cubic-bezier(0.34, 1.45, 0.5, 1);
}

@media (prefers-reduced-motion: reduce) {
  .h-stagger .word > .inner {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* ── Hero-rise (load-time animation) ─────────────────────── */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-rise-visual {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-rise {
  opacity: 0;
  animation: hero-rise 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--hero-delay, 0s);
  will-change: opacity, transform;
}

.hero-visual.hero-rise {
  animation-name: hero-rise-visual;
  animation-duration: 0.85s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rise {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 980px) {
  .social-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 96px;
  }

  body {
    background-size: 42px 42px, 42px 42px, auto;
  }

  .site-header {
    padding: 0.68rem 1rem 0.75rem;
  }

  .brand img {
    width: 106px;
  }

  .primary-nav a {
    font-size: 0.84rem;
  }

  .hero,
  .section {
    padding-left: max(1.15rem, 5vw);
    padding-right: max(1.15rem, 5vw);
  }

  .hero {
    gap: 1.8rem;
    padding-top: 2.55rem;
  }

  .hero-home {
    padding-top: 2.2rem;
    padding-bottom: 3.15rem;
  }

  .hero-visual {
    width: min(100%, 23rem);
  }

  .page-intro,
  .page-course,
  .page-bio {
    padding-top: 56px;
    padding-bottom: 44px;
  }

  .hero-copy,
  .hero-text {
    max-width: 100%;
  }

  .hero-copy::before {
    width: 56px;
    margin-bottom: 1.2rem;
  }

  h1 {
    font-size: clamp(2.08rem, 9vw, 2.58rem);
    line-height: 1.07;
    letter-spacing: -0.012em;
  }

  .hero-home h1 {
    max-width: min(100%, 23rem);
    font-size: clamp(1.55rem, 6.2vw, 1.95rem);
    line-height: 1.06;
    letter-spacing: -0.018em;
    overflow-wrap: break-word;
    text-wrap: normal;
  }

  .hero-home .hero-copy {
    min-width: 0;
  }

  .page-bio h1,
  .page-course h1,
  .page-intro h1 {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .page-course h1 {
    font-size: clamp(32px, 8.4vw, 40px);
    overflow-wrap: break-word;
    text-wrap: normal;
  }

  .page-bio h1 {
    font-size: clamp(32px, 8.4vw, 40px);
    overflow-wrap: break-word;
    text-wrap: normal;
  }

  .page-bio .eyebrow {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  h2 {
    font-size: clamp(1.78rem, 8vw, 2.55rem);
    overflow-wrap: break-word;
    text-wrap: normal;
  }

  .hero-text,
  .content-stack,
  .contact-copy p {
    font-size: 1rem;
  }

  .content-stack,
  .section-heading {
    min-width: 0;
    max-width: 100%;
  }

  .hero-text {
    max-width: 34ch;
  }

  .hero-home .hero-text {
    max-width: min(100%, 23rem);
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  .hero-actions,
  .field-grid,
  .trust-strip,
  .stats-strip,
  .steps,
  .principles-grid,
  .trainer-grid,
  .testimonials-grid,
  .social-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-home .hero-actions {
    gap: 0.7rem;
    margin-top: 1.55rem;
    max-width: min(100%, 23rem);
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 1rem;
  }

  .trust-strip {
    margin-top: 0;
    padding: 0;
  }

  .trust-strip p {
    border-left: 0;
    border-right: 0;
  }

  .stats-strip {
    margin-top: 1.25rem;
    padding: 0;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .course {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-course .course-copy,
  .page-course .course-list {
    width: 100%;
    max-width: calc(100vw - 2rem);
  }

  .course-list,
  .page-intro .content-stack {
    max-width: 100%;
  }

  .bio-image img {
    aspect-ratio: 4 / 3;
  }

  .page-bio .bio-image,
  .page-bio .bio-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .setup-visual img {
    width: 100%;
    max-height: 360px;
  }

  .site-footer {
    padding-left: max(1.15rem, 5vw);
    padding-right: max(1.15rem, 5vw);
  }
}

/* ── Scroll progress bar ─────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--leaf), var(--leaf-2));
  transform: scaleX(0);
  transform-origin: 0 0;
  transition: transform 80ms linear;
  will-change: transform;
}

/* ── Pulse soft sul CTA primario hero ────────────────────── */
@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(38, 63, 45, 0.16),
      0 0 0 0 rgba(72, 107, 67, 0.32);
  }
  50% {
    box-shadow: 0 14px 30px rgba(38, 63, 45, 0.22),
      0 0 0 10px rgba(72, 107, 67, 0);
  }
}

.hero .button-primary,
.hero-actions .button-primary {
  animation: cta-pulse 2.6s ease-in-out 3;
  animation-delay: 1.2s;
  animation-fill-mode: backwards;
}

.hero .button-primary:hover,
.hero-actions .button-primary:hover {
  animation-play-state: paused;
}

/* ── Sticky CTA mobile ───────────────────────────────────── */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 55;
  display: none;
  transform: translateX(-50%) translateY(120%);
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 800;
  font-size: 0.94rem;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(38, 63, 45, 0.28);
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 220ms ease, background 160ms ease;
  opacity: 0;
}

.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.sticky-cta.is-hidden-near-footer {
  transform: translateX(-50%) translateY(1rem);
  opacity: 0;
  pointer-events: none;
}

.sticky-cta:hover {
  background: var(--leaf-dark);
}

@media (max-width: 980px) {
  main#main {
    padding-bottom: 5rem;
  }

  .sticky-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
  }
}

/* ── Blur-up immagini grandi ─────────────────────────────── */
.img-blur-up {
  filter: blur(14px);
  scale: 1.02;
  transition: filter 480ms ease, scale 480ms ease;
  will-change: filter, scale;
}

.img-blur-up.is-loaded {
  filter: blur(0);
  scale: 1;
}

/* ── Parallax-ready hint per hero-visual ─────────────────── */
.hero-visual img {
  will-change: translate, scale;
}

/* ── Ken Burns lentissimo su hero image ──────────────────── */
@keyframes ken-burns {
  from { scale: 1; }
  to   { scale: 1.035; }
}

.hero-home .hero-visual img.is-loaded {
  animation: ken-burns 22s ease-in-out 1.6s infinite alternate;
}

@media (max-width: 980px) {
  .hero-home .hero-visual img.is-loaded {
    animation: none;
  }
}

/* ── Sezione libro (Francesco Lanza) ─────────────────────── */
.book-section {
  max-width: calc(var(--max) + (var(--pad) * 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(251, 247, 238, 0.94), rgba(234, 220, 197, 0.84)),
    var(--beige);
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.book-cover {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  perspective: 900px;
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: var(--warm-black);
  /* Ombra fisica + sfumatura laterale che simula il taglio delle pagine */
  box-shadow:
    /* taglio pagine sul lato destro (sottile striscia chiara) */
    inset -4px 0 6px -4px rgba(255, 253, 247, 0.55),
    /* rilegatura sul lato sinistro (sottile striscia scura) */
    inset 4px 0 6px -4px rgba(0, 0, 0, 0.35),
    /* ombra portata morbida */
    0 18px 36px rgba(51, 38, 29, 0.22),
    0 6px 14px rgba(51, 38, 29, 0.18);
  transform-origin: center center;
  transform-style: preserve-3d;
  transform:
    translateY(var(--lift))
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition: transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 320ms ease;
  will-change: transform;
}

.book-cover.is-tilting img {
  /* mentre il mouse si muove, il transform segue il cursore in tempo reale */
  transition: box-shadow 320ms ease;
}

.book-cover:hover {
  --lift: -4px;
}

.book-cover:hover img {
  box-shadow:
    inset -4px 0 6px -4px rgba(255, 253, 247, 0.55),
    inset 4px 0 6px -4px rgba(0, 0, 0, 0.35),
    0 28px 52px rgba(51, 38, 29, 0.28),
    0 10px 20px rgba(51, 38, 29, 0.20);
}

@media (hover: none) {
  /* su touch il tilt non ha senso (non c'è un cursore che si muove) */
  .book-cover {
    perspective: none;
  }
  .book-cover img {
    transform: none;
  }
}

.book-content {
  display: grid;
  gap: 1.05rem;
  min-width: 0;
}

.book-content h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.book-content p {
  margin: 0;
  color: var(--walnut-dark);
  font-size: 1.05rem;
}

.book-cta {
  justify-self: start;
  margin-top: 0.4rem;
  gap: 0.55rem;
}

.book-cta .book-cta-arrow {
  display: inline-block;
  transition: transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.book-cta:hover .book-cta-arrow,
.book-cta:focus-visible .book-cta-arrow {
  transform: translateX(3px);
}

.book-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Stagger sequence sull'entrata della sezione libro */
.book-content > * {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 680ms ease,
    translate 680ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--book-rise-delay, 0ms);
}

.book-content > *:nth-child(1) { --book-rise-delay: 140ms; }
.book-content > *:nth-child(2) { --book-rise-delay: 220ms; }
.book-content > *:nth-child(3) { --book-rise-delay: 300ms; }
.book-content > *:nth-child(4) { --book-rise-delay: 380ms; }
.book-content > *:nth-child(5) { --book-rise-delay: 460ms; }

.book-content.is-revealed > * {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .book-content > * {
    opacity: 1;
    translate: 0;
    transition: none;
  }
}

@media (max-width: 980px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.6rem, 4vw, 2.4rem);
    align-items: start;
  }

  .book-cover {
    max-width: 220px;
    margin: 0 auto;
  }

  .book-content {
    text-align: left;
  }

  .book-cta {
    justify-self: stretch;
  }

  .book-cta .button,
  .book-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-cover,
  .book-cover img,
  .book-cta .book-cta-arrow {
    transition: none;
  }
  .book-cover {
    --lift: 0px;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    perspective: none;
  }
  .book-cover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress > span,
  .hero .button-primary,
  .hero-actions .button-primary,
  .sticky-cta,
  .img-blur-up {
    animation: none !important;
    transition: none !important;
  }

  .img-blur-up {
    filter: none;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   SISTEMA UNIFICATO 3 SFONDI (C1 / C2 / C3)
   Ciclo cross-page: C1 → C2 → C3 → C1 → ...
   - C1 = beige base (--beige)         #f3ead8
   - C2 = beige intermedio (--beige-2) #eadcc5
   - C3 = sand quadretti  (--sand)     #d9c7a5
   Niente border-net, niente "fasce". Ogni sezione ha:
   - grid pattern 56x56 sottilissimo, coerente con --body
   - micro-fade verticale top 60-80px che fonde col colore precedente
   - texture grid leggermente più densa su C3 per coerenza con .sand storica
   ───────────────────────────────────────────────────────────── */

/* C1 — sezione "carta base" (transizione dolce da C3 del ciclo) */
.bg-c1 {
  background:
    /* griglia 56x56 sottilissima */
    linear-gradient(90deg,  rgba(24, 20, 15, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 20, 15, 0.026) 1px, transparent 1px),
    /* fade morbido dal precedente C3 */
    linear-gradient(180deg,
      rgba(217, 199, 165, 0.55) 0%,
      var(--beige) 80px,
      var(--beige) 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

/* C2 — sezione intermedia (transizione da C1) */
.bg-c2 {
  background:
    linear-gradient(90deg,  rgba(24, 20, 15, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 20, 15, 0.026) 1px, transparent 1px),
    linear-gradient(180deg,
      var(--beige) 0%,
      var(--beige-2) 60px,
      var(--beige-2) 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

/* C3 — sezione accento noce/quadretti (transizione da C2)
   Texture grid leggermente più densa, in armonia con .sand storica */
.bg-c3 {
  background:
    linear-gradient(90deg,  rgba(24, 20, 15, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 20, 15, 0.04) 1px, transparent 1px),
    linear-gradient(180deg,
      var(--beige-2) 0%,
      var(--sand) 80px,
      rgba(217, 199, 165, 0.92) 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

/* Override: la prima sezione subito dopo l'hero scuro (home)
   non deve avere il fade dal C3 ma una transizione dolce dal warm-black */
.hero-home + .bg-c1 {
  background:
    linear-gradient(90deg,  rgba(24, 20, 15, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 20, 15, 0.026) 1px, transparent 1px),
    linear-gradient(180deg,
      rgba(24, 20, 15, 0.06) 0%,
      var(--beige) 60px,
      var(--beige) 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

/* Background bg-c* full-width come .sand: lo sfondo si estende
   bordo-a-bordo del viewport. Il contenuto interno (section-heading,
   principles-grid, trainer-grid, ecc.) resta centrato grazie ai suoi
   max-width esistenti. NESSUNA regola `> *` qui: i grid items di
   .trust-strip e .stats-strip restano simmetrici. */
.bg-c1, .bg-c2, .bg-c3 {
  max-width: none;
}
