/* =============================================================================
   Orangym Info Hub · Styles (V1.1)
   Brand orange sampled from the official logo: #FF6722.
   Denser, flatter, calmer than V1: typography + whitespace + thin separators +
   orange accents. Fewer cards, pills, shadows and oversized elements.
   ============================================================================ */

:root {
  /* Brand */
  --og-orange: #FF6722;
  --og-orange-600: #ED551A;
  --og-orange-700: #CE440D;
  --og-orange-050: #FFF3EC;
  --og-orange-100: #FDE0D0;

  /* Neutrals (faintly warm) — tuned for contrast (readable at 65–70 yrs) */
  --og-ink: #1C1917;
  --og-ink-2: #544E49;
  --og-muted: #726A63;
  --og-bg: #FAF8F5;
  --og-surface: #FFFFFF;
  --og-surface-2: #F3EEE8;
  --og-line: #E8E0D8;
  --og-line-2: #DCD3C9;

  /* Alert (accessible, non-brand) */
  --og-alert: #A2331C;
  --og-alert-bg: #FBEAE3;

  /* Radii (small) */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(28, 25, 23, .06);

  /* Layout */
  --header-h: 54px;
  --nav-h: 58px;
  --maxw: 1080px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- reset ---- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 101; background: var(--og-bg); }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--og-ink);
  background: var(--og-bg);
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; font-weight: 600; }
h1 { font-weight: 700; letter-spacing: -.02em; }
address { font-style: normal; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

.tnum { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2.5px solid var(--og-orange); outline-offset: 2px; border-radius: 5px; }
.view:focus { outline: none; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--og-ink); color: #fff; padding: 9px 15px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 10px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--flip { transform: rotate(180deg); }
.sep { height: 1px; background: var(--og-line); border: 0; }

/* =============================================================================
   Header
   ============================================================================ */
.app-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(250, 248, 245, .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--og-line);
}
.app-header__inner {
  max-width: var(--maxw); margin: 0 auto; min-height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand__logo { width: 106px; height: auto; }

.app-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.iconbtn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--og-ink); transition: background .16s var(--ease); }
.iconbtn:hover { background: var(--og-surface-2); }
.iconbtn .icon { width: 22px; height: 22px; }

.topnav { display: none; align-items: center; gap: 2px; }
.topnav__link {
  padding: 8px 13px; border-radius: var(--r-pill); font-weight: 500; font-size: 15px;
  color: var(--og-ink-2); transition: background .16s var(--ease), color .16s var(--ease);
}
.topnav__link:hover { background: var(--og-surface-2); color: var(--og-ink); }
.topnav__link.is-active { color: var(--og-orange-700); background: var(--og-orange-050); }
.topnav__link--cta { background: var(--og-orange); color: #fff; margin-left: 6px; font-weight: 600; }
.topnav__link--cta:hover { background: var(--og-orange-600); color: #fff; }

/* =============================================================================
   View shell + transition
   ============================================================================ */
.view {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--gutter);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 22px);
  display: flex; flex-direction: column; gap: 18px;
  opacity: 1; transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.view:not(.is-in) { opacity: 0; transform: translateY(4px); }

.sec { display: flex; flex-direction: column; gap: 10px; }

/* =============================================================================
   Typography helpers
   ============================================================================ */
.seclabel {
  font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--og-ink-2); margin-bottom: 2px;
}

/* =============================================================================
   Buttons + quiet links
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; min-height: 46px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .12s var(--ease), background .16s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--og-orange); color: #fff; }
.btn--primary:hover { background: var(--og-orange-600); }
.btn--block { width: 100%; }

/* Secondary action = quiet inline text link with arrow */
.linka {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  color: var(--og-ink); font-weight: 600; font-size: 15px;
  padding: 10px 2px; min-height: 44px;
}
.linka:hover { color: var(--og-orange-700); }
.linka__i { width: 17px; height: 17px; color: var(--og-orange-700); }
.linka__lead { width: 18px; height: 18px; color: var(--og-muted); }

