/* La tipografia segue lo spazio del lettore. Il disegno mantiene il suo formato. */
:root {
  --lettura: clamp(1.0625rem, 1.01rem + .23vw, 1.2rem);
  --didascalia: .9375rem;
  --segnale: var(--academy-action);
  --filo: #635046;
  --alone: 0 0 20px rgb(255 107 18 / 15%);
}
.mra-menu-toggle, .route-picker { display: none; }
.case-art { position: relative; }
main .diagram-zoom {
  position: absolute; top: .4rem; right: .4rem; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--academy-hover); border-radius: 50%;
  color: var(--academy-hover); background: #101316; text-decoration: none;
}
.diagram-zoom svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.diagram-viewer {
  width: min(95vw,72rem); max-width: 95vw; max-height: 94dvh; margin: auto; padding: 1rem;
  border: 1px solid #56595b; border-top: 3px solid var(--academy-action); border-radius: .5rem;
  background: #101416; color: var(--academy-ink); overflow: auto;
}
.diagram-viewer::backdrop { background: rgb(0 0 0 / 85%); }
.diagram-viewer header { display: flex; position: static; justify-content: space-between; align-items: center; gap: 1rem; }
.diagram-viewer h2 { font-size: clamp(1.1rem,3vw,1.6rem); color: inherit; line-height: 1.2; margin: 0; }
.diagram-viewer button { min-height: 44px; padding: .5rem .85rem; border-radius: 4px; border: 1px solid #746654; background: #1e2224; color: inherit; cursor: pointer; }
.diagram-canvas { margin: .75rem 0; max-height: 65dvh; overflow: auto; overscroll-behavior: contain; background: #0b0c0d; }
.diagram-canvas img { display: block; width: 100%; height: auto; max-height: 65dvh; object-fit: contain; }
.diagram-canvas.native-size img { width: auto; max-width: none; max-height: none; }
.diagram-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1rem; }
.diagram-tools button[aria-pressed="true"] { background: var(--academy-action); color: var(--academy-on-action); }
.lightbox .diagram-canvas img { width: 100%; height: auto; max-width: 100%; max-height: 65dvh; object-fit: contain; }
.lightbox .diagram-canvas.native-size img { width: auto; max-width: none; max-height: none; }
.lightbox .diagram-tools :is(button,a) { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem; color: var(--academy-hover); }
.lightbox .diagram-tools button { border: 1px solid currentColor; background: transparent; border-radius: 4px; cursor: pointer; }
.lightbox .diagram-tools button[aria-pressed="true"] { background: var(--academy-action); color: var(--academy-on-action); }
.diagram-viewer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; color: var(--academy-hover); }
.mra-menu-toggle, .route-picker, .webinar-questions summary { font-family: inherit; }
:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--academy-hover);
  outline-offset: 3px;
}
main :is(.lead, .text, .body-copy), .at-site .at-intro-copy p,
.route-panel .route-copy p:not(.eyebrow), .routes article p, .brief-row :is(p,li),
.profile dd, .programme dd, .webinar-questions p, .steps li p, .entry-intro p,
.reader figcaption p, .invito .hero-copy p:not(.eyebrow),
body[data-page] main :is(.product-copy,.split,.compact-closing) p {
  font-size: var(--lettura); line-height: 1.58; max-width: 63ch;
}
main .button, main .route, main .dates-link { min-height: 46px; }
main .button:focus-visible, main .button:hover { box-shadow: var(--alone); }
.mra-site-head .mra-main-nav a[aria-current] { box-shadow: inset 0 -2px var(--segnale); }
main .route-panel figure {
  display: flex; flex-direction: column; height: auto; align-self: stretch;
  background: #101315; border-color: #444a4e;
}
.route-panel figure img {
  flex: 1 1 0; min-height: 0; height: 0; min-block-size: clamp(10rem,19vw,18rem);
  width: 100%; object-fit: contain; filter: none;
}
.route-panel figure figcaption {
  position: static; padding: .45rem .75rem; border-left: 0; border-top: 1px solid #444a4e;
  color: #e7e4de; background: #14171a; font-size: .8125rem;
}
.route-club figure .club-rhythm {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem .85rem;
}
.club-rhythm span { display: inline-flex; align-items: center; gap: .4rem; }
.club-rhythm svg {
  width: 1rem; height: 1rem; flex: none; fill: none; stroke: var(--academy-hover);
  stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
}
.route-panel .diagram-zoom { top: auto; bottom: 1px; right: 2px; }
.route-panel figure:has(.diagram-zoom) figcaption { min-height: 46px; display: flex; align-items: center; padding-right: 3.3rem; }
.store-cover .bundle-covers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; width: min(100%,16rem); }
body[data-page] .store-product .store-cover .bundle-covers img { width: 100%; height: auto; max-height: 10rem; object-fit: contain; }
@media (max-width: 760px) {
  body[data-page] .hero-art .book-row, body[data-page] .collection-offer .book-row, body[data-page] .collection-banner .book-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem .8rem; }
  body[data-page] .book-row figcaption { font-size: .875rem; line-height: 1.4; }
}
.webinar-opening .event-hero {
  grid-template-areas: "intro ticket" "signup ticket"; row-gap: 1.25rem;
}
.webinar-opening .event-hero > section { grid-area: intro; }
.webinar-opening .event-hero .pass { grid-area: ticket; }
.webinar-opening .webinar-register { grid-area: signup; }
.webinar-opening .hint, .slot span, .cover .cadence, .contact-action p,
.agenda p.agenda-note, .agenda small, .case figcaption { font-size: var(--didascalia); line-height: 1.5; }
.pass, .agenda { box-shadow: 0 -1px var(--segnale), var(--alone); }
.webinar-questions details { border-bottom: 1px solid var(--filo); }
.webinar-questions details:first-child { border-top: 1px solid var(--filo); }
.webinar-questions summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none; cursor: pointer; padding: 1rem 0;
  color: #fff5e9; font-weight: 700; font-size: 1.1rem; line-height: 1.4;
}
.webinar-questions summary::-webkit-details-marker { display: none; }
.webinar-questions summary::after { content: "+"; font-size: 1.5rem; color: var(--segnale); }
.webinar-questions details[open] summary::after { content: "−"; }
.webinar-questions p { color: #ddd7d1; margin: 0 0 1rem; }
.programme .session-image { margin: 1.5rem 0 0; }
.programme .session-image img, .detail .profile-image { height: auto; width: 100%; object-fit: contain; }
.cover-figure .sheet-stack { width: min(100%, 25rem); transform: none; }
.cover-figure figcaption { font-size: .9375rem; }
.routes.wrap { gap: clamp(1.25rem,3.5vw,3.25rem); }
.routes.wrap article, .routes.wrap article + article {
  display: grid; grid-template-columns: auto 1fr; align-content: start; align-items: center;
  gap: .8rem 1rem; padding: 0 0 1.1rem; border: 0; border-bottom: 1px solid var(--filo);
}
.routes .b2b-illustration { grid-column: 1/-1; margin: 0; background: #111315; border: 1px solid #434648; }
.b2b-illustration img { display: block; width: 100%; height: clamp(10rem,17vw,15rem); object-fit: contain; }
.routes article > svg { margin: 0; color: var(--segnale); }
.routes article h2 { margin: 0; }
.routes article :is(p,a) { grid-column: 1/-1; margin: 0; justify-self: start; }
.routes article .route { margin-top: .35rem; }
body[data-page] .store-product .store-cover img, body[data-page] .hero-book img {
  object-fit: contain; filter: none; opacity: 1;
}
body[data-page] .store-product .product-level, body[data-page] main .cta-note,
body[data-page] .hero-book figcaption { font-size: .875rem; line-height: 1.5; }
body[data-page] main .hero .lead, body[data-page] .section .description,
body[data-page] .section .selected-lesson p {
  font-size: var(--lettura); line-height: 1.58; max-width: 63ch;
}
body[data-page] .catalog-controls :is(label, legend), body[data-page] .catalog-status,
body[data-page] .catalog-views button, body[data-page] .header .header-inner .nav-action {
  font-size: .9375rem; line-height: 1.4;
}
body[data-page] .compact-closing a.button, .home-opening .home-discover {
  background: transparent; box-shadow: none; border: 0; border-radius: 0;
  color: var(--academy-hover); text-decoration: underline; text-underline-offset: .25em;
}
.mra-section-links nav a { font-size: .875rem; min-height: 44px; }
@media (max-width: 820px) {
  .mra-site-head .mra-head-row {
    width: min(94%, 46rem); display: grid; grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center; column-gap: clamp(5px,1.5vw,14px); padding-block: 4px; min-height: 52px;
  }
  .mra-site-head .mra-home-link { grid-area: 1/1; }
  .mra-site-head .mra-home-link img { width: clamp(78px,22vw,110px); }
  .mra-site-head .mra-home-link span { display: none; }
  .mra-site-head .mra-portal-link { grid-area: 1/3; min-height: 44px; gap: 5px; }
  .mra-site-head .mra-portal-link b { font-size: .8125rem; }
  .mra-js .mra-menu-toggle {
    grid-area: 1/2; display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .4rem .6rem; min-height: 44px; background: #171819; color: #fff5ec;
    border: 1px solid #55504a; border-radius: 4px; font-size: .9375rem; font-weight: 650; cursor: pointer;
  }
  .mra-js .mra-menu-toggle[aria-expanded="true"] { color: var(--segnale); border-color: currentColor; }
  .mra-site-head nav.mra-main-nav {
    grid-area: 2/1/3/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    margin-block: 4px; gap: 2px; padding: 3px; border-radius: 4px;
  }
  .mra-js .mra-menu-toggle[aria-expanded="false"] + nav { display: none; }
  .mra-site-head .mra-main-nav a {
    flex-direction: row; justify-content: flex-start; gap: .6rem; padding: .65rem;
    min-height: 46px; font-size: 1rem;
  }
  .mra-site-head .mra-main-nav a svg { width: 1.1rem; height: 1.1rem; }
  .mra-webinar a { font-size: .8125rem; min-height: 40px; }
  .mra-webinar button { min-width: 40px; }
}
@media (max-width: 760px) {
  .webinar-opening .event-hero {
    grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "ticket" "signup";
    gap: 1.4rem; padding-block: 2rem 2.75rem;
  }
  .webinar-opening .pass { padding: 1rem 1.25rem; }
  .webinar-opening .pass time { margin-block: .8rem; }
  .webinar-opening .pass time strong { font-size: 3.5rem; }
  .webinar-opening .lead, .webinar-opening .button { margin-bottom: 0; }
  .agenda li a { min-height: 74px; }
  .mra-section-links nav { justify-content: flex-start; }
  .academy-copy .lead, .route-panel .route-copy p:not(.eyebrow) {
    font-size: var(--lettura); line-height: 1.55; margin: .75rem 0 1rem;
  }
  .home-opening .academy-feature { min-height: 0; background: #0b0d0f; }
  .home-opening .academy-copy { grid-area: 1/1; width: 90%; margin: 0 auto; padding: 2rem 0 0; }
  .home-opening .academy-copy h1 { font-size: clamp(1.95rem,7.5vw,3.15rem); line-height: 1.06; }
  .home-opening .academy-feature picture {
    position: relative; grid-area: 2/1; z-index: 0; display: block; height: clamp(11rem,46vw,18rem);
  }
  .home-opening .academy-feature picture img { object-fit: contain; object-position: center; filter: none; }
  .home-opening .academy-feature picture::after { background: linear-gradient(#0b0d0f, transparent 16%); pointer-events: none; }
  .route-picker {
    display: block; width: 100%; margin: .8rem 0; padding: .65rem .85rem; min-height: 46px;
    font-size: 1rem; font-weight: 650; border: 1px solid var(--segnale); border-radius: 4px;
    background: #1e1b19; color: #fff4e8; color-scheme: dark;
  }
  .route-picker + .route-tabs { display: none; }
  .route-story .route-panel { grid-template-columns: minmax(0,1fr); gap: .8rem; }
  .route-panel figure img { min-block-size: clamp(10.25rem,46vw,17rem); }
  .route-copy .eyebrow { font-size: .8125rem; }
  .route-panel .route-copy h3 { font-size: clamp(1.45rem,5.5vw,2rem); line-height: 1.14; }
  .home-footer nav a { min-height: 36px; font-size: .875rem; }
  .story .scene .reason,
  .story:is(.is-pinned,.is-measuring) .scene .reason { font-size: 1.0625rem; line-height: 1.48; }
  .story.is-compact:is(.is-measuring,.is-pinned) .scene .reason { display: block; }
  .scene .practice, .scene .outcome, .entry-intro .outside-hours { font-size: 1rem; line-height: 1.5; }
  .story:is(.is-pinned,.is-measuring) .scene-visual { height: clamp(10rem,24svh,15rem); }
  .entry-details summary, .agenda .booking-choice { font-size: 1rem; }
  .rhythm .steps { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .rhythm .steps li, .rhythm .steps li + li { position: relative; margin-left: .9rem; padding: 0 0 1.75rem 2.25rem; border: 0; border-left: 2px solid var(--filo); }
  .rhythm .steps li:last-child { border-color: transparent; padding-bottom: 0; }
  .rhythm .steps svg { position: absolute; left: -1rem; top: 0; width: 2rem; height: 2rem; padding: 3px; color: var(--segnale); background: #131415; }
  .rhythm .steps h3 { margin: 0 0 .45rem; }
  .reader figcaption h2 { margin-bottom: .5rem; }
  body[data-page] .store-grid { gap: 2.5rem; }
  body[data-page] .store-grid .store-product {
    display: grid; grid-template-columns: minmax(6.5rem,.8fr) minmax(0,1.2fr);
    grid-template-rows: auto auto 1fr auto auto; gap: .65rem 1rem;
    padding-top: 1.1rem; align-items: start;
  }
  body[data-page] .store-product .product-copy { display: contents; }
  body[data-page] .store-product .store-cover {
    grid-area: 1/1/4/2; display: grid; align-content: center; position: relative;
    padding: .85rem .45rem; min-height: 10.5rem; border: 1px solid #404448;
    background: radial-gradient(ellipse at bottom, #292420, #121517 75%);
  }
  body[data-page] .store-product .store-cover img { width: 100%; height: 9rem; max-height: none; }
  body[data-page] .store-product .cover-tag {
    position: static; font-size: .75rem; line-height: 1.2; text-align: center;
    padding: .3rem; margin-top: .4rem; background: #1b1714; color: var(--academy-hover);
  }
  body[data-page] .store-product .mini-title { grid-area: 1/2; font-size: .8125rem; line-height: 1.4; }
  body[data-page] .store-product h3 {
    grid-area: 2/2; font-size: clamp(1.2rem,4.9vw,1.65rem); line-height: 1.2;
    text-wrap: pretty; margin: 0; overflow-wrap: anywhere;
  }
  body[data-page] .store-product .product-level { grid-area: 3/2; }
  body[data-page] .store-product .product-copy > p { grid-area: 4/1/5/-1; margin: .2rem 0; }
  body[data-page] .store-product .product-choice { grid-area: 5/1/6/-1; width: 100%; }
  body[data-page] .format-switch { flex-wrap: wrap; }
  body[data-page] .format-switch label { font-size: .9375rem; line-height: 1.3; }
  body[data-page] .hero-book { background: radial-gradient(ellipse at center,#38271b,#111416 72%); padding: 1rem; }
  body[data-page] .hero-book img { max-width: 100%; max-height: 23rem; }
  .invito .formazione ul { gap: 0; }
  .invito .formazione li { padding-block: 1rem; }
  .at-site .at-container :is(.at-note,.at-service-process li,.at-contact-options p,.at-audience li),
  .at-site .twin-story :is(p,summary), .at-site .at-direct-contact p,
  main .mr-body, .at-site .at-gate label { font-size: var(--lettura); line-height: 1.58; }
  .at-site .at-gate :is(input,select,button), .at-site .at-text-link { min-height: 44px; }
  .at-site .at-resource-pair { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
  .at-site .at-resource-pair a {
    display: grid; grid-template-columns: minmax(5.5rem,.65fr) minmax(0,1.35fr);
    align-items: start; gap: 1rem; padding: 1rem 0; border-block-start: 1px solid var(--filo);
  }
  .at-site .at-resource-pair img {
    display: block; width: 100%; height: auto; max-height: 13rem; object-fit: contain; opacity: 1;
  }
  .at-site .twin-story figure img { width: 100%; height: auto; object-fit: contain; filter: none; }
  .at-site .at-careers article p, .at-site .at-resource-pair p, .at-site .at-contact-options :is(a,button) p {
    font-size: var(--lettura); line-height: 1.55;
  }
  .at-site .at-contact-options :is(a,button) { border-block-start: 1px solid var(--filo); }
  body[data-page] main :is(.nav-action, summary, select, input, .filter, .format-choice button) { min-height: 44px; }
  .at-site .at-container :is(.mr-body,article p), .invito .formazione li, .invito .passo p { font-size: var(--lettura); line-height: 1.58; }
}
@media (max-width: 360px) {
  body[data-page] .catalog-views { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mra-site-head .mra-portal-link svg { display: none; }
  .mra-webinar a svg { display: none; }
  .mra-webinar a { flex-wrap: wrap; gap: 5px; padding-right: 40px; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rhythm .steps li, .reader figure { animation: scorri-scheda linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes scorri-scheda { from { transform: translateY(.65rem); } to { transform: translateY(0); } }
  }
}
