/* =========================================================
   B2site — Pagina Lavori: card, finestra anteprima, 4 demo
   ========================================================= */

/* ---------- Card lavori ---------- */
button.work { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; width: 100%; display: block; cursor: pointer; grid-column: span 2; }
button.work:focus { outline: none; }
button.work.work--wide { grid-column: span 3; }
button.work:focus-visible .work__preview { outline: 2px solid var(--accent); outline-offset: 4px; }
.work__preview { background-size: cover !important; background-position: center !important; }
.work__preview--food { background: linear-gradient(90deg, rgba(20,9,4,.94) 0%, rgba(20,9,4,.7) 45%, rgba(20,9,4,.15) 100%), url(works/food-interior2.jpg) center/cover; }
.work__preview--med { background: linear-gradient(90deg, rgba(234,246,245,.97) 0%, rgba(234,246,245,.85) 48%, rgba(234,246,245,.1) 100%), url(works/dent-3.jpg) center/cover; }
.work__preview--gym { background: linear-gradient(180deg, rgba(5,5,5,.35) 0%, rgba(5,5,5,.92) 75%), url(works/gym-3.jpg) center/cover; }
.work__preview--shop { background: linear-gradient(90deg, rgba(241,231,221,.97) 0%, rgba(241,231,221,.82) 42%, rgba(241,231,221,0) 75%), url(works/fash-4.jpg) center 30%/cover; }
.work__open {
  position: absolute; right: 22px; bottom: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(7,10,20,.78); color: #fff; font-size: 13px; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18);
  transform: translateY(8px); opacity: 0; transition: opacity .35s, transform .45s var(--ease);
}
.work__open svg { width: 16px; height: 16px; }
.work:hover .work__open, .work:focus-visible .work__open { opacity: 1; transform: none; }
@media (hover: none) { .work__open { opacity: 1; transform: none; } }
.work:hover .work__preview { box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }

