/* Palestra 10040 — stylesheet. Fonts: Bebas Neue, Inter (SIL OFL, see assets/fonts/OFL-*.txt). */

@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0c0c0c;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --border: #2a2a2a;
  --text: #f4f4f4;
  --muted: #a6a6a6;
  --red: #e3150f;        /* bottoni, bordi */
  --red-bright: #ff3d33; /* testo rosso su nero */
  --red-dark: #a10c07;   /* sfumature */
  --on-red: #fff;        /* testo su fondo rosso */
  --text-soft: #d9d9d9;  /* testo secondario chiaro (sottotitolo, recensioni) */
  --header: #121212;     /* header e menu da telefono */
  --band: #111;          /* fascia dei corsi, fondo del logo */
  --radius: 18px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.display { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .02em; line-height: .95; }
.red { color: var(--red-bright); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
section { padding: 88px 0; }
section, #contenuto { scroll-margin-top: 78px; } /* header is 76px + 1px border */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--red); color: var(--on-red); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.h2 { text-align: center; font-size: min(clamp(3rem, 9vw, 4.6rem), 15vw); text-transform: uppercase; margin-bottom: 22px; }
.lead { text-align: center; color: var(--muted); font-weight: 300; max-width: 680px; margin: 0 auto; font-size: 1.12rem; }

/* ---------- header & nav ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--header) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 76px; column-gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; font-size: min(2rem, 8.5vw); text-transform: uppercase; }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: var(--band); border: 2px solid var(--red); padding: 2px; }
#site-nav ul { display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 600; font-size: .95rem; }
#site-nav a { display: block; padding: 8px 0; }
#site-nav a:hover { color: var(--red-bright); }
.burger { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
/* Menu icon: three weight plates seen edge-on, smallest on top; when the menu opens the outer two cross into an X. */
.burger .plates { position: relative; display: block; width: 32px; height: 32px; }
.burger .plates > span { position: absolute; left: 50%; height: 4px; border-radius: 2px; background: currentColor; transform: translateX(-50%); transition: top .3s cubic-bezier(.2, .8, .2, 1), width .3s cubic-bezier(.2, .8, .2, 1), transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.burger .plates > span:nth-child(1) { top: 7px; width: 12px; }
.burger .plates > span:nth-child(2) { top: 14px; width: 18px; }
.burger .plates > span:nth-child(3) { top: 21px; width: 24px; }
.burger[aria-expanded="true"] .plates > span:nth-child(1) { top: 14px; width: 26px; transform: translateX(-50%) rotate(45deg); }
.burger[aria-expanded="true"] .plates > span:nth-child(2) { opacity: 0; transform: translateX(-50%) scaleX(0); }
.burger[aria-expanded="true"] .plates > span:nth-child(3) { top: 14px; width: 26px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 859px) {
  /* Folded behind the burger by default (no flash before the script runs);
     nojs.css, loaded through <noscript>, shows the links when JavaScript is off. */
  .burger { display: block; }
  /* The open menu overlays the page below the header: growing the sticky header made Chrome scroll-anchor the page. */
  #site-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 0 20px 16px; background: var(--header); border-bottom: 1px solid var(--border); }
  #site-nav.open { display: block; max-height: calc(100svh - 77px); overflow-y: auto; }
  #site-nav ul { flex-direction: column; gap: 0; font-size: 1.15rem; }
  #site-nav a { padding: 14px 4px; border-top: 1px solid var(--border); }
}

/* ---------- hero ---------- */
/* The text never covers the athlete's torso (browser test): on phones and tablets the name sits above his head and
   the tagline and call button on his legs; from 700px (tablets, landscape phones) the text stands on the left and he fills a panel on the right. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg img { position: absolute; z-index: -2; object-fit: cover; filter: grayscale(.15) brightness(.75); }
.hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.pill { display: inline-block; max-width: 100%; border: 1px solid var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red-bright); padding: 9px 26px; border-radius: 999px; letter-spacing: .16em; font-weight: 600; font-size: .95rem; text-transform: uppercase; }
.hero h1 { margin: 22px 0 0; text-transform: uppercase; }
.hero h1 span { color: var(--red-bright); }
/* The discipline under the name, spaced out; the left padding balances the spacing after the last letter. */
.hero .sub { margin: 6px 0 0; padding-left: .34em; font-size: min(7.2vw, 3.2rem); letter-spacing: .34em; line-height: 1; text-transform: uppercase; color: var(--text); }
/* A soft dark halo hugs the letters wherever they meet the photo (the browser test measures the contrast). */
.hero h1, .hero .sub, .hero .tagline { text-shadow: 0 0 2px var(--bg), 0 0 5px var(--bg), 0 0 9px var(--bg), 0 0 16px color-mix(in srgb, var(--bg) 80%, transparent), 0 2px 36px color-mix(in srgb, var(--bg) 85%, transparent); }
@media (max-width: 699px) {
  /* The photo fills the first screen under the header; the stats follow just below it. */
  .hero { text-align: center; padding: 0 0 40px; }
  .hero-bg img, .hero::after { inset: 0 0 auto; width: 100%; height: calc(100svh - 77px); }
  .hero-bg img { object-position: center top; }
  .hero::after { background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 85%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 15%, transparent 28%, transparent 58%, color-mix(in srgb, var(--bg) 85%, transparent) 76%, var(--bg) 100%); }
  .hero-fold { min-height: calc(100svh - 77px); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 0 8px; }
  .hero h1 { font-size: min(15.5vw, 7rem); white-space: nowrap; margin-top: 12px; }
  .hero .tagline { margin: 0 auto 12px; }
  .hero .ctas { gap: 12px; }
}
/* Short phones: a tighter tagline and buttons keep the upper back free above them. */
@media (max-width: 699px) and (max-height: 700px) {
  .hero .tagline { font-size: 1rem; margin-bottom: 10px; }
  .hero .ctas { gap: 10px; }
  .hero .btn { padding-block: 16px; }
}
@media (min-width: 700px) {
  .hero { display: grid; align-items: center; min-height: min(calc(100svh - 77px), 900px); padding: 64px 0; }
  /* Panel on the right, fading into the background behind the text. */
  .hero-bg img { top: 0; right: 0; width: 56%; height: 100%; object-position: center 15%; mask-image: linear-gradient(90deg, transparent, var(--bg) 28%); }
  .hero::after { inset: 0; background:
    radial-gradient(ellipse at 18% 50%, color-mix(in srgb, var(--red) 16%, transparent), transparent 55%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
  .hero-fold { max-width: min(560px, 46%); }
  .hero h1 { font-size: min(11vw, 9.5rem, 20svh); line-height: .9; } /* svh: landscape phones */
  .hero h1 span { display: block; }
  .hero .sub { margin-top: 14px; padding-left: 0; } /* left-aligned: no centring to balance */
  .hero .tagline { margin: 22px 0 30px; }
  .hero .ctas { margin: 0; }
  @media (max-width: 1099px) { .hero .ctas { grid-template-columns: 1fr; } } /* narrow text column: buttons stacked */
  .hero .stats { max-width: min(560px, 46%); text-align: left; }
}
.tagline { color: var(--text-soft); font-weight: 300; font-size: clamp(1.1rem, 3.8vw, 1.35rem); max-width: 640px; margin: 18px auto 34px; }
.tagline strong { font-weight: 400; color: var(--text); }
.ctas { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
@media (min-width: 700px) { .ctas { grid-template-columns: 1fr 1fr; } }
.btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 26px; border-radius: 14px; font-weight: 700; font-size: min(1.15rem, 5.6vw); text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--on-red); box-shadow: 0 10px 28px color-mix(in srgb, var(--bg) 70%, transparent); }
.btn-ghost { background: color-mix(in srgb, var(--surface-2) 85%, transparent); border: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 56px; overflow-wrap: anywhere; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-family: "Bebas Neue", Impact, sans-serif; font-size: min(3.4rem, 15vw); line-height: 1; }
.stats dd.red { color: var(--red-bright); }
.stats dt { color: var(--muted); font-size: 1rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; margin-top: 52px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card.hot { border-color: var(--red); }
.card picture { display: block; }
.card .photo { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; filter: saturate(.85); }
.card .body { padding: 30px; }
.card h3 .icon { width: 30px; height: 30px; color: var(--red-bright); }
.badge-ico { width: 64px; height: 64px; border-radius: 14px; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red-bright); display: grid; place-items: center; margin-bottom: 22px; }
.card h3 { display: flex; align-items: center; gap: 14px; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 2.2rem; letter-spacing: .02em; line-height: 1.1; margin-bottom: 8px; text-transform: uppercase; }
.card p { color: var(--muted); }
.card.panatta .body { display: flex; flex-direction: column; align-items: flex-start; }
.machines-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: stretch; min-height: 52px; margin-top: 24px; padding: 0 18px; border: 1px solid var(--red); border-radius: 12px; background: color-mix(in srgb, var(--red) 12%, transparent); font-weight: 700; transition: background .15s ease; }
.machines-toggle:hover { background: color-mix(in srgb, var(--red) 22%, transparent); }
.machines-toggle .chev { width: 22px; height: 22px; color: var(--red-bright); transition: transform .2s ease; }
.card.panatta.open .machines-toggle .chev { transform: rotate(180deg); }

/* Machines panel: opens below the card row, the cards never move. On phones a sideways strip. */
.machines-panel { grid-column: 1 / -1; min-width: 0; position: relative; scroll-margin-top: 96px; padding: 20px 24px 24px; border: 1px solid var(--red); border-radius: var(--radius); background: var(--surface); }
.machines-panel::before { content: ""; position: absolute; top: -9px; left: calc(50% - 8px); width: 16px; height: 16px; border-top: 1px solid var(--red); border-left: 1px solid var(--red); background: var(--surface); transform: rotate(45deg); }
.machines-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.machines-head h3 { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.9rem; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.machines-close, .lightbox button { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--border); border-radius: 50%; background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--text); cursor: pointer; }
.machines-close:hover, .lightbox button:hover { border-color: var(--red); }
.machine-grid { display: flex; gap: 12px; margin: 0 -24px; padding: 0 24px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; overscroll-behavior-x: contain; }
.machine-grid > li { flex: 0 0 42%; scroll-snap-align: start; }
.machine-grid a.zoom { display: block; overflow: hidden; border-radius: 12px; cursor: zoom-in; }
.machine-grid img { display: block; width: 100%; height: auto; transition: transform .25s ease; }
.machine-grid a.zoom:hover img { transform: scale(1.04); }
.machine-grid figcaption { margin-top: 8px; color: var(--muted); font-size: .95rem; line-height: 1.3; }
.machine-grid figcaption .qty { color: var(--red-bright); font-weight: 700; white-space: nowrap; } /* how many the gym has */
.machines-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.machines-cta p { font-size: 1.1rem; }
.machines-cta strong { color: var(--red-bright); }

