/* ===== Crescita Personale e Spirituale — public site (port of the mockup style.css) =====
   Tokens, base, home sections, modal, legal pages. Fonts: /assets/common/vendors/brand-fonts. */
:root {
  --cream: #faf5ee;
  --sand: #f1e8dc;
  --surface: #ffffff;
  --ink: #2f2a26;
  --muted: #6f655d;
  --clay: #b8664a;
  --clay-dark: #9a4f37;
  --clay-darker: #7d3f2c;
  --sage: #8a9a7b;
  --gold: #c9a46a;
  --plum: #3a2b33;
  --ok: #56644a;
  --ok-bg: #e6ebe0;
  --warn: #8a6420;
  --warn-bg: #fbf0dc;
  --err: #a8432f;
  --err-bg: #f6dcd5;
  --whatsapp: #15803f;
  --youtube: #e62117;
  --radius: 22px;
  --shadow: 0 20px 50px -25px color-mix(in srgb, var(--ink) 35%, transparent);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--muted);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, .modal-title { font-family: var(--serif); color: var(--ink); font-weight: 500; }
em { font-style: italic; color: var(--clay); }
:where(p, li, small, label, .brand-text, .lead-soft) em { color: var(--clay-dark); }
a { color: var(--clay-dark); }
a:hover { color: var(--clay-darker); }
:focus-visible { outline: 2px solid var(--clay-dark); outline-offset: 3px; }
:where(.section-dark, .cta, .course-hero, .path-card, .ar-unlock, .yt-facade, .buy-bar-dark) :focus-visible { outline-color: var(--surface); }
.text-ink { color: var(--ink); }
.text-muted-soft { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 500; padding: .6rem 1.4rem; min-height: 44px; transition: all .25s ease; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-clay { background: var(--clay-dark); color: var(--surface); border: 0; box-shadow: 0 10px 25px -10px color-mix(in srgb, var(--clay-dark) 70%, transparent); }
.btn-clay:hover, .btn-clay:active, .btn-clay:focus-visible { background: var(--clay-darker); color: var(--surface); }
.btn-clay:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--ink); background: transparent; border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.btn-ghost:hover { background: var(--surface); }
.btn-outline-ink { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: var(--surface); }
.btn-light-pill { background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink); }
.btn-light-pill:hover { background: var(--surface); transform: translateY(-2px); }
.btn-wa { background: var(--whatsapp); color: var(--surface); }
.btn-wa:hover { background: color-mix(in srgb, var(--whatsapp) 80%, var(--ink)); color: var(--surface); }

/* ---------- nav ---------- */
.site-nav {
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  padding: .8rem 0;
}
.site-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--cream) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--clay), var(--gold));
  color: var(--surface); font-size: 1.2rem;
}
.brand-lotus {
  display: block; width: 72%; height: 72%; background: currentColor;
  -webkit-mask: url("/assets/frontend/img/brand/lotus.svg") center / contain no-repeat; mask: url("/assets/frontend/img/brand/lotus.svg") center / contain no-repeat;
}
.brand-text { font-family: var(--serif); font-size: 1.15rem; line-height: 1.05; color: var(--ink); }
.nav-link { color: var(--ink) !important; font-weight: 500; position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--clay); transition: all .25s; transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 600; color: var(--clay-dark);
}
.eyebrow-light { color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 5rem 0 6rem; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.orb-1 { width: 420px; height: 420px; background: color-mix(in srgb, var(--clay) 40%, var(--surface)); top: -120px; right: -80px; }
.orb-2 { width: 360px; height: 360px; background: color-mix(in srgb, var(--sage) 40%, var(--surface)); bottom: -140px; left: -100px; }
.display-title { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.01em; }
.lead-soft { font-size: 1.15rem; max-width: 520px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--ink); line-height: 1; }
.hero-stats span { font-size: .82rem; }

.hero-photo { position: relative; max-width: 470px; margin-left: auto; }
.hero-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 80%;
  border-radius: 240px 240px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold); border-radius: 240px 240px var(--radius) var(--radius); z-index: -1;
}
.photo-badge {
  position: absolute; left: -40px; bottom: 40px; max-width: 260px;
  background: var(--surface); padding: 1.1rem 1.3rem; border-radius: 18px; box-shadow: var(--shadow);
}
.photo-badge i { color: var(--clay-dark); font-size: 1.6rem; line-height: 1; }
.photo-badge p { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin: .2rem 0; line-height: 1.3; }

