/* ===========================================================
   Fisioterapia Alex Pradella — Sacile (PN)
   Design tokens: ink/charcoal/stone/paper/gold
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --ink:#1A1917;
  --charcoal:#2C2925;
  --charcoal-2:#3A3630;
  --stone:#8C8377;
  --stone-light:#C9C2B6;
  --paper:#F6F3EC;
  --paper-2:#EFEAE0;
  --gold:#B07E3F;
  --gold-light:#D3A868;
  --gold-pale:#E7D4B3;
  --line: rgba(26,25,23,0.10);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  opacity:0;
  animation: pageFadeIn .45s ease forwards;
}
@keyframes pageFadeIn{ to{ opacity:1; } }
body.is-leaving{
  opacity:0 !important;
  transition:opacity .28s ease;
  animation:none;
}
@media (prefers-reduced-motion: reduce){
  body{ opacity:1; animation:none; }
  body.is-leaving{ transition:none; }
}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.12;
  margin:0 0 0.5em;
  letter-spacing:-0.01em;
}
p{margin:0 0 1em}
.container{max-width:var(--maxw);margin:0 auto;padding:0 28px}

/* focus states */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
}

/* ---------- skip link ---------- */
.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--gold); color:var(--ink); padding:10px 16px;
  z-index:1000; border-radius:4px;
}
.skip-link:focus{ left:16px; top:16px; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 28px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none;
  font-family:var(--serif);
  font-size:1.5rem;
  font-weight:600;
  color:var(--ink);
}
.brand-mark{width:36px;height:36px;flex:none;object-fit:contain}
.brand-sub{
  display:block;
  font-family:var(--sans);
  font-size:0.78rem;
  font-weight:500;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--gold);
  margin-top:2px;
}
nav.primary-nav ul{
  list-style:none; display:flex; gap:2px; margin:0; padding:0;
}
nav.primary-nav a{
  text-decoration:none;
  font-size:0.92rem;
  font-weight:500;
  color:var(--charcoal);
  padding:10px 16px;
  border-radius:3px;
  position:relative;
}
nav.primary-nav a[aria-current="page"]{ color:var(--gold); }
nav.primary-nav a:hover{ color:var(--gold); }
.header-cta{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--ink); color:var(--paper);
  text-decoration:none;
  padding:11px 20px;
  border-radius:2px;
  font-size:0.88rem; font-weight:600;
  white-space:nowrap;
}
.header-cta:hover{ background:var(--gold); color:var(--ink); }
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center;
  width:38px; height:38px; border:none; background:none; padding:0;
  cursor:pointer; flex:none;
}
.nav-toggle span{
  display:block; width:22px; height:2px; background:var(--ink);
  margin-bottom:5px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav-toggle span:last-child{ margin-bottom:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-nav{
  display:none; flex-direction:column;
  background:var(--paper); border-top:1px solid var(--line);
  padding:6px 28px 20px;
}
.mobile-nav.is-open{ display:flex; }
.mobile-nav a{
  padding:14px 2px; font-size:1.02rem; font-weight:500; color:var(--charcoal);
  text-decoration:none; border-bottom:1px solid var(--line);
}
.mobile-nav a[aria-current="page"]{ color:var(--gold); }
.mobile-nav .btn{ margin-top:16px; justify-content:center; }

@media (max-width:860px){
  nav.primary-nav{ display:none; }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- hero (dark) ---------- */
.hero{
  background:var(--ink);
  color:var(--paper);
  position:relative;
  overflow:hidden;
}
.hero .container{
  padding-top:88px; padding-bottom:88px;
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;
}
.hero-eyebrow{
  font-size:0.78rem; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--gold-light); font-weight:600; margin-bottom:18px; display:block;
}
.hero h1{
  color:var(--paper); font-size:clamp(2.2rem,4.4vw,3.4rem); font-weight:500;
}
.hero h1 em{ font-style:italic; color:var(--gold-light); font-weight:500; }
.hero p.lede{
  color:var(--stone-light); font-size:1.08rem; max-width:46ch; margin-top:18px;
}
.hero-actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }

[data-placeholder]{
  color:var(--gold); font-style:italic;
  border-bottom:1px dashed var(--gold);
}

.hero-scroll-cue{
  position:absolute; left:50%; bottom:26px; transform:translateX(-50%);
  background:none; border:none; padding:10px; margin:0; cursor:pointer;
  color:var(--gold-light); opacity:0.75; line-height:0;
  animation: heroCueBounce 2.4s ease-in-out infinite;
  transition:opacity .2s ease;
}
.hero-scroll-cue:hover{ opacity:1; }
@keyframes heroCueBounce{
  0%, 100% { transform:translateX(-50%) translateY(0); }
  50% { transform:translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce){
  .hero-scroll-cue{ animation:none; }
}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none; font-weight:600; font-size:0.94rem;
  padding:14px 26px; border-radius:2px; border:1px solid transparent;
  transition:transform .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-gold{ background:var(--gold); color:var(--ink); }
.btn-gold:hover{ background:var(--gold-light); }
.btn-outline{ border-color:rgba(246,243,236,0.35); color:var(--paper); }
.btn-outline:hover{ border-color:var(--gold-light); color:var(--gold-light); }
.btn-outline-dark{ border-color:var(--charcoal-2); color:var(--ink); }
.btn-outline-dark:hover{ border-color:var(--gold); color:var(--gold); }

.hero-figure{ position:relative; margin-top:-20px; }
.line-motif{ width:100%; height:auto; }
.line-motif path{
  fill:none; stroke:var(--gold-light); stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round;
}
.line-motif .dot{ fill:var(--gold-light); stroke:none; }

.physio-illus{ width:100%; height:auto; display:block; }
.physio-body{
  fill:none; stroke:var(--gold-light); stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round;
}
.physio-dot{ fill:var(--gold-light); stroke:none; }
.physio-arm-seg{ stroke-width:2.2; }
.physio-bar{ stroke-width:2.6; }
.physio-plate{
  fill:none; stroke:var(--gold-light); stroke-width:2.6;
}

@media (max-width:860px){
  .hero .container{ grid-template-columns:1fr; padding-top:56px; padding-bottom:56px; }
  .hero-figure{ order:-1; max-width:220px; margin:0 auto 8px; }
}

/* ---------- section basics ---------- */
section{ padding:88px 0; }
.section-tight{ padding:64px 0; }
.eyebrow{
  font-size:0.76rem; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--gold); font-weight:600; margin-bottom:14px; display:block;
}
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(1.7rem,3vw,2.3rem); }
.section-head p{ color:var(--charcoal-2); font-size:1.02rem; }
.on-dark{ background:var(--ink); color:var(--paper); }
.on-dark .eyebrow{ color:var(--gold-light); }
.on-dark h2{ color:var(--paper); }
.on-dark p{ color:var(--stone-light); }
.on-tint{ background:var(--paper-2); }