/* ---------- Finestra anteprima ---------- */
html.demo-open { overflow: hidden; }
.demo-modal { position: fixed; inset: 0; z-index: 300; }
.demo-modal[hidden] { display: none; }
.demo-modal__backdrop { position: absolute; inset: 0; background: rgba(3,5,12,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .45s; }
.demo-modal.is-opening .demo-modal__backdrop, .demo-modal.is-open .demo-modal__backdrop { opacity: 1; }
.demo-modal__panel {
  position: absolute; inset: 24px; margin: auto; max-width: 1280px;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: #0B1020; border: 1px solid var(--line-2);
  box-shadow: 0 60px 140px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(91,124,255,.12);
  transform-origin: 0 0; will-change: transform;
}
.demo-modal__cover { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; padding: 44px; pointer-events: none; opacity: 0; transition: opacity .4s ease .05s; background-size: cover !important; }
.demo-modal.is-opening .demo-modal__cover, .demo-modal.is-closing .demo-modal__cover { opacity: 1; transition-duration: .2s; transition-delay: 0s; }
.demo-modal__cover .wp-inner { transform: none !important; }
.demo-modal__bar, .demo-modal__body, .demo-modal__foot { transition: opacity .35s ease .1s; }
.demo-modal.is-opening .demo-modal__bar, .demo-modal.is-opening .demo-modal__body, .demo-modal.is-opening .demo-modal__foot,
.demo-modal.is-closing .demo-modal__bar, .demo-modal.is-closing .demo-modal__body, .demo-modal.is-closing .demo-modal__foot { opacity: 0; transition-delay: 0s; transition-duration: .15s; }

.demo-modal__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #131A2E; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.demo-modal__dots { display: flex; gap: 7px; }
.demo-modal__dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.demo-modal__dots i:nth-child(2) { background: #FEBC2E; }
.demo-modal__dots i:nth-child(3) { background: #28C840; }
.demo-modal__url { flex: 1; max-width: 420px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-size: 13px; }
.demo-modal__url svg { width: 12px; height: 12px; fill: var(--success); }
.demo-modal__badge { font-size: 12px; color: var(--accent-2); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.demo-modal__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .3s, transform .3s var(--ease); }
.demo-modal__close:hover { background: rgba(255,255,255,.08); transform: rotate(90deg); }
.demo-modal__body { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; container-type: inline-size; container-name: demo; background: #fff; scroll-behavior: auto; }
.demo-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; background: #131A2E; border-top: 1px solid var(--line); flex-shrink: 0; }
.demo-modal__foot p { color: var(--muted); font-size: 14px; }
.demo-modal__foot b { color: var(--text); font-weight: 600; }

.demo-loading { height: 100%; min-height: 300px; display: grid; place-items: center; background: #0B1020; }
.demo-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(91,124,255,.25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-error { padding: 60px 24px; text-align: center; color: #333; }

.demo-toast {
  position: absolute; left: 50%; bottom: 76px; z-index: 10; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100% - 32px)); padding: 14px 20px; border-radius: 14px; text-align: center;
  background: #0B1020; color: #fff; font-size: 14px; line-height: 1.5; border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); transition: opacity .3s, transform .4s var(--ease);
}
.demo-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 700px) {
  .demo-modal__panel { inset: 0; border-radius: 0; border: 0; }
  .demo-modal__badge, .demo-modal__dots { display: none; }
  .demo-modal__foot p { display: none; }
  .demo-modal__foot .btn { width: 100%; }
  .demo-modal__cover { padding: 24px; }
}

/* =========================================================
   Componenti condivisi dei demo
   ========================================================= */
.dm { --ink: #111; --muted-ink: #666; --line-c: rgba(0,0,0,.1); --acc: #333; --acc-ink: #fff; --bg: #fff; --bg2: #f5f5f5; --radius-c: 12px;
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; min-height: 100%; }
.dm *, .dm *::before, .dm *::after { box-sizing: border-box; }
.dm img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dm a { color: inherit; }
.dm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.dm-sec { padding: 90px 0; }
.dm-kicker { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); font-weight: 600; margin-bottom: 14px; display: block; }
.dm-h2 { font-size: clamp(30px, 4cqi, 48px); line-height: 1.1; margin-bottom: 18px; }
.dm-lead { color: var(--muted-ink); max-width: 560px; }
.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid var(--acc); background: var(--acc); color: var(--acc-ink); cursor: pointer; text-decoration: none; transition: transform .3s var(--ease), filter .3s, background .3s; font-family: inherit; }
.dm-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.dm-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.dm-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 40px; }
.dm-nav__links { display: flex; gap: 28px; font-size: 14px; }
.dm-nav__links a { text-decoration: none; opacity: .85; cursor: pointer; }
.dm-nav__links a:hover { opacity: 1; }

/* scelte */
.chip { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 64px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-c); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; line-height: 1.25; }
.chip small { font-size: 11px; opacity: .65; text-transform: uppercase; letter-spacing: .06em; }
.chip b { font-size: 18px; }
.chip:hover { border-color: var(--acc); transform: translateY(-1px); }
.chip.is-selected { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.demo-book { display: grid; gap: 22px; position: relative; }
.demo-field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; letter-spacing: .02em; }
.demo-field input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-c); background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.demo-field input:focus { outline: none; border-color: var(--acc); }
.demo-field.is-missing > span::after { content: " · Campo richiesto"; color: #E5484D; font-weight: 500; }
.demo-field.is-missing input, .demo-field.is-missing .chip { border-color: #E5484D; }
.stepper { display: inline-flex; align-items: center; gap: 16px; border: 1.5px solid var(--line-c); border-radius: 999px; padding: 6px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg2); color: var(--ink); font-size: 18px; cursor: pointer; }
.stepper b { min-width: 24px; text-align: center; font-size: 18px; }
.demo-done { display: none; text-align: center; padding: 30px 10px; }
.demo-book.is-done > :not(.demo-done) { display: none; }
.demo-book.is-done .demo-done { display: block; animation: popIn .5s var(--ease); }
.demo-done__ico { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: var(--acc); color: var(--acc-ink); }
.demo-done h4 { font-size: 26px; margin-bottom: 8px; }
.demo-done p { color: var(--muted-ink); margin-bottom: 6px; }
.demo-done small { display: block; color: var(--muted-ink); font-size: 12px; margin: 12px 0 18px; opacity: .8; }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } }
.dm [hidden] { display: none !important; }