/* ---------- sections ---------- */
.section { padding: 6rem 0; }
.section-tint { background: var(--sand); }
.section-dark { background: var(--plum); color: color-mix(in srgb, var(--surface) 75%, transparent); }
.section-title { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; }
.section-dark em, .cta em { color: var(--gold); }

.pillar {
  background: var(--surface); border-radius: 16px; padding: 1rem;
  display: flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 500;
}
.pillar i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--clay-dark); }

/* ---------- theme cards ---------- */
.theme-card {
  height: 100%; background: var(--surface); border-radius: var(--radius); padding: 2rem;
  cursor: pointer; position: relative; overflow: hidden;
  border: 1px solid transparent; transition: all .35s cubic-bezier(.2,.8,.2,1);
}
.theme-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 25%, transparent), transparent 70%); transition: transform .5s;
}
.theme-card:hover, .theme-card:focus-visible {
  transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--clay) 20%, transparent);
}
.theme-card:hover::after { transform: scale(1.6); }
.theme-card h3 { font-size: 1.7rem; margin: 1.2rem 0 .6rem; }
.theme-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--clay) 20%, var(--surface)), var(--sand)); color: var(--clay-dark); flex-shrink: 0;
}
.more { font-weight: 600; font-size: .9rem; color: var(--clay-dark); display: inline-block; padding-block: .65rem; }
.more i { transition: transform .25s; display: inline-block; }
.theme-card:hover .more i { transform: translateX(5px); }

/* ---------- path cards ---------- */
.path-card {
  min-height: 360px; border-radius: var(--radius); padding: 2.2rem; color: var(--surface);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  position: relative; overflow: hidden; transition: transform .35s;
}
.path-card:hover { transform: translateY(-6px); }
.path-card h3 { color: var(--surface); font-size: 2rem; }
.path-card p { color: var(--surface); }
.path-num { position: absolute; top: 1.4rem; right: 1.8rem; font-family: var(--serif); font-size: 4rem; opacity: .25; line-height: 1; }
.path-1, .path-clay { background: linear-gradient(160deg, color-mix(in srgb, var(--clay) 40%, var(--clay-dark)), var(--clay-darker)); }
.path-2, .path-sage { background: linear-gradient(160deg, color-mix(in srgb, var(--sage) 75%, var(--ink)), color-mix(in srgb, var(--sage) 58%, var(--ink))); }
.path-3, .path-plum { background: linear-gradient(160deg, color-mix(in srgb, var(--plum) 60%, var(--cream)), var(--plum)); }

/* ---------- pricing ---------- */
.price-card {
  height: 100%; padding: 2.2rem; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 5%, transparent); border: 1px solid color-mix(in srgb, var(--surface) 12%, transparent);
  display: flex; flex-direction: column; transition: transform .3s;
}
.price-card:hover { transform: translateY(-6px); }
.price-card h3 { color: var(--surface); font-size: 1.8rem; margin-top: 1rem; }
.price-card .tag { align-self: flex-start; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); font-weight: 600; }
.price { font-family: var(--serif); font-size: 2.6rem; color: var(--surface); margin: .4rem 0 1.2rem; }
.price .price-was { font-family: var(--sans); font-size: 1.1rem; margin-right: .5rem; text-decoration: line-through; color: color-mix(in srgb, var(--surface) 60%, transparent); }
.price small { font-family: var(--sans); font-size: .85rem; color: color-mix(in srgb, var(--surface) 50%, transparent); margin-left: .3rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 2rem; flex-grow: 1; }
.price-card li { padding: .45rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--surface) 12%, transparent); }
.price-card li i { color: var(--gold); margin-right: .5rem; }
.price-card.featured { background: linear-gradient(170deg, color-mix(in srgb, var(--clay) 35%, transparent), color-mix(in srgb, var(--surface) 5%, transparent)); border-color: color-mix(in srgb, var(--gold) 50%, transparent); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }

/* ---------- youtube band ---------- */
.yt-band {
  background: var(--surface); border-radius: var(--radius); padding: 2.8rem;
  box-shadow: var(--shadow); border-left: 6px solid var(--youtube);
}