hr.divider{
  border:none; height:1px; background:var(--line); margin:0;
}

/* ---------- cards / grids ---------- */
.grid{ display:grid; gap:28px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:860px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

.card{
  position:relative; overflow:hidden;
  background:var(--paper); border:1px solid var(--line);
  padding:32px 28px; border-radius:2px;
}
.card::before{
  content:""; position:absolute; top:0; left:-160%; width:55%; height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform:skewX(-20deg);
  transition:left .75s ease;
  pointer-events:none;
}
.card:hover::before{ left:160%; }
.card-dark::before{ background:linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent); }
.card .card-num{
  font-family:var(--serif); font-style:italic; color:var(--gold);
  font-size:1rem; margin-bottom:14px; display:block;
}
.card h3{ font-size:1.25rem; margin-bottom:10px; }
.card p{ color:var(--charcoal-2); font-size:0.96rem; margin-bottom:0; }

.card-dark{
  background:var(--charcoal); border:1px solid var(--charcoal-2); color:var(--paper);
}
.card-dark h3{ color:var(--paper); }
.card-dark p{ color:var(--stone-light); }

/* ---------- card-grey: variante uniforme per "Aree di intervento" in Home ---------- */
.card-grey{
  background:#E3DFD3;
  border:1px solid #D5CFC0;
  transition:background-color .35s ease, transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.card-grey::before{ content:none; }
.card-grey:hover{
  background:#C9C2B6;
  border-color:#B8AF9C;
}

/* ---------- stats strip ---------- */
.stats{
  display:flex; flex-wrap:wrap; gap:40px; padding:40px 0;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.stat b{
  display:block; font-family:var(--serif); font-size:2.1rem; color:var(--gold);
  font-weight:600;
}
.stat span{ color:var(--charcoal-2); font-size:0.9rem; }

/* ---------- process / list ---------- */
.step-list{ list-style:none; margin:0; padding:0; }
.step-list li{
  display:grid; grid-template-columns:64px 1fr; gap:20px;
  padding:26px 0; border-bottom:1px solid var(--line);
}
.step-list li:first-child{ border-top:1px solid var(--line); }
.step-num{ font-family:var(--serif); font-style:italic; color:var(--gold); font-size:1.6rem; }
.step-list h3{ font-size:1.1rem; margin-bottom:6px; }
.step-list p{ color:var(--charcoal-2); margin-bottom:0; font-size:0.96rem; }

/* ---------- quote ---------- */
.pull-quote{
  font-family:var(--serif); font-style:italic; font-weight:500;
  font-size:clamp(1.3rem,2.4vw,1.7rem); line-height:1.4; color:var(--ink);
  max-width:800px; position:relative; padding-left:28px; border-left:3px solid var(--gold);
}
.pull-quote cite{
  display:block; font-family:var(--sans); font-style:normal; font-size:0.85rem;
  color:var(--stone); margin-top:16px; font-weight:500;
}

/* ---------- forms ---------- */
.form-grid{ display:grid; gap:18px; }
label{ font-size:0.86rem; font-weight:600; display:block; margin-bottom:6px; }
input, textarea, select{
  width:100%; font-family:var(--sans); font-size:0.96rem;
  padding:13px 14px; border:1px solid var(--stone-light); border-radius:2px;
  background:var(--paper); color:var(--ink);
}
input:focus, textarea:focus, select:focus{
  outline:2px solid var(--gold); outline-offset:1px; border-color:var(--gold);
}
.form-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:600px){ .form-row-2{ grid-template-columns:1fr; } }
.form-note{ font-size:0.82rem; color:var(--stone); margin-top:10px; }

/* ---------- contact info blocks ---------- */
.info-list{ list-style:none; margin:0; padding:0; }
.info-list li{
  display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--line);
  align-items:flex-start;
}
.info-list svg{ flex:none; width:22px; height:22px; margin-top:2px; }
.info-list strong{ display:block; font-size:0.85rem; letter-spacing:0.04em; text-transform:uppercase; color:var(--gold); margin-bottom:4px; }
.info-list span, .info-list a{ color:var(--charcoal-2); text-decoration:none; font-size:0.98rem; }
.info-list a:hover{ color:var(--gold); }

