/* 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 */
  --radius: 18px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
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: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow { text-align: center; color: var(--red-bright); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: .9rem; margin-bottom: 14px; }
.h2 { text-align: center; font-size: clamp(3rem, 9vw, 4.6rem); 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: rgb(18 18 18 / .92); 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: 2rem; text-transform: uppercase; }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: #111; 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; }
.burger .icon { width: 32px; height: 32px; }

@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: #121212; 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 ---------- */
.hero { position: relative; min-height: min(100svh, 860px); display: grid; place-items: center; text-align: center; padding: 90px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(.35) brightness(.55); z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse at 50% 45%, rgb(227 21 15 / .28), transparent 60%),
  linear-gradient(180deg, rgb(12 12 12 / .55) 0%, rgb(12 12 12 / .35) 40%, var(--bg) 100%); }
@media (max-width: 700px) { .hero-bg img { object-position: center 18%; filter: grayscale(.3) brightness(.5); } }
.pill { display: inline-block; border: 1px solid var(--red); background: rgb(227 21 15 / .12); color: var(--red-bright); padding: 9px 26px; border-radius: 999px; letter-spacing: .16em; font-weight: 600; font-size: .95rem; text-transform: uppercase; }
.hero h1 { font-size: clamp(5.2rem, 22vw, 10rem); margin: 26px 0 8px; text-transform: uppercase; }
.hero h1 span { display: block; color: var(--red-bright); text-shadow: 0 0 40px rgb(227 21 15 / .45); }
.tagline { color: #d6d6d6; 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: 1.15rem; 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: #fff; box-shadow: 0 10px 34px rgb(227 21 15 / .35); }
.btn-ghost { background: rgb(28 28 28 / .85); border: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 56px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-family: "Bebas Neue", Impact, sans-serif; font-size: 3.4rem; 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); box-shadow: 0 0 44px rgb(227 21 15 / .18); }
.card picture { display: block; }
.card .photo { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; filter: saturate(.85); }
.card .body { padding: 30px; }
.badge-ico { width: 64px; height: 64px; border-radius: 14px; background: rgb(227 21 15 / .14); color: var(--red-bright); display: grid; place-items: center; margin-bottom: 22px; }
.card h3 { 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); }

/* ---------- corsi ---------- */
.band { background: linear-gradient(180deg, transparent, #111 30%, #111 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; font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.5rem; 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 { 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; font-family: "Bebas Neue", Impact, sans-serif; font-size: 2rem; 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: #fff; }
.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, rgb(227 21 15 / .12), 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: rgb(227 21 15 / .25); line-height: 1; }
.review .star { width: 20px; height: 20px; }
.review blockquote { margin: 18px 0 22px; color: #dcdcdc; 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 { 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; gap: 12px; }
.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: rgb(227 21 15 / .12); }
.hours li.today .d { color: var(--red-bright); font-weight: 600; display: flex; align-items: center; gap: 12px; }
.hours li.today .d::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 12px var(--red); }
.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 .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 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: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .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; }
