/* Fit Club · base condivisa: caratteri, colori, bottoni, testata, piè di pagina, movimento.
   Mondo: antracite e legno (gli interni), segno tondo con la F, Barlow. */

@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0f1012;
  --bg-2: #15171a;
  --panel: #1b1e22;
  --panel-2: #24282d;
  --line: rgba(244, 238, 228, .11);
  --line-2: rgba(244, 238, 228, .2);
  --text: #f4eee4;
  --muted: #b3ab9f;
  --wood: #d19a5b;
  --wood-hi: #e4b57a;
  --wood-lo: #b07a3f;
  --wood-deep: #5e3b1c;
  --wood-ink: #1a1108;
  --blue: #2d4f9a;
  --ok: #9fd8ac;
  --err: #ff9588;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(1.25rem, 5vw, 3rem);
  --max: 70rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 1.0625rem/1.55 var(--body); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.005em; text-transform: uppercase; text-wrap: balance; }
p { text-wrap: pretty; max-width: 62ch; }
a { color: inherit; text-decoration-color: var(--wood); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* parti del browser che non si disegnano da sole */
::selection { background: var(--wood); color: var(--wood-ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--wood-hi); outline-offset: 3px; border-radius: 6px; }
input, textarea { caret-color: var(--wood); }
html { scrollbar-color: #3a3f45 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3f45; border-radius: 10px; border: 2px solid var(--bg); }
input::placeholder, textarea::placeholder { color: #8e877c; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--wood); color: var(--wood-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 600; transition: top .2s var(--ease); }
.skip:focus { top: calc(.8rem + var(--safe-t)); }

/* ---------- bottoni ---------- */
.btn {
  --h: 3.6rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: var(--h); padding: 0 1.7rem; border: 0; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: .035em; text-transform: uppercase; text-decoration: none; line-height: 1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; white-space: nowrap;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; transition: transform .35s var(--ease); }
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn-main {
  background: linear-gradient(180deg, var(--wood-hi) 0%, var(--wood) 55%, var(--wood-lo) 100%); color: var(--wood-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 14px 28px -14px rgba(209, 154, 91, .7), 0 2px 6px rgba(0, 0, 0, .4);
}
.btn-ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1.5px var(--line-2) inset; }
.btn-soft { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .38; pointer-events: none; filter: saturate(.5); }
@media (hover: hover) {
  .btn-main:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 20px 34px -14px rgba(209, 154, 91, .85), 0 2px 6px rgba(0, 0, 0, .4); }
  .btn-main:hover svg, .btn-ghost:hover svg { transform: translateX(4px); }
  .btn-ghost:hover { box-shadow: 0 0 0 1.5px var(--wood) inset; color: var(--wood-hi); }
  .btn-soft:hover { background: #2d3238; }
}
.btn-sm { --h: 2.9rem; padding: 0 1.3rem; font-size: 1.15rem; }

/* ---------- testata e piè di pagina (inseriti da common.js) ---------- */
.top { position: fixed; z-index: 30; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; padding: calc(.7rem + var(--safe-t)) var(--pad) .7rem; pointer-events: none; transition: background-color .3s, backdrop-filter .3s; }
.top > * { pointer-events: auto; }
.top.solid { background: rgba(15, 16, 18, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; }
.brand img { width: 2.6rem; height: 2.6rem; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.top nav { display: flex; gap: 1.1rem; align-items: center; white-space: nowrap; }
.top nav a { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; padding: .4rem 0; }
.top nav a:hover { color: var(--wood-hi); }
@media (max-width: 34rem) { .top nav a.opt { display: none; } .top nav a { font-size: 1rem; } .brand { font-size: 1.15rem; } .brand img { width: 2.3rem; height: 2.3rem; } }

.foot { position: relative; border-top: 1px solid var(--line); padding: 2.6rem var(--pad) calc(2.6rem + var(--safe-b)); background: var(--bg-2); }
.foot-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.8rem; }
.foot-id { display: flex; gap: 1rem; align-items: center; }
.foot-id img { width: 3rem; height: 3rem; }
.foot-id p { font-size: .98rem; color: var(--muted); line-height: 1.4; }
.foot-id b { color: var(--text); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.foot-links a { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: .55rem 0; color: var(--text); }
.foot-links a:hover { color: var(--wood-hi); }
.foot small { color: var(--muted); font-size: .9rem; }
@media (min-width: 52rem) { .foot-in { grid-template-columns: 1fr auto; align-items: center; } .foot small { grid-column: 1 / -1; } }

/* bozza privacy: visibile solo fuori dal dominio vero */
.bozza-banner { background: #3a2a14; color: #ffd9a3; text-align: center; font-weight: 600; padding: .6rem var(--pad); font-size: .95rem; position: relative; z-index: 40; }

/* ---------- movimento ---------- */
html.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
html.js .rv.in { opacity: 1; transform: none; will-change: auto; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: .45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js .rv { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
