
:root{--navy:#031a2b;--deep:#001522;--cyan:#1dbce2;--lime:#d9ff31;--ink:#071b2c}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--deep);color:#fff;font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}h1,h2,h3,.nav,.btn,.feature b{font-family:Impact,'Arial Narrow',sans-serif;font-stretch:condensed;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h2{font-size:clamp(38px,5.3vw,72px);line-height:.96;letter-spacing:-.7px}h3{font-size:clamp(25px,2.8vw,39px);line-height:.95}p{line-height:1.55}.lime{color:var(--lime)}.eyebrow{font-size:12px;letter-spacing:2.2px;font-weight:800;color:var(--lime);text-transform:uppercase}.wrap{max-width:1500px;margin:auto}.header{height:76px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:9px 5.2%;background:#001522;position:relative;z-index:50}.brand img{display:block;width:165px;height:auto}.nav{display:flex;gap:31px;align-items:center;font-size:15px}.nav a{padding:10px 0;border-bottom:2px solid transparent}.nav a:hover,.nav a.active{border-color:var(--lime)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:18px;background:var(--lime);color:#061a23;border:0;border-radius:30px;padding:15px 27px;font-size:16px;line-height:1;font-weight:800;white-space:nowrap}.btn:hover{filter:brightness(.92)}.btn.dark{background:#001a2b;color:#fff}.hamb{display:none;color:white;background:none;border:0;font-size:30px;cursor:pointer}.hero{height:min(610px,56vw);min-height:490px;position:relative;overflow:hidden;background:#001a2a;display:grid;grid-template-columns:35% 65%}.hero-photo{background-size:cover;background-position:center}.hero-gym{background-image:linear-gradient(90deg,transparent 40%,#001827a8 100%),url('hero-gym.webp');background-position:45% 38%}.hero-pool{background-image:linear-gradient(90deg,#001827b8 0%,transparent 65%),url('hero-pool.webp');background-position:center 36%}.hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 10%,#0013216b 39%,transparent 80%);pointer-events:none}.hero-copy{position:absolute;z-index:2;top:12%;left:34%;max-width:480px}.hero h1{font-size:clamp(62px,6.7vw,104px);line-height:.88;letter-spacing:-1.5px;margin:15px 0 24px}.hero-sub{font-size:13px;letter-spacing:1px;font-weight:700;margin-bottom:30px}.hero-note{position:absolute;right:4%;bottom:7%;z-index:2;font:16px Impact,sans-serif;text-transform:uppercase;border-left:2px solid var(--cyan);padding-left:12px}.hero-scroll{position:absolute;bottom:6%;left:5%;font:12px Impact,sans-serif;z-index:2}.features{background:#001827;border-top:2px solid #067e9d;display:grid;grid-template-columns:repeat(3,1fr);padding:28px 6%;gap:25px}.feature{display:flex;align-items:center;gap:22px;border-right:1px solid #365565;padding:10px 20px}.feature:last-child{border:0}.feature .sym{font-size:37px;color:var(--cyan);width:55px;text-align:center}.feature b{font-size:23px}.feature p{font-size:13px;margin:4px 0 0;color:#c9d6dd}.light{background:#fff;color:var(--ink)}section.content-section{padding:52px 2% 42px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:25px;padding:0 3%;margin-bottom:28px}.section-head h2{margin:10px 0 0}.section-head p{max-width:315px;font-size:14px}.section-head .eyebrow{color:#408aa1}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.tile{position:relative;min-height:355px;overflow:hidden;background:#042435;display:flex;align-items:end;padding:20px 14px}.tile img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;transition:transform .4s}.tile:hover img{transform:scale(1.06)}.tile:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#001a2a 1%,#001a2a70 36%,transparent 75%)}.tile-copy{position:relative;z-index:1;width:100%}.tile h3{margin:0 0 8px}.tile p{font-size:13px;line-height:1.25;max-width:170px;margin:0}.tile .arrow{border:1px solid #9fd3e1;width:28px;height:28px;display:grid;place-items:center;border-radius:50%;margin-left:auto;margin-top:7px}.story{min-height:430px;background:#001a2b;display:grid;grid-template-columns:43% 40% 17%;position:relative;overflow:hidden}.story-copy{padding:45px 0 45px 8%;position:relative;z-index:2}.story h2{margin:13px 0 22px}.story p{max-width:340px;font-size:14px}.story .btn{margin-top:18px}.founder{background-image:linear-gradient(90deg,#001a2b 0%,transparent 35%),url('founder.webp?v=2');background-size:cover;background-position:center top;min-height:430px}.story-quote{align-self:center;font:25px Impact,sans-serif;text-transform:uppercase;line-height:1.2;padding:15px}.story-quote strong{color:var(--lime)}.signature{font:italic 25px cursive;margin:18px 0 2px}.story-small{font-size:10px;letter-spacing:1px}.programs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.programs .tile{min-height:285px}.cta{background:var(--lime);color:#001522;min-height:160px;display:grid;grid-template-columns:30% 38% 32%;align-items:center;gap:0}.cta-photo{align-self:stretch;background-image:url('club-sala-panorama.webp');background-size:cover;background-position:center}.cta h2{font-size:clamp(35px,4vw,55px);margin:0;padding:20px}.cta-copy{border-left:1px solid #668000;padding:20px 30px}.cta-copy p{font-size:14px}.footer{padding:45px 6% 25px;background:#001522;display:grid;grid-template-columns:32% 40% 28%;gap:0}.footer-logo img{width:240px;max-width:90%}.footer-contact{font-size:14px;line-height:1.7}.footer-slogan{font:35px Impact,sans-serif;line-height:1.05;text-transform:uppercase;padding-left:25px;border-left:1px solid #2a5263}.footer-slogan strong{color:var(--lime)}.footer-links{grid-column:1/-1;display:flex;gap:25px;justify-content:center;padding:25px;font:14px Impact,sans-serif;text-transform:uppercase}.copyright{grid-column:1/-1;border-top:1px solid #25495b;padding-top:20px;font-size:11px;color:#a3b6bf;display:flex;justify-content:space-between}.page-hero{background:linear-gradient(110deg,#001522,#07526a);padding:85px 7%}.page-hero h1{font-size:clamp(60px,9vw,115px);margin:12px 0 0;font-family:Impact,sans-serif;text-transform:uppercase}.page-content{background:#fff;color:#001522;padding:65px 7%;min-height:48vh}.page-content .intro{font-size:20px;max-width:880px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:30px 0}.detail{padding:25px;border:1px solid #d3e2e9}.detail h3{margin:0 0 12px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.contact-grid iframe{width:100%;height:360px;border:0}@media(max-width:900px){.header{height:70px}.brand img{width:140px}.hamb{display:block}.nav{display:none;position:absolute;top:70px;left:0;right:0;background:#001522;padding:25px;flex-direction:column;align-items:flex-start}.nav.open{display:flex}.header>.btn{display:none}.hero{height:610px;grid-template-columns:45% 55%}.hero-copy{left:25%;top:18%}.hero h1{font-size:72px}.cards{grid-template-columns:repeat(3,1fr)}.story{grid-template-columns:48% 52%}.story-quote{display:none}.cta{grid-template-columns:25% 45% 30%}.footer{grid-template-columns:1fr 1fr}.footer-slogan{display:none}}@media(max-width:600px){.hero{height:670px;min-height:0;grid-template-columns:50% 50%}.hero-copy{left:7%;top:27%;right:5%}.hero h1{font-size:clamp(59px,13vw,77px);text-shadow:0 2px 25px #001522}.hero-note{display:none}.hero:after{background:#00152266}.features{grid-template-columns:1fr;gap:5px}.feature{border-right:0;border-bottom:1px solid #284b5d}.cards{grid-template-columns:repeat(2,1fr);gap:8px}.tile{min-height:280px}.section-head{display:block}.story{grid-template-columns:1fr}.story-copy{padding:40px 7%}.founder{min-height:320px;background-position:center 22%}.programs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.programs .tile{min-height:270px}.cta{grid-template-columns:1fr}.cta-photo{height:110px}.cta-copy{border:0}.footer{grid-template-columns:1fr;gap:20px}.footer-links{flex-wrap:wrap}.copyright{display:block}.detail-grid,.contact-grid{grid-template-columns:1fr}}

/* Correzione 01: contrasto testi e fotografie senza scritte incorporate */
.tile{isolation:isolate}
.tile img{object-position:center top;filter:contrast(1.06) saturate(1.06)}
.tile:after{background:linear-gradient(0deg,rgba(0,17,29,.98) 0%,rgba(0,17,29,.91) 25%,rgba(0,17,29,.4) 57%,transparent 85%)}
.tile-copy{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.65)}
.tile-copy h3{color:#fff!important;font-size:clamp(26px,2.6vw,38px);line-height:1.02;text-shadow:0 2px 5px #001522}
.tile-copy p{color:#f5fbff!important;font-size:14px;font-weight:600;line-height:1.35;opacity:1}
.tile .arrow{color:#fff!important;background:#00364b;border:2px solid #b9e9f5}
.programs .tile img{object-position:center top}
.hero-copy{color:#fff}
.hero h1{color:#fff;text-shadow:0 3px 12px rgba(0,10,22,.7)}
.hero h1 .lime{color:#d9ff31}

/* Fotografie nuove: sorgenti fotografiche separate, niente scritte impresse */
.hero-gym{background-position:center center}
.hero-pool{background-position:center center}
.tile img{object-fit:cover;object-position:center center;filter:none}
.tile-copy h3,.tile-copy p{color:#fff!important}
.tile:after{background:linear-gradient(to top,rgba(0,17,29,.98),rgba(0,17,29,.65) 38%,transparent 78%)}

.club-photos { padding-block: clamp(2rem, 5vw, 4rem); }
.club-photos h2 { margin: 0 0 1.25rem; }
.club-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.club-photo-grid figure { margin: 0; min-width: 0; }
.club-photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .65rem; }
.club-photo-grid figcaption { padding-top: .55rem; font-size: .9rem; line-height: 1.4; }

.hero-photo { position: relative; min-width: 0; overflow: hidden; }
.hero-photo video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: inherit; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: rgba(5, 38, 79, .22); }
.hero h1 { position: relative; width: fit-content; }
.hero-laser { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); pointer-events: none; opacity: 0; animation: hero-laser-fade 2.4s .35s both; }
.hero-laser path { fill: none; stroke: #d9ff31; stroke-width: 2px; stroke-dasharray: 100; stroke-dashoffset: 100; animation: hero-laser-draw 1.25s .35s ease-out forwards; }
@keyframes hero-laser-draw { to { stroke-dashoffset: 0; } }
@keyframes hero-laser-fade { 0% { opacity: 0; } 10%, 72% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 390px) { .hero h1 { font-size: clamp(40px, 13.8vw, 54px); } }
@media (prefers-reduced-motion: reduce) { .hero-laser { display: none; } }
.medical-photo { display: block; width: min(100%, 680px); height: auto; margin: 0 auto 2rem; border-radius: .65rem; }


.hero-club { position: absolute; inset: 0; background: #001522 url("hero-club.webp") center / cover; }

:is(.home-area-cards, .home-program-cards, .cardio-activities) {
  --area-card-navy: #041521;
  --area-card-lime: #e0fe5e;
}
.home-area-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
:is(.home-area-cards, .home-program-cards, .cardio-activities) .tile { background: var(--area-card-navy); }
:is(.home-area-cards, .home-program-cards, .cardio-activities) .tile::after {
  background: linear-gradient(to top, var(--area-card-navy) 0%, #041521bc 26%, transparent 62%);
}
.home-area-cards .tile::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(145deg, #04152124 25%, #e0fe5e22 100%);
  mix-blend-mode: color;
  pointer-events: none;
}
.home-area-cards .tile-nuoto img {
  object-position: 64% 50%;
  transform: translate(-9%, calc(-1% - 40px)) scale(1.32);
}
.home-area-cards :is(.tile-nuoto, .tile-medica)::before { content: none; }
:is(.home-area-cards, .home-program-cards, .cardio-activities) .tile .arrow {
  background: var(--area-card-lime);
  border-color: var(--area-card-lime);
  color: var(--area-card-navy) !important;
}
@media (max-width: 760px) {
  .home-area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Card conclusiva dei corsi in home */
.home-program-cards .all-courses-promo {
  background: #d9ff31 !important;
  color: #001522 !important;
  isolation: isolate;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 3rem);
}
.home-program-cards .all-courses-promo::after {
  background: radial-gradient(circle at 88% 12%, rgba(0,21,34,.12) 0 18%, transparent 18.5%),
              linear-gradient(135deg, transparent 58%, rgba(0,21,34,.09) 58% 100%);
}
.home-program-cards .all-courses-promo .tile-copy {
  color: #001522 !important;
  text-shadow: none;
  text-align: left;
}
.home-program-cards .all-courses-promo .promo-kicker {
  display: block;
  margin-bottom: .75rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.home-program-cards .all-courses-promo h3 {
  margin: 0;
  color: #001522 !important;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .83;
  text-shadow: none;
}
.home-program-cards .all-courses-promo p {
  margin-top: 1rem;
  color: #001522 !important;
  font-size: 1rem;
  text-shadow: none;
}
.home-program-cards .all-courses-promo .arrow {
  width: 3.1rem;
  height: 3.1rem;
  background: #001522;
  border-color: #001522;
  color: #d9ff31 !important;
}

@property --tile-laser-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
:is(.home-area-cards, .home-program-cards, .cardio-activities) .tile { border-radius: 0 15px 0 15px; }
:is(.home-area-cards, .home-program-cards, .cardio-activities) .tile-laser {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(from -90deg, var(--area-card-lime, #e0fe5e) var(--tile-laser-angle), transparent var(--tile-laser-angle));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
@keyframes area-tile-laser {
  0% { --tile-laser-angle: 0deg; opacity: 1; }
  76% { --tile-laser-angle: 360deg; opacity: 1; }
  100% { --tile-laser-angle: 360deg; opacity: 0; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.home-area-cards, .home-program-cards, .cardio-activities) .tile:hover .tile-laser { animation: area-tile-laser 850ms ease-out both; }
}

.home-area-cards .tile[data-drop-pending]:not(:focus-within) { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .home-area-cards .tile[data-drop-pending]:not(:focus-within) { opacity: 1; }
}

.founder { position: relative; overflow: hidden; }
.founder-scan {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--founder-cover-width, 100%);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  visibility: hidden;
}
@media (max-width: 600px) {
  .founder-scan { top: 22%; transform: translate(-50%, -22%); }
}
.founder-scan path {
  fill: none;
  stroke: #e0fe5e;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.founder-outline { stroke-dasharray: 100; stroke-dashoffset: 100; }
@media (prefers-reduced-motion: no-preference) {
  .founder.laser-visible .founder-scan {
    visibility: visible;
    animation: hero-laser-fade 5s both;
  }
  .founder.laser-visible .founder-outline { animation: hero-laser-draw 2.15s ease-out both; }
}

/* Aggiorna il ritratto reale di Vincenzo Scirrotta nella home. */
.founder{background-image:linear-gradient(90deg,#001a2b 0%,transparent 35%),url('founder.webp?v=3')}


.active-courses-title span { color: var(--section-yellow); }
@media (min-width: 901px) {
  .home-program-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .home-program-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cta.cta-text-only { grid-template-columns: 1fr 1fr; }
.footer { column-gap: clamp(1rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .75fr); }
.footer-brand p { max-width: 34ch; margin: .75rem 0 0; color: #dce9ef; }
.footer-contact { display: grid; align-content: start; gap: .75rem; font-size: 1rem; }
.footer-contact-row { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr); align-items: start; gap: .7rem; overflow-wrap: anywhere; }
.footer-contact-row svg { width: 1.25rem; height: 1.25rem; color: #e0fe5e; margin-top: .2rem; }
.footer-directions { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .32rem .6rem; border: 1px solid #e0fe5e; border-radius: .25rem; color: #e0fe5e; font-size: .875rem; font-weight: 700; text-transform: uppercase; }
.footer-directions svg { width: 1.25rem; height: 1.25rem; flex: none; }
.footer-directions:hover, .footer-directions:focus-visible { background: #e0fe5e; color: #041521; }
.footer-directions:hover svg, .footer-directions:focus-visible svg { color: inherit; }
@media (max-width: 900px) {
  .footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cta.cta-text-only, .footer { grid-template-columns: minmax(0, 1fr); }
}

:root { --section-yellow: #ceea56; }
.features { border-top-color: var(--section-yellow); }
.feature .sym { color: var(--section-yellow); flex: 0 0 55px; }
.feature .sym svg { display: block; width: 44px; height: 32px; margin-inline: auto; }

.home-program-cards .tile img { transform-origin: center top; transform: scale(var(--course-photo-scale, 1)); }
.home-program-cards .tile:hover img { transform: scale(calc(var(--course-photo-scale, 1) * 1.06)); }
.home-program-cards .tile-zumba { --course-photo-scale: 1.12; }
.home-program-cards .tile-functional-move { --course-photo-scale: 1; }
.home-program-cards .tile-functional-move img { object-position: center center; transform-origin: center center; }

.footer-socials { display: flex; gap: .65rem; margin-top: .85rem; }
.footer-socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e0fe5e; border-radius: 50%; color: #e0fe5e; }
.footer-socials svg { width: 21px; height: 21px; }
.footer-socials a:hover, .footer-socials a:focus-visible { background: #e0fe5e; color: #041521; }
.footer-cta-title { font: 35px/1.05 Impact,'Arial Narrow',sans-serif; text-transform: uppercase; }
.footer-cta-title strong { display: block; margin-top: .3rem; }
.footer-whatsapp { display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; padding: .7rem 1rem; border: 1px solid #e0fe5e; border-radius: 999px; color: #e0fe5e; font: 700 .82rem/1 Arial,sans-serif; text-transform: uppercase; }
.footer-whatsapp:hover, .footer-whatsapp:focus-visible { background: #e0fe5e; color: #041521; }
.footer-slogan .footer-socials { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .footer-slogan { display: block; grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 1.25rem; }
}

.footer-links { grid-column: auto; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: .7rem; padding: 0; font-size: 1rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--lime); }
@media (min-width: 901px) {
  .footer { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.16fr) minmax(0, .72fr) minmax(0, .55fr); padding-inline: 5%; column-gap: clamp(1.1rem, 3vw, 3rem); }
  .copyright { margin-top: 1.75rem; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .footer-slogan { grid-column: auto; }
  .footer-links { margin-top: 1.25rem; }
}

.cardio-activities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.cardio-activity { background: #041521; color: #fff; border-radius: 0 15px 0 15px; overflow: hidden; }
.cardio-activities .tile { cursor: pointer; list-style: none; min-height: 275px; }
.cardio-activities .tile::-webkit-details-marker { display: none; }
.cardio-activities .tile:focus-visible { outline: 2px solid #e0fe5e; outline-offset: -3px; }
.cardio-activity-title { display: block; margin-bottom: .5rem; font: clamp(1.5rem, 3vw, 2.4rem)/1.05 Impact, 'Arial Narrow', sans-serif; text-transform: uppercase; }
.cardio-activities .tile .arrow::before { content: '+'; }
.cardio-activity[open] .tile .arrow::before { content: '−'; }
.cardio-activity-copy { padding: 1rem; border-top: 1px solid #395260; }
.cardio-activity-copy p { margin: 0 0 .75rem; }
.cardio-activity-copy .btn { white-space: normal; line-height: 1.3; text-align: center; }
@media (max-width: 760px) {
  .cardio-activities { grid-template-columns: 1fr; }
}

/* Mobile alignment shared by every page */
@media (max-width: 760px) {
  body { text-align: center; }
  .nav { align-items: center; text-align: center; }
  .hero-copy, .page-hero, .page-content, .story-copy, .cta-copy,
  .section-head, .tile-copy, .detail, .footer-brand, .footer-contact,
  .footer-slogan, .footer-links { text-align: center; }
  .hero-copy, .section-head p, .story p, .page-content .intro,
  .tile p, .footer-brand p { margin-inline: auto; }
  .btn { margin-inline: auto; }
  .section-head { align-items: center; }
  .hero-copy h1 { width: 100%; text-align: center; }
  .features { justify-items: center; }
  .feature {
    width: min(100%, 22rem);
    justify-content: flex-start;
    text-align: left;
    margin-inline: auto;
  }
  .feature .sym { flex: 0 0 55px; }
  .footer-contact-row { grid-template-columns: 1fr; justify-items: center; }
  .footer-contact-row svg { margin-top: 0; }
  .footer-socials { justify-content: center; }
  .footer-links { align-items: center; }
  .copyright { text-align: center; }
}

.mobile-menu { display: none; }
@media (max-width: 900px) {
  body.menu-open { overflow: hidden; }
  .hamb {
    position: relative;
    z-index: 1002;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 50%;
  }
  .mobile-menu {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: max(1.2rem, env(safe-area-inset-top)) 1.4rem max(1.3rem, env(safe-area-inset-bottom));
    background: radial-gradient(circle at 85% 12%,#0a3b50 0,transparent 34%),#001522;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .48s cubic-bezier(.22,.8,.22,1), opacity .35s ease, visibility 0s linear .48s;
    text-align: left;
  }
  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: .8rem;
    border-bottom: 2px solid #dfff32;
    font: 1.1rem Impact, 'Arial Narrow', sans-serif;
    letter-spacing: .08em;
  }
  .mobile-menu-close {
    width: 48px;
    height: 48px;
    border: 1.5px solid #dfff32;
    border-radius: 50%;
    background: transparent;
    color: #dfff32;
    font: 2.2rem/1 Arial, sans-serif;
    cursor: pointer;
  }
  .mobile-menu-nav { display: grid; padding: .7rem 0 1.2rem; }
  .mobile-menu-main {
    display: grid;
    grid-template-columns: 2.7rem 1fr;
    align-items: center;
    min-height: 3.65rem;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    color: #fff;
    font: clamp(1.65rem, 7.3vw, 2.35rem)/1 Impact, 'Arial Narrow', sans-serif;
    text-transform: uppercase;
  }
  .mobile-menu-icon { display: grid; place-items: center; width: 2rem; }
  .mobile-menu-icon svg { width: 1.55rem; height: 1.55rem; color: #dfff32; }
  .mobile-menu-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    padding: .75rem 0 1rem 2.7rem;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
  }
  .mobile-menu-sub a {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    padding-right: .65rem;
    border: 1px solid rgb(223 255 50 / 48%);
    border-radius: 0;
    overflow: hidden;
    background: rgb(255 255 255 / 5%);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
  }
  .mobile-menu-sub a:hover, .mobile-menu-sub a:focus-visible { border-color: #dfff32; background: rgb(223 255 50 / 10%); }
  .mobile-menu-sub img { width: 44px; height: 44px; object-fit: cover; }
  .mobile-menu-brand { display: block; width: min(15rem,58vw); margin: auto auto 1rem; padding-top: 1rem; }
  .mobile-menu-brand img { display: block; width: 100%; height: auto; }
  .mobile-menu-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1rem;
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid rgb(255 255 255 / 28%);
  }
  .mobile-menu-address {
    display: grid;
    grid-template-columns: 2.7rem 1fr;
    align-items: start;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
  }
  .mobile-menu-socials { display: flex; gap: .55rem; }
  .mobile-menu-socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid #dfff32;
    border-radius: 50%;
    color: #dfff32;
    font: 700 1.25rem Arial, sans-serif;
  }
  .mobile-menu-socials a svg { width: 21px; height: 21px; }
}
@media (max-width: 360px), (max-height: 670px) {
  .mobile-menu-main { min-height: 3rem; font-size: 1.55rem; }
  .mobile-menu-sub { padding-block: .55rem .7rem; }
  .mobile-menu-footer { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition-duration: .01ms; }
}

/* Rifiniture fotografiche delle card in home */
.home-program-cards .tile-nuoto-neonatale img {
  object-position: center center;
}

/* Il soggetto sale di 70px; lo zoom mantiene la copertura piena della tab. */
.home-program-cards :is(.tile-walking, .tile-nuoto-neonatale) img {
  transform-origin: center center;
  transform: translateY(-70px) scale(1.22);
}
.home-program-cards :is(.tile-walking, .tile-nuoto-neonatale):hover img {
  transform: translateY(-70px) scale(1.28);
}
@media (max-width: 600px) {
  .home-program-cards :is(.tile-walking, .tile-nuoto-neonatale) img {
    transform: translateY(-70px) scale(1.52);
  }
  .home-program-cards :is(.tile-walking, .tile-nuoto-neonatale):hover img {
    transform: translateY(-70px) scale(1.58);
  }
}

/* Pagina Tutti i corsi: tutte le attività, senza raggruppamenti per Area. */
.courses-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(24rem, 42vw, 36rem);
  display: grid;
  align-content: center;
  background: #001522 url('courses-hero-collage.webp') center 44% / cover no-repeat;
}
.courses-page-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 21 34 / 96%) 0%, rgb(0 21 34 / 84%) 43%, rgb(0 21 34 / 48%) 72%, rgb(0 21 34 / 68%) 100%);
}
.courses-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgb(217 255 49 / 9%));
  pointer-events: none;
}
.courses-page-hero p { position: relative; z-index: 1; max-width: 38rem; margin: 1.25rem 0 0; font-size: 1.1rem; color: #dce9ef; }
.all-courses-section { padding: clamp(3rem, 6vw, 6rem) 5%; background: #fff; color: #071b2c; }
.all-courses-heading { max-width: 1500px; margin: 0 auto 2rem; }
.all-courses-heading .eyebrow { color: #668500; }
.all-courses-heading h2 { margin: .65rem 0 0; }
.all-courses-heading .lime { color: #91ad00; }
.all-courses-intro { max-width: 54rem; margin: 1rem 0 0; color: #425a67; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.all-courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.7rem, 1.5vw, 1.2rem);
  max-width: 1500px;
  margin: 0 auto;
}
@media (min-width: 901px) {
  .all-courses-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.course-index-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  min-height: clamp(19rem, 35vw, 32rem);
  overflow: hidden;
  border-radius: 0 15px 0 15px;
  background: #001522;
  color: #fff;
}
.course-index-card::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, #001522 0, rgb(0 21 34 / 82%) 20%, rgb(0 21 34 / 12%) 67%, transparent 100%);
}
.course-index-card::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.course-index-card:hover::after, .course-index-card:focus-visible::after { border-color: #d9ff31; box-shadow: inset 0 0 20px rgb(217 255 49 / 28%); }
.course-index-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.course-index-card:hover img, .course-index-card:focus-visible img { transform: scale(1.035); }
.course-index-copy { position: relative; z-index: 2; display: grid; gap: .55rem; width: 100%; padding: clamp(1rem, 2.7vw, 2.4rem); }
.course-index-copy strong { font: clamp(1.7rem, 3.2vw, 3.15rem)/.98 Impact, 'Arial Narrow', sans-serif; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.course-index-copy small { max-width: 34rem; font-size: clamp(.95rem, 1.5vw, 1.2rem); line-height: 1.35; color: #eef5f7; }
.all-courses-cta { max-width: 1500px; margin: clamp(2.5rem, 6vw, 5rem) auto 0; padding: clamp(1.5rem, 4vw, 3.2rem); border-radius: 0 15px 0 15px; background: #001522; color: #fff; }
.all-courses-cta h2 { margin-bottom: 1rem; }
.all-courses-cta p { max-width: 42rem; font-size: 1.05rem; }
.all-courses-cta .btn { margin-top: .5rem; }
.cardio-more-link { display: inline-flex; margin: .15rem 0 .85rem; border-bottom: 1px solid #dfff32; color: #dfff32; font-weight: 800; }

@media (max-width: 600px) {
  .courses-page-hero { text-align: center; }
  .courses-page-hero p { margin-inline: auto; }
  .all-courses-heading { text-align: center; }
  .all-courses-section { padding-inline: .65rem; }
  .all-courses-grid { gap: .55rem; }
  .course-index-card { min-height: 17.5rem; }
  .course-index-copy { padding: .85rem .7rem; text-align: center; }
  .course-index-copy strong { font-size: clamp(1.25rem, 5.6vw, 1.9rem); line-height: 1; }
  .course-index-copy small { font-size: .9rem; }
  .all-courses-cta { text-align: center; }
}

/* Le immagini delle tab devono coprire sempre l'intero riquadro. */
:is(.home-area-cards, .home-program-cards, .cardio-activities) .tile {
  background: #001522;
}
:is(.home-area-cards, .home-program-cards, .cardio-activities) .tile > img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-area-cards .tile-medica img {
  object-position: center calc(50% - 40px);
}

/* Ingresso alternato dei corsi: sinistra, destra, per ogni riga */
@media (prefers-reduced-motion: no-preference) {
  .home-program-cards .tile[data-course-reveal-pending] {
    opacity: 0;
    transform: translateX(-72px);
    transition: opacity .62s ease, transform .72s cubic-bezier(.2,.75,.25,1);
    will-change: opacity, transform;
  }
  .home-program-cards .tile:nth-child(even)[data-course-reveal-pending] {
    transform: translateX(72px);
    transition-delay: .11s;
  }
  .home-program-cards .tile[data-course-reveal-pending].course-reveal-visible {
    opacity: 1;
    transform: translateX(0);
  }
}
