/* A single spacing scale and a quieter, publication-ready hierarchy. */
:root{--section-space:clamp(64px,7vw,104px);--section-gap:clamp(28px,4vw,56px);--gutter:clamp(24px,5vw,80px)}
.entry-facade-source{display:contents}
.entry-leaf:before{background-image:url('assets/entrance-v7-mobile.webp')}
@media(min-width:900px){.entry-leaf:before{background-image:url('assets/entrance-v7-desktop.webp')}}
.wrap{max-width:1440px}
.hero{min-height:max(780px,100svh)}
.hero-topline{padding-top:36px}
.hero-content{display:flex;flex-direction:column;justify-content:center;padding-top:32px;padding-bottom:48px;min-width:0}
.hero h1{font-size:clamp(52px,7vw,108px);margin-bottom:24px}
.hero-content p{font-size:clamp(18px,1.6vw,22px);line-height:1.65;margin-bottom:28px}
.hero-bottom{width:calc(100% - 2 * var(--gutter));max-width:960px;border-radius:20px;padding:18px 24px 16px;gap:14px;background:#1a1a1ae8;margin-bottom:24px}
.hero-facts{grid-template-columns:1fr 1fr;gap:24px;padding:0;border:0}
.hero-facts>div{padding:0 24px;text-align:center;border:0}
.hero-facts>div+div{border-left:1px solid #ffffff30}
.hero-facts strong{font-size:25px}
.hero-facts>div>span{font-size:14px;margin-top:4px}
.entry-hint{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;letter-spacing:.02em;color:#c7c7c7;border-top:1px solid #ffffff20;padding-top:12px;width:100%}
.entry-hint svg{width:15px;height:15px;color:var(--orange)}
.entry-runway{height:clamp(420px,70svh,900px);min-height:0}
.entrance,.exercises,.pricing,.faq{min-height:0;padding-block:var(--section-space)}
.entrance{gap:48px;justify-content:flex-start}
.entrance .section-copy{padding:32px;max-width:640px}
.entrance-layout .section-copy h2{margin-top:18px}
.feature-strip{margin-top:0;gap:20px}
.feature-strip article{padding:28px;border-radius:20px;min-height:0}
.feature-strip article h3{margin:20px 0 12px;font-size:23px}
.feature-strip article p{font-size:17px;line-height:1.65;margin:0}
.exercises .split-layout{gap:var(--section-gap);grid-template-columns:.85fr 1.15fr}
.exercises h2{font-size:clamp(40px,4.5vw,64px)}
.exercises .section-copy p{margin-bottom:0;font-size:18px}
.exercises .section-copy{padding:30px;max-width:none}
.exercise-browser{padding:28px}
.pricing-heading{gap:32px;margin-bottom:32px}
.pricing-heading h2{margin-bottom:20px}
.billing-control{margin:0}
.membership{gap:24px}
.membership-detail{padding:32px;min-height:0}
.membership-detail h3,.membership-detail>p:not(.membership-caption),.membership-detail>.selected-billing,.membership-detail ul{min-height:0!important}
.membership-detail h3{font-size:34px}
.membership-detail ul{padding-block:24px;margin-top:20px;gap:14px 24px}
.membership-caption{min-height:40px}
.pricing-demo-note{max-width:none;margin:24px 0 0;color:#d0d0d0;font-size:14px}
.faq{background:transparent}
.faq-layout{gap:var(--section-gap);grid-template-columns:.9fr 1.1fr}
.faq-list{padding-inline:26px}
.faq-layout>div:first-child{padding:30px}
.faq h2{font-size:clamp(40px,4.1vw,60px)}
.faq summary{padding-block:22px;font-size:17px}
.faq details>div>p{font-size:16px;line-height:1.7}
.closing{padding:64px 0;background:#1a1a1ae8;border-top:1px solid #ffffff25}
.closing-layout{display:flex;align-items:center;justify-content:space-between;gap:32px;text-align:left}
.closing h2{font-size:clamp(30px,3.7vw,48px);margin:12px 0 0;line-height:1.15}
.closing .eyebrow{font-size:14px;color:#ddd}
.closing .button{flex-shrink:0;min-width:180px}
.footer{background:#171717;border-top:1px solid #ffffff20;scroll-margin-top:calc(var(--header-height) + 24px)}
.footer-top{padding:48px 0 32px;gap:28px;align-items:center}
.footer-top p{display:block;font-size:15px;color:#bcbcbc}
.footer .brand{font-size:26px;gap:12px}
.footer .brand img{width:44px;height:44px}
.footer .back-top{padding:10px 16px;font-size:14px;border-color:#ffffff40;background:transparent;box-shadow:none}
.footer-columns{display:grid;grid-template-columns:1fr 1fr 1fr;padding:32px 0 40px;gap:40px}
.footer-columns h3{font-size:15px;line-height:1.5;color:#fff;margin:0 0 12px;font-weight:600;letter-spacing:0}
.footer-columns>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.footer-columns a,.footer-columns button{font-size:15px;padding:10px 0;min-height:44px;color:#bcbcbc;text-align:left;line-height:1.5}
.footer-columns a:hover,.footer-columns button:hover{color:#fff}
.footer-social{display:flex;gap:10px;flex-wrap:nowrap;margin:12px 0 0}
.footer-social a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:10px;border:1px solid #ffffff30;border-radius:12px;background:transparent}
.footer-social a:hover{border-color:#ff6600;color:var(--orange)}
.footer-social svg{width:21px;height:21px}
.footer-bottom{padding:20px 0 24px;gap:20px;color:#aaa;font-size:13px;line-height:1.6}
.footer-bottom>div{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.footer-bottom a,.footer-bottom button{min-height:44px;padding:10px 0;margin:0;background:none;border:0;border-radius:0;font-size:13px;line-height:1.6;color:#bbb;box-shadow:none}
.footer-bottom a:hover,.footer-bottom button:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
@media(max-width:1000px){.exercises .split-layout,.faq-layout{grid-template-columns:1fr;gap:28px}.exercises .section-copy{max-width:720px}.exercise-browser{width:100%;max-width:none}.membership-detail ul{grid-template-columns:1fr}.footer-top p{display:none}}
@media(max-width:850px){.entrance .section-copy{max-width:none}.feature-strip{gap:16px}.feature-strip article{padding:26px}.membership-detail ul{grid-template-columns:1fr 1fr}.pricing-heading{gap:24px}.closing-layout{gap:24px}}
@media(max-width:600px){
  :root{--section-space:64px;--section-gap:24px}
  .hero{min-height:max(800px,100svh)}.hero-topline{padding-top:28px}.hero-kicker{font-size:14px}
  .hero-content{padding-top:24px;padding-bottom:32px}.hero h1{font-size:clamp(40px,10vw,60px);margin-bottom:24px}
  .hero-content p{font-size:18px;line-height:1.6;margin-bottom:24px}.hero .button-row{gap:12px}.hero .button-row>.button,.hero .button-row>.text-link{width:100%;max-width:320px;min-height:52px}
  .hero-reassurance{max-width:290px;font-size:13px;margin-top:18px;line-height:1.55}
  .hero-bottom{width:calc(100% - 48px);padding:18px 16px 14px;gap:12px;margin-bottom:24px}
  .hero-facts{grid-template-columns:1fr 1fr;gap:12px}.hero-facts>div,.hero-facts>div:last-child{display:block;grid-column:auto;padding:0;text-align:left;min-width:0;border:0}
  .hero-facts>div+div{border-left:1px solid #ffffff30;padding-left:14px!important}.hero-facts strong,.hero-facts>div:last-child strong{font-size:21px;letter-spacing:-.035em}
  .hero-facts>div>span,.hero-facts>div:last-child>span{display:block;font-size:12px;line-height:1.5;margin-top:4px}
  .entry-runway{height:clamp(420px,65svh,600px)}
  .entrance{gap:28px}.entrance .section-copy,.exercises .section-copy,.faq-layout>div:first-child{padding:24px;border-radius:20px}
  .entrance h2,.exercises h2,.faq h2{font-size:clamp(38px,10vw,52px);margin-top:16px;margin-bottom:24px}
  .section-copy p{font-size:18px;line-height:1.65}.entrance .section-copy p{margin-bottom:24px}
  .feature-strip{margin-top:0;gap:16px}.feature-strip article{padding:24px}.feature-strip article h3{font-size:22px;margin-top:18px}.feature-strip article p{font-size:16px}
  .exercise-browser{padding:24px 18px;border-radius:20px}.browser-title{margin-bottom:20px}.browser-title h3{font-size:23px}.filter-list{margin:18px 0}
  .pricing-heading{margin-bottom:24px}.pricing-heading h2{font-size:clamp(40px,10vw,54px);margin-bottom:20px}.pricing-heading p{font-size:18px}.billing-switch button{min-height:46px}
  .membership{gap:16px}.plan-choices{gap:8px}.plan-choice{min-height:116px;padding:16px 12px}.membership-detail{padding:24px;border-radius:20px}.membership-detail h3{font-size:30px;margin-block:20px 16px}.membership-detail ul{grid-template-columns:1fr;gap:14px}.membership-detail li{font-size:15px;line-height:1.6}.selected-plan-price{margin-top:24px}.selected-plan-price strong{font-size:56px}
  .faq-list{padding:0 22px;border-radius:20px}.faq summary{font-size:17px;padding:22px 0}.faq details>div>p{padding:0 0 24px}
  .closing{padding:48px 0}.closing-layout{flex-direction:column;align-items:flex-start;gap:24px}.closing h2{font-size:34px;margin-top:12px}.closing .button{min-width:0;width:100%;justify-content:space-between}
  .footer-top{padding:32px 0 24px;gap:16px}.footer .brand{font-size:23px;gap:10px}.footer .brand img{width:40px;height:40px}.footer .back-top{font-size:13px;padding:10px 12px;gap:6px}
  .footer-columns{grid-template-columns:1fr 1fr;gap:24px 20px;padding:24px 0 28px}.footer-columns>div:last-child{grid-column:1/-1}.footer-columns h3{font-size:15px;margin-bottom:8px}.footer-columns a,.footer-columns button{font-size:14px;min-height:44px}
  .footer-social{margin-top:8px;gap:10px}.footer-bottom{flex-direction:column;align-items:flex-start;gap:10px;padding:20px 0}.footer-bottom>div{gap:20px}.footer-bottom a,.footer-bottom button{font-size:12px}
}

/* Compact sections: keep the whole task in view below the fixed navigation. */
:root{--section-space:40px;--section-gap:28px}
.entrance{gap:24px}.entrance .section-copy{padding:24px}.entrance h2{font-size:clamp(36px,4vw,52px);margin-block:14px 20px}
.feature-strip{gap:16px}.feature-strip article{padding:20px}.feature-strip article h3{font-size:20px;margin:14px 0 8px}.feature-strip article p{font-size:15px;line-height:1.5}
.exercises .section-copy{padding:24px}.exercises h2{font-size:clamp(34px,3.5vw,48px);margin-block:16px 20px}.exercises .section-copy p{font-size:16px;line-height:1.6}
.exercise-browser{padding:20px}.browser-title{margin-bottom:14px}.browser-title h3{font-size:22px}.search-field{padding:10px 14px;min-height:44px}.search-field input{font-size:16px}
.filter-list{margin:12px 0;gap:6px}.filter-list button{min-height:40px;padding:8px 13px;font-size:13px}
.exercise-results{min-height:0;gap:7px}.exercise-card{grid-template-columns:72px minmax(0,1fr);border-radius:12px}.exercise-card-image{width:72px;height:66px;min-height:100%}.exercise-card-info{min-height:66px;padding:8px 32px 8px 12px;gap:2px}.exercise-card-info strong{font-size:14px;line-height:1.35}.exercise-card-info>span{font-size:12px}
.catalog-pagination{margin-top:12px;gap:10px}.catalog-pagination button{min-height:40px;padding:8px 12px;font-size:13px}.exercise-count{font-size:12px;margin:8px 0 0}
.pricing-heading{margin-bottom:20px;gap:20px}.pricing-heading h2{font-size:clamp(32px,3.4vw,46px);line-height:1.1;margin:10px 0 12px}.pricing-heading p{font-size:16px;line-height:1.5}.billing-control>span{font-size:12px}.billing-switch button{min-height:42px;padding:9px 16px;font-size:14px}
.membership{grid-template-columns:.65fr 1.35fr;gap:20px}.plan-choices{gap:10px}.plan-choice{padding:18px;min-height:94px;gap:12px;border-radius:16px}.choice-heading strong{font-size:21px}.choice-heading>span{font-size:13px}.choice-price{font-size:22px}.choice-price small{font-size:12px}
.membership-detail{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px;padding:22px;border-radius:18px}.membership-top{display:none}.membership-detail h3{grid-column:1;grid-row:1;font-size:25px;line-height:1.2;margin:0}.membership-detail>#selected-plan-description{grid-column:1;grid-row:2;font-size:14px;line-height:1.5}.selected-plan-price{grid-column:2;grid-row:1 / 3;align-self:center;margin:0;gap:6px;flex-direction:column;align-items:flex-end}.selected-plan-price strong{font-size:42px}.selected-plan-price strong>span{font-size:23px}.selected-plan-price>span{font-size:12px}
.membership-detail>.selected-billing{grid-column:1/-1;font-size:12px!important;line-height:1.5}.membership-detail ul{grid-column:1/-1;grid-template-columns:1fr 1fr;padding:14px 0 4px;margin:0;gap:8px 16px}.membership-detail li{font-size:13px;line-height:1.5;gap:7px}.membership-detail li svg{width:16px;height:16px;margin-top:2px;flex-shrink:0}.membership-detail>.button{grid-column:1/-1;min-height:44px;padding:10px 18px;font-size:15px}.membership-caption{grid-column:1/-1;font-size:12px;line-height:1.5;min-height:0;margin:0}.pricing-demo-note{font-size:12px;line-height:1.5;margin-top:12px}
.faq h2{font-size:clamp(34px,3.5vw,48px);margin-block:14px 20px}.faq-layout>div:first-child{padding:24px}.faq summary{font-size:16px;padding-block:16px}.faq details>div>p{font-size:14px;line-height:1.6;padding-bottom:18px}.faq-list{padding-inline:22px}
@media(min-width:1001px){
 :root{--header-height:72px}.header .brand img{width:40px;height:40px}.header .brand{font-size:24px}.header .button,.header .button-ghost{min-height:44px;padding:10px 20px;font-size:14px}
 .pricing-heading h2 br,.pricing-heading p br{display:none}.pricing-heading h2 br:after,.pricing-heading p br:after{content:' '}
 .hero{min-height:100svh}.hero h1{font-size:clamp(48px,6vw,88px)}.hero-topline{padding-top:24px}.hero-content{padding-block:24px}.hero-content p{font-size:18px;line-height:1.5;margin-bottom:20px}.hero-bottom{padding-block:12px;margin-bottom:20px}.hero-facts strong{font-size:22px}.entry-hint{padding-top:8px}
}
@media(min-width:1001px) and (max-height:760px){
 :root{--section-space:24px}.pricing-heading{margin-bottom:14px}.pricing-heading h2{font-size:32px;margin:6px 0 8px}.pricing-heading p{font-size:14px}.pricing-heading .eyebrow{font-size:12px}
 .membership-detail{padding:18px;gap:8px 16px}.membership-detail h3{font-size:23px}.membership-detail ul{padding-top:10px;gap:6px 14px}.plan-choice{min-height:88px;padding:16px}.pricing-demo-note{margin-top:10px}
 .hero h1{font-size:clamp(46px,5.2vw,68px)}.hero-content p{font-size:16px}.hero-topline{padding-top:16px}.hero-content{padding-block:16px}.hero-bottom{margin-bottom:16px}.hero-facts>div>span{font-size:12px}.hero-reassurance{margin-top:12px}
}
@media(max-width:1000px){
 .exercises .split-layout{gap:20px}.exercises .section-copy{padding:20px}.exercises .section-copy h2 br{display:none}.exercises .section-copy h2{margin-block:10px 14px;font-size:34px}
 .membership{grid-template-columns:1fr}.plan-choices{flex-direction:row;gap:8px}.plan-choice{flex:1;min-height:76px;padding:12px;flex-direction:row;flex-wrap:wrap;gap:8px}.choice-heading>span,.plan-choice>svg{display:none}.choice-price{font-size:20px}.choice-heading strong{font-size:19px}
 .pricing-heading{gap:16px}.faq-layout{gap:20px}
}
@media(max-width:600px){
 :root{--section-space:32px}.entrance{gap:20px}.entrance .section-copy,.exercises .section-copy,.faq-layout>div:first-child{padding:20px}.entrance h2,.exercises h2,.faq h2{font-size:34px}.section-copy p,.entrance .section-copy p,.exercises .section-copy p{font-size:16px;line-height:1.55}.feature-strip article{padding:20px}
 .exercise-browser{padding:18px 16px}.browser-title h3{font-size:21px}.filter-list{margin:12px 0;gap:6px}.filter-list button{min-height:44px;padding:8px 4px;font-size:13px}.exercise-card-image{height:66px}.exercise-card-info{min-height:66px}.catalog-pagination button{min-height:44px}
 .pricing-heading h2{font-size:34px;margin:8px 0 12px}.pricing-heading h2 br{display:none}.pricing-heading p{font-size:15px}.pricing-heading p br{display:none}.billing-control{gap:6px}.pricing-heading{gap:14px;margin-bottom:16px}.billing-switch button{min-height:44px}
 .plan-choice{min-height:76px;flex-direction:column;align-items:flex-start;padding:12px 10px;gap:6px}.choice-price{margin:0;align-items:flex-start;font-size:20px}.choice-price small{font-size:11px}.choice-heading strong{font-size:17px}
 .membership{gap:12px}.membership-detail{padding:18px;gap:10px 12px}.membership-detail h3{font-size:23px}.membership-detail>#selected-plan-description{grid-column:1/-1;grid-row:2;font-size:14px}.selected-plan-price{grid-row:1;align-self:start}.selected-plan-price strong{font-size:34px}.selected-plan-price>span{font-size:11px}.membership-detail ul{gap:9px 12px;padding-top:12px}.membership-detail li{font-size:13px}.membership-detail li svg{width:14px;height:14px}.membership-detail>.button{min-height:48px}.membership-caption{font-size:12px}.pricing-demo-note{font-size:12px}
 .faq summary{font-size:15px;padding-block:16px}.faq details>div>p{font-size:14px}.closing{padding:32px 0}.closing h2{font-size:30px}
}

@media(min-width:1001px) and (max-height:760px){
 .exercise-browser{padding:16px}.browser-title{margin-bottom:10px}.browser-title h3{font-size:20px}.browser-title>svg{width:22px;height:22px}.search-field{padding-block:8px}.filter-list{margin-block:8px}
 .exercise-card{grid-template-columns:60px minmax(0,1fr)}.exercise-card-image{width:60px;height:56px}.exercise-card-info{min-height:56px;padding-block:6px}.exercise-count{margin-top:6px}.catalog-pagination{margin-top:8px}
 .pricing-heading .chapter{display:none}.pricing-heading h2{margin-top:0}.pricing-heading{margin-bottom:12px}.billing-control{gap:6px}.membership-detail{padding:16px;gap:7px 16px}.membership-detail ul{gap:5px 14px;padding-top:8px}.pricing-demo-note{margin-top:8px}
}

@media(min-width:1001px) and (max-height:760px){
 :root{--section-space:16px}.membership-detail{padding:14px;gap:6px 16px}.membership-detail ul{gap:4px 14px}.pricing-demo-note svg{width:16px;height:16px}.pricing-heading h2{font-size:30px}.pricing-demo-note{margin-top:6px}
}

@media(max-width:600px){
 .exercises{padding-block:16px}.exercises .split-layout{gap:16px}.exercises .section-copy{padding:16px}.exercises .section-copy .chapter{font-size:12px}.exercises .section-copy h2{font-size:28px;line-height:1.1;margin-block:8px 12px}.exercises .section-copy p{font-size:14px;line-height:1.5}
 .exercise-browser{padding:14px}.browser-title{margin-bottom:10px}.browser-title h3{font-size:20px}.search-field{padding-block:8px}.filter-list{margin-block:8px}.exercise-card{grid-template-columns:60px minmax(0,1fr)}.exercise-card-image{width:60px;height:56px}.exercise-card-info{min-height:56px;padding:6px 28px 6px 10px}.exercise-card-info strong{font-size:13px}.exercise-card-info>span{font-size:12px}.catalog-pagination{margin-top:8px}.exercise-count{margin-top:6px}
 .pricing{padding-block:16px}.pricing-heading .chapter,.pricing-heading>div>p,.billing-control>span,.pricing-demo-note{display:none}.pricing-heading{gap:8px;margin-bottom:12px}.pricing-heading h2{font-size:26px;line-height:1.1;margin:0 0 4px}.billing-control{padding:0}.plan-choice{min-height:64px;padding:10px;gap:4px}.choice-price small{display:none}.membership-detail ul{gap:6px 12px}
}

@media(max-width:600px){
 .entrance{padding-block:24px;gap:16px}.entrance .section-copy{padding:18px}.entrance h2{font-size:30px;line-height:1.1;margin-block:10px 16px}.entrance .section-copy p{font-size:14px;line-height:1.5;margin-bottom:16px}.entrance .text-link{min-height:44px;padding:10px 14px;font-size:14px}
 .feature-strip{display:grid;grid-template-columns:1fr 1fr;gap:12px}.feature-strip article{padding:16px}.feature-strip article:last-child{grid-column:1/-1}.feature-strip article>svg{width:22px;height:22px}.feature-strip article h3{font-size:16px;line-height:1.25;margin:10px 0 6px}.feature-strip article p{font-size:13px;line-height:1.45}
 .faq{padding-block:24px}.faq-layout>div:first-child{padding:18px}.faq h2{font-size:28px;line-height:1.1;margin-block:10px 14px}.faq-layout>div:first-child>p{font-size:14px;margin-block:10px}.faq .text-link{font-size:14px;min-height:44px;padding:10px 14px}.faq summary{padding-block:14px}.faq-list{padding-inline:18px}
}

.exercises .split-layout>*{min-width:0}
@media(max-width:1000px){.exercises .split-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.catalog-pagination{gap:6px}.catalog-pagination button{font-size:12px;padding-inline:8px;gap:6px}.catalog-pagination button svg{display:none}.catalog-pagination>span{font-size:12px;white-space:nowrap}}

/* Match the live site’s section rhythm without enlarging the content panels.
   Desktop: about 160px between content blocks, including existing padding. */
main>#esercizi,main>#prezzi,main>#faq,main>#prossimo-passo{margin-block-start:max(0px,calc(160px - 2 * var(--section-space)))}
@media(max-width:600px){
 main>#esercizi{margin-block-start:20px}
 main>#prezzi{margin-block-start:28px}
 main>#faq{margin-block-start:30px}
 main>#prossimo-passo{margin-block-start:14px}
}

/* In-place controls must not scroll the document when their content changes. */
html{overflow-anchor:none;scrollbar-gutter:stable}

.exercise-results{--exercise-thumb:104px;--exercise-label:56px;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:calc(var(--exercise-thumb) + var(--exercise-label) + 4px);gap:12px;min-height:calc(3 * (var(--exercise-thumb) + var(--exercise-label) + 4px) + 24px)}
.exercise-card{display:flex;flex-direction:column;border:2px solid #ffffff30;border-radius:16px;background:#262626;align-items:stretch}
.exercise-card:hover{border-color:#ff6600;background:#303030}
.exercise-card-image{width:100%;height:var(--exercise-thumb);min-height:var(--exercise-thumb);flex:0 0 auto;background:#fff}
.exercise-card-image img{object-fit:contain;width:100%;height:100%}
.exercise-card-info{width:100%;min-width:0;height:var(--exercise-label);min-height:var(--exercise-label);flex:0 0 var(--exercise-label);padding:4px 10px;align-items:center;justify-content:center;text-align:center}
.exercise-card-info strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;color:var(--orange);font-size:13px;line-height:1.2;font-weight:600}
.exercise-card-info>span,.exercise-card-info>.card-arrow{display:none}
.empty-result{grid-column:1/-1;grid-row:1 / span 3;align-self:center;margin:0;padding:16px;font-size:15px}
.exercises .split-layout{align-items:start}
@media(min-width:1001px) and (max-height:760px){.exercise-results{--exercise-thumb:64px;--exercise-label:52px;gap:10px;min-height:380px}.exercise-card-info strong{line-height:1.1}}
@media(max-width:600px){
 .exercise-results{--exercise-thumb:80px;--exercise-label:64px;gap:10px;min-height:464px}.exercise-card-info{padding:4px}.exercise-card-info strong{-webkit-line-clamp:4;font-size:12px;line-height:1.15}
 .filter-list{display:flex;flex-wrap:nowrap;gap:3px}.filter-list button{flex:1;min-width:0;min-height:44px;padding-inline:3px;font-size:12px;white-space:nowrap}
}

/* Compact entrance, stable mobile viewport and compositor-only door transforms. */
.world{height:100vh;height:100lvh}
.entry-runway{height:24px;min-height:0}
.entry-building,.entry-leaf{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.entry-leaf{will-change:transform}
@media(max-width:600px){.entry-runway{height:16px;min-height:0}}
/* Keep navigation icons present; compact labels only on the narrowest phones. */
.catalog-pagination button svg{display:block;width:16px;height:16px;flex-shrink:0}
@media(max-width:600px){.catalog-pagination button{gap:4px}.catalog-pagination button svg{width:14px;height:14px}}
@media(max-width:360px){.catalog-pagination button{font-size:0;min-width:44px;justify-content:center}.catalog-pagination button svg{width:18px;height:18px}}

@media(min-width:1001px){.plan-choice>svg{display:block;width:18px;height:18px;flex-shrink:0}}

.feature-strip article>svg{margin-bottom:0}
@media(max-width:600px){.feature-strip article>svg{width:36px;height:36px;padding:6px;border-radius:11px}}

/* Shorter opening chapters; content can still grow naturally on small screens. */
@media screen{
 .hero{min-height:max(640px,92svh)}
 .entrance{padding-block:24px;gap:16px}
 main>#esercizi{margin-block-start:max(0px,calc(96px - 2 * var(--section-space)))}
}
@media screen and (max-width:600px){
 .hero{min-height:max(680px,92svh)}
 main>#esercizi{margin-block-start:12px}
}

/* Reference proportions on computers: a tall image area above the orange label. */
@media(min-width:601px){
 .exercises .exercise-browser{width:100%;max-width:560px;justify-self:end}
 .exercise-results{grid-template-rows:repeat(3,minmax(0,1fr));grid-auto-rows:auto;min-height:0;gap:12px}
 .exercise-card{aspect-ratio:1.48;min-height:0}
 .exercise-card-image{height:auto;min-height:0;flex:1 1 0}
 .exercise-card-info{height:60px;min-height:60px;flex-basis:60px;padding:6px 10px}
 .exercise-card-info strong{font-size:13px;line-height:1.2}
}
@media(min-width:1001px) and (max-height:760px){.exercises .exercise-browser{max-width:500px}.exercise-card-info{height:54px;min-height:54px;flex-basis:54px;padding:4px 8px}.exercise-card-info strong{font-size:12px;line-height:1.2}}

/* Preserve the reference composition; one common factor scales both axes. */
@media screen{
 .section-fit{flex:none;max-width:none;margin-inline:auto;transform-origin:top center}
 .entrance>.section-fit{display:flex;flex-direction:column;gap:24px}
 .exercise-results{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));grid-auto-rows:auto;min-height:0;gap:12px}
 .exercise-card{aspect-ratio:1.48;min-height:0}
 .exercise-card-image{height:auto;min-height:0;flex:1 1 0}
 .exercise-card-info{height:60px;min-height:60px;flex:0 0 60px;padding:6px 10px}
 .exercise-card-info strong{font-size:13px;line-height:1.2}
}

/* Give the workout panel more of the composition, retaining uniform section scaling. */
@media screen{
 .entry-hint{display:none}
 html{scroll-snap-type:none}
 .exercises .exercise-browser{max-width:680px;padding:20px}
 .exercise-card-info strong{font-size:14px}
}
@media screen and (min-width:1001px){
 .exercises .split-layout{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:32px}
}
@media screen and (max-width:1000px){
 .exercises .split-layout{gap:16px}
 .exercises .section-copy{padding:18px}
 .exercises .section-copy h2{font-size:28px;margin-block:8px 12px}
 .exercises .section-copy p{font-size:15px;line-height:1.45}
 .exercises .exercise-browser{padding:16px;max-width:none}
 .browser-title{margin-bottom:10px}
 .filter-list{margin-block:10px}
}

/* A single desktop composition, uniformly reduced for laptop viewports. */
@media screen and (min-width:1001px){
 .entrance,.exercises,.pricing,.faq{padding-block:calc(24px * var(--section-scale,1))}
 .section-fit{--gutter:64px;--section-gap:40px}
 .section-fit .wrap{max-width:1440px}
 .section-fit .section-copy{padding:24px}
 .entrance .section-fit h2{font-size:52px;margin-block:14px 20px}
 .exercises .section-fit h2{font-size:48px;margin-block:16px 20px}
 .section-fit .section-copy p{font-size:18px;line-height:1.6}
 .section-fit .feature-strip{gap:20px}
 .section-fit .feature-strip article{padding:20px}
 .section-fit .feature-strip article h3{font-size:20px;margin:14px 0 8px}
 .section-fit .feature-strip article p{font-size:15px;line-height:1.5}
 .section-fit .exercise-browser{max-width:680px;padding:20px}
 .section-fit .exercise-results{gap:12px}
 .section-fit .exercise-card-info{height:60px;min-height:60px;flex-basis:60px;padding:6px 10px}
 .section-fit .exercise-card-info strong{font-size:14px;line-height:1.2}
 .section-fit .pricing-heading{gap:32px;margin-bottom:20px}
 .section-fit .pricing-heading h2{font-size:46px;margin:10px 0 12px;line-height:1.1}
 .section-fit .pricing-heading p{font-size:16px;line-height:1.5}
 .section-fit .pricing-heading .eyebrow{font-size:14px}
 .section-fit .pricing-heading .chapter{display:block}
 .section-fit .billing-control{gap:8px}
 .section-fit .membership-detail{padding:22px;gap:10px 20px}
 .section-fit .membership-detail h3{font-size:25px}
 .section-fit .membership-detail ul{padding-top:14px;gap:8px 16px}
 .section-fit .plan-choice{min-height:94px;padding:18px}
 .section-fit .pricing-demo-note{margin-top:12px;font-size:12px}
 .section-fit .pricing-demo-note svg{width:16px;height:16px}
 .section-fit .faq-layout{gap:40px}
 .section-fit .faq-layout>div:first-child{padding:24px}
 .section-fit .faq h2,.faq .section-fit h2{font-size:48px}
}
@media screen{
 .exercise-results{grid-template-rows:repeat(2,minmax(0,1fr))}
}
/* Each resting view contains one complete chapter; scrolling stays entirely native. */
@media screen{
 .hero{min-height:var(--page-view-height,100svh);padding-top:var(--page-header-height,var(--header-height));justify-content:center}
 .hero>.section-fit{display:flex;flex-direction:column;gap:8px}
 .hero .hero-content{flex:none}
 .entrance,.exercises,.pricing,.faq{
   min-height:calc(var(--page-view-height,100svh) - var(--page-header-height,var(--header-height)) - 24px);
   display:flex;flex-direction:column;align-items:center;justify-content:center;
 }
}
@media screen and (min-width:1001px){
 .hero .section-fit h1{font-size:88px}
 .hero .section-fit .hero-content p{font-size:20px}
}
/* Static photographs: opacity is the only animated property. */
.world{background:#1a1a1a url('assets/scene-0-desktop.webp') center/cover no-repeat}
.scene-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s ease;pointer-events:none}
@media(max-width:600px){.world{background-image:url('assets/scene-0-mobile.webp')}}
@media(prefers-reduced-motion:reduce){.scene-photo{transition:none}}

/* Keep exercise previews readable when two columns share a phone screen. */
@media(max-width:600px){.section-fit .exercise-card{aspect-ratio:1.1}.section-fit .exercise-card-info{height:48px;min-height:48px;flex-basis:48px;padding:4px 6px}.section-fit .exercise-card-info strong{font-size:12px}}

/* The tour is a single spherical scene; doorway transforms stay on the compositor. */
.tour-panorama,.tour-poster{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none}
.tour-panorama{opacity:0;z-index:1}
.tour-poster{object-fit:cover;z-index:0}
.outside-view{z-index:2;contain:layout style;isolation:isolate}
.world-shade{z-index:3}
.entry-building{will-change:transform}
.entry-portal{transform:translateZ(0)}
.entry-building .entry-facade{clip-path:none}
.entry-leaf:before{display:none}
.entry-leaf-left{background:url('assets/tour-door-left-mobile.webp') center/100% 100% no-repeat}
.entry-leaf-right{background:url('assets/tour-door-right-mobile.webp') center/100% 100% no-repeat}
@media(min-width:900px){.entry-leaf-left{background-image:url('assets/tour-door-left-desktop.webp')}.entry-leaf-right{background-image:url('assets/tour-door-right-desktop.webp')}}
@media(prefers-reduced-motion:reduce){.entry-building,.entry-leaf{will-change:auto}}

/* Shared panel edges, using the opening facts panel as the width reference.
   Let chapters grow with their contents instead of applying separate zooms. */
@media screen{
 :root{--home-panel-width:960px;--home-panel-radius:24px;--home-panel-padding:24px;--home-panel-gap:24px}
 .section-fit{width:100%;min-width:0}
 .section-fit>.wrap{
   width:calc(100% - 2 * var(--gutter));max-width:var(--home-panel-width);
   margin-inline:auto;padding-inline:0;
 }
 .section-fit>.hero-bottom{padding:var(--home-panel-padding)}
 .entrance .section-fit .section-copy,.exercises .section-fit .section-copy,
 .section-fit .exercise-browser,.section-fit .faq-layout>div,
 .section-fit .membership-detail{
   width:100%;max-width:none;min-width:0;justify-self:stretch;
   padding:var(--home-panel-padding);border-radius:var(--home-panel-radius);
 }
 .hero-bottom,.section-fit .feature-strip article,.section-fit .plan-choice{border-radius:var(--home-panel-radius)}
 .section-fit .faq-layout,
 .section-fit .membership{grid-template-columns:minmax(0,1fr);gap:var(--home-panel-gap)}
 .entrance>.section-fit{gap:var(--home-panel-gap)}
 .section-fit .feature-strip{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:var(--home-panel-gap);align-items:stretch}
 .section-fit .feature-strip article{padding:var(--home-panel-padding)}
 .section-fit .plan-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--home-panel-gap);align-items:stretch}
 .section-fit .plan-choice{min-width:0;min-height:100px;padding:18px;flex-direction:column;align-items:flex-start;gap:12px}
 .section-fit .choice-price{margin:0;align-items:flex-start}
 .section-fit .plan-choice>svg{display:none}
 .section-fit .choice-heading>span{display:block}
 .section-fit .section-copy p{max-width:620px}
 .section-fit .exercise-browser{justify-self:stretch}
 .section-fit .faq-layout{align-items:stretch}
}
@media screen and (max-width:1000px){
 .section-fit{--gutter:clamp(24px,5vw,48px)}
 .section-fit .pricing-heading{flex-direction:column;align-items:flex-start;gap:20px}
}
@media screen and (max-width:600px){
 :root{--home-panel-radius:20px;--home-panel-padding:18px;--home-panel-gap:16px}
 .section-fit .feature-strip{grid-template-columns:minmax(0,1fr)}
 .section-fit .feature-strip article:last-child{grid-column:auto}
 .section-fit .plan-choices{gap:8px}
 .section-fit .plan-choice{padding:12px;min-height:100px}
 .section-fit .choice-heading strong{font-size:19px}
 .section-fit .choice-heading>span{display:none}
 .section-fit .choice-price{font-size:clamp(16px,5vw,20px)}
 .section-fit .choice-price small{font-size:11px}
}

/* Exercise chapter: full-width copy above the catalog, sharing all panel edges. */
@media screen{
 .exercises .section-fit .split-layout{
   grid-template-columns:minmax(0,1fr);
   gap:var(--home-panel-gap);align-items:start;
 }
 .exercises .section-fit .section-copy{text-align:left;margin:0}
 .exercises .section-fit h2{font-size:clamp(30px,3.3vw,40px);line-height:1.12;margin-block:14px 20px}
 .exercises .section-fit .section-copy p{font-size:17px;line-height:1.6;margin-inline:0;max-width:none}
 .exercises .section-fit h2 br{display:none}
 .exercises .section-fit .exercise-browser{min-width:0}
 .exercises .exercise-results{gap:12px}
 .exercises .exercise-card{aspect-ratio:1.1}
 .exercises .exercise-card-info{height:56px;min-height:56px;flex:0 0 56px;padding:5px 7px}
 .exercises .exercise-card-info strong{font-size:13px;line-height:1.2;-webkit-line-clamp:3}
 .exercises .empty-result{grid-row:1/-1}
 .exercises .browser-footer{flex-wrap:wrap;gap:8px}
}
@media screen and (max-width:819px){
 .exercises .section-fit .split-layout{grid-template-columns:minmax(0,1fr)}
 .exercises .section-fit h2{font-size:clamp(30px,5.2vw,40px)}
}
@media screen and (max-width:600px){
 .exercises .exercise-results{gap:10px}
 .exercises .exercise-card{aspect-ratio:.95}
 .exercises .exercise-card-info strong{font-size:12px}
}

/* The footer follows the navigation gutters and expands across desktop screens. */
@media screen{
 .closing{min-height:0;padding-block:clamp(32px,4vw,56px)}
 .footer{min-height:0;padding-block:0}
 .footer-top{padding-block:24px}
 .footer-bottom{padding-block:16px}
 .footer .section-fit{--gutter:clamp(24px,5vw,80px)}
 .footer .section-fit>.wrap{width:100%;max-width:none;padding-inline:var(--gutter)}
}

/* Compact desktop showcase: copy on the left, nine exercises on the right. */
@media screen and (min-width:1001px){
 .exercises .section-fit .split-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:clamp(24px,4vw,64px);align-items:center}
 .exercises .section-fit .exercise-browser{width:100%;max-width:600px;justify-self:end;padding:clamp(16px,2vw,24px)}
 .exercises .section-fit .section-copy{min-width:0}
 .exercises .section-fit h2 br{display:block}
 .exercises .exercise-results{gap:8px;min-height:0}
 .exercises .exercise-card{aspect-ratio:1.15;min-height:0}
 .exercises .exercise-card-image{height:auto;min-height:0;flex:1 1 0}
 .exercises .exercise-card-info{height:46px;min-height:46px;flex:0 0 46px;padding:4px 6px}
 .exercises .exercise-card-info strong{font-size:12px;line-height:1.15}
}