/* ---------- faq ---------- */
.faq .accordion-item { border: 0; background: var(--surface); border-radius: 16px !important; margin-bottom: .8rem; overflow: hidden; }
.faq .accordion-button { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); background: var(--surface); box-shadow: none; padding: 1.2rem 1.5rem; }
.faq .accordion-button:not(.collapsed) { color: var(--clay-dark); }
.faq .accordion-body { padding: 0 1.5rem 1.4rem; }
.faq .faq-answer > :last-child { margin-bottom: 0; }

/* ---------- cta ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--plum), color-mix(in srgb, var(--plum) 70%, var(--clay-dark)));
  border-radius: 32px; padding: 5rem 2rem;
}
.cta > *:not(.hero-orb) { position: relative; }
.orb-3 { width: 380px; height: 380px; background: var(--clay); opacity: .35; top: -150px; right: -100px; }

/* ---------- form scrivimi ---------- */
.contact-card {
  margin-top: 2.5rem; background: var(--surface); border-radius: 32px; padding: 3.5rem;
  box-shadow: var(--shadow); scroll-margin-top: 90px;
}
.contact-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-points li { display: flex; align-items: center; gap: .7rem; padding: .45rem 0; color: var(--ink); }
.contact-points i { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sand); color: var(--clay-dark); flex-shrink: 0; }
.contact-points a { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.contact-points a:hover { color: var(--clay-dark); }
.contact-form .form-label { font-weight: 500; color: var(--ink); font-size: .92rem; margin-bottom: .35rem; }
.contact-form .optional { color: var(--muted); font-weight: 400; font-size: .82rem; }
.contact-form .form-control, .contact-form .form-select {
  background-color: var(--cream); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 14px;
  padding: .75rem 1rem; color: var(--ink);
}
.contact-form .form-select { padding-right: 2.5rem; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .form-control:focus, .contact-form .form-select:focus {
  background-color: var(--surface); border-color: var(--clay-dark); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--clay) 15%, transparent);
}
.contact-form .form-check-input:checked { background-color: var(--clay-dark); border-color: var(--clay-dark); }
.contact-form .form-check-input:focus { border-color: var(--clay-dark); box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--clay) 15%, transparent); }
.contact-form .form-check-label { font-size: .9rem; }
.contact-form .form-select.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { border-color: var(--clay-dark); box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--clay) 25%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--clay) 0%, transparent); } }
.contact-form [type="submit"] .label-busy { display: none; }
.contact-form [type="submit"].is-sending .label-idle { display: none; }
.contact-form [type="submit"].is-sending .label-busy { display: inline-flex; align-items: center; gap: .5rem; }
.form-status { border-radius: 14px; padding: .9rem 1.2rem; font-size: .95rem; display: flex; gap: .3rem; align-items: baseline; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.err { background: var(--err-bg); color: var(--err); }
.form-status[hidden] { display: none; }

.footer { padding: 2.5rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.footer a { color: var(--ink); }
.footer a:hover { color: var(--clay-dark); }
.footer .footer-admin { color: var(--muted); text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--muted) 50%, transparent); }
.footer .footer-admin:hover { color: var(--clay-dark); }
[data-contact][hidden] { display: none !important; }