/* Gallery: 4:3 tiles shown whole; the last photo is wide so every row ends full (2 columns, 3 from 700 px). */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 52px; }
.gallery[hidden] { display: none; }
.gallery + .gallery { margin-top: 10px; }
.gallery > li { position: relative; aspect-ratio: 4 / 3; } /* 4:3 tiles set the row height; */
.gallery > li.wide { grid-column: 1 / -1; }
.gallery a.zoom { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 12px; background: var(--surface); cursor: zoom-in; }
.gallery picture, .gallery img { display: block; width: 100%; height: 100%; }
.gallery img { object-fit: cover; transition: transform .25s ease; }
.gallery a.zoom:hover img { transform: scale(1.04); }
.gallery-more { display: flex; justify-content: center; margin-top: 28px; }
.gallery-toggle { gap: 12px; cursor: pointer; font: inherit; font-weight: 700; color: var(--text); }
.gallery-toggle .chev { color: var(--red-bright); transition: transform .2s ease; }
.gallery-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .gallery + .gallery { margin-top: 14px; }
  .gallery > li.wide { grid-column: span 2; aspect-ratio: auto; } /* the photo is absolute: the wide tile takes the row's height */
}

/* Gym video: plays only when tapped (preload="none"), so the first load pays for the poster alone. */
.tour { display: grid; justify-items: center; gap: 28px; margin-top: 72px; text-align: center; }
.tour h3 { font-size: clamp(2.6rem, 7vw, 3.6rem); text-transform: uppercase; margin-bottom: 12px; }
.tour p { color: var(--muted); max-width: 44ch; margin-inline: auto; font-size: 1.12rem; }
.tour-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 14px; color: var(--red-bright); font-weight: 600; text-underline-offset: 4px; }
.tour-link:hover { text-decoration: underline; }
.tour-link .icon { width: 22px; height: 22px; }
.tour video { display: block; width: min(100%, 360px); height: auto; aspect-ratio: 9 / 16; border: 1px solid var(--red); border-radius: var(--radius); background: var(--surface); }