/* =========================================================
   DEMO 1 — Osteria del Borgo (ristorante)
   ========================================================= */
.dm-osteria { --ink: #2A1A10; --muted-ink: #7A6555; --line-c: rgba(42,26,16,.14); --acc: #A4522A; --acc-ink: #FFF8EE; --bg: #F7F0E6; --bg2: #EFE4D4; }
.dm-osteria .serif, .dm-osteria .dm-h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.dm-osteria .dm-h2 em { font-style: italic; color: var(--acc); }
.os-hero { position: relative; min-height: 640px; color: #FFF8EE; background: linear-gradient(180deg, rgba(15,7,3,.55) 0%, rgba(15,7,3,.35) 40%, rgba(15,7,3,.88) 100%), url(works/food-interior2.jpg) center/cover; display: flex; flex-direction: column; }
.os-logo { font-family: Georgia, serif; font-style: italic; font-size: 26px; }
.os-logo small { display: block; font-style: normal; font-family: var(--font-body); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .75; }
.os-hero .dm-btn { --acc: #D9A35F; --acc-ink: #1E0F06; }
.os-hero__content { margin-top: auto; padding: 0 40px 70px; max-width: 1120px; width: 100%; margin-left: auto; margin-right: auto; }
.os-hero h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(42px, 7cqi, 84px); line-height: 1.02; margin: 10px 0 18px; }
.os-hero h1 em { color: #E9B97A; }
.os-hero p { max-width: 480px; opacity: .88; margin-bottom: 30px; font-size: 17px; }
.os-hero .dm-kicker { color: #E9B97A; }
.os-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.os-feats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-c); }
.os-feats div { padding: 28px 30px; border-right: 1px solid var(--line-c); }
.os-feats div:last-child { border-right: 0; }
.os-feats b { display: block; font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.os-feats span { font-size: 14px; color: var(--muted-ink); }
.os-gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; margin-top: 44px; }
.os-gallery figure { height: 300px; border-radius: 14px; overflow: hidden; }
.os-gallery figure img { transition: transform 1.2s var(--ease); }
.os-gallery figure:hover img { transform: scale(1.06); }
.os-menu { background: #FFFBF4; }
.os-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 34px 0 30px; border-bottom: 1px solid var(--line-c); }
.os-tabs button { background: none; border: 0; padding: 12px 18px; font: inherit; font-family: Georgia, serif; font-size: 19px; color: var(--muted-ink); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.os-tabs button.is-active { color: var(--ink); border-bottom-color: var(--acc); }
.os-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 56px; animation: popIn .4s var(--ease); }
.os-item { padding: 18px 0; border-bottom: 1px dashed var(--line-c); }
.os-item__top { display: flex; align-items: baseline; gap: 10px; }
.os-item__top b { font-family: Georgia, serif; font-weight: 400; font-size: 19px; }
.os-item__top i { flex: 1; border-bottom: 1px dotted rgba(42,26,16,.3); transform: translateY(-5px); }
.os-item__top > span { font-family: Georgia, serif; font-size: 18px; color: var(--acc); white-space: nowrap; }
.os-item p { font-size: 14px; color: var(--muted-ink); margin-top: 2px; }
.os-tag { display: inline-block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--bg2); color: var(--acc); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; font-family: var(--font-body); }
.os-book { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; border-radius: 22px; overflow: hidden; background: #FFFBF4; border: 1px solid var(--line-c); }
.os-book__img { position: relative; min-height: 100%; color: #FFF8EE; }
.os-book__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,7,3,.1), rgba(15,7,3,.85)); }
.os-book__info { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 30px; }
.os-book__info h3 { font-family: Georgia, serif; font-weight: 400; font-size: 30px; margin-bottom: 12px; }
.os-book__info p { font-size: 14px; opacity: .9; }
.os-book form { padding: 40px; }
.os-foot { background: #1E120A; color: #E9DCCB; padding: 50px 0; font-size: 14px; }
.os-foot .dm-wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.os-foot b { display: block; color: #fff; font-family: Georgia, serif; font-weight: 400; font-size: 18px; margin-bottom: 8px; }

/* =========================================================
   DEMO 2 — Studio Lumen (dentista)
   ========================================================= */
.dm-lumen { --ink: #0D3B3A; --muted-ink: #4F7270; --line-c: rgba(13,59,58,.14); --acc: #0D7C74; --acc-ink: #fff; --bg: #FFFFFF; --bg2: #EAF6F5; }
.dm-lumen h1, .dm-lumen .dm-h2, .dm-lumen h3, .dm-lumen h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.02em; }
.lu-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.lu-logo svg { width: 30px; height: 30px; }
.lu-hero { position: relative; background: radial-gradient(900px 500px at 85% 30%, #CFEDEA 0%, transparent 60%), linear-gradient(180deg, #F2FAF9, #FFFFFF); overflow: hidden; }
.lu-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 30px; padding: 40px 40px 90px; max-width: 1120px; margin: 0 auto; }
.lu-hero h1 { font-size: clamp(40px, 6cqi, 68px); line-height: 1.04; margin: 8px 0 20px; }
.lu-hero h1 span { color: var(--acc); }
.lu-hero p { color: var(--muted-ink); font-size: 18px; max-width: 470px; margin-bottom: 30px; }
.lu-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.lu-trust { display: flex; gap: 28px; margin-top: 38px; font-size: 14px; color: var(--muted-ink); flex-wrap: wrap; }
.lu-trust b { display: block; font-size: 24px; color: var(--ink); }

/* dente 3D che ruota */
.lu-stage { position: relative; height: 460px; display: grid; place-items: center; perspective: 1100px; }
.lu-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(13,124,116,.28), transparent 65%); }
.lu-orbit { position: absolute; width: 400px; height: 140px; border-radius: 50%; border: 2px solid rgba(13,124,116,.25); transform: rotateX(70deg); }
.lu-orbit::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--acc); top: -7px; left: 50%; box-shadow: 0 0 0 6px rgba(13,124,116,.15); animation: orbitDot 6s linear infinite; offset-path: ellipse(200px 70px at 200px 70px); offset-rotate: 0deg; }
@keyframes orbitDot { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.lu-tooth { position: relative; width: 210px; height: 252px; transform-style: preserve-3d; animation: toothSpin 9s linear infinite; }
.lu-tooth svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes toothSpin { from { transform: rotateY(0deg) rotateZ(-4deg); } to { transform: rotateY(360deg) rotateZ(-4deg); } }
.lu-float { animation: floatY 5s ease-in-out infinite; }
.lu-shadow { position: absolute; bottom: 40px; width: 170px; height: 24px; border-radius: 50%; background: radial-gradient(rgba(13,59,58,.28), transparent 70%); animation: shadowPulse 5s ease-in-out infinite; }
@keyframes shadowPulse { 50% { transform: scale(.82); opacity: .7; } }
.lu-spark { position: absolute; color: var(--acc); font-size: 22px; animation: twinkle 2.4s ease-in-out infinite; }
.lu-spark:nth-of-type(2) { animation-delay: .8s; font-size: 16px; }
.lu-spark:nth-of-type(3) { animation-delay: 1.6s; font-size: 12px; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6) rotate(45deg); } }
.lu-badge { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 16px; font-size: 13px; box-shadow: 0 20px 40px -16px rgba(13,59,58,.35); animation: floatY 6s ease-in-out infinite; }
.lu-badge b { display: block; font-size: 15px; }
.lu-badge i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); color: var(--acc); font-style: normal; font-size: 16px; }
.lu-badge--a { left: 0; top: 70px; }
.lu-badge--b { right: 0; bottom: 70px; animation-delay: -2s; }