/* ---------- modal ---------- */
.modal-backdrop.show { opacity: .45; backdrop-filter: blur(4px); }
.soft-modal { border: 0; border-radius: 28px; background: var(--cream); box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--ink) 50%, transparent); }
.soft-modal .modal-header { padding: 1.8rem 2rem .5rem; }
.soft-modal .modal-title { font-size: 2rem; margin: 0; line-height: 1.1; }
.soft-modal .modal-body { padding: 1rem 2rem; }
.soft-modal .modal-footer { padding: .5rem 2rem 1.8rem; }
.modal.fade .modal-dialog { transform: translateY(30px) scale(.97); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.modal.show .modal-dialog { transform: none; }
.lead-q { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-style: italic; }
.soft-modal blockquote {
  margin: 1.5rem 0; padding: 1.2rem 1.5rem; border-radius: 16px;
  background: var(--surface); border-left: 4px solid var(--gold);
  font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.4;
}
.soft-modal .note { font-size: .92rem; background: var(--sand); padding: .9rem 1.2rem; border-radius: 12px; }
.check-list, .q-list { list-style: none; padding: 0; }
.check-list li, .q-list li { position: relative; padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .55rem; color: var(--sage); font-size: 1.2rem; }
.q-list li::before { content: "?"; position: absolute; left: .3rem; font-family: var(--serif); font-size: 1.4rem; color: var(--clay-dark); top: .3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chips span { background: var(--surface); border: 1px solid color-mix(in srgb, var(--clay) 25%, transparent); color: var(--ink); padding: .4rem .9rem; border-radius: 999px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .hero { padding: 3rem 0 4rem; }
  .hero-photo { margin: 0 auto; }
  .photo-badge { left: 10px; bottom: 16px; }
  .price-card.featured { transform: none; }
  .section { padding: 4.5rem 0; }
}
@media (max-width: 575px) {
  .hero-stats { gap: 1.2rem !important; }
  .hero-stats strong { font-size: 1.6rem; }
  .contact-card { padding: 1.8rem 1.3rem; border-radius: 24px; }
  .contact-points a span { font-size: .82rem; }
  .cta { padding: 3.5rem 1.3rem; }
  .soft-modal .modal-header, .soft-modal .modal-body, .soft-modal .modal-footer { padding-left: 1.3rem; padding-right: 1.3rem; }
}

/* ===== Additions for the framework port (not in the mockup) ===== */

/* ---------- accessibility ---------- */
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 2000; background: var(--ink); color: var(--surface); padding: .6rem 1rem; border-radius: 0 0 12px 12px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 0; color: var(--surface); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- nav fit (5 links + actions on one row from xl) ---------- */
.site-nav .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399px) {
  .site-nav .navbar-nav .nav-link { padding-left: .55rem; padding-right: .55rem; }
  .site-nav a.nav-account { width: 44px; height: 44px; padding: 0; justify-content: center; }
}

/* ---------- language switch (IT / EN) ---------- */
.lang-switch { display: inline-flex; align-items: stretch; gap: 2px; height: 44px; box-sizing: border-box; padding: 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; border: 0; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .08em; padding: 0 .75rem; border-radius: 999px; line-height: 1; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--surface); }
.lang-switch a:hover:not([aria-current="true"]) { color: var(--clay-dark); }
.lang-switch a:focus-visible { outline: 2px solid var(--clay-dark); outline-offset: 3px; }