/* ---------- map ---------- */
.map-frame{ border:1px solid var(--line); filter:grayscale(0.4) contrast(1.05); width:100%; height:340px; }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid var(--line); padding:22px 0; }
.faq-item summary{
  cursor:pointer; font-family:var(--serif); font-size:1.08rem; font-weight:600;
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+"; font-family:var(--sans); font-size:1.4rem; color:var(--gold); font-weight:400; flex:none;
}
.faq-item[open] summary::after{ content:"–"; }
.faq-item p{ color:var(--charcoal-2); margin-top:14px; margin-bottom:0; max-width:70ch; }

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--ink); color:var(--paper);
  padding:64px 0; text-align:left;
}
.cta-band .container{ display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap; }
.cta-band h2{ color:var(--paper); margin:0; font-size:clamp(1.5rem,3vw,2rem); }
.cta-band p{ color:var(--stone-light); margin:8px 0 0; }

/* ---------- footer ---------- */
footer.site-footer{
  background:var(--charcoal); color:var(--stone-light); padding:56px 0 28px;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-bottom:36px;
}
.footer-grid h4{ color:var(--gold-light); font-size:0.8rem; letter-spacing:0.1em; text-transform:uppercase; font-family:var(--sans); font-weight:600; margin-bottom:16px; }
.footer-brand{ font-family:var(--serif); color:var(--paper); font-size:1.15rem; margin-bottom:10px; }
.footer-grid ul{ list-style:none; margin:0; padding:0; }
.footer-grid li{ margin-bottom:10px; }
.footer-grid a{ text-decoration:none; color:var(--stone-light); font-size:0.92rem; }
.footer-grid a:hover{ color:var(--gold-light); }
.footer-bottom{
  border-top:1px solid rgba(246,243,236,0.1); padding-top:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:0.8rem; color:var(--stone);
}
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr; } }

