/* AVAPLAY — sito pubblico. Stesso carattere e stessi colori dei giochi (Titillium,
   inchiostro blu notte, accento arancio che vira al rosa del marchio). */

@font-face { font-family: "AVA Display"; src: url("fonts/Titillium-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "AVA Sans"; src: url("fonts/Titillium-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "AVA Sans"; src: url("fonts/Titillium-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "AVA Sans"; src: url("fonts/Titillium-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #04060d;
  --ink-1: #0a0f20;
  --ink-2: #111831;
  --ink-3: #1a2347;
  --text: #f4f5ff;
  --soft: #c5cae6;
  --muted: #8b92b8;
  --edge: rgba(255, 255, 255, .08);
  --edge-hi: rgba(255, 255, 255, .16);
  --a1: #ffb224;
  --a2: #ff6a2b;
  --a3: #ff2d6f;
  --grad: linear-gradient(100deg, var(--a1), var(--a2) 48%, var(--a3));
  --cash: #46f5ab;
  --slot-ink: #9ee7ef;
  --slot-bg: rgba(72, 199, 232, .16);
  --show-ink: #dcc8ff;
  --show-bg: rgba(146, 86, 255, .18);
  --display: "AVA Display", "AVA Sans", system-ui, sans-serif;
  --sans: "AVA Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 56px);
  --hdr: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
html.locked, html.locked body { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
body [hidden] { display: none; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--a2); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--a1);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }

/* ---------- tasti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: .02em; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-primary { color: #1a0a02; background: var(--grad); box-shadow: 0 10px 34px -10px rgba(255, 106, 43, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(255, 82, 60, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { border: 1px solid var(--edge-hi); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- porta +18 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  overflow: auto; background: var(--bg);
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.gate-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 48% 72% at 50% 35%, rgba(255, 45, 111, .24), transparent 74%),
    radial-gradient(ellipse 70% 80% at 70% 80%, rgba(255, 178, 36, .12), transparent 75%),
    linear-gradient(145deg, #080b1b, #160d27);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.gate-card {
  position: relative; width: min(520px, 100%); padding: clamp(28px, 6vw, 44px);
  text-align: center; border-radius: 28px; border: 1px solid var(--edge-hi);
  background: linear-gradient(180deg, rgba(20, 26, 54, .86), rgba(8, 11, 24, .92));
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
}
.gate-logo { width: 190px; margin: 0 auto 26px; }
.gate-badge {
  width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 50%; position: relative;
  display: grid; place-items: center; font-family: var(--display);
  background: radial-gradient(circle at 50% 40%, rgba(255, 122, 26, .22), transparent 70%);
}
.gate-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 4px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.gate-badge b { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.gate-badge i { position: absolute; right: 20px; top: 26px; font-style: normal; font-size: 22px; font-weight: 900; color: var(--a1); }
.gate h2 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 5vw, 34px); line-height: 1.1; margin-bottom: 10px; }
.gate p { color: var(--soft); }
.gate-actions { display: grid; gap: 12px; margin: 26px 0 16px; }
.gate-actions .btn { width: 100%; white-space: normal; }
.gate .gate-note { font-size: 13px; color: var(--muted); }
.gate-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--edge); }
.gate-langs button { min-width: 42px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.gate-langs button.is-on { color: #1a0a02; background: var(--grad); }
.gate-langs button:not(.is-on):hover { color: var(--text); background: rgba(255, 255, 255, .07); }
html.age-ok .gate { opacity: 0; visibility: hidden; pointer-events: none; }
html.age-ok .gate-card { transform: translateY(-30px) scale(.96); opacity: 0; }
html.age-ok .gate-sky { transform: scale(1.12); }
html.js:not(.age-ok) #site { visibility: hidden; }

/* ---------- testata ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--pad); transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(6, 9, 20, .78); border-bottom-color: var(--edge); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.hdr-logo img { width: 150px; }
.hdr-nav { display: flex; gap: clamp(18px, 2.6vw, 38px); font-weight: 600; font-size: 15px; }
.hdr-nav a { position: relative; padding: 8px 0; color: var(--soft); transition: color .2s; }
.hdr-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.hdr-nav a:hover { color: var(--text); }
.hdr-nav a:hover::after { transform: scaleX(1); }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge-hi); font-weight: 700; font-size: 13px; letter-spacing: .06em; background: rgba(255, 255, 255, .04); }
.lang-btn:hover { background: rgba(255, 255, 255, .09); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; margin: 0; padding: 8px; list-style: none;
  border-radius: 18px; border: 1px solid var(--edge-hi); background: rgba(12, 16, 34, .96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--soft); text-align: left; }
.lang-menu button:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.lang-menu button.is-on { color: var(--a1); }
.lang-menu button i { font-style: normal; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.hdr-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--edge-hi); position: relative; }
.hdr-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.hdr-burger span:first-child { top: 16px; }
.hdr-burger span:last-child { top: 24px; }
.hdr-burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.hdr-burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- apertura ---------- */
.home-hero {
  position: relative; overflow: hidden; padding: calc(var(--hdr) + clamp(68px, 7vw, 108px)) 0 clamp(48px, 6vw, 90px);
  background: radial-gradient(ellipse 65% 65% at 76% 31%, rgba(255, 45, 111, .2), transparent 74%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(108, 64, 208, .17), transparent 70%),
    linear-gradient(145deg, #080b1b, #080b1b 54%, #160d27);
}
.home-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, transparent 23%, rgba(255, 255, 255, .035) 23.15%, transparent 23.35%),
    linear-gradient(68deg, transparent 75%, rgba(255, 178, 36, .055) 75.15%, transparent 75.35%);
}
.home-hero::after {
  content: ""; position: absolute; width: min(80vw, 1000px); aspect-ratio: 1; right: -19%; top: -52%; pointer-events: none;
  border: 1px solid rgba(255, 178, 36, .12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255, 178, 36, .018), 0 0 0 160px rgba(255, 178, 36, .012);
}
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(36px, 6vw, 88px); }
.hero-copy { max-width: 600px; }
.hero-copy h1 {
  margin: 18px 0 25px; font-family: var(--display); font-weight: 900; font-size: clamp(54px, 6.5vw, 100px);
  line-height: .96; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance;
}
.hero-copy h1 span { display: block; }
.hero-lead { max-width: 520px; font-size: clamp(18px, 1.5vw, 22px); color: var(--soft); line-height: 1.48; }
.hero-copy .actions { margin-top: 32px; }
.hero-show { position: relative; min-width: 0; }
.hero-show::before {
  content: ""; position: absolute; inset: 6% -4% -4% 4%; border-radius: 32px; transform: rotate(4deg);
  border: 1px solid rgba(255, 178, 36, .45); background: linear-gradient(135deg, rgba(255, 178, 36, .11), rgba(255, 45, 111, .08));
}
.hero-show-card {
  position: relative; display: block; width: 100%; aspect-ratio: 1.1; overflow: hidden; text-align: left; padding: 0; color: var(--text); font: inherit; cursor: pointer;
  border: 1px solid rgba(255, 220, 149, .58); border-radius: clamp(22px, 3vw, 34px);
  background: var(--ink-2); box-shadow: 0 50px 100px -45px rgba(0, 0, 0, .9), 0 0 65px -28px rgba(255, 82, 86, .7);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-show-card:hover { transform: translateY(-5px); box-shadow: 0 56px 110px -42px rgba(0, 0, 0, .95), 0 0 80px -25px rgba(255, 82, 86, .8); }
.hero-show-card > img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s ease; }
.hero-show-card:hover > img { transform: scale(1.035); }
.hero-show-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 13, .62), transparent 33%, transparent 48%, rgba(4, 6, 13, .96)); }
.hero-show-top { position: absolute; top: clamp(16px, 2vw, 24px); left: clamp(16px, 2vw, 24px); right: clamp(16px, 2vw, 24px); display: flex; justify-content: space-between; gap: 12px; }
.hero-show-top span { padding: 7px 13px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 100px; background: rgba(7, 8, 22, .8); backdrop-filter: blur(12px); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-show-top span:last-child { border-color: var(--a1); color: var(--a1); }
.hero-show-bottom { position: absolute; bottom: clamp(18px, 2.4vw, 32px); left: clamp(18px, 2.4vw, 32px); right: clamp(18px, 2.4vw, 32px); display: grid; gap: 6px; }
.hero-show-bottom strong { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 3.6vw, 54px); line-height: .96; text-transform: uppercase; text-wrap: balance; text-shadow: 0 4px 25px #000; }
.hero-show-bottom > span:not(.hero-show-play) { max-width: 33em; color: var(--soft); font-size: 15px; line-height: 1.35; }
.hero-show-play { display: inline-flex; align-items: center; gap: 9px; justify-self: start; margin-top: 12px; color: var(--a1); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.hero-show-play svg { transition: transform .2s ease; }
.hero-show-card:hover .hero-show-play svg { transform: translateX(5px); }
.hero-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 42px); margin-top: clamp(56px, 7vw, 96px); }
.hero-fact { display: flex; gap: 18px; padding-top: 23px; border-top: 1px solid var(--edge-hi); }
.hero-fact-n { flex: none; color: var(--a1); font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1; }
.hero-fact strong { display: block; font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1.13; text-transform: uppercase; }
.hero-fact p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- nastro ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--edge); background: linear-gradient(90deg, #0a0f20, #131b3a 50%, #0a0f20); padding: 18px 0; position: relative; z-index: 2; }
.marquee-in { display: flex; width: max-content; gap: 0; animation: marquee 46s linear infinite; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee-in span { padding: 0 22px; color: rgba(255, 255, 255, .86); }
.marquee-in span:nth-child(even) { color: var(--a2); padding: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.sec { position: relative; padding: clamp(84px, 11vw, 150px) 0; scroll-margin-top: 40px; }
.sec-head { max-width: 780px; margin-bottom: clamp(34px, 5vw, 60px); }
.sec-head h2, .ops-card h2, .studio h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 5.2vw, 76px); line-height: .98; letter-spacing: -.01em; margin: 16px 0 18px; text-wrap: balance; }
.sec-head p, .ops-card > p:not(.eyebrow), .studio p:not(.eyebrow) { color: var(--soft); font-size: clamp(17px, 1.4vw, 20px); max-width: 38em; }
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- catalogo ---------- */
.games { background: radial-gradient(900px 500px at 85% 0%, rgba(255, 45, 111, .09), transparent 60%), radial-gradient(900px 600px at 0% 30%, rgba(70, 100, 255, .08), transparent 60%), var(--bg); }
.games .sec-head { max-width: 880px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button:not([hidden]) { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--edge-hi); font-weight: 700; font-size: 15px; color: var(--soft); background: rgba(255, 255, 255, .03); transition: color .2s, background-color .2s, border-color .2s; }
.filters button b { font-size: 12px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .09); color: var(--muted); }
.filters button:hover { color: var(--text); border-color: rgba(255, 255, 255, .34); }
.filters button.is-on { color: #1a0a02; background: var(--grad); border-color: transparent; }
.filters button.is-on b { background: rgba(26, 10, 2, .18); color: #1a0a02; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.card {
  display: flex; flex-direction: column; min-width: 0; text-align: left; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--edge); background: linear-gradient(180deg, #131a36, #0a0f20);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: rgba(255, 178, 36, .56); box-shadow: 0 24px 52px -28px rgba(255, 106, 43, .52); }
.card-art { position: relative; display: block; aspect-ratio: 1.15; overflow: hidden; background: var(--ink-1); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-art img { transform: scale(1.045); }
.card-new { position: absolute; left: 12px; bottom: 12px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; color: #1a0a02; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .7); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-top strong { min-width: 0; font-family: var(--display); font-weight: 900; font-size: 21px; text-transform: uppercase; line-height: 1.1; }
.chip { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip-slot { color: var(--slot-ink); background: var(--slot-bg); }
.chip-crash { color: #ffb7a0; background: rgba(255, 90, 60, .16); }
.chip-climb { color: #ffd58a; background: rgba(255, 178, 36, .14); }
.chip-classic { color: #b8c4ff; background: rgba(110, 130, 255, .16); }
.chip-gameshow { color: var(--show-ink); background: var(--show-bg); }
.card-desc { color: var(--muted); font-size: 14.5px; line-height: 1.45; flex: 1; }
.card-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--edge); font-weight: 700; font-size: 15px; }
.card-stats i { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 5px; }
.card-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border: 1px solid var(--edge-hi); border-radius: 10px; color: var(--text); font-weight: 700; font-size: 14px; transition: background-color .2s ease, border-color .2s ease; }
.card:hover .card-cta, .card:focus-visible .card-cta { border-color: var(--a1); background: rgba(255, 178, 36, .1); }
.games-note { margin-top: 26px; font-size: 13px; color: var(--muted); }

/* ---------- tecnologia ---------- */
.tech { background: linear-gradient(180deg, var(--bg), #070b1a 40%, var(--bg)); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.tile {
  position: relative; overflow: hidden; padding: clamp(24px, 2.6vw, 36px); border-radius: 26px; border: 1px solid var(--edge);
  background: linear-gradient(160deg, rgba(26, 35, 71, .7), rgba(10, 15, 32, .8));
  transition: border-color .3s ease, transform .9s cubic-bezier(.2, .7, .2, 1), opacity .8s ease;
}
.tile::before { content: ""; position: absolute; width: 280px; height: 280px; right: -110px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 43, .22), transparent 68%); transition: transform .6s ease, opacity .4s; opacity: .55; }
.tile:hover { border-color: rgba(255, 150, 60, .45); }
.tile:hover::before { transform: scale(1.35); opacity: 1; }
.tile-wide { grid-column: span 2; }
.tile-ic { width: 46px; height: 46px; margin-bottom: 22px; position: relative; }
.tile h3 { font-family: var(--display); font-weight: 900; font-size: clamp(21px, 1.8vw, 26px); text-transform: uppercase; line-height: 1.08; margin-bottom: 10px; position: relative; }
.tile p { color: var(--muted); font-size: 16px; position: relative; max-width: 34em; }
.hash { position: relative; margin-top: 22px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--edge); background: rgba(4, 6, 13, .55); font-size: 13px; max-width: 100%; }
.hash span { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; font-size: 11px; }
.hash code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash em { font-style: normal; color: var(--cash); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(30px, 4vw, 54px); border-top: 1px solid var(--edge); }
.stats strong { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- operatori ---------- */
.ops { padding-top: 0; }
.ops-card {
  position: relative; overflow: hidden; padding: clamp(36px, 7vw, 96px); border-radius: clamp(28px, 4vw, 48px);
  border: 1px solid var(--edge-hi);
  background: radial-gradient(900px 500px at 0% 0%, rgba(255, 122, 26, .22), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(255, 45, 111, .2), transparent 60%), linear-gradient(160deg, #141c40, #070a18);
}
.ops-card > * { position: relative; }
.ops-card h2 { max-width: 11em; }
.ops-card .actions { margin-top: 34px; gap: 22px; }
.ops-mail { font-weight: 700; font-size: 18px; border-bottom: 2px solid rgba(255, 255, 255, .25); padding-bottom: 2px; transition: border-color .2s; }
.ops-mail:hover { border-color: var(--a1); }
.ops-card > .ops-moon { position: absolute; width: min(560px, 60%); aspect-ratio: 1; right: -12%; bottom: -34%; background: url("hero/moon-m.webp") center / contain no-repeat; opacity: .5; animation: spin 240s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- studio ---------- */
.studio { padding-top: 0; }
.studio-in { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); }
.studio-mark { display: grid; place-items: center; aspect-ratio: 1.3; border-radius: 36px; border: 1px solid var(--edge); background: radial-gradient(circle at 50% 50%, rgba(255, 106, 43, .16), transparent 62%), #080c1c; }
.studio-mark img { width: 58%; filter: drop-shadow(0 20px 50px rgba(255, 90, 60, .45)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

/* ---------- piede ---------- */
.ftr { border-top: 1px solid var(--edge); background: #03050b; padding: 54px 0 34px; }
.ftr-in { display: grid; gap: 30px; }
.ftr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ftr-logo img { width: 160px; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; font-size: 15px; color: var(--soft); }
.ftr-nav a:hover { color: var(--a1); }
.ftr-rg { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 20px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .02); }
.ftr-rg p { color: var(--muted); font-size: 14px; }
.badge18 { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 15px; border: 2px solid var(--a2); color: var(--a1); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.svg-defs { position: absolute; }

/* ---------- finestra della demo ---------- */
.demo { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: rgba(3, 5, 11, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } }
.demo-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 64px; padding: 0 clamp(12px, 2.4vw, 28px); border-bottom: 1px solid var(--edge); background: rgba(8, 11, 24, .8); }
.demo-note { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.tool { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--edge); color: var(--soft); background: rgba(255, 255, 255, .03); transition: color .2s, background-color .2s, border-color .2s; }
.tool:hover { color: var(--text); background: rgba(255, 255, 255, .09); border-color: var(--edge-hi); }
.tool-close:hover { color: #fff; background: #e8294b; border-color: transparent; }
.tool-view .ic-desk { display: none; }
.demo.is-phone .tool-view .ic-desk { display: block; }
.demo.is-phone .tool-view .ic-phone { display: none; }
.demo-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: clamp(10px, 2vw, 26px); }
.demo-frame { position: relative; width: min(1320px, 100%); height: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--edge-hi); background: #05070f; box-shadow: 0 50px 140px -40px rgba(255, 106, 43, .35), 0 30px 80px -30px #000; transition: width .45s cubic-bezier(.2, .7, .2, 1), border-radius .45s; animation: pop .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pop { from { transform: scale(.95) translateY(16px); opacity: 0; } }
.demo.is-phone .demo-frame { width: min(430px, 100%); border-radius: 38px; border-width: 8px; border-color: #1b2140; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #05070f; }
.demo-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); font-weight: 600; font-size: 14px; letter-spacing: .08em; z-index: 1; background: #05070f; transition: opacity .4s ease, visibility 0s linear .4s; }
.demo-launch-page { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.demo-launch { display: grid; justify-items: center; gap: 18px; width: min(90vw, 480px); padding: 40px 24px; text-align: center; }
.demo-launch img { width: min(62vw, 280px); height: auto; }
.demo-launch h1 { font-family: var(--display); font-size: clamp(26px, 6vw, 42px); line-height: 1; text-transform: uppercase; }
.demo-launch p { color: var(--muted); }
.demo-launch a { color: var(--a1); font-weight: 700; text-decoration: underline; }
.demo-launch-spinner { width: 46px; height: 46px; border: 3px solid var(--edge-hi); border-top-color: var(--a1); border-radius: 50%; animation: demo-launch-turn .8s linear infinite; }
@keyframes demo-launch-turn { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .demo-launch-spinner { animation: none; border-top-color: var(--edge-hi); } }
.demo-load i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--a2); animation: spin .8s linear infinite; }
.demo-frame.is-ready .demo-load { opacity: 0; visibility: hidden; }

/* ---------- schermi stretti ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --hdr: 62px; }
  body { font-size: 16px; }
  .hdr-logo img { width: 124px; }
  .hdr-cta { display: none; }
  .hdr-burger { display: block; }
  .hdr-nav {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 90px var(--pad) 40px; background: rgba(4, 6, 13, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    font-family: var(--display); font-weight: 900; font-size: 38px; text-transform: uppercase;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .hdr-nav a { color: var(--text); padding: 8px 0; }
  .hdr.is-open .hdr-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .home-hero { padding-top: calc(var(--hdr) + 44px); }
  .hero-layout { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy h1 { font-size: clamp(46px, 10vw, 74px); }
  .hero-show { max-width: 620px; }
  .hero-facts { gap: 18px; }
  .hero-fact { gap: 10px; }
  .hero-fact strong { font-size: 16px; }
  .hero-fact p { font-size: 13px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { border-radius: 18px; }
  .card-body { padding: 13px; gap: 8px; }
  .card-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .card-top strong { font-size: 18px; }
  .card-desc { font-size: 13px; }
  .card-stats { font-size: 13px; gap: 3px 10px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .studio-in { grid-template-columns: 1fr; }
  .studio-mark { aspect-ratio: 2; }
  .studio-mark img { width: 40%; }
  .ops-moon { width: 80%; right: -30%; bottom: -24%; opacity: .32; }
  .demo-bar { height: 56px; }
  .demo-note, .tool-view { display: none; }
  .demo-stage { padding: 0; }
  .demo-frame, .demo.is-phone .demo-frame { width: 100%; border-radius: 0; border: 0; }
}
@media (max-width: 560px) {
  .hero-copy h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .hero-lead { font-size: 17px; }
  .hero-copy .actions { gap: 10px; }
  .hero-copy .btn { flex: 1 1 0; padding: 0 14px; font-size: 14px; }
  .hero-show-card { aspect-ratio: .96; }
  .hero-show-bottom strong { font-size: clamp(30px, 8vw, 42px); }
  .hero-facts { grid-template-columns: 1fr; margin-top: 46px; }
  .hero-fact { gap: 16px; padding-top: 16px; }
  .hero-fact p { font-size: 14px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card { display: grid; grid-template-columns: minmax(116px, 38%) minmax(0, 1fr); }
  .card-art { aspect-ratio: auto; height: 100%; }
  .card-body { padding: 14px; }
  .card-top strong { font-size: 19px; }
  .card-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .card-stats { padding-top: 8px; }
  .card-cta { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-in, .ops-moon, .studio-mark img { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .hero-show-card, .hero-show-card > img { transition: none; }
}