/* ---------- hero arch (decorative panel in place of the mockup photo) ---------- */
.hero-arch { position: relative; max-width: 470px; margin-left: auto; }
.hero-arch::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold); border-radius: 240px 240px var(--radius) var(--radius); z-index: 0;
}
.hero-arch-inner {
  position: relative; z-index: 1; aspect-ratio: 4/5; border-radius: 240px 240px var(--radius) var(--radius); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1.2rem; padding: 24% 2rem 2rem; text-align: center;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--surface) 35%, transparent), transparent 45%), linear-gradient(160deg, color-mix(in srgb, var(--clay) 85%, var(--surface)), var(--clay) 55%, var(--clay-darker));
  color: var(--surface); box-shadow: var(--shadow);
}
.hero-arch-inner { aspect-ratio: auto; min-height: 560px; padding: 6.5rem 2rem 2.2rem; gap: 0; }
.hero-arch-eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .9; margin-bottom: .8rem; }
.hero-arch-text { font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.2; max-width: 320px; margin: 0 0 1.8rem; }
.hero-start { display: flex; flex-direction: column; gap: .85rem; width: 100%; max-width: 350px; }
.hero-start-row {
  display: flex; align-items: center; gap: 1rem; min-height: 74px; padding: .9rem 1.1rem; border-radius: 18px; text-align: left; text-decoration: none;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 12%, transparent);
  transition: background .2s ease, box-shadow .2s ease;
}
.hero-start-row > i:first-child { flex: 0 0 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: var(--sand); color: var(--clay-dark); }
.hero-start-row span { display: flex; flex-direction: column; gap: .2rem; min-width: 0; line-height: 1.3; }
.hero-start-row strong { font-weight: 600; font-size: 1rem; }
.hero-start-row small { color: var(--muted); font-size: .82rem; }
.hero-start-go { flex: 0 0 auto; margin-left: auto; padding-left: .25rem; color: var(--clay-dark); transition: transform .2s ease; }
.hero-start-row:hover { background: var(--surface); color: var(--ink); box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 18%, transparent); }
.hero-start-row:hover .hero-start-go { transform: translateX(3px); }
.hero-start-row:focus-visible { outline: 2px solid var(--surface); outline-offset: 3px; }
.hero-arch-quote { margin: auto 0 0; padding-top: 1.6rem; max-width: 320px; }
.hero-arch-quote::before { content: ""; display: block; width: 44px; height: 1px; margin: 0 auto 1.1rem; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.hero-arch-quote blockquote { font-family: var(--serif); font-style: italic; font-size: 1.08rem; line-height: 1.4; margin: 0 0 .4rem; opacity: .95; }
.hero-arch-quote figcaption { font-size: .78rem; letter-spacing: .08em; opacity: .8; }

/* ---------- about portrait (local file, pre-cropped to 600:520 head and shoulders) ---------- */
.about-photo { position: relative; max-width: 380px; margin: 0 auto 1rem 0; }
.about-photo picture, .yt-band picture { display: block; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 600/520; object-fit: cover; object-position: 50% 50%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo figcaption { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.1rem; margin-top: .8rem; }

/* ---------- youtube: channel cover + click-to-load embed ---------- */
.yt-band { padding: 0; overflow: hidden; }
.yt-cover { display: block; width: 100%; height: auto; aspect-ratio: 2048/339; object-fit: cover; background: var(--plum); }
.yt-body { padding: 2.8rem; }
.yt-facade {
  position: relative; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 18px; overflow: hidden; padding: 1.2rem 1.4rem;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left; color: var(--surface);
  background: radial-gradient(circle at 75% 20%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 55%), linear-gradient(150deg, color-mix(in srgb, var(--plum) 80%, var(--ink)), color-mix(in srgb, var(--plum) 60%, var(--ink)) 60%, var(--plum));
  box-shadow: var(--shadow);
}
.yt-facade .yt-play {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; background: var(--youtube); color: var(--surface); font-size: 2rem; padding-left: 4px; transition: transform .25s;
  box-shadow: 0 15px 35px -12px color-mix(in srgb, var(--ink) 60%, transparent);
}
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt-facade:focus-visible { outline: 2px solid var(--clay-dark); outline-offset: 3px; }
.yt-facade .yt-title { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.15; position: relative; }
.yt-facade .yt-note { font-size: .78rem; color: color-mix(in srgb, var(--surface) 75%, transparent); position: relative; margin-top: .3rem; }
.yt-frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 18px; display: block; background: var(--ink); }

/* ---------- footer ---------- */
.footer-legal { font-size: .82rem; color: var(--muted); text-align: center; margin: 1rem auto 0; max-width: 80ch; text-wrap: balance; }
.footer-legal a { color: var(--muted); }
.footer-social { gap: .25rem !important; }
.footer-social a { color: var(--ink); text-decoration: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.footer-social a:hover { color: var(--clay-dark); }

/* ---------- legal pages (privacy, cookie, condizioni di vendita) ---------- */
.legal-hero { padding: 4rem 0 2rem; position: relative; overflow: hidden; }
.legal-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.05; }
.legal-hero .updated { font-size: .88rem; }
.legal-doc { background: var(--surface); border-radius: var(--radius); padding: 2.6rem; margin-bottom: 5rem; box-shadow: var(--shadow); color: var(--ink); }
.legal-doc h2 { font-size: 1.75rem; margin: 2.2rem 0 .8rem; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 1.3rem; margin: 1.4rem 0 .5rem; }
.legal-doc p, .legal-doc li { color: color-mix(in srgb, var(--ink) 55%, var(--muted)); overflow-wrap: anywhere; }
.legal-doc ul { padding-left: 1.2rem; }
.legal-doc li { margin-bottom: .35rem; }
.legal-doc .legal-box { background: var(--sand); border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0; }
.legal-doc table { width: 100%; font-size: .9rem; margin: 1rem 0; border-collapse: collapse; }
.legal-doc th, .legal-doc td { padding: .55rem .6rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); text-align: left; vertical-align: top; }
.legal-doc th { color: var(--ink); font-weight: 600; background: var(--cream); }
.legal-toc { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.legal-toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; padding: .3rem .95rem; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; }
.legal-toc a:hover { background: var(--clay-dark); color: var(--surface); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 991px) {
  .hero-arch { margin: 0 auto; }
}
@media (max-width: 575px) {
  .hero-arch::before { inset: 12px -10px -12px 10px; }
  .hero-arch-inner { min-height: 0; padding: 4.5rem 1.1rem 1.8rem; }
  .hero-start-row { padding: .8rem .9rem; gap: .8rem; }
  .yt-body { padding: 1.6rem 1.3rem; }
  .legal-doc { padding: 1.5rem 1.2rem; }
  .legal-hero { padding: 2.8rem 0 1.5rem; }
  .brand-text { font-size: 1rem; }
}