/* =============================================================================
   Hero (compact, no outer card)
   ============================================================================ */
.hero { display: flex; flex-direction: column; gap: 12px; }
.hero__title { font-size: clamp(29px, 7.8vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.hero__sub { font-size: 16px; color: var(--og-ink-2); max-width: 34ch; }
.hero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--og-surface-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }

/* =============================================================================
   Finder rows (Trova la tua attività)
   ============================================================================ */
.finder { display: flex; flex-direction: column; border-top: 1px solid var(--og-line); }
.frow {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px;
  border-bottom: 1px solid var(--og-line); min-height: 50px;
  transition: background .14s var(--ease);
}
.frow:active { background: var(--og-surface-2); }
.frow__ic {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  background: var(--og-orange-050); border: 1px solid var(--og-orange-100);
  border-radius: 9px; color: var(--og-orange-700);
}
.frow__ic .icon { width: 19px; height: 19px; }
.frow__l { flex: 1; font-weight: 500; font-size: 16px; }
.frow__go { color: var(--og-muted); width: 19px; height: 19px; }

/* =============================================================================
   Orari (Home): reception primary + Oggi rows
   ============================================================================ */
.reception { background: var(--og-surface-2); border-radius: var(--r-lg); padding: 16px; }
.reception__k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--og-ink-2); }
.reception__time { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin-top: 3px; }
.reception__days { font-size: 14px; color: var(--og-ink-2); }
.reception__row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--og-line-2); font-size: 15px; font-weight: 500;
}
.ast { color: var(--og-orange-700); font-weight: 700; }
.reception__note { color: var(--og-muted); font-size: 12px; margin-top: 6px; }
.reception__hint { font-weight: 400; font-size: 12px; color: var(--og-muted); }

/* Home: corsi + acquafitness schedules */
.schedgrid { display: flex; flex-direction: column; gap: 18px; }
.schedhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.schedhead h3 { font-size: 16px; font-weight: 600; }

.oggi2 { border-top: 1px solid var(--og-line); }
.oggi2__k {
  display: flex; align-items: center; gap: 6px; padding: 10px 2px 4px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--og-orange-700);
}
.oggi2__k .icon { width: 15px; height: 15px; }
.oggi2__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--og-line); font-size: 15px; }
.oggi2__row:last-child { border-bottom: 0; }
.oggi2__row span:last-child { font-weight: 600; }

/* single-service Oggi (used inside detail pages) */
.oggi {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--og-orange-050); border: 1px solid var(--og-orange-100);
  border-radius: var(--r-md); padding: 11px 14px; margin-bottom: 12px;
}
.oggi__k { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--og-orange-700); }
.oggi__k .icon { width: 16px; height: 16px; }
.oggi__v { font-size: 16px; font-weight: 700; }
.oggi--muted { background: var(--og-surface-2); border-color: var(--og-line); }
.oggi--muted .oggi__k { color: var(--og-ink-2); }
.oggi--muted .oggi__v { font-weight: 500; font-size: 14px; color: var(--og-ink-2); }

/* =============================================================================
   Dates timeline
   ============================================================================ */