/* ---------- breadcrumb ---------- */
.breadcrumb{ font-size:0.84rem; color:var(--stone); padding:20px 0 0; }
.breadcrumb a{ text-decoration:none; color:var(--stone); }
.breadcrumb a:hover{ color:var(--gold); }

/* ---------- utility ---------- */
.mt-0{ margin-top:0 } .mb-0{ margin-bottom:0 }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ===========================================================
   Motion system: entrance animations, scroll reveal, hovers
   =========================================================== */

/* smooth base transitions on interactive/color-bearing elements */
a, .card, .btn, .header-cta, .brand-mark, .info-list svg,
nav.primary-nav a, .faq-item summary::after, .site-header{
  transition: color .25s ease, background-color .25s ease, border-color .25s ease,
              box-shadow .3s ease, transform .3s ease, opacity .3s ease;
}

/* header gains depth once the page scrolls */
.site-header.is-scrolled{
  box-shadow: 0 6px 24px -12px rgba(26,25,23,0.18);
}

/* logo: gentle life on hover */
.brand:hover .brand-mark{ transform: rotate(8deg) scale(1.08); }

/* nav links: gold underline sweep */
nav.primary-nav a{ position:relative; }
nav.primary-nav a::after{
  content:""; position:absolute; left:16px; right:16px; bottom:6px; height:1.5px;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .3s ease;
}
nav.primary-nav a:hover::after,
nav.primary-nav a[aria-current="page"]::after{ transform:scaleX(1); }

/* buttons: lift + soft gold glow */
.btn-gold:hover{ box-shadow:0 10px 28px -10px rgba(176,126,63,0.55); }
.btn-outline:hover, .btn-outline-dark:hover{ box-shadow:0 8px 22px -12px rgba(26,25,23,0.25); }
.header-cta:hover{ box-shadow:0 8px 20px -10px rgba(26,25,23,0.35); transform:translateY(-1px); }

/* cards: lift and gold border on hover */
.card{ transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease; }
.card:hover{
  transform:translateY(-5px);
  box-shadow:0 20px 40px -24px rgba(26,25,23,0.28);
  border-color:var(--gold-pale);
}
.card-dark:hover{ border-color:var(--gold); }
.card-grey:hover{ background:#C9C2B6; border-color:#B8AF9C; }

/* info-list rows: icon nudges right on hover */
.info-list li{ transition: background-color .25s ease; }
.info-list li:hover{ background-color:rgba(176,126,63,0.05); }
.info-list li:hover svg{ transform:translateX(3px); }

/* footer links: slide-in gold */
.footer-grid a{ position:relative; transition: color .25s ease, padding-left .25s ease; }
.footer-grid a:hover{ padding-left:5px; }

/* FAQ: smooth rotating toggle instead of content swap */
.faq-item summary::after{ content:"+"; display:inline-block; transform:rotate(0deg); }
.faq-item[open] summary::after{ content:"+"; transform:rotate(45deg); }
.faq-item[open] summary{ color:var(--gold); }

/* stat numbers: subtle pop on scroll-in handled via .reveal below */

/* ---------- scroll reveal ---------- */
.reveal{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1);
  transition-delay:var(--reveal-delay, 0s);
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* stagger helpers for grids/lists */
.grid.reveal-group > *{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1); }
.grid.reveal-group.is-visible > *{ opacity:1; transform:translateY(0); }
.grid.reveal-group.is-visible > *:nth-child(1){ transition-delay:.05s; }
.grid.reveal-group.is-visible > *:nth-child(2){ transition-delay:.12s; }
.grid.reveal-group.is-visible > *:nth-child(3){ transition-delay:.19s; }
.grid.reveal-group.is-visible > *:nth-child(4){ transition-delay:.26s; }
.grid.reveal-group.is-visible > *:nth-child(5){ transition-delay:.33s; }
.grid.reveal-group.is-visible > *:nth-child(6){ transition-delay:.40s; }