.lu-treat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.lu-card { padding: 28px; border-radius: 18px; background: var(--bg2); transition: transform .4s var(--ease), box-shadow .4s; }
.lu-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(13,59,58,.5); }
.lu-card i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--acc); font-style: normal; font-size: 20px; margin-bottom: 20px; }
.lu-card h3 { font-size: 19px; margin-bottom: 6px; }
.lu-card p { font-size: 14px; color: var(--muted-ink); margin-bottom: 14px; }
.lu-card span { font-weight: 600; color: var(--acc); font-size: 15px; }
.lu-card--img { padding: 0; overflow: hidden; position: relative; color: #fff; min-height: 260px; }
.lu-card--img img { position: absolute; inset: 0; }
.lu-card--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(13,59,58,.9)); }
.lu-card--img div { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; }
.lu-card--img p, .lu-card--img span { color: #fff; }
.lu-team { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.lu-team figure { height: 420px; border-radius: 24px; overflow: hidden; }
.lu-team ul { margin-top: 22px; display: grid; gap: 12px; }
.lu-team li { display: flex; gap: 12px; align-items: center; }
.lu-team li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--bg2); color: var(--acc); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.lu-book { background: linear-gradient(160deg, #0D3B3A, #0D5E57); color: #fff; border-radius: 28px; padding: 50px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; --ink: #fff; --muted-ink: rgba(255,255,255,.75); --line-c: rgba(255,255,255,.22); --acc: #7BE0D5; --acc-ink: #0D3B3A; --bg2: rgba(255,255,255,.12); }
.lu-book .dm-h2 { color: #fff; }
.lu-foot { padding: 40px 0; border-top: 1px solid var(--line-c); font-size: 14px; color: var(--muted-ink); }
.lu-foot .dm-wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   DEMO 3 — Forge Gym (palestra)
   ========================================================= */
.dm-forge { --ink: #F4F4F4; --muted-ink: #A3A3A3; --line-c: rgba(255,255,255,.14); --acc: #D4FF3A; --acc-ink: #0A0A0A; --bg: #0A0A0A; --bg2: #161616; }
.dm-forge .fg-h, .dm-forge .dm-h2 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: .95; }
.dm-forge .dm-btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.fg-logo { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: .04em; }
.fg-logo span { color: var(--acc); }
.dm-forge .dm-nav__links { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; }
.fg-hero { position: relative; min-height: 640px; display: flex; flex-direction: column; background: linear-gradient(90deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.6) 55%, rgba(10,10,10,.2) 100%), url(works/gym-3.jpg) center/cover; overflow: hidden; }
.fg-hero::before { content: ""; position: absolute; right: -80px; top: 0; bottom: 0; width: 220px; background: repeating-linear-gradient(-60deg, rgba(212,255,58,.9) 0 10px, transparent 10px 26px); opacity: .18; transform: skewX(-12deg); }
.fg-hero__content { margin-top: auto; padding: 0 40px 60px; max-width: 1120px; margin-left: auto; margin-right: auto; width: 100%; position: relative; }
.fg-hero h1 { font-size: clamp(64px, 13cqi, 160px); margin: 6px 0 20px; }
.fg-hero h1 span { color: transparent; -webkit-text-stroke: 2px var(--acc); }
.fg-hero p { max-width: 440px; color: #D6D6D6; margin-bottom: 30px; font-size: 17px; }
.fg-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fg-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-c); margin-top: 50px; }
.fg-stats div { padding: 22px 0; }
.fg-stats b { font-family: var(--font-head); font-size: 34px; color: var(--acc); display: block; line-height: 1; }
.fg-stats span { font-size: 13px; color: var(--muted-ink); text-transform: uppercase; letter-spacing: .1em; }
.fg-marquee { background: var(--acc); color: #0A0A0A; overflow: hidden; padding: 14px 0; transform: rotate(-1.5deg); margin: -10px -20px 0; position: relative; z-index: 2; }
.fg-marquee div { display: flex; width: max-content; animation: marquee 18s linear infinite; font-family: var(--font-head); font-weight: 800; font-size: 26px; text-transform: uppercase; white-space: nowrap; }
.fg-marquee span { padding: 0 22px; }
.fg-classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.fg-class { position: relative; height: 380px; overflow: hidden; border-radius: 6px; }
.fg-class img { transition: transform 1s var(--ease), filter .6s; filter: grayscale(.4); }
.fg-class:hover img { transform: scale(1.07); filter: grayscale(0); }
.fg-class::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.92)); }
.fg-class div { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; }
.fg-class h3 { font-family: var(--font-head); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: 1; margin-bottom: 6px; }
.fg-class p { font-size: 14px; color: #CFCFCF; }
.fg-class em { position: absolute; z-index: 1; top: 16px; left: 16px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--acc); color: #0A0A0A; padding: 5px 10px; }
.fg-days { display: flex; gap: 6px; flex-wrap: wrap; margin: 34px 0 20px; }
.fg-days button { background: var(--bg2); color: var(--muted-ink); border: 1px solid var(--line-c); padding: 12px 20px; font: inherit; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; cursor: pointer; transition: all .2s; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.fg-days button.is-active { background: var(--acc); color: #0A0A0A; border-color: var(--acc); }
.fg-row { display: grid; grid-template-columns: 110px 1fr 160px 110px; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-c); animation: popIn .35s var(--ease); transition: background .2s; }
.fg-row:hover { background: var(--bg2); }
.fg-row time { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--acc); }
.fg-row b { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; }
.fg-row span { color: var(--muted-ink); font-size: 14px; }
.fg-lvl { font-style: normal; justify-self: end; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-c); padding: 4px 10px; }
.fg-lvl--hot { border-color: var(--acc); color: var(--acc); }
.fg-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.fg-plan { position: relative; padding: 34px 30px; background: var(--bg2); border: 1px solid var(--line-c); display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), border-color .3s; }
.fg-plan:hover { transform: translateY(-6px); border-color: var(--acc); }
.fg-plan--hot { background: #1C2109; border-color: var(--acc); }
.fg-plan--hot::before { content: "IL PIÙ SCELTO"; position: absolute; top: -12px; left: 30px; background: var(--acc); color: #0A0A0A; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 5px 10px; }
.fg-plan h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; text-transform: uppercase; }
.fg-price { font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 4.6cqi, 52px); line-height: 1; white-space: nowrap; }
.dm-forge .dm-btn--ghost { background: rgba(255,255,255,.08); border-color: transparent; color: var(--ink); }
.dm-forge .dm-btn--ghost:hover { background: rgba(212,255,58,.16); color: var(--acc); }
.dm { overflow-x: clip; }
.fg-price small { font-size: 15px; color: var(--muted-ink); font-weight: 500; }
.fg-plan ul { display: grid; gap: 8px; font-size: 14px; color: #D6D6D6; margin-bottom: 10px; }
.fg-plan li::before { content: "▸ "; color: var(--acc); }
.fg-plan .dm-btn { margin-top: auto; }
.fg-trial { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-c); }
.fg-trial__img { position: relative; min-height: 420px; }
.fg-trial__img::after { content: "FIRST\A TRAINING\A FREE"; white-space: pre; position: absolute; left: 26px; bottom: 22px; font-family: var(--font-head); font-weight: 800; font-size: 42px; line-height: .95; color: var(--acc); text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.fg-trial form { padding: 40px; }
.fg-foot { padding: 40px 0; border-top: 1px solid var(--line-c); font-size: 13px; color: var(--muted-ink); text-transform: uppercase; letter-spacing: .08em; }
.fg-foot .dm-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* =========================================================
   DEMO 4 — Maison Aurelia (boutique)
   ========================================================= */
.dm-aurelia { --ink: #2B211B; --muted-ink: #8A7A6D; --line-c: rgba(43,33,27,.14); --acc: #2B211B; --acc-ink: #F4EEE6; --bg: #F7F2EB; --bg2: #EDE3D7; --gold: #B08D57; }
.dm-aurelia .serif, .dm-aurelia .dm-h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.dm-aurelia .dm-h2 em { font-style: italic; color: var(--gold); }
.dm-aurelia .dm-kicker { color: var(--gold); }
.dm-aurelia .dm-btn { border-radius: 0; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; font-weight: 600; padding: 16px 28px; }
.au-top { background: var(--ink); color: var(--bg); text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; }
.au-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 40px; border-bottom: 1px solid var(--line-c); }
.au-nav .dm-nav__links { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.au-nav .dm-nav__links:last-child { justify-content: flex-end; }
.au-logo { font-family: Georgia, serif; font-size: 28px; font-style: italic; text-align: center; line-height: 1; }
.au-logo small { display: block; font-style: normal; font-family: var(--font-body); font-size: 9px; letter-spacing: .5em; margin-top: 6px; color: var(--gold); }
.au-hero { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 600px; }
.au-hero__text { display: flex; flex-direction: column; justify-content: center; padding: 60px 50px; }
.au-hero h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(44px, 6.4cqi, 80px); line-height: 1.02; margin-bottom: 22px; }
.au-hero h1 em { color: var(--gold); }
.au-hero p { color: var(--muted-ink); max-width: 380px; margin-bottom: 32px; }
.au-hero figure { position: relative; overflow: hidden; }
.au-hero figure img { animation: kenburns 18s ease-in-out infinite alternate; object-position: center 30%; }
@keyframes kenburns { to { transform: scale(1.1) translate(-2%, -2%); } }
.au-hero figure figcaption { position: absolute; left: 24px; bottom: 22px; color: #fff; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.au-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin: 30px 0 40px; }
.au-filters button { background: none; border: 0; font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-ink); cursor: pointer; padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.au-filters button.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.au-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.au-prod { transition: opacity .4s, transform .4s var(--ease); }
.au-prod.is-hidden { display: none; }
.au-prod figure { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg2); margin-bottom: 16px; }
.au-prod figure img { transition: transform 1s var(--ease); }
.au-prod:hover figure img { transform: scale(1.06); }
.au-prod .au-new { position: absolute; top: 12px; left: 12px; background: var(--bg); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; }
.au-ask { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 13px; border: 0; background: rgba(43,33,27,.92); color: var(--bg); font: inherit; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transform: translateY(calc(100% + 20px)); transition: transform .45s var(--ease); }
.au-prod:hover .au-ask, .au-ask:focus-visible { transform: none; }
@media (hover: none) { .au-ask { transform: none; } }
.au-prod h3 { font-family: Georgia, serif; font-weight: 400; font-size: 18px; margin-bottom: 2px; }
.au-prod p { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-ink); }
.au-prod span { display: block; margin-top: 6px; font-size: 15px; }
.au-store { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: var(--bg); }
.au-store figure { min-height: 460px; }
.au-store > div { padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; }
.au-store .dm-h2 { color: var(--bg); }
.au-store p { color: rgba(244,238,230,.75); margin-bottom: 8px; }
.au-store .dm-btn { --acc: #F4EEE6; --acc-ink: #2B211B; align-self: flex-start; margin-top: 24px; }
.au-foot { padding: 40px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-ink); }
.au-foot .dm-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* =========================================================
   Demo responsive (in base alla larghezza della finestra)
   ========================================================= */
