/* =========================================================
   EM Fitness enjoyMOving Boutique — design system
   ========================================================= */

:root {
  --red: #E30613;
  --red-dark: #A80410;
  --red-light: #FF4757;
  --black: #0D0D0D;
  --black-soft: #1A1A1A;
  --black-card: #201F1F;

  --surface: #FFFFFF;
  --surface-alt: #F6F5F4;
  --border: #E7E4E2;

  --text: #181717;
  --text-muted: #5C5754;
  --text-inverse: #F5F3F2;
  --text-inverse-muted: #B9B3B0;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px rgba(13, 13, 13, 0.10);
  --shadow-lg: 0 20px 50px rgba(13, 13, 13, 0.18);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 78px;
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: hidden; }
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
p { margin: 0 0 1em; }
button { font: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .75em 1.2em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--black); color: var(--text-inverse); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--red-light); }
.section--dark p { color: var(--text-inverse-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--red);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: .6em;
}

.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid transparent;
  background: transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(227,6,19,.35); }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--dark { background: var(--black); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); padding: .85em 1em; }
.btn--block { width: 100%; }
.btn--sm { padding: .5em 1.1em; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8em; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,13,13,.97);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 50%; background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); color: #fff; font-size: 1.15rem; letter-spacing: .02em; }
.brand__sub { font-size: .68rem; color: var(--red-light); text-transform: uppercase; letter-spacing: .1em; }
.brand--footer .brand__name { color: var(--text-inverse); }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.site-nav ul { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px); flex-wrap: wrap; }
.site-nav a:not(.btn) {
  color: var(--text-inverse-muted);
  font-weight: 600; font-size: .92rem;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: #fff; border-color: var(--red); }
.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin-inline: auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  overflow: clip;
  padding-block: clamp(56px, 10vw, 120px);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(650px 420px at 85% 15%, rgba(227,6,19,.35), transparent 60%),
    radial-gradient(500px 400px at 5% 90%, rgba(227,6,19,.18), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 32px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; width: fit-content;
  margin-bottom: 18px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #35D07F; display: inline-block; }
.hero__badge .dot--off { background: #8A8A8A; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--text-inverse-muted); max-width: 560px; }
.hero__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 2.2em; flex-wrap: wrap; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--red-light); }
.hero__stats span { font-size: .82rem; color: var(--text-inverse-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- promo ---------- */
.promo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.promo-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
  box-shadow: var(--shadow);
}
.promo-card__media {
  position: relative;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-card__media img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.promo-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: #fff; font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px;
}
.promo-card__body { padding: 20px 22px; color: #fff; flex-grow: 1; display: flex; flex-direction: column; }
.promo-card__title { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; margin-bottom: .2em; }
.promo-card__text { font-size: .92rem; color: rgba(255,255,255,.85); margin-bottom: 0; }
.promo-card__dates { font-size: .78rem; color: var(--red-light); margin-top: .5em; text-transform: uppercase; letter-spacing: .04em; }
.promo-card__cta { margin-top: 16px; }

.empty-state {
  text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--text-muted);
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card--dark { background: var(--black-card); border-color: rgba(255,255,255,.08); color: #fff; }
.card--dark p { color: var(--text-inverse-muted); }
.card .icon { font-size: 1.8rem; margin-bottom: .5em; display: inline-block; }

.activity-card { border-top: 4px solid var(--red); }
.activity-card ul { margin-top: .8em; display: flex; flex-wrap: wrap; gap: 8px; }
.activity-card li {
  font-size: .8rem; background: var(--surface-alt); border: 1px solid var(--border);
  padding: 5px 11px; border-radius: 999px; color: var(--text-muted);
}

.service-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }
.service-strip span {
  font-size: .82rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: var(--black); color: #fff;
}

/* ---------- team ---------- */
.team-card { text-align: center; }
.team-card__photo {
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px;
  border: 3px solid var(--red); background: var(--surface-alt);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__role { color: var(--red); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6em; }

/* ---------- tariffe ---------- */
.plan-card { display: flex; flex-direction: column; text-align: center; position: relative; }
.plan-card--featured { border-color: var(--red); box-shadow: 0 16px 40px rgba(227,6,19,.18); transform: translateY(-6px); }
.plan-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.plan-card__price { font-family: var(--font-display); font-size: 2.4rem; color: var(--red); margin: .2em 0; }
.plan-card__note { color: var(--text-muted); font-size: .88rem; flex-grow: 1; }

/* ---------- libri ---------- */
.book-card { display: flex; gap: 18px; align-items: flex-start; }
.book-card__cover { width: 92px; flex: none; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface-alt); aspect-ratio: 2/3; }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid__item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 3/4; background: var(--surface-alt);
}
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid__item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,10,.94); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(92vw, 900px); }
.lightbox__figure img { max-width: 100%; max-height: 74vh; border-radius: 8px; }
.lightbox__caption { text-align: center; color: #fff; }
.lightbox__caption strong { display: block; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; margin-bottom: .2em; }
.lightbox__caption span { color: rgba(255,255,255,.7); font-size: .85rem; }
.lightbox__caption[hidden] { display: none; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--red); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 20px; color: var(--text-muted); }

/* ---------- contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 1.4em; }
.contact-list a, .contact-list .contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface-alt); border: 1px solid var(--border);
  font-weight: 600;
}
.contact-list a:hover { border-color: var(--red); }
.contact-list .ico {
  width: 38px; height: 38px; border-radius: 50%; background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none; font-size: 1rem;
}
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

.orari-table { width: 100%; border-collapse: collapse; margin-top: 1em; }
.orari-table td { padding: 10px 4px; border-bottom: 1px solid var(--border); }
.orari-table td:first-child { font-weight: 700; }
.orari-table td:last-child { text-align: right; color: var(--text-muted); }
.orari-table tr.is-today td { color: var(--red); }

/* ---------- video ---------- */
.video-embed { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-lg); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--text-inverse); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: .9em; }
.footer__claim { color: var(--text-inverse-muted); font-size: .85rem; margin: 14px 0; max-width: 220px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700;
}
.footer__social a:hover { background: var(--red); border-color: var(--red); }
.footer__list { display: grid; gap: 10px; font-size: .9rem; color: var(--text-inverse-muted); }
.footer__list a:hover { color: #fff; }
.footer__orari li { display: flex; justify-content: space-between; gap: 8px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-block: 22px; font-size: .8rem; color: var(--text-inverse-muted);
}
.footer__admin { text-decoration: underline; text-underline-offset: 3px; opacity: .6; }
.footer__admin:hover { opacity: 1; }

/* ---------- misc ---------- */
.badge-open {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; background: rgba(53,208,127,.15); color: #35D07F;
}
.badge-open--closed { background: rgba(255,255,255,.08); color: var(--text-inverse-muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--black); flex-direction: column; align-items: stretch;
    padding: 28px 24px; gap: 22px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-nav ul li { width: 100%; }
  .site-nav a:not(.btn) { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta { width: 100%; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .book-card { flex-direction: column; }
  .book-card__cover { width: 120px; }
}