/* ===== Mobile UX (phase U1): header, menu sheet, modals, snackbar, bottom bars, home, legal ===== */

/* ---------- header: compact on phones, hides on scroll down (layout.js) ---------- */
.site-header-host { transition: top .25s ease; }
.site-header-host.is-hidden { top: -100px; }
.site-header-host.menu-open { z-index: 1050; }
.site-header-host.menu-open .site-nav::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 50%, transparent); pointer-events: none; }
.navbar-toggler { width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; font-size: 1.75rem; line-height: 1; color: var(--ink); border-radius: 50%; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:focus-visible { outline: 2px solid var(--clay-dark); outline-offset: 2px; }
@media (max-width: 575.98px) {
  .site-nav { padding: .45rem 0; }
  .brand-mark { width: 36px; height: 36px; font-size: 1rem; }
  .site-nav .navbar-brand { margin-right: .5rem; }
  html { scroll-padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) { .site-header-host { transition: none; } }

/* ---------- menu sheet (#siteNav, Bootstrap offcanvas below xl, inline navbar from xl) ---------- */
@media (min-width: 1200px) {
  .site-sheet .offcanvas-body { flex-grow: 1; align-items: center; }
  .site-sheet .sheet-row, .site-sheet .sheet-account { display: none; }
}
@media (max-width: 1199.98px) {
  .site-sheet { --bs-offcanvas-width: min(380px, 100vw); background: var(--cream); border-left: 0 !important; box-shadow: -20px 0 50px -25px color-mix(in srgb, var(--ink) 45%, transparent); }
  .site-sheet .offcanvas-header { min-height: 60px; padding: .45rem .75rem .45rem 1.25rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
  .site-sheet .offcanvas-body { display: flex; flex-direction: column; padding: .5rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
  .site-sheet .navbar-nav { margin: 0 !important; }
  .site-sheet .nav-link { display: flex; align-items: center; min-height: 52px; padding: 0 .25rem !important; font-family: var(--serif); font-size: 1.35rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
  .site-sheet .nav-link::after { display: none; }
  .site-sheet .nav-link.active { box-shadow: inset 3px 0 0 var(--clay-dark); padding-left: .85rem !important; }
  .site-sheet .nav-actions { margin-top: auto; padding-top: 1.5rem; flex-direction: column; flex-wrap: nowrap !important; align-items: stretch !important; gap: .5rem !important; }
  .site-sheet .nav-actions > .sheet-account, .site-sheet .nav-actions > .nav-account { order: 1; }
  .site-sheet .nav-actions > .sheet-row { order: 2; }
  .site-sheet .nav-actions > .lang-switch { order: 3; }
  .site-sheet a.nav-account { width: 100%; max-width: none; min-height: 52px; justify-content: flex-start; gap: .75rem; padding: 0 1rem; border-radius: 14px; background: var(--surface); border-color: transparent; }
  .site-sheet a.nav-account i { color: var(--clay-dark); font-size: 1.15rem; }
  .site-sheet .lang-switch { height: auto; width: 100%; }
  .site-sheet .lang-switch a { flex: 1; min-height: 44px; font-size: .9rem; }
}
.site-sheet:focus, .site-sheet:focus-visible { outline: none; }
.site-sheet-close { box-sizing: border-box; width: 44px; height: 44px; padding: 0; margin: 0 0 0 auto !important; background-size: .95rem; border-radius: 50%; opacity: .75; }
.sheet-row {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 52px; padding: 0 1rem; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--ink); font-weight: 500; text-align: left; text-decoration: none; position: relative;
}
.sheet-row i { color: var(--clay-dark); font-size: 1.15rem; }
.sheet-row:hover, .sheet-row.active { color: var(--clay-dark); background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clay-dark) 35%, transparent); }
.sheet-row .cart-count { position: static; margin-left: auto; border-color: var(--surface); }
.sheet-account { background: var(--surface); border-radius: 16px; padding: .35rem 0; }
.sheet-account .sheet-row { background: transparent; border-radius: 12px; }
.sheet-account-name { margin: 0; padding: .45rem 1rem .25rem; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }

/* ---------- modals: 44px close, full-screen sheet on phones (modal-fullscreen-sm-down) ---------- */
.soft-modal .btn-close { box-sizing: border-box; width: 44px; height: 44px; padding: 0; margin: -.5rem -.75rem -.5rem auto; background-size: .9rem; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 575.98px) {
  .modal-fullscreen-sm-down .soft-modal { border-radius: 0; }
  .modal-fullscreen-sm-down .soft-modal .modal-header { min-height: 56px; padding-top: .75rem; padding-bottom: .5rem; align-items: flex-start; }
  .modal-fullscreen-sm-down .soft-modal .modal-title { font-size: 1.6rem; }
  .modal-fullscreen-sm-down .soft-modal .modal-footer { padding-top: .75rem; padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent) !important; flex-wrap: nowrap; }
  .modal-fullscreen-sm-down .soft-modal .modal-footer > .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 1rem; }
  .modal-fullscreen-sm-down .soft-modal .modal-footer > .btn-outline-ink, .modal-fullscreen-sm-down .soft-modal .modal-footer > .btn-ghost { flex: 0 0 auto; }
}