.dates { display: flex; flex-direction: column; border-top: 1px solid var(--og-line); }
.drow { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--og-line); min-height: 54px; }
.drow:last-child { border-bottom: 0; }
.drow:active { background: var(--og-surface-2); }
.drow__date {
  flex: none; width: 58px; display: flex; flex-direction: column; align-items: flex-start;
  color: var(--og-orange-700); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.drow__date b { font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.drow__b { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.drow__t { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.drow__s { font-size: 12.5px; color: var(--og-muted); }
.drow__go { color: var(--og-muted); width: 18px; height: 18px; flex: none; }
.tagmini {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--og-orange-700); background: var(--og-orange-050); border: 1px solid var(--og-orange-100);
  padding: 1px 6px; border-radius: var(--r-pill); vertical-align: 1px;
}

/* =============================================================================
   Explore photo cards (Palestra / Piscina)
   ============================================================================ */
.sec--explore { display: grid; gap: 10px; }
.ecard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--og-surface); border: 1px solid var(--og-line); border-radius: var(--r-lg);
  transition: transform .13s var(--ease), border-color .16s var(--ease);
}
.ecard:hover { border-color: var(--og-line-2); }
.ecard:active { transform: scale(.994); }
.ecard__media { aspect-ratio: 16 / 10; background: var(--og-surface-2); overflow: hidden; }
.ecard__media img { width: 100%; height: 100%; object-fit: cover; }
.ecard__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.ecard__txt h3 { font-size: 18px; font-weight: 600; }
.ecard__txt p { color: var(--og-muted); font-size: 13px; margin-top: 2px; }
.ecard__go { color: var(--og-orange); width: 20px; height: 20px; }

/* =============================================================================
   Featured subscriptions (Club / Gold) — comparable hierarchy
   ============================================================================ */
.feats { display: grid; gap: 12px; }
.feat { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: var(--r-xl); box-shadow: var(--sh-sm); }
.feat--club { background: linear-gradient(180deg, #fff, var(--og-surface-2)); color: var(--og-ink); border: 1px solid var(--og-line-2); }
.feat--gold { background: linear-gradient(150deg, #201C1A 0%, #3a2a19 55%, #4d3214 120%); color: #fff; box-shadow: 0 16px 36px -20px rgba(77, 50, 20, .85); }
.feat__k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.feat--club .feat__k { color: var(--og-orange-700); }
.feat--gold .feat__k { color: var(--og-orange); }
.feat__tag { font-size: 14px; font-weight: 500; }
.feat--club .feat__tag { color: var(--og-ink-2); }
.feat--gold .feat__tag { color: rgba(255, 255, 255, .8); }
.feat__price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.feat__list { list-style: none; padding: 0; margin: 8px 0 2px; display: grid; gap: 7px; }
.feat__list li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.feat__list .icon { width: 16px; height: 16px; flex: none; color: var(--og-orange); }
.feat--gold .feat__list li { color: rgba(255, 255, 255, .92); }
.feat__cta { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 700; margin-top: 10px; }
.feat--club .feat__cta { color: var(--og-orange-700); }
.feat--gold .feat__cta { color: var(--og-orange); }
.feat__i { width: 16px; height: 16px; }

/* =============================================================================
   Consulenza
   ============================================================================ */
.consult {
  background: var(--og-surface-2); border: 1px solid var(--og-line); border-radius: var(--r-lg);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
}
.consult__title { font-size: 19px; font-weight: 700; }
.consult__copy { color: var(--og-ink-2); font-size: 15px; }
.consult__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.consult__actions .btn { margin: 0; }
.consult__alt { display: inline-flex; align-items: center; gap: 8px; color: var(--og-ink-2); font-weight: 500; font-size: 14px; padding: 8px 2px; min-height: 40px; }
.consult__alt:hover { color: var(--og-orange-700); }
.consult__alt .icon { width: 17px; height: 17px; color: var(--og-muted); }

.consult-mini {
  display: flex; flex-direction: column; gap: 0; align-items: flex-start;
  background: var(--og-surface-2); border-radius: var(--r-md); padding: 12px 14px; margin-top: 6px;
}
.consult-mini__q { font-size: 14px; color: var(--og-ink-2); }

/* =============================================================================
   Contact (Home) + footer
   ============================================================================ */
.contact { display: flex; flex-direction: column; gap: 10px; }
.contact__title { font-size: 19px; font-weight: 700; }
.contact__mini { display: flex; gap: 20px; }

.foot { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--og-line); padding-top: 20px; margin-top: 6px; }
.foot__logo { width: 100px; opacity: .9; }
.foot__contact { display: flex; flex-direction: column; gap: 9px; }
.foot__contact a { display: flex; align-items: center; gap: 9px; color: var(--og-ink-2); font-size: 14px; }
.foot__contact a:hover { color: var(--og-orange-700); }
.foot__contact .icon { width: 16px; height: 16px; color: var(--og-muted); }
.foot__note { color: var(--og-muted); font-size: 12px; }

/* =============================================================================
   Page header (sub views)
   ============================================================================ */
.phead { display: flex; flex-direction: column; gap: 4px; }
.phead__title { font-size: clamp(24px, 6.5vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.phead__sub { color: var(--og-muted); font-size: 15px; }
.back {
  display: inline-flex; align-items: center; gap: 2px; align-self: flex-start;
  font-size: 14px; font-weight: 600; color: var(--og-ink-2); padding: 5px 8px 5px 4px; margin-bottom: 2px;
}
.back:hover { color: var(--og-orange-700); }
.back .icon { width: 17px; height: 17px; }

/* Segmented control */
.seg { display: flex; gap: 3px; padding: 3px; background: var(--og-surface-2); border-radius: var(--r-pill); }
.seg__item {
  flex: 1; text-align: center; padding: 9px 12px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px; color: var(--og-ink-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.seg__item.is-active { background: var(--og-surface); color: var(--og-orange-700); box-shadow: var(--sh-sm); }

/* regime badge row */
.regime { display: flex; align-items: center; margin-bottom: 10px; }
.badge { font-size: 12px; font-weight: 600; color: var(--og-orange-700); background: var(--og-orange-050); border: 1px solid var(--og-orange-100); padding: 4px 10px; border-radius: var(--r-pill); }
.badge--alert { color: var(--og-alert); background: var(--og-alert-bg); border-color: #F1CBBF; }

/* =============================================================================
   Weekly hours table + disclosure
   ============================================================================ */
.htable { border-top: 1px solid var(--og-line); }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--og-line); font-size: 15px; }
.hrow__d { font-weight: 500; }
.hrow__t { font-weight: 600; }
.hrow--closed .hrow__t { color: var(--og-muted); font-weight: 500; }

.disc { border-top: 1px solid var(--og-line); }
.disc summary { display: flex; align-items: center; gap: 9px; padding: 12px 2px; font-weight: 600; font-size: 14.5px; }
.disc summary .icon:first-child { width: 17px; height: 17px; color: var(--og-orange-700); }
.disc__chev { margin-left: auto; color: var(--og-muted); transition: transform .2s var(--ease); }
.disc[open] .disc__chev { transform: rotate(180deg); }
.disc__body { padding: 0 2px 10px; }
.disc--card { border: 1px solid var(--og-line); border-radius: var(--r-lg); margin-top: 12px; }
.disc--card summary { padding: 13px 14px; }
.disc--card .disc__body { padding: 0 14px 12px; }

/* =============================================================================
   Chips (day / level / category)
   ============================================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.daychip, .lchip, .catchip {
  padding: 8px 13px; border-radius: var(--r-pill); font-weight: 600; font-size: 13.5px;
  background: var(--og-surface); border: 1px solid var(--og-line-2); color: var(--og-ink-2); min-height: 40px;
  transition: background .14s var(--ease), color .14s var(--ease), border-color .14s var(--ease);
}
.daychip:active, .lchip:active, .catchip:active { transform: scale(.96); }
.daychip.is-active, .lchip.is-active, .catchip.is-active { background: var(--og-orange); color: #fff; border-color: var(--og-orange); }

/* Class schedule rows */
.srows { border-top: 1px solid var(--og-line); }
.srow { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--og-line); }
.srow:last-child { border-bottom: 0; }
.srow__t { font-size: 15px; font-weight: 700; color: var(--og-orange-700); width: 48px; flex: none; }
.srow__b { display: flex; flex-direction: column; }
.srow__n { font-weight: 600; font-size: 15px; }
.srow__i { font-size: 12.5px; color: var(--og-muted); margin-top: 1px; }
.empty { color: var(--og-muted); font-size: 14px; padding: 12px 2px; }

/* Nav choice rows (Palestra / Piscina landing) */
.ncards { display: flex; flex-direction: column; border-top: 1px solid var(--og-line); }
.ncard { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--og-line); min-height: 56px; }
.ncard:last-child { border-bottom: 0; }
.ncard:active { background: var(--og-surface-2); }
.ncard__ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--og-orange-050); border: 1px solid var(--og-orange-100); border-radius: 9px; color: var(--og-orange-700); }
.ncard__ic .icon { width: 20px; height: 20px; }
.ncard__txt { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.ncard__txt b { font-size: 16px; font-weight: 600; }
.ncard__txt span { font-size: 13px; color: var(--og-muted); }
.ncard__go { color: var(--og-muted); width: 19px; height: 19px; }

/* Swim-school group rows */
.gcards { display: flex; flex-direction: column; border-top: 1px solid var(--og-line); margin-top: 4px; }
.gcard { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--og-line); min-height: 52px; }
.gcard:last-child { border-bottom: 0; }
.gcard:active { background: var(--og-surface-2); }
.gcard__age { flex: none; min-width: 74px; text-align: center; font-size: 12px; font-weight: 600; color: var(--og-orange-700); background: var(--og-orange-050); border: 1px solid var(--og-orange-100); border-radius: var(--r-pill); padding: 5px 8px; }
.gcard__title { flex: 1; font-weight: 600; font-size: 15.5px; }
.gcard__go { color: var(--og-muted); width: 18px; height: 18px; }

/* Swim-school slots */
.slots { border-top: 1px solid var(--og-line); }
.slot { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--og-line); flex-wrap: wrap; }
.slot:last-child { border-bottom: 0; }
.slot__d { width: 84px; flex: none; font-weight: 500; font-size: 14.5px; }
.slot__t { font-weight: 600; }
.slot .badge--alert { margin-left: auto; }

/* Price tables */
.ptable { border-top: 1px solid var(--og-line); }
.prow { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--og-line); }
.prow__l { font-weight: 500; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.prow__l small { font-weight: 400; font-size: 12px; color: var(--og-muted); }
.prow__p { font-size: 16px; font-weight: 700; flex: none; }
.prow--reg { border-top: 1px solid var(--og-line); }
.pricecat__title { font-size: 15px; font-weight: 600; margin: 16px 0 0; }
.pricepanel { margin-top: 12px; }

/* Membership */
.membership { background: var(--og-surface-2); border-radius: var(--r-lg); padding: 16px; }
.membership__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.membership__label { font-weight: 700; font-size: 16px; }
.membership__price { font-size: 20px; font-weight: 700; color: var(--og-orange-700); }
.ticklist { list-style: none; padding: 0; display: grid; gap: 7px; }
.ticklist li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--og-ink-2); }
.ticklist .icon { width: 16px; height: 16px; color: var(--og-orange); flex: none; }

