:root {
  color-scheme: dark;
  --bg: #101012;
  --panel: #19191d;
  --raised: #222226;
  --line: #35353c;
  --text: #f6f4f3;
  --muted: #b1aeb4;
  --red: #f34741;
  --red-bg: #bd262a;
  --green: #8bdbaf;
  --display: 'Barlow Condensed','Arial Narrow',Impact,sans-serif;
  --body: 'DM Sans',system-ui,sans-serif;
  --ease: cubic-bezier(.23,1,.32,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--body); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button,a,input,select,textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid #ff8d86; }
h1,h2,h3,h4,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--display); line-height: .98; }
em { color: var(--red); font-style: normal; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -70px; z-index: 80; background: var(--panel); padding: 10px; }
.skip:focus { top: 10px; }
.top,.footer { display:flex; align-items:center; justify-content:space-between; gap: 20px; padding: 13px max(5vw,calc((100vw - 1350px)/2)); }
.top { background: #101012f5; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 27px/.85 var(--display); white-space: nowrap; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand small { display: block; font: 700 9px var(--body); letter-spacing: .19em; margin-top: 7px; color: var(--muted); }
.top nav,.actions { display:flex; gap: 20px; align-items:center; flex-wrap: wrap; }
.top nav { font-size: 13px; color: var(--muted); }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding:10px 19px; border:1px solid transparent; border-radius:5px; font-weight:700; font-size:13px; color:var(--text); background:var(--raised); }
.primary { background:var(--red-bg); border-color:#da3739; }
.outline { background:#151518cf; border-color:#4a474d; }
.text-link { color:#ff8b85; font-weight:700; font-size:13px; }
.hero { position:relative; isolation:isolate; min-height:610px; overflow:hidden; border-bottom:1px solid var(--line); display:grid; align-items:center; }
.hero-photo { position:absolute; inset:0; z-index:-2; background:center 46% / cover url('/media/maps-panoramica.jpg'); }
.hero:after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#101012fa 0%,#101012e6 33%,#10101255 76%),linear-gradient(0deg,#101012,transparent 50%); }
.hero-inner { width:min(90%,1350px); margin:auto; padding:68px 0; display:grid; grid-template-columns:1.5fr 1fr; align-items:center; }
.hero-mark { display:grid; justify-items:center; }
.hero-mark img { width:min(100%,360px); filter:drop-shadow(0 10px 40px #000a); }
.eyebrow { font-size:11px; letter-spacing:.19em; font-weight:800; color:#ff8b85; }
.eyebrow i { display:inline-block; width:8px; height:8px; background:var(--red); border-radius:50%; margin-right:9px; }
h1 { font-size:clamp(67px,10vw,158px); font-weight:900; letter-spacing:-.025em; margin:14px 0 20px; }
.hero-copy>p:not(.eyebrow) { color:#ddd9dc; max-width:440px; margin-bottom:24px; }
.hero-credit { position:absolute; right:5%; bottom:14px; font-size:10px; color:#d0c9cc; }
.quick { display:grid; grid-template-columns:repeat(3,1fr); padding:0 5%; background:#1d1c20; border-bottom:1px solid var(--line); }
.quick a { display:grid; padding:18px 4%; border-right:1px solid var(--line); }
.quick a:last-child { border-right:0; }
.quick b { font:700 27px var(--display); }
.quick span,.muted { color:var(--muted); font-size:12px; }
.section { width:min(90%,1350px); margin:0 auto; padding:65px 0 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:24px; }
h2 { font-size:clamp(46px,6vw,86px); margin-top:8px; font-weight:800; }
h3 { font-size:clamp(26px,3.8vw,49px); font-weight:800; }
.gallery,.social,.review-grid { display:grid; gap:14px; }
.gallery { grid-template-columns:2fr 1fr 1fr; }
.gallery figure,.social a { position:relative; overflow:hidden; border-radius:8px; background:var(--raised); border:1px solid var(--line); }
.gallery img,.social img { width:100%; height:100%; object-fit:cover; }
.gallery figure { min-height:235px; height: clamp(235px,26vw,360px); }
.gallery figcaption { position:absolute; bottom:0; padding:20px; width:100%; background:linear-gradient(transparent,#000c); font-weight:700; }
.video-feature { background:var(--panel); border:1px solid var(--line); border-radius:10px; display:grid; grid-template-columns:1fr 1fr; margin-top:19px; overflow:hidden; align-items:center; }
.video-feature>div { padding:clamp(24px,5vw,65px); }
.video-feature h3 { margin:10px 0 16px; }
.video-feature p:not(.eyebrow) { color:var(--muted); margin-bottom:18px; }
.video-feature video { display:block; width:100%; height:340px; background:#08080a; }
.social { grid-template-columns:1.05fr 1fr 1fr; grid-template-rows:220px 220px; }
.social .social-large { grid-row:span 2; }
.social img { object-position:center 28%; }
.social a span { position:absolute; inset:auto 0 0; display:grid; padding:24px 18px 16px; background:linear-gradient(transparent,#08080ae8 50%); }
.social a small { font-size:9px; font-weight:700; letter-spacing:.12em; color:#ffafa8; }
.social a b { font:700 30px var(--display); }
.review-grid { grid-template-columns:repeat(3,1fr); margin-bottom:12px; }
.review-grid article,.panel { border:1px solid var(--line); border-radius:9px; background:var(--panel); padding:20px; }
.review-grid small { color:var(--muted); display:block; margin-top:14px; }
.location { padding-bottom:58px; }
.location p:not(.eyebrow) { color:var(--muted); margin-top:12px; }
.location iframe { width:100%; height:380px; border:0; border-radius:9px; background:#dadada; }
.footer { border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.portal { width:min(92%,1350px); margin:auto; min-height:74vh; padding:35px 0 60px; }
.portal h1 { font-size:clamp(48px,7vw,86px); margin:6px 0 16px; }
.portal h2 { font-size:39px; }
.portal h3 { font-size:30px; }
.portal-header { display:flex; align-items:start; justify-content:space-between; gap:16px; margin-bottom:22px; }
.portal-nav { display:flex; gap:6px; overflow-x:auto; padding:4px 1px 12px; margin-bottom:12px; }
.portal-nav .button { white-space:nowrap; }
.portal-nav .current,.chips .current { background:#492124; border-color:#a64649; }
.demo { padding:10px 15px; border:1px solid #785c31; border-radius:6px; background:#33271a; color:#ffe0a3; margin:0 0 16px; font-size:13px; }
.login { display:grid; grid-template-columns:1.1fr 1fr; gap:18px; align-items:stretch; max-width:1000px; margin:25px auto; }
.login-art { min-height:470px; display:flex; align-items:end; padding:30px; border-radius:9px; background:linear-gradient(0deg,#161317f2,#1613173a),center / cover url('/media/maps-panoramica.jpg'); }
.login-art img { width:105px; margin-bottom:12px; }
.login .panel { display:grid; align-content:center; gap:14px; padding:28px; }
.form { display:grid; gap:12px; }
.form label,.field { display:grid; gap:5px; font-weight:600; font-size:13px; }
input,select,textarea { min-width:0; width:100%; min-height:42px; color:var(--text); border:1px solid #494950; border-radius:5px; background:#111114; padding:8px 10px; }
textarea { min-height:72px; resize:vertical; }
.error { color:#ff9d99; font-size:13px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:13px; margin:16px 0; }
.stat b { display:block; font:800 39px var(--display); }
.stat span { color:var(--muted); font-size:13px; }
.stat .active { color:var(--green); }
.table { width:100%; border-collapse:collapse; }
.table td,.table th { text-align:left; padding:10px 8px; border-bottom:1px solid var(--line); }
.scroll { overflow:auto; }
.badge { display:inline-block; border-radius:20px; padding:3px 9px; font-size:11px; background:#34333a; }
.badge.good { color:var(--green); background:#1e392d; }
.badge.bad { color:#ffaaa5; background:#3c2024; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.stack { display:grid; gap:12px; }
.catalog-layout { display:grid; grid-template-columns:260px minmax(0,1fr) minmax(245px,.85fr); gap:12px; align-items:start; }
.catalog-layout .panel { padding:15px; }
.body-panel { text-align:center; }
.body-panel svg { display:block; margin:8px auto; height:330px; width:100%; }
.muscle { fill:#4c4b53; stroke:#16161a; stroke-width:2; cursor:pointer; }
.muscle.selected { fill:#ee4944; }
.body-panel .outline-shape { fill:#26262e; stroke:#66656c; stroke-width:1.2; }
.body-panel .tabs,.chips { display:flex; flex-wrap:wrap; gap:5px; }
.chips button,.tabs button { padding:6px 8px; min-height:34px; border-radius:4px; border:1px solid #494950; background:var(--raised); color:var(--text); font-size:11px; }
.body-figure { animation: body-in 160ms var(--ease) both; }
@keyframes body-in { from { opacity:.5; transform:translateX(4px); } }
.catalog-results { display:grid; gap:8px; margin-top:12px; max-height:590px; overflow:auto; }
.exercise { display:grid; grid-template-columns:64px minmax(0,1fr) auto; align-items:center; gap:9px; padding:8px; background:var(--raised); border-radius:6px; }
.exercise img { width:64px; height:54px; object-fit:contain; background:#f2f0ed; border-radius:4px; }
.exercise .unillustrated { font:700 25px var(--display); color:#c0bec3; text-align:center; }
.exercise button { padding:6px; min-width:34px; }
.exercise .exercise-title { background:transparent; border:0; color:inherit; text-align:left; padding:0; font-size:13px; font-weight:700; }
.exercise small { color:var(--muted); font-size:10px; display:block; }
.row { display:flex; gap:10px; align-items:center; justify-content:space-between; }
.draft-row { padding:10px 0; border-top:1px solid var(--line); }
.draft-fields { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:6px; }
.draft-fields label { font-size:10px; color:var(--muted); }
.draft-fields input { min-height:32px; padding:4px 5px; }
.icon { border:1px solid var(--line); border-radius:5px; background:var(--raised); color:var(--text); min-width:34px; min-height:34px; }
.dialog-media { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dialog-media img { background:#eee; width:100%; border-radius:6px; }
.dialog-media figcaption { color:var(--muted); font-size:11px; }
dialog { width:min(90%,690px); max-height:86vh; overflow:auto; background:var(--panel); border:1px solid var(--line); color:var(--text); padding:26px; border-radius:9px; }
dialog::backdrop { background:#000a; }
dialog .close { position:absolute; right:10px; top:10px; width:34px; height:34px; color:var(--text); background:var(--raised); border:1px solid var(--line); border-radius:5px; }
dialog h2 { margin:0 36px 16px 0; }
#notice { display:none; position:fixed; z-index:40; bottom:20px; right:20px; max-width:min(90vw,430px); padding:12px 17px; border-radius:6px; background:#2c2a30; border:1px solid #54505a; }
#notice.visible { display:block; animation: body-in 160ms var(--ease) both; }
.loading { min-height:280px; display:grid; justify-content:center; justify-items:center; align-content:center; gap:12px; }
.loading img { width:94px; }
.weights { display:flex; gap:5px; align-items:center; color:var(--red); }
.weights i { width:9px; height:25px; background:currentColor; border-radius:2px; animation: lift 700ms var(--ease) infinite alternate; }
.weights i:nth-child(2) { width:34px; height:4px; }
.weights i:last-child { animation-delay:75ms; }
@keyframes lift { to { transform:translateY(-4px); opacity:.55; } }
@media (hover:hover) and (pointer:fine) {
  .button,.social img { transition:transform 160ms var(--ease); }
  .button:hover { transform:translateY(-2px); }
  .social a:hover img { transform:scale(1.035); }
  .muscle:hover { fill:#cf6a68; }
}
@media (max-width:1000px) {
  .catalog-layout { grid-template-columns:225px minmax(0,1fr); }
  .draft { grid-column:1/-1; }
  .hero { min-height:520px; }
}
@media (max-width:650px) {
  .top,.footer { padding:9px 4%; gap:10px; }
  .top nav { display:none; }
  .hero { min-height:480px; }
  .hero-inner { display:block; padding:55px 0; }
  .hero-mark { display:none; }
  .hero:after { background:linear-gradient(90deg,#101012ef,#1010129c),linear-gradient(0deg,#101012,transparent 50%); }
  h1 { font-size:clamp(66px,15vw,108px); }
  .hero-copy>p:not(.eyebrow) { font-size:13px; }
  .quick a { padding:12px 6px; }
  .quick b { font-size:20px; }
  .quick span { font-size:9px; }
  .section { padding-top:42px; }
  .section-head { display:grid; gap:12px; }
  .gallery { grid-template-columns:1fr 1fr; }
  .gallery figure { height:145px; min-height:145px; }
  .gallery figure:first-child { grid-column:1/-1; height:185px; }
  .gallery figcaption { padding:12px; font-size:12px; }
  .video-feature,.login,.split,.review-grid,.catalog-layout { grid-template-columns:1fr; }
  .video-feature video { height:250px; }
  .social { grid-template-columns:1fr 1fr; grid-template-rows:250px 180px 180px; }
  .social .social-large { grid-column:1/-1; grid-row:auto; }
  .social a span { padding:17px 10px 10px; }
  .social a b { font-size:24px; }
  .social a small { font-size:7px; }
  .location iframe { height:290px; }
  .login-art { min-height:200px; padding:18px; }
  .login-art img { width:65px; }
  .portal-header { flex-wrap:wrap; }
  .portal { padding-top:22px; }
  .body-panel svg { height:295px; }
  .catalog-results { max-height:365px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
.body-panel svg { height: min(405px, 53vh); }
.body-panel .outline-shape { fill: #232329; stroke: #76747f; stroke-width: 1.15; }
.body-panel .muscle { fill: #55545d; stroke: #25242b; stroke-width: .85; }
.body-panel .muscle.selected { fill: #ef504b; stroke: #ff928c; stroke-width: 1.2; }
.body-detail { fill: none; stroke: #a8a4b4; stroke-opacity: .28; stroke-width: .8; pointer-events: none; }
.body-panel .tabs { justify-content: center; margin-top: 10px; }
.body-panel .tabs [aria-pressed=true] { color: #ffb0ab; border-color: #ab5154; background: #442529; }
.body-panel .chips { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.body-panel .chips button { min-height: 38px; font-size: 12px; padding: 5px; }
.hero-mark img { border-radius: 17%; mix-blend-mode: screen; }
@media (hover:hover) and (pointer:fine) { .body-panel .muscle:hover { fill:#cd7470; } }
@media (max-width:650px) {
  .body-panel svg { height: 355px; }
  .body-panel .chips { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .body-panel .chips button { min-height: 42px; }
}