/* Lightbox for the machine photos (opened by main.js; without JS the links open the large photo). */
.lightbox { margin: auto; width: min(92vw, 760px); max-height: 94vh; padding: 10px; touch-action: pan-y pinch-zoom; overscroll-behavior: contain; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
html:has(.lightbox[open]) { overflow: hidden; } /* the page behind stays put */
.lightbox::backdrop { background: color-mix(in srgb, var(--bg) 97%, transparent); }
/* Rows: the photo takes what is left after caption and call link, so nothing is ever cut off. */
.lightbox[open] { display: flex; flex-direction: column; }
.lb-figure { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.lb-figure img { display: block; flex: 1 1 auto; min-height: 0; width: 100%; height: auto; object-fit: contain; border-radius: 10px; }
.lb-figure figcaption, .lb-cta-row { flex: none; }
.lb-figure figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 14px 12px 6px; font-weight: 600; }
/* No photo of this machine yet (its thumbnail never loaded): hide the previous one rather than mislabel it. */
.lightbox.is-blank .lb-figure img { opacity: 0; }
.lightbox.is-blank .lb-figure { position: relative; }
.lightbox.is-blank .lb-figure::before { content: "Caricamento…"; position: absolute; top: 40%; left: 0; right: 0; text-align: center; color: var(--muted); }
.lb-cta-row { display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--muted); }
.lb-cta { display: inline-flex; align-items: center; min-height: 44px; color: var(--red-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lb-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: calc(50% - 56px); }
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 20px; }
.lb-prev .icon { transform: rotate(90deg); }
.lb-next .icon { transform: rotate(-90deg); }
/* Phones: photo edge to edge, controls in a row below it, within thumb reach. */
@media (max-width: 699px) {
  .lightbox { width: 100vw; max-width: 100vw; padding: 10px 0 14px; border-width: 1px 0; border-radius: 0; }
  .lightbox[open] { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; row-gap: 6px; }
  .lb-figure { grid-column: 1 / -1; justify-self: stretch; }
  .lb-figure img { border-radius: 0; }
  .lb-figure figcaption { padding: 12px 16px 4px; }
  .lightbox .lb-prev, .lightbox .lb-next, .lightbox .lb-close { position: static; grid-row: 2; }
  .lightbox .lb-prev { grid-column: 1; }
  .lightbox .lb-close { grid-column: 2; }
  .lightbox .lb-next { grid-column: 3; }
  .lb-cta-row { grid-column: 1 / -1; grid-row: 3; justify-self: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lightbox-in .18s ease-out; }
  @keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } }
}