/* ---------- snackbar (Shop.toast) ---------- */
.snackbar {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom) + var(--bar-h, 0px)); z-index: 1085;
  transform: translate(-50%, 160%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
  display: flex; align-items: center; gap: .75rem; width: max-content; max-width: calc(100vw - 2rem); min-height: 48px;
  padding: .3rem .4rem .3rem 1.1rem; border-radius: 16px; background: var(--ink); color: var(--surface); font-size: .95rem; box-shadow: var(--shadow);
}
.snackbar.show { transform: translate(-50%, 0); visibility: visible; }
.snackbar-action {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border: 0; border-radius: 12px;
  background: transparent; color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.snackbar-action:hover { color: var(--surface); background: color-mix(in srgb, var(--surface) 8%, transparent); }
.snackbar :focus-visible { outline-color: var(--surface); }

/* ---------- bottom action bar (course buy bar, cart total bar; phones/tablets only) ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: var(--surface);
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: 0 -14px 30px -20px color-mix(in srgb, var(--ink) 50%, transparent);
  padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
}
.bottom-bar.show { transform: none; visibility: visible; }
.bottom-bar > .container { display: flex; align-items: center; gap: .9rem; }
.bottom-bar-info { flex: 1 1 auto; min-width: 0; line-height: 1.15; }
.bottom-bar-label { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bottom-bar-price { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); white-space: nowrap; }
.bottom-bar-price s { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-left: .35rem; }
.bottom-bar .btn { flex-shrink: 0; min-height: 48px; white-space: nowrap; padding-inline: 1.3rem; }
@media (max-width: 991.98px) { .has-bottom-bar #main { padding-bottom: 5.5rem; } }
@media (min-width: 992px) { .bottom-bar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .bottom-bar, .snackbar { transition: none; } }

/* ---------- home on phones: compact themes, snap rails, shorter hero ---------- */
#chi-sono p { max-width: 68ch; }
@media (max-width: 575.98px) {
  .hero { padding: 2rem 0 3rem; }
  .hero .display-title { font-size: 2.45rem; }
  .hero .lead-soft { font-size: 1.05rem; margin-top: 1rem !important; }
  .hero-stats { margin-top: 1.75rem !important; }
  .section { padding: 3.5rem 0; }
  #temi .text-center.mb-5, #percorsi .mb-5, #consulenze .mb-5 { margin-bottom: 1.75rem !important; }
  #temi .row { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
  .theme-card { padding: 1.1rem 1rem; border-radius: 18px; display: flex; flex-direction: column; gap: .7rem; }
  .theme-card .theme-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 1.2rem; }
  .theme-card h3 { font-size: 1.25rem; margin: 0; line-height: 1.15; }
  .theme-card p, .theme-card .more { display: none; }
  .about-photo { max-width: 240px; }
  .path-card { min-height: 300px; padding: 1.6rem; }
  .price-card { padding: 1.6rem; }
  .snap-rail {
    display: grid !important; grid-auto-flow: column; grid-auto-columns: 84%; column-gap: .9rem; row-gap: 0;
    justify-content: start !important;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: .75rem;
    padding: .5rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--clay-dark) 50%, transparent) transparent;
  }
  .snap-rail > * { width: auto; max-width: none; padding: 0; margin-top: 0; scroll-snap-align: start; }
  .section-dark .snap-rail { scrollbar-color: color-mix(in srgb, var(--gold) 60%, transparent) transparent; }
}