/* Club / Gold detail */
.subpanel { border-radius: var(--r-xl); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.subpanel--club { background: var(--og-surface-2); border: 1px solid var(--og-line-2); color: var(--og-ink); }
.subpanel--gold { background: linear-gradient(150deg, #201C1A, #3a2a19 60%, #4d3214 120%); color: #fff; }
.subpanel__tag { font-size: 15px; font-weight: 500; }
.subpanel--club .subpanel__tag { color: var(--og-ink-2); }
.subpanel--gold .subpanel__tag { color: rgba(255, 255, 255, .82); }
.subpanel__price { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.subpanel__list { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 9px; align-self: stretch; }
.subpanel__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.subpanel__list .icon { width: 18px; height: 18px; color: var(--og-orange); flex: none; }
.subpanel--gold .subpanel__list li { color: #fff; }
.subpanel__copy { font-size: 15px; }
.subpanel--club .subpanel__copy { color: var(--og-ink-2); }
.subpanel--gold .subpanel__copy { color: rgba(255, 255, 255, .78); }
.subpanel .btn { margin-top: 4px; }

/* Intensive promo */
.promo { background: linear-gradient(160deg, #211C1A, #33230F); color: #fff; border-radius: var(--r-xl); padding: 18px; display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.promo__title { font-size: 19px; font-weight: 700; }
.promo__sub { color: var(--og-orange); font-weight: 600; font-size: 13.5px; margin-top: -6px; }
.promo__blocks { display: flex; flex-direction: column; gap: 8px; }
.promo__block { display: flex; flex-direction: column; gap: 3px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; padding: 10px 12px; }
.promo__block b { font-size: 13.5px; font-weight: 600; }
.promo__block span { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { font-size: 12.5px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; padding: 6px 10px; border-radius: var(--r-pill); }
.pill b { color: var(--og-orange); font-weight: 700; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px 5px 8px; border-radius: var(--r-pill); width: fit-content; }
.tag .icon { width: 14px; height: 14px; }
.tag--dark { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }

/* Extra activity cards (Personal, lezioni individuali, riabilitazione) */
.xcard { background: var(--og-surface); border: 1px solid var(--og-line); border-radius: var(--r-lg); padding: 18px; margin-top: 12px; box-shadow: var(--sh-sm); }
.xcard h3 { font-size: 17px; font-weight: 600; }
.xcard__desc { color: var(--og-ink-2); font-size: 14px; margin: 4px 0 12px; }
.xcard .ptable { margin-bottom: 12px; }
.xcard .btn--block { margin: 0; }
.xcard .linka { margin-top: 4px; }

/* Certificate callout (Prezzi) */
.certbox { display: flex; gap: 10px; align-items: flex-start; background: var(--og-orange-050); border: 1px solid var(--og-orange-100); border-radius: var(--r-md); padding: 14px; margin-top: 14px; font-size: 13.5px; color: var(--og-ink); }
.certbox .icon { color: var(--og-orange-700); width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Note callout */
.note { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--og-ink-2); background: var(--og-surface-2); border-radius: var(--r-md); padding: 11px 12px; margin-top: 10px; }
.note .icon { width: 17px; height: 17px; color: var(--og-orange-700); margin-top: 1px; }

/* =============================================================================
   Bottom tab bar (mobile) — coherent, no oversized pill
   ============================================================================ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: flex;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-top: 1px solid var(--og-line); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--nav-h); color: var(--og-muted); }
.tab__icon { width: 22px; height: 22px; }
.tab__label { font-size: 11px; font-weight: 500; }
.tab.is-active { color: var(--og-orange); }
.tab.is-active .tab__label { font-weight: 600; }
.tab:active { transform: scale(.95); }

/* =============================================================================
   Responsive · tablet & desktop
   ============================================================================ */
@media (min-width: 720px) {
  .sec--explore { grid-template-columns: 1fr 1fr; }
  /* Single membership card: two-column inner layout so it fills the width */
  .feats--single .feat {
    display: grid; column-gap: 40px; align-items: start;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas: 'k list' 'tag list' 'price list' 'cta list';
  }
  .feats--single .feat__k { grid-area: k; }
  .feats--single .feat__tag { grid-area: tag; }
  .feats--single .feat__price { grid-area: price; }
  .feats--single .feat__cta { grid-area: cta; align-self: end; }
  .feats--single .feat__list { grid-area: list; margin: 0; align-self: center; }
}

@media (min-width: 960px) {
  :root { --gutter: 24px; }
  .topnav { display: flex; }
  .tabbar { display: none; }
  .view { padding-top: 26px; padding-bottom: 48px; gap: 30px; }
  /* Detail pages read better at a comfortable centered measure */
  .view:not([data-route="home"]) { max-width: 820px; }

  .hero { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 44px; }
  .hero__text { display: flex; flex-direction: column; gap: 14px; }
  .hero__title { font-size: clamp(40px, 4vw, 54px); }
  .hero__media { aspect-ratio: 4 / 3; }

  /* Fill the width in balanced columns instead of a left-aligned strip */
  .finder { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .dates { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .orari-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
  .orari-cols .oggi2 { background: var(--og-surface-2); border-radius: var(--r-lg); padding: 14px 16px; border-top: 0; }
  .orari-cols .oggi2__k { padding-top: 0; }
  .schedgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

  .foot { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
  .foot__contact { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
}

/* =============================================================================
   Content editor (owner tool)
   ============================================================================ */
.edbar {
  position: fixed; left: 12px; z-index: 300;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: calc(100vw - 24px);
  background: var(--og-ink); color: #fff; padding: 8px; border-radius: 14px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}
.edbar__b { background: rgba(255, 255, 255, .15); color: #fff; font-weight: 600; font-size: 13px; padding: 9px 13px; border-radius: 10px; min-height: 40px; }
.edbar__b--edit, .edbar__b--save { background: var(--og-orange); }
.edbar__b--edit:hover, .edbar__b--save:hover { background: var(--og-orange-600); }
.edbar__b--done { background: rgba(255, 255, 255, .24); }
.edbar__hint { font-size: 12px; color: rgba(255, 255, 255, .72); padding: 0 4px; }
@media (min-width: 960px) { .edbar { bottom: 16px; } }
@media (max-width: 400px) { .edbar__hint { display: none; } }

.is-editable { outline: 1.5px dashed var(--og-orange); outline-offset: 3px; border-radius: 3px; cursor: text; }
.is-editable:focus { outline: 2px solid var(--og-orange); background: rgba(255, 103, 34, .12); }

/* =============================================================================
   Search overlay
   ============================================================================ */
.search { position: fixed; inset: 0; z-index: 400; background: rgba(28, 25, 23, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 11vh 16px 16px; }
.search[hidden] { display: none; }
.search__panel { width: 100%; max-width: 560px; background: var(--og-surface); border: 1px solid var(--og-line); border-radius: var(--r-lg); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.search__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--og-line); }
.search__ic { width: 20px; height: 20px; color: var(--og-muted); flex: none; }
.search__input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--og-ink); }
.search__close { flex: none; color: var(--og-muted); padding: 6px; border-radius: 8px; }
.search__close .icon { width: 20px; height: 20px; }
.search__results { max-height: 54vh; overflow-y: auto; padding: 6px; }
.search__hint { color: var(--og-muted); font-size: 14px; padding: 16px; }
.search__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px; border-radius: 10px; font-size: 15px; font-weight: 500; min-height: 48px; }
.search__item:hover, .search__item:focus-visible { background: var(--og-surface-2); }
.search__go { width: 18px; height: 18px; color: var(--og-orange); flex: none; }
body.search-open { overflow: hidden; }

/* =============================================================================
   Motion preferences
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .view:not(.is-in) { transform: none; }
}

/* =============================================================================
   Tema muri: intestazione nera, parete in cemento diversa per sezione,
   tutti i contenuti dentro riquadri bianchi con testo scuro
   ============================================================================ */
:root {
  --og-ink: #1C1917; --og-ink-2: #463F39; --og-muted: #6B635C;
  --og-surface: #FFFFFF; --og-surface-2: #F4F1ED;
  --og-line: #E8E0D8; --og-line-2: #DCD3C9;
}
html { background: #cfccc7; }
body { background: transparent; color: var(--og-ink); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(home.jpg) center / cover no-repeat; }
body:has(.view[data-route="palestra"])::after { background-image: url(palestra.jpg); }
body:has(.view[data-route="piscina"])::after  { background-image: url(piscina.jpg); }
body:has(.view[data-route="prezzi"])::after   { background-image: url(prezzi.jpg); }
html:has(.view[data-route="palestra"]) { background: #3a3836; }
html:has(.view[data-route="piscina"])  { background: #7fa9d6; }
html:has(.view[data-route="prezzi"])   { background: #E8743A; }

/* Intestazione e barra in basso: nere */
.app-header { background: rgba(16, 14, 13, .95); border-bottom: 1px solid #000; }
body::before { background: #100e0d; }
.topnav__link { color: #d6cfc8; }
.topnav__link:hover { background: rgba(255,255,255,.08); color: #fff; }
.topnav__link.is-active { background: rgba(255,103,34,.18); color: #FF8A5C; }
.topnav__link--cta, .topnav__link--cta:hover { color: #fff; }
.iconbtn { color: #FAF8F5; }
.iconbtn:hover { background: rgba(255,255,255,.08); }
.tabbar { background: rgba(16, 14, 13, .96); border-top: 1px solid #000; }
.tab { color: #a79e96; }
.tab.is-active { color: #FF6722; }

/* Riquadri bianchi: ogni blocco della pagina sta su un pannello */
.view > .sep { display: none; }
.view > *:not(.sec--explore):not(.feats):not(.promo):not(.subpanel--gold):not(.sep) {
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 34px -18px rgba(0,0,0,.45);
}
.view > .sec--explore .ecard, .view > .feats .feat--club, .xcard {
  background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 34px -18px rgba(0,0,0,.45);
}
.feat--club { color: var(--og-ink); }
.feat--gold, .subpanel--gold, .promo { box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); }
.hero { padding: 18px; }
.hero__media { border-radius: 12px; }
.back { margin-left: -4px; }
@media (min-width: 960px) { .view > *:not(.sec--explore):not(.feats):not(.promo):not(.subpanel--gold):not(.sep) { padding: 24px 26px; } }

/* Prezzi: su fondo arancione i pulsanti principali diventano neri */
body:has(.view[data-route="prezzi"]) .btn--primary { background: #1C1917; color: #fff; }
body:has(.view[data-route="prezzi"]) .btn--primary:hover { background: #000; }

.search__panel { background: #fff; }

/* Icone dei riquadri (sala attrezzi, nuoto libero, ecc.): nere, bordo e icona arancioni */
.frow__ic, .ncard__ic, .gcard__age {
  background: #1C1917 !important; border: 2px solid #FF6722 !important; color: #FF6722 !important;
}
.frow__ic .icon, .ncard__ic .icon { color: #FF6722; }
.gcard__age { color: #FF6722 !important; }

/* Testi delle voci di elenco più grandi (sala attrezzi, nuoto libero, ecc.) */
.frow__l { font-size: 20px !important; font-weight: 600 !important; }
.ncard__txt b { font-size: 21px !important; }
.ncard__txt span { font-size: 16px !important; }
.gcard__title { font-size: 20px !important; }
.srow__n { font-size: 19px !important; }
.srow__i { font-size: 15px !important; }
.xcard h3 { font-size: 23px !important; }
.ecard__txt h3 { font-size: 24px !important; }
.ecard__txt p { font-size: 16px !important; }

/* Testi più visibili su tutto il sito: più contrasto, più peso, un po' più grandi */
body { font-size: 17px !important; font-weight: 500; }
:root { --og-ink: #000000 !important; --og-ink-2: #1C1917 !important; --og-muted: #2e2822 !important; }
body:has(.view[data-route="palestra"]) { --og-ink: #FFFFFF !important; --og-ink-2: #FFFFFF !important; --og-muted: #f1ebe4 !important; }
body:has(.view[data-route="piscina"]) { --og-ink: #000000 !important; --og-ink-2: #000000 !important; --og-muted: #0b1a2b !important; }
body:has(.view[data-route="prezzi"]) { --og-ink: #000000 !important; --og-ink-2: #000000 !important; --og-muted: #1C1917 !important; }
.hero__sub, .phead__sub, .xcard__desc, .ecard__txt p, .srow__i, .frow__l, .ncard__txt span, .prow__l small, .reception__hint, .reception__note, .hrow__d, .oggi2__row { color: inherit !important; font-weight: 600 !important; }
.frow__l, .ncard__txt b, .gcard__title, .srow__n, .prow__l, .hrow__t, .oggi2__row span:last-child { font-weight: 700 !important; }
.seclabel, .oggi2__k, .tagmini, .badge { font-weight: 800 !important; }