/* ---------- corsi ---------- */
.band { background: linear-gradient(180deg, transparent, var(--band) 30%, var(--band) 70%, transparent); }
.courses { display: grid; gap: 14px; margin-top: 52px; align-items: start; }
.course { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s ease; }
.course:hover, .course[open] { border-color: var(--red); }
.course summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.course summary::-webkit-details-marker { display: none; }
.course summary .icon { width: 32px; height: 32px; color: var(--red-bright); }
.course .name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: "Bebas Neue", Impact, sans-serif; font-size: min(1.5rem, 7.5vw); line-height: 1.1; text-transform: uppercase; }
.course summary .chev { width: 22px; height: 22px; color: var(--muted); transition: transform .2s ease; }
.course[open] .chev { transform: rotate(180deg); }
.slots { border-top: 1px solid var(--border); margin: 0 22px; padding: 6px 0 12px; }
.slots li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 9px 0; }
.slots li + li { border-top: 1px solid var(--border); }
.slots .day { font-weight: 600; min-width: 6.5em; }
.slots .at { white-space: nowrap; }
.slots .var { flex-basis: 100%; color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.tags li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 10px 22px; color: var(--muted); }

/* ---------- prezzi ---------- */
.price-list { margin-top: 48px; }
.group { margin: 48px 0 18px; text-align: center; overflow-wrap: anywhere; font-family: "Bebas Neue", Impact, sans-serif; font-size: min(2rem, 9vw); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.group:first-child { margin-top: 0; }
.group .pill { font-family: "Inter", system-ui, sans-serif; background: var(--red); border-color: var(--red); color: var(--on-red); }
.fees { display: grid; gap: 12px; }
.fees div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; }
.fees dt { font-weight: 600; }
.fees dd, .rates dd { font-weight: 700; white-space: nowrap; }
.plans { display: grid; gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.plan h4 { margin-bottom: 10px; color: var(--red-bright); font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.7rem; font-weight: 400; line-height: 1.1; text-transform: uppercase; }
.rates div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border); }
.rates .sub { color: var(--muted); font-size: .92rem; }
.combo .plan { border-color: var(--red); background: linear-gradient(180deg, color-mix(in srgb, var(--red) 12%, transparent), var(--surface) 60%); }

