/* Homepage OMNYA: stile autonomo rispetto alle pagine di servizio. */
:root {
    color-scheme: dark;
    --black: #0a0a0a;
    --black-2: #141414;
    --line: #262626;
    --white: #fff;
    --grey: #9a9a9a;
    --lime: #d6fd54;
    --f-head: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
    --f-body: "Archivo", Arial, sans-serif;
    --wrap: 1280px;
    --g: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(92px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--black); color: var(--white); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .big { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; text-wrap: balance; }
section { position: relative; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--g); }
.lime { color: var(--lime); }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; padding: 12px 20px; background: var(--lime); color: var(--black); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.tag { display: inline-block; background: var(--lime); color: var(--black); font: 700 11px/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; padding: 6px 11px; transform: skewX(-12deg); }
.tag > span { display: inline-block; transform: skewX(12deg); }
.ph { position: relative; overflow: hidden; background: var(--black-2); max-width: 100%; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; font: 700 13px/1.2 var(--f-head); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 16px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; transition: transform .15s, background .2s, color .2s; }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { transform: translateY(-2px); }
.btn-lime:focus-visible { outline-color: var(--white); }
.btn-line { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-line:hover { border-color: var(--white); }

/* Header e menu mobile */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .25s; }
.hdr.solid, .hdr.menu-open { background: rgba(10, 10, 10, .95); backdrop-filter: blur(10px); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-block; flex: none; }
.logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font: 700 14px var(--f-head); letter-spacing: .12em; text-transform: uppercase; }
.nav-links a { display: block; padding-block: 12px; opacity: .85; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; color: var(--lime); }
.nav .btn { padding: 13px 20px; }
.burger { display: none; flex: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { min-height: min(100svh, 980px); display: flex; align-items: flex-end; isolation: isolate; }
.hero-picture { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 22%, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, .92) 100%); }
.hero-in { padding-block: 150px 56px; display: grid; gap: 22px; }
.hero-kicker { font: 500 12px/1.3 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hero .big { font-size: clamp(44px, 7vw, 104px); line-height: .9; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.gbadge { display: flex; align-items: center; gap: 12px; font: 700 14px var(--f-head); letter-spacing: .06em; text-transform: uppercase; }
.gbadge .g { width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; font: 900 15px var(--f-body); }

/* Ticker: due gruppi identici permettono lo scorrimento senza salti. */
/* Contiene lo sbordo orizzontale senza ritagliare la fascia inclinata sopra e sotto. */
.ticker-wrap { overflow-x: clip; overflow-y: visible; margin-top: -14px; padding-block: 10px; position: relative; z-index: 3; }
.ticker { background: var(--lime); color: var(--black); overflow: hidden; padding-block: 12px; transform: rotate(-1.2deg); margin-inline: -40px; }
.ticker-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker-group { display: flex; flex: none; }
.ticker-track span { font: 700 clamp(16px, 1.6vw, 20px)/1 var(--f-head); text-transform: uppercase; letter-spacing: .02em; padding-inline: 22px; display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 9px; height: 9px; background: var(--black); transform: skewX(-12deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sezioni e introduzione */
.sec { padding-block: clamp(80px, 10vw, 140px); }
.section-content { padding-top: 0; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1; }
.head .tag { margin-bottom: 16px; }
.head-sub { color: #bdbdbd; max-width: 48ch; font-size: 17px; margin-top: 16px; }
.intro { padding-block: clamp(56px, 7vw, 96px); }
.intro-text { font: 500 clamp(22px, 2.5vw, 36px)/1.25 var(--f-head); text-wrap: balance; max-width: 62ch; margin-inline: auto; text-align: center; }

/* Recensioni: la lista resta scorribile anche senza JavaScript. */
.score { display: flex; align-items: center; gap: 18px; }
.score .big { font-size: clamp(44px, 4.5vw, 60px); color: var(--lime); font-weight: 500; }
.score small { display: block; font: 700 13px/1.4 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.reviews-updated { display: block; margin-top: 6px; color: var(--grey); font-size: 11px; }
.reviews-controls { margin-bottom: 20px; }
.reviews-source, .rev-link { font: 700 13px/1.4 var(--f-head); letter-spacing: .06em; text-transform: uppercase; }
.reviews-source { color: #cfcfcf; }
.reviews-source:hover, .rev-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.reviews { --review-width: 340px; width: 100%; overflow-x: auto; padding: 6px max(var(--g), calc((100% - var(--wrap)) / 2 + var(--g))) 14px; scroll-padding-inline: var(--g); scroll-behavior: auto; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.reviews:focus-visible { outline-offset: -2px; }
.reviews-track { position: relative; display: flex; width: max-content; gap: 16px; }
.reviews-group { display: flex; gap: 16px; flex: none; }
.rev { width: var(--review-width); flex: none; background: var(--black-2); border: 1px solid var(--line); padding: 26px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 16px; }
.stars { color: var(--lime); letter-spacing: 3px; }
.rev p { font-size: 16px; color: #d8d8d8; line-height: 1.55; min-height: 4.65em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rev-who { display: grid; gap: 6px; font: 700 14px var(--f-head); letter-spacing: .06em; text-transform: uppercase; }
.rev-who time { color: var(--grey); font-weight: 500; }
.rev-link { color: var(--lime); justify-self: start; padding-block: 6px; }

/* Corsi a schede */
.stat { display: flex; align-items: center; gap: 20px; border-block: 1px solid var(--line); padding-block: 24px; margin-bottom: 36px; }
.stat-n { font: 700 clamp(88px, 10vw, 140px)/.8 var(--f-head); color: var(--lime); }
.stat p { color: #cfcfcf; font-size: 16px; }
.stat b { display: block; color: var(--white); font: 700 15px/1.3 var(--f-head); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 8px; margin: -4px -4px 28px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; font: 700 13px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; padding: 15px 24px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: #cfcfcf; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tabs button:hover { border-color: var(--white); color: var(--white); }
.tabs button[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: var(--black); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; animation: fade .35s ease; }
.panel .ph { aspect-ratio: 4/5; max-height: 640px; }
.pbody { display: grid; gap: 22px; min-width: 0; }
.pbody h3 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 500; line-height: 1; color: var(--lime); }
.pbody p { font-size: 18px; line-height: 1.45; max-width: 30ch; color: #d6d6d6; }
.pbody .btn { justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 700 13px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--line); color: #cfcfcf; }
#hyrox .ph img { object-position: 50% 45%; }
#personal .ph img { object-position: 50% 40%; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Servizi */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); gap: 12px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; min-height: 260px; isolation: isolate; }
.tile .ph { position: absolute; inset: 0; z-index: -2; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10, 10, 10, .9)); }
.tile h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1; }
.tile p { margin-top: 10px; color: #d0d0d0; font-size: 16px; max-width: 34ch; }
.t1 { grid-column: span 4; grid-row: span 2; }
.t2, .t3 { grid-column: span 2; }
.t4, .t5 { grid-column: span 3; }
.t1 h3 { font-size: clamp(32px, 3.6vw, 52px); }
.recovery-img { object-position: 50% 45%; }
.nutrition-img { object-position: 50% 60%; }
.massage-img { object-position: 50% 30%; }
.osteopathy-img { object-position: 50% 62%; }

/* Pacchetti */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); padding: 34px 30px; display: grid; gap: 14px; align-content: start; }
.plan.hl { background: var(--lime); color: var(--black); border-color: var(--lime); }
.plan h3 { font-size: 32px; font-weight: 500; }
.plan .what { font: 700 15px/1.3 var(--f-head); letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.plan.hl .what { color: #2b2b2b; }
.wa-card { border-style: dashed; }
.wa-card .btn { justify-self: start; margin-top: 8px; }

/* Invito finale */
.final { isolation: isolate; padding-block: clamp(120px, 16vw, 220px); text-align: center; }
.final .ph { position: absolute; inset: 0; z-index: -2; }
.final .ph img { object-position: 50% 46%; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 10, .7); }
.final .big { font-size: clamp(36px, 5vw, 72px); font-weight: 500; line-height: 1; }
.final-sub { font: 500 clamp(18px, 1.8vw, 24px)/1.3 var(--f-head); color: #d6d6d6; margin-top: 16px; }
.final .cta-row { justify-content: center; margin-top: 36px; }

/* Footer */
footer { padding-block: 72px 120px; border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.fgrid h2 { margin: 0 0 14px; font: 700 13px var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.fgrid p, .fgrid a, .hours { color: #cfcfcf; font-size: 15px; line-height: 1.9; }
.fgrid .logo { align-self: start; justify-self: start; }
.fgrid .logo img { height: 64px; }
.hours { display: grid; grid-template-columns: auto auto; gap: 0 20px; margin: 0; font-variant-numeric: tabular-nums; }
.hours dt { font-weight: 400; }
.hours dd { margin: 0; }
.legal { margin-top: 56px; color: var(--grey); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
footer a:hover { color: var(--lime); }
.mbar { display: none; }

@media (max-width: 960px) {
    html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
    body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
    .nav-trial { display: none; }
    .burger { display: block; }
    .nav-links { display: none; position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 166px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow-y: auto; padding: 12px var(--g) 24px; background: var(--black); border-bottom: 1px solid var(--line); }
    .menu-open .nav-links { display: grid; gap: 4px; }
    .nav-links a { padding: 14px 0; font-size: 18px; }
    .panel { grid-template-columns: 1fr; }
    .panel .ph { aspect-ratio: 4/3; max-height: none; }
    #personal .ph img { object-position: 50% 35%; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .t1 { grid-column: span 2; grid-row: auto; min-height: 420px; }
    .t2, .t3 { grid-column: span 1; }
    .t4, .t5 { grid-column: span 2; }
    .plans { grid-template-columns: 1fr; }
    .fgrid { grid-template-columns: 1fr 1fr; }
    .mbar { display: flex; gap: 8px; position: fixed; inset: auto 0 0; z-index: 60; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: rgba(10, 10, 10, .97); border-top: 1px solid var(--line); }
    .mbar .btn { flex: 1; padding: 16px 10px; min-height: 48px; }
    .mbar .wa { flex: none; border: 1px solid var(--line); padding-inline: 16px; }
}

@media (max-width: 600px) {
    .hero { display: block; min-height: 0; }
    .hero-picture { position: relative; display: block; inset: auto; }
    .hero-img { height: 64svh; min-height: 420px; object-position: 46% 72%; }
    .hero::after { inset: 0 0 auto; height: max(64svh, 420px); background: linear-gradient(180deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 22%, rgba(10, 10, 10, 0) 55%, #0a0a0a 100%); }
    .hero-in { position: relative; margin-top: -72px; padding-block: 0 48px; }
    .hero-kicker { font-size: 11px; }
    .hero-foot { flex-direction: column; align-items: stretch; gap: 18px; }
    .hero .cta-row { flex-direction: column; width: 100%; }
    .hero .cta-row .btn { width: 100%; }
    .gbadge { justify-content: center; }
    .reviews { --review-width: 290px; }
    .bento { grid-template-columns: 1fr; }
    .t1, .t2, .t3, .t4, .t5 { grid-column: auto; }
    .fgrid { grid-template-columns: 1fr; }
    .hours { grid-template-columns: max-content max-content; }
    .final { padding: 0; }
    .final::after { display: none; }
    .final .ph { position: relative; inset: auto; height: 62vw; min-height: 240px; }
    .final .ph::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, #0a0a0a); }
    .final .wrap { padding-block: 28px 64px; }
    .final .cta-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