/* ---------- legal pages: 44px TOC rows, floating "Indice" pill (layout.js) ---------- */
.toc-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1020;
  display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1.15rem; border-radius: 999px;
  background: var(--ink); color: var(--surface); font-weight: 500; text-decoration: none; box-shadow: var(--shadow);
  transform: translateY(160%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s;
}
.toc-fab.show { transform: none; visibility: visible; }
.toc-fab:hover { color: var(--surface); background: var(--plum); }
@media (prefers-reduced-motion: reduce) { .toc-fab { transition: none; } }
@media (max-width: 575.98px) {
  .legal-hero { padding: 1.8rem 0 1.2rem; }
  .legal-hero h1 { font-size: 2.1rem; }
  .legal-hero .lead-soft { font-size: 1rem; }
  .legal-doc h2 { font-size: 1.5rem; }
  .legal-toc { gap: .35rem; }
}

/* ---------- nav: store dropdown (desktop) and labelled group (phone sheet) ---------- */
.site-nav .nav-drop-toggle { display: inline-flex; align-items: center; gap: .3rem; background: transparent; border: 0; }
.site-nav .nav-drop-toggle .bi { font-size: .7rem; transition: transform .2s; }
.site-nav .nav-drop-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.site-nav .soft-dropdown .dropdown-item.active { background: var(--sand); color: var(--clay-dark); }
@media (min-width: 1200px) {
  .site-nav .nav-link.active::after { width: 60%; }
}
.sheet-group { padding: .35rem 0 .75rem; border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.sheet-group-label { display: flex; align-items: center; min-height: 52px; padding: 0 .25rem; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.sheet-group.has-active .sheet-group-label { box-shadow: inset 3px 0 0 var(--clay-dark); padding-left: .85rem; }
.sheet-group ul { display: flex; flex-direction: column; gap: .35rem; }

/* Empty catalogue: non-clickable "soon" item (nav dropdown, phone sheet, home start rows) */
.is-soon { cursor: default; }
.btn.is-soon, .btn.is-soon:hover { display: inline-flex; align-items: center; gap: .6rem; pointer-events: none; background: transparent; border-color: color-mix(in srgb, var(--ink) 20%, transparent); color: var(--muted); }
.soon-badge { flex: 0 0 auto; margin-left: auto; padding: .2rem .6rem; border-radius: 999px; background: var(--sand); color: var(--clay-dark); font-size: .68rem; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.soon-strip { padding: .4rem 1rem; background: var(--sand); border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); font-size: .8rem; line-height: 1.5; text-align: center; text-wrap: balance; }
.soon-strip .soon-badge { display: inline-block; margin-left: .35rem; background: var(--surface); vertical-align: middle; }
body:has(#playerRoot) .soon-strip { display: none; }
.site-nav .soft-dropdown .dropdown-item.is-soon { color: var(--muted); background: transparent; opacity: 1; }
.sheet-row.is-soon, .sheet-row.is-soon:hover { color: var(--muted); box-shadow: none; }
.sheet-row.is-soon > i, .site-nav .soft-dropdown .dropdown-item.is-soon > i { color: var(--muted); }
.hero-start-row.is-soon, .hero-start-row.is-soon:hover { background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 12%, transparent); }
.hero-start-row.is-soon strong, .hero-start-row.is-soon > i:first-child { color: var(--muted); }
