:root {
  color-scheme: dark;
  --ink: #111210;
  --panel: #1d1e1a;
  --paper: #f7f7f2;
  --white: #fff;
  --lime: #d3f63c;
  --muted: #c3c6b8;
  --soft-ink: #44483c;
  --line: #44483c;
  --line-light: #d8dacf;
  --display: Impact, Haettenschweiler, "Arial Narrow", "Arial Black", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(1.125rem, 4.5vw, 4rem);
  --header-height: 4.375rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-height) + 1.25rem); }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.6 var(--body); overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
h2 { font-size: clamp(2.65rem, 8.3vw, 5.85rem); line-height: .96; }
h3 { font-size: 1.375rem; }
p + p { margin-top: 1rem; }
::selection { color: var(--ink); background: var(--lime); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.primary:focus-visible, .on-lime:focus-visible { outline: 3px solid var(--ink); box-shadow: 0 0 0 7px var(--white); }

.shell { width: min(100% - var(--gutter) * 2, 78rem); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.light { background: var(--paper); color: var(--ink); color-scheme: light; }
.lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.55; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; top: .75rem; left: .75rem; z-index: 20; padding: .8rem 1rem; color: var(--ink); background: var(--lime); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font: 700 .875rem/1.45 var(--mono);
  letter-spacing: .065em;
  text-transform: uppercase;
}
.eyebrow span { flex: 0 0 1.5rem; height: 2px; background: var(--lime); }
.light .eyebrow span, .contact .eyebrow span { background: var(--ink); }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .68rem 1rem;
  border: 1px solid transparent;
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button:hover { background: var(--white); }
.primary { background: var(--lime); border-color: var(--lime); }
.primary:hover { background: var(--white); border-color: var(--white); }
.outline { border-color: currentColor; color: inherit; background: transparent; }
.outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-lime { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-lime:hover { background: #32362a; border-color: #32362a; }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 700; text-underline-offset: .26em; }
.text-link:hover { text-decoration-thickness: .16em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }

.header { position: relative; z-index: 5; border-bottom: 1px solid #2d3027; background: var(--ink); }
.has-js .header { position: sticky; top: 0; }
.header-inner { position: relative; display: flex; min-height: var(--header-height); align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; text-decoration: none; }
.brand img { width: 2.625rem; height: auto; mix-blend-mode: screen; }
.brand strong, .brand small { display: block; line-height: 1.18; }
.brand strong { font-weight: 850; letter-spacing: .075em; }
.brand small { margin-top: .2rem; color: var(--muted); font-size: .875rem; }
.nav { display: flex; flex: 1 1 100%; flex-wrap: wrap; gap: 0 1rem; }
.nav a, .footer nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}
.nav a:hover, .footer nav a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: .24em; }
.menu-toggle { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border: 1px solid #828579; color: var(--paper); background: transparent; font-weight: 700; }
.menu-toggle span { display: inline-block; width: .9rem; height: .55rem; border-block: 1px solid currentColor; }
.menu-toggle[aria-expanded="true"] span { height: 0; border-top: 0; }
.has-js .nav { display: none; }
.has-js .nav.is-open {
  position: absolute;
  inset: calc(100% + 1px) calc(-1 * var(--gutter)) auto;
  display: grid;
  gap: 0;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  padding: .5rem var(--gutter) 1rem;
  background: var(--ink);
  border-bottom: 1px solid #76796d;
}
.has-js .nav.is-open a { min-height: 3rem; padding-inline: .5rem; border-bottom: 1px solid #3c4035; }
.header-cta { display: none; }

.hero { background: radial-gradient(ellipse at 70% 45%, #22271a, var(--ink) 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { padding: clamp(3rem, 7vw, 5.75rem) 0 2.15rem; }
.hero .eyebrow { color: var(--muted); }
.hero h1 {
  font-size: clamp(2.62rem, 11.6vw, 5.7rem);
  line-height: .93;
  letter-spacing: -.008em;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero .lead { max-width: 32rem; margin-top: 1.4rem; color: #e0e1d8; }
.hero .actions { margin-top: 1.4rem; }
.hero-note { margin-top: .75rem; color: var(--muted); font: 500 .875rem/1.45 var(--mono); }
.hero-photo { position: relative; display: grid; grid-template-areas: "portrait"; min-width: 0; background: #171915; }
.hero-photo picture { display: block; grid-area: portrait; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1.17; object-fit: cover; object-position: 50% 33%; }
.hero-photo figcaption {
  position: relative;
  grid-area: portrait;
  align-self: end;
  margin: clamp(.55rem, 1.5vw, 1.15rem);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem 1rem;
  padding: .75rem 1rem;
  background: #141610;
  border-inline-start: 2px solid var(--lime);
}
.hero-photo figcaption span { color: var(--muted); font: .875rem/1.45 var(--mono); }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin-bottom: clamp(1.9rem, 4.2vw, 3.75rem); }
.section-heading > p { align-self: end; max-width: 33rem; font-size: 1.125rem; }
.light .section-heading > p, .light .plan > p:not(.plan-type), .light .coach-copy > p:not(.eyebrow) { color: var(--soft-ink); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.plan { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line-light); }
.plan.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); border-top: .25rem solid var(--lime); }
.plan-type { margin-bottom: 1.3rem; font: 700 .875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .045em; }
.plan.featured .plan-type { color: var(--lime); }
.plan h3 { margin-bottom: .85rem; font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 850; letter-spacing: -.045em; }
.light .plan.featured > p:not(.plan-type) { color: var(--muted); }
.plan ul { display: grid; gap: .55rem; padding: 1.1rem 0 0; margin: 1.1rem 0 1.55rem; border-top: 1px solid var(--line-light); list-style: none; }
.plan.featured ul { border-color: var(--line); }
.plan li { display: grid; grid-template-columns: .65rem minmax(0, 1fr); align-items: baseline; gap: .55rem; }
.plan li::before { content: ""; width: .42rem; height: .42rem; border: 1px solid currentColor; transform: translateY(-.1rem); }
.plan.featured li::before { border-color: var(--lime); }
.plan .button { align-self: stretch; margin-top: auto; }
.plan-help { margin-top: 1rem; }

.method .section-heading > p, .steps p { color: var(--muted); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding: 0; margin: 0; list-style: none; }
.steps li { padding-top: 1.1rem; border-top: 1px solid #626656; }
.step-number { display: block; margin-bottom: .8rem; color: var(--lime); font: 700 1rem/1.4 var(--mono); }
.steps h3 { margin-bottom: .65rem; }
.coach-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.8rem, 6vw, 6.5rem); }
.coach-photo { background: var(--ink); border-bottom: .25rem solid var(--lime); }
.coach-photo img { width: 100%; height: auto; aspect-ratio: 1.08; object-fit: cover; object-position: 50% 35%; }
.coach-copy h2 { margin-bottom: 1.25rem; }
.coach-copy .lead { font-weight: 650; }
.qualifications { margin: 1.4rem 0 .75rem; }
.qualifications div { display: grid; gap: .1rem .75rem; padding-block: .7rem; border-top: 1px solid var(--line-light); }
.qualifications dt { font-weight: 750; }
.qualifications dd { color: var(--soft-ink); }

.gallery-section { background: var(--panel); padding-block: clamp(3.2rem, 7vw, 6rem); }
.gallery-section h2 { margin-bottom: 1.65rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gallery-grid a { display: block; overflow: hidden; background: var(--ink); }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: .79; object-fit: cover; object-position: 50% 37%; transition: transform .24s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-more { margin-top: 1.1rem; }
.gallery-more .gallery-grid { margin-top: .85rem; }
summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding-block: .75rem;
  font-weight: 750;
  line-height: 1.35;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: 0 0 .55rem; height: .55rem; margin-right: .25rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.12rem) rotate(45deg); }
details[open] > summary::after { transform: translateY(.12rem) rotate(225deg); }
.gallery-more summary { max-width: 17rem; padding-inline: .9rem; border: 1px solid #828579; }
.gallery-more summary:hover, .privacy summary:hover { color: var(--lime); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem 3rem; }
.faq-list details { border-top: 1px solid #c5cabb; }
.faq-list details:last-child { border-bottom: 1px solid #c5cabb; }
.faq-list summary { min-height: 3.7rem; }
.faq-list summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.faq-list p { max-width: 36rem; padding-bottom: 1.2rem; color: var(--soft-ink); }

.contact { background: var(--lime); color: var(--ink); color-scheme: light; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.contact-copy .lead { max-width: 29rem; margin: 1.25rem 0; }
.contact-list { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.contact-list a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; text-underline-offset: .24em; overflow-wrap: anywhere; }
.questionnaire { min-width: 0; padding: clamp(1.05rem, 4.25vw, 2.35rem); background: var(--paper); border: 1px solid var(--ink); }
.questionnaire h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 850; }
.questionnaire > p { margin-top: .45rem; color: var(--soft-ink); }
.questionnaire form { margin-top: 1.25rem; }
.form-field { margin-bottom: 1rem; }
.questionnaire label { display: block; margin-bottom: .35rem; font-weight: 700; }
.questionnaire label small { color: var(--soft-ink); font-size: .875rem; font-weight: 500; }
.questionnaire select, .questionnaire textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .55rem .65rem;
  border: 1px solid #686d60;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}
.questionnaire textarea { resize: vertical; }
.form-note { margin: .55rem 0 .85rem; color: var(--soft-ink); font-size: .875rem; }
.draft { margin-top: 1.4rem; padding-top: 1.15rem; border-top: 1px solid #b2b7a9; }
.draft .actions { gap: .5rem; }
#stato-copia:empty { margin: 0; }

.footer { padding: 2.1rem 0 2rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.privacy { margin-top: 1rem; border-top: 1px solid var(--line); }
.privacy summary { max-width: 19rem; }
.privacy p, .footer-copy { max-width: 52rem; color: var(--muted); font-size: .875rem; }
.footer-copy { margin-top: .8rem; }

dialog { max-width: min(calc(100% - 1.25rem), 48rem); max-height: calc(100% - 1rem); border: 1px solid #7d8270; background: var(--panel); color: var(--paper); padding: 0; }
dialog::backdrop { background: #000d; }
.photo-viewer { padding: clamp(.55rem, 2vw, 1rem); }
.photo-viewer header, .photo-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.photo-viewer h2 { font: 800 1rem/1.25 var(--body); text-transform: none; }
.photo-viewer img { width: auto; height: auto; max-height: 66dvh; max-width: 100%; margin: .7rem auto; object-fit: contain; }
.photo-actions p { font: .875rem/1.4 var(--mono); }
.photo-actions .button { padding-inline: .65rem; }

@media (min-width: 36rem) {
  .hero-photo img { aspect-ratio: 1.42; }
  .section-heading { grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .coach-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .coach-photo img { aspect-ratio: .83; }
}

@media (min-width: 48rem) {
  .plans, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .contact-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
}

@media (min-width: 54rem) {
  :root { --header-height: 4.75rem; }
  body { font-size: 1.0625rem; }
  .header-inner { flex-wrap: nowrap; }
  .header .menu-toggle { display: none; }
  .header .nav, .header .nav.is-open { position: static; display: flex; flex: 0 1 auto; gap: 0 clamp(1rem, 2.7vw, 2.4rem); padding: 0; border: 0; overflow: visible; }
  .header .nav a, .header .nav.is-open a { padding-inline: 0; border: 0; }
  .header .nav .navigation-contact { display: none; }
  .header-cta { display: inline-flex; min-height: 2.75rem; padding-inline: 1.15rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: stretch; min-height: clamp(32rem, 51vw, 43rem); }
  .hero-copy { align-self: center; padding: 3rem 1.4rem 3.5rem 0; }
  .hero h1 { font-size: clamp(3.6rem, 7vw, 7.1rem); }
  .hero-photo { margin: 1.15rem 0; }
  .hero-photo picture { position: relative; }
  .hero-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 35%; }
  .hero-photo figcaption { padding-inline: 1.15rem; }
  .coach-grid { align-items: center; }
  .qualifications div { grid-template-columns: 9.5rem 1fr; }
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .has-js .header {
    background: rgb(17 18 16 / 91%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .hero-photo figcaption {
    background: rgb(17 18 16 / 84%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .has-js .header, .hero-photo figcaption {
    background: var(--ink);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-entering {
    animation: section-entry 440ms cubic-bezier(.16, 1, .3, 1) var(--entry-delay, 0ms) backwards;
  }
  .is-entering .eyebrow span {
    transform-origin: left center;
    animation: draw-rule 520ms ease-out backwards;
  }
  .is-entering:focus-within { animation: none; }
  @keyframes section-entry {
    from { transform: translateY(.85rem); }
    to { transform: translateY(0); }
  }
  @keyframes draw-rule {
    from { transform: scaleX(.1); }
    to { transform: scaleX(1); }
  }
  @supports (animation-timeline: scroll()) {
    .has-js .header::after {
      content: "";
      position: absolute;
      inset: auto 0 -1px;
      height: 2px;
      background: var(--lime);
      transform: scaleX(0);
      transform-origin: left;
      pointer-events: none;
      animation: reading-progress 1s linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes reading-progress { to { transform: scaleX(1); } }
  }
}

@media (min-width: 48rem) {
  .plan:nth-child(2), .steps li:nth-child(2) { --entry-delay: 50ms; }
  .plan:nth-child(3), .steps li:nth-child(3) { --entry-delay: 100ms; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .gallery-grid a:hover img { transform: none; }
}

#contatto-rapido { width: min(34rem, calc(100% - 1.5rem)); }
.contact-sheet { color: var(--ink); color-scheme: light; }
.contact-sheet form { margin: 0 0 .75rem; text-align: right; }
.contact-sheet h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 1rem; }
.contact-sheet .actions, .draft .actions { gap: .65rem; }
.contact-sheet [role=status]:not(:empty) { margin-top: .75rem; }

.privacy-body { max-width: 72ch; padding: 1.3rem 0 2rem; }
.privacy-body h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .8rem; }
.privacy-body h3 { margin: 1.5rem 0 .45rem; }
.privacy-body p { font-size: 1rem; line-height: 1.65; }
.privacy-body a { text-underline-offset: .15em; }