.step-list.reveal-group li{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.step-list.reveal-group.is-visible li{ opacity:1; transform:translateY(0); }
.step-list.reveal-group.is-visible li:nth-child(1){ transition-delay:.05s; }
.step-list.reveal-group.is-visible li:nth-child(2){ transition-delay:.16s; }
.step-list.reveal-group.is-visible li:nth-child(3){ transition-delay:.27s; }

.info-list.reveal-group li{ opacity:0; transform:translateX(-14px); transition:opacity .55s ease, transform .55s ease; }
.info-list.reveal-group.is-visible li{ opacity:1; transform:translateX(0); }
.info-list.reveal-group.is-visible li:nth-child(1){ transition-delay:.04s; }
.info-list.reveal-group.is-visible li:nth-child(2){ transition-delay:.11s; }
.info-list.reveal-group.is-visible li:nth-child(3){ transition-delay:.18s; }
.info-list.reveal-group.is-visible li:nth-child(4){ transition-delay:.25s; }

.stats.reveal-group .stat{ opacity:0; transform:translateY(14px); transition:opacity .55s ease, transform .55s ease; }
.stats.reveal-group.is-visible .stat{ opacity:1; transform:translateY(0); }
.stats.reveal-group.is-visible .stat:nth-child(1){ transition-delay:.03s; }
.stats.reveal-group.is-visible .stat:nth-child(2){ transition-delay:.1s; }
.stats.reveal-group.is-visible .stat:nth-child(3){ transition-delay:.17s; }
.stats.reveal-group.is-visible .stat:nth-child(4){ transition-delay:.24s; }

/* ---------- hero entrance (plays on load, not on scroll) ---------- */
.hero-eyebrow, .hero h1, .hero p.lede, .hero-actions{
  opacity:0; transform:translateY(16px);
  animation: heroIn .8s cubic-bezier(.2,.65,.3,1) forwards;
}
.hero-eyebrow{ animation-delay:.05s; }
.hero h1{ animation-delay:.15s; }
.hero p.lede{ animation-delay:.28s; }
.hero-actions{ animation-delay:.4s; }
.hero-figure{ opacity:0; transform:scale(.94); animation: heroFigureIn 1s cubic-bezier(.2,.65,.3,1) forwards; animation-delay:.2s; }

@keyframes heroIn{ to{ opacity:1; transform:translateY(0); } }
@keyframes heroFigureIn{ to{ opacity:1; transform:scale(1); } }

/* line-motif: gentle draw-in using stroke dash, once per path length guess */
.line-motif path{
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 1.8s cubic-bezier(.25,.7,.3,1) forwards;
  animation-delay:.3s;
}
.line-motif .dot{
  opacity:0; transform-origin:center; transform-box:fill-box;
  animation: dotIn .5s ease forwards 1.6s,
             dotPulse 2.6s ease-in-out infinite 2.2s;
}
@keyframes drawLine{ to{ stroke-dashoffset:0; } }
@keyframes dotIn{ to{ opacity:1; } }
@keyframes dotPulse{
  0%, 100% { transform:scale(1); opacity:1; }
  50% { transform:scale(1.35); opacity:0.6; }
}

/* ---------- illustrazione fisioterapia: squat con bilanciere ---------- */
.physio-illus .physio-body{
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: physioDraw 1.6s cubic-bezier(.25,.7,.3,1) forwards;
  animation-delay:.25s;
}
.physio-illus .physio-dot{
  opacity:0;
  animation: physioFadeIn .4s ease forwards;
  animation-delay:1.4s;
}
.squat-ankle-l, .squat-ankle-r{
  animation: squatAnkleL 4.5s cubic-bezier(.45,0,.2,1) infinite;
  animation-delay:1.9s;
}
.squat-ankle-r{ animation-name: squatAnkleR; }
.squat-knee-l, .squat-knee-r{
  animation: squatKneeL 4.5s cubic-bezier(.45,0,.2,1) infinite;
  animation-delay:1.9s;
}
.squat-knee-r{ animation-name: squatKneeR; }
.squat-torso{
  animation: squatTorso 4.5s cubic-bezier(.45,0,.2,1) infinite;
  animation-delay:1.9s;
}
@keyframes physioDraw{ to{ stroke-dashoffset:0; } }
@keyframes physioFadeIn{ to{ opacity:1; } }
@keyframes squatAnkleL{
  0%, 8%   { transform: rotate(0deg); }
  45%      { transform: rotate(-32deg); }
  55%      { transform: rotate(-32deg); }
  92%, 100%{ transform: rotate(0deg); }
}
@keyframes squatAnkleR{
  0%, 8%   { transform: rotate(0deg); }
  45%      { transform: rotate(32deg); }
  55%      { transform: rotate(32deg); }
  92%, 100%{ transform: rotate(0deg); }
}
@keyframes squatKneeL{
  0%, 8%   { transform: rotate(0deg); }
  45%      { transform: rotate(78deg); }
  55%      { transform: rotate(78deg); }
  92%, 100%{ transform: rotate(0deg); }
}
@keyframes squatKneeR{
  0%, 8%   { transform: rotate(0deg); }
  45%      { transform: rotate(-78deg); }
  55%      { transform: rotate(-78deg); }
  92%, 100%{ transform: rotate(0deg); }
}
@keyframes squatTorso{
  0%, 8%   { transform: translateY(0); }
  45%      { transform: translateY(47px); }
  55%      { transform: translateY(47px); }
  92%, 100%{ transform: translateY(0); }
}

/* ---------- coworking teaser illustration ---------- */
.cw-teaser-illus .cw-teaser-blink{
  animation: cwBlink 2.8s ease-in-out infinite;
}
.cw-teaser-illus .cw-teaser-highlight{
  animation: cwGlow 2.4s ease-in-out infinite;
  transform-origin:center; transform-box:fill-box;
}
@keyframes cwBlink{
  0%, 100% { opacity:1; }
  50% { opacity:0.25; }
}
@keyframes cwGlow{
  0%, 100% { opacity:0.15; }
  50% { opacity:0.32; }
}

/* pull-quote: soft fade handled by .reveal class applied in markup */

/* respect reduced motion: kill everything above, instantly show content */
@media (prefers-reduced-motion: reduce){
  .reveal, .grid.reveal-group > *, .step-list.reveal-group li,
  .info-list.reveal-group li, .stats.reveal-group .stat,
  .hero-eyebrow, .hero h1, .hero p.lede, .hero-actions, .hero-figure,
  .line-motif path, .line-motif .dot,
  .physio-illus .physio-body,
  .physio-illus .physio-dot{
    opacity:1 !important; transform:none !important; animation:none !important;
    stroke-dashoffset:0 !important;
  }
  .squat-ankle-l, .squat-ankle-r, .squat-knee-l, .squat-knee-r{ animation:none !important; transform:rotate(0deg) !important; }
  .squat-torso{ animation:none !important; transform:translateY(0) !important; }
  .cw-teaser-blink, .cw-teaser-highlight{
    animation:none !important;
  }
}

/* ===========================================================
   AGGIUNTE
   =========================================================== */

/* ---------- badge-icona a tema ---------- */
.icon-badge{
  width:52px; height:52px; border-radius:50%;
  background:var(--paper-2); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.icon-badge svg{ width:26px; height:26px; }
.card-dark .icon-badge{ background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.16); }
.icon-badge-lg{ width:64px; height:64px; }
.icon-badge-lg svg{ width:32px; height:32px; }

/* ---------- ritratto fotografico ---------- */
.portrait-photo{
  width:100%; height:auto; display:block;
  aspect-ratio:320/380; object-fit:cover; object-position:center 20%;
  border-radius:2px; border:1px solid var(--line);
  box-shadow:0 24px 48px -28px rgba(26,25,23,0.25);
  background:var(--paper-2);
}

/* ===== Aree del corpo trattate: icone cliccabili ===== */
.body-icon-row{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:32px 22px; margin-bottom:40px;
}
.body-icon-btn{
  display:flex; flex-direction:column; align-items:center; gap:12px;
  width:110px; background:none; border:none; padding:4px; cursor:pointer;
  font-family:inherit; color:var(--charcoal-2);
}
.body-icon-btn .icon-badge-lg{ width:76px; height:76px; }
.body-icon-btn .icon-badge-lg svg{ width:44px; height:44px; }
.body-icon-btn .icon-badge{
  margin-bottom:0;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.body-icon-btn:hover .icon-badge,
.body-icon-btn:focus-visible .icon-badge,
.body-icon-btn.is-active .icon-badge{
  transform:translateY(-3px);
  border-color:var(--gold);
  background:var(--paper);
  box-shadow:0 10px 20px -10px rgba(26,25,23,0.35);
}
.body-icon-btn.is-active .icon-badge{ background:var(--gold); }
.body-icon-btn.is-active .icon-badge svg *{ stroke:var(--paper) !important; }
.body-icon-btn.is-active .icon-badge svg [fill]:not([fill="none"]){ fill:var(--paper) !important; }
.body-icon-btn:focus{ outline:none; }
.body-icon-btn:focus-visible{ outline:2px solid var(--gold); outline-offset:4px; border-radius:4px; }
.body-icon-label{
  font-size:0.82rem; text-align:center; line-height:1.25;
  color:var(--charcoal-2); font-weight:500;
}
.body-icon-btn.is-active .body-icon-label{ color:var(--charcoal); font-weight:600; }
.anatomy-panel{
  background:var(--paper-2); border:1px solid var(--line); border-radius:2px;
  padding:32px 36px; min-height:220px; max-width:640px; margin:0 auto;
}
.anatomy-panel-eyebrow{
  color:var(--gold); font-weight:600; font-size:0.85rem;
  text-transform:uppercase; letter-spacing:0.04em; display:block;
}
.anatomy-panel h3{
  font-size:1.5rem; margin:10px 0 18px; color:var(--charcoal); font-weight:500;
}
.anatomy-panel ul{ margin:0; padding:0; list-style:none; display:grid; gap:12px; }
.anatomy-panel li{
  padding-left:22px; position:relative; color:var(--charcoal-2); line-height:1.4;
}
.anatomy-panel li::before{
  content:""; position:absolute; left:0; top:8px; width:8px; height:8px;
  border-radius:50%; background:var(--gold-light);
}
.anatomy-panel-default p{ color:var(--charcoal-2); }
.anatomy-panel-note{
  margin-top:22px; padding-top:18px; border-top:1px solid var(--line);
  font-size:0.85rem; color:var(--stone);
}
@media (max-width:760px){
  .body-icon-row{ gap:24px 16px; }
  .body-icon-btn{ width:84px; }
  .body-icon-btn .icon-badge-lg{ width:64px; height:64px; }
  .body-icon-btn .icon-badge-lg svg{ width:36px; height:36px; }
  .anatomy-panel{ padding:26px 24px; min-height:0; }
}
@media (prefers-reduced-motion: reduce){
  .body-icon-btn .icon-badge{ transition:none; }
  .body-icon-btn:hover .icon-badge,
  .body-icon-btn:focus-visible .icon-badge,
  .body-icon-btn.is-active .icon-badge{ transform:none; }
}

/* ===== Illustrazioni di scena ===== */
.scene-illus{ width:100%; height:auto; display:block; }
.scene-line{
  fill:none; stroke:var(--charcoal-2); stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round;
}
.scene-accent{
  fill:none; stroke:var(--gold); stroke-width:2.2;
  stroke-linecap:round; stroke-linejoin:round;
}
.scene-dash{
  fill:none; stroke:var(--gold); stroke-width:1.8;
  stroke-linecap:round; stroke-dasharray:5 7;
}
.scene-dot{ fill:var(--gold); stroke:none; }
.scene-fill-bg{ fill:var(--paper-2); }
.scene-wrap{
  background:var(--paper-2); border:1px solid var(--line); border-radius:2px;
  padding:24px;
}

/* ---------- illustrazione animata: circumduzione di spalla ---------- */
.scene-head{ fill:var(--paper-2); }
.arm-rotate{
  transform-box:view-box;
  transform-origin:118px 78px;
  animation:armCircle 6s linear infinite;
}
@keyframes armCircle{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}
.arm-path{
  stroke-dasharray:301.6;
  stroke-dashoffset:301.6;
  animation:armTrace 6s linear infinite;
}
@keyframes armTrace{
  from{ stroke-dashoffset:301.6; }
  to{ stroke-dashoffset:0; }
}
@media (prefers-reduced-motion: reduce){
  .arm-rotate{ animation:none; transform:rotate(-45deg); }
  .arm-path{ animation:none; stroke-dashoffset:0; }
}

/* ===== Pulsante flottante WhatsApp ===== */
.whatsapp-float{
  position:fixed; right:20px; bottom:20px; z-index:80;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 22px -6px rgba(26,25,23,0.45);
  transition:transform .15s ease, box-shadow .15s ease;
  text-decoration:none;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible{
  transform:translateY(-3px);
  box-shadow:0 12px 28px -6px rgba(26,25,23,0.5);
}
.whatsapp-float:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
.whatsapp-float svg{ width:29px; height:29px; display:block; }
@media (max-width:600px){
  .whatsapp-float{ right:16px; bottom:16px; width:52px; height:52px; }
  .whatsapp-float svg{ width:26px; height:26px; }
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-float{ transition:none; }
}