@container demo (max-width: 900px) {
  .dm-nav__links { display: none; }
  .dm-wrap, .os-hero__content, .fg-hero__content { padding-left: 22px; padding-right: 22px; }
  .dm-nav, .au-nav { padding: 18px 22px; }
  .dm-sec { padding: 64px 0; }
  .os-feats, .os-gallery, .os-list, .os-book, .os-foot .dm-wrap,
  .lu-hero__grid, .lu-treat, .lu-team, .lu-book,
  .fg-classes, .fg-plans, .fg-trial,
  .au-hero, .au-store { grid-template-columns: 1fr; }
  .os-feats div { border-right: 0; border-bottom: 1px solid var(--line-c); }
  .os-gallery figure { height: 220px; }
  .os-book__img { min-height: 260px; }
  .os-book form, .fg-trial form { padding: 26px 22px; }
  .lu-hero__grid { padding: 20px 22px 60px; }
  .lu-stage { height: 360px; order: -1; }
  .lu-team figure { height: 300px; }
  .lu-book { padding: 30px 22px; gap: 24px; border-radius: 20px; }
  .fg-row { grid-template-columns: 80px 1fr; }
  .fg-row span, .fg-lvl { grid-column: 2; justify-self: start; }
  .fg-trial__img { min-height: 260px; }
  .au-nav { grid-template-columns: 1fr; }
  .au-hero__text { padding: 40px 22px; }
  .au-hero figure { min-height: 420px; order: -1; }
  .au-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .au-store > div { padding: 40px 22px; }
  .au-store figure { min-height: 300px; }
}
@container demo (max-width: 600px) {
  .dm-nav > .dm-btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
  .lu-logo, .os-logo, .fg-logo { white-space: nowrap; font-size: 18px; }
  .os-logo small { display: none; }
}
@media (max-width: 820px) {
  button.work, button.work.work--wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .lu-tooth, .fg-marquee div, .au-hero figure img, .lu-orbit::after { animation: none !important; }
}