/* ---------- recensioni ---------- */
.rating { display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--muted); }
.rating .score { font-size: 2.2rem; color: var(--text); }
.stars { display: inline-flex; gap: 4px; color: var(--red-bright); }
.star { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.reviews { display: grid; gap: 22px; margin-top: 48px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; position: relative; }
.review::before { content: "”"; position: absolute; right: 26px; top: 14px; font-family: Georgia, serif; font-size: 4rem; color: color-mix(in srgb, var(--red) 25%, transparent); line-height: 1; }
.review .star { width: 20px; height: 20px; }
.review blockquote { margin: 18px 0 22px; color: var(--text-soft); font-weight: 300; font-size: 1.08rem; }
.review blockquote p::before { content: "“"; }
.review blockquote p::after { content: "”"; }
.review figcaption { display: flex; flex-direction: column; }
.review cite { font-style: normal; font-weight: 600; }
.review figcaption span { color: var(--muted); font-size: .95rem; }
.more { text-align: center; margin-top: 28px; }
.more a { display: inline-block; padding: 12px 4px; color: var(--red-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- orari & contatti ---------- */
.two { display: grid; gap: 34px; margin-top: 52px; }
.hours { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; } /* rows never widen the page */
.hours li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; font-size: 1.1rem; }
.hours li .t { color: var(--muted); white-space: nowrap; }
.hours li.closed .d, .hours li.closed .t { color: var(--muted); }
.hours li.today { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.hours li.today .d { color: var(--red-bright); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; } /* "OGGI" may wrap with large text */
.hours li.today .d::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red-bright); }
.hours li.today .d::after { content: "OGGI"; font-size: .8rem; letter-spacing: .1em; }
.contacts { display: grid; gap: 14px; align-content: start; }
#contatti { scroll-margin-top: 96px; } /* a div inside #orari: clear the sticky header when jumped to */
.contact { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; color: var(--muted); }
.contact > span:last-child { min-width: 0; overflow-wrap: anywhere; } /* long handles like @palestra10040 wrap with large text */
.contact .badge-ico { margin: 0; width: 58px; height: 58px; flex: none; }
.contact strong { display: block; color: var(--text); font-size: 1.1rem; }
.contact:hover { border-color: var(--red); }
.contacts .btn { margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; text-align: center; color: var(--muted); }
.footer-brand { font-size: 2.2rem; color: var(--text); text-transform: uppercase; margin-bottom: 8px; }
.site-footer .row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin: 16px 0 22px; }
.site-footer .row a { padding: 10px 4px; }
.site-footer a:hover { color: var(--text); }
.copy { font-size: .9rem; }

/* ---------- larger screens ---------- */
@media (min-width: 860px) {
  .site-header .wrap { flex-wrap: nowrap; }
  #site-nav { width: auto; padding: 0; }
}
@media (min-width: 700px) {
  .machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 900px) {
  .tour { grid-template-columns: minmax(0, 480px) 360px; justify-content: center; justify-items: start; align-items: center; gap: 88px; text-align: left; }
  .tour p { margin-inline: 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .machines-panel::before { left: calc(100% * 5 / 6 - 8px); } /* points at the Panatta card, third column */
  /* Cards share the row height: the photo grows to fill it instead of leaving empty space under short text. */
  .grid-3 > .card { display: flex; flex-direction: column; }
  .grid-3 > .card > picture { position: relative; flex: 1 0 auto; aspect-ratio: 16 / 9; }
  .grid-3 > .card > picture .photo { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .courses, .plans { grid-template-columns: 1fr 1fr; }
  .fees { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; align-items: start; }
}

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

/* ---------- secondary pages ---------- */
.page { padding: 72px 0 88px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(3rem, 10vw, 4.6rem); text-transform: uppercase; margin-bottom: 12px; }
.prose h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose a:not(.btn) { color: var(--red-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose .btn { display: inline-flex; margin: 10px 0; }
.updated { font-size: .95rem; }
.legal { font-size: .9rem; margin-bottom: 6px; }
