:root {
  --bg: #0b0b0c;
  --card: #131315;
  --card-2: #18181b;
  --line: #222226;
  --line-2: #2e2e33;
  --text: #f4f4f5;
  --muted: #8b8b94;
  --lime: #d4ff3f;
  --r: 20px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lime { color: var(--lime); }
.ic { width: 18px; height: 18px; flex-shrink: 0; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 500 15px var(--font); border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lime { background: var(--lime); color: #0b0b0c; }
.btn--lime:hover { background: #e2ff7a; }
.btn--lime .ic { transition: transform .2s; }
.btn--lime:hover .ic { transform: translate(2px, -2px); }
.btn--line { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--line:hover { border-color: #55555c; background: var(--card); }
.btn--dark { background: #0b0b0c; color: var(--text); }
.btn--dark:hover { background: #1d1d20; }
.btn--dark-line { background: transparent; border-color: rgba(0,0,0,.25); color: #0b0b0c; }
.btn--dark-line:hover { border-color: #0b0b0c; }

/* Navbar */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(11, 11, 12, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-color: var(--line); }
.nav__in { display: flex; align-items: center; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.logo__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: #0b0b0c; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.logo__txt { font-size: 15px; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(19, 19, 21, .6); }
.nav__links a { padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: var(--card-2); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; font: 500 12px var(--mono); }
.lang button { background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; font: inherit; }
.lang button.on { color: var(--text); }

/* Hero */
.hero { padding-top: 150px; padding-bottom: 40px; }
.avail { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.avail__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.avail__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--lime); opacity: .5; animation: ring 2.4s ease-out infinite; }
.hero__title { font-size: clamp(48px, 9.2vw, 128px); line-height: .92; font-weight: 600; letter-spacing: -.045em; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero__sub { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Card base con riflesso che segue il mouse */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .25s; }
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .055), transparent 60%); }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.label { display: block; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; margin-top: 64px; }
.b-photo { grid-row: span 2; }
.b-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 60%; transition: transform .6s ease; }
.b-photo:hover img { transform: scale(1.04); }
.b-photo figcaption { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(11, 11, 12, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; }
.b-photo figcaption .ic { width: 14px; height: 14px; color: var(--lime); }
.b-about { grid-column: span 2; padding: 26px; }
.b-about p { font-size: 18px; line-height: 1.5; }
.b-time { padding: 26px; display: flex; flex-direction: column; }
.clock { font: 500 52px/1 var(--mono); letter-spacing: -.04em; margin-top: auto; margin-bottom: 8px; }
.b-stack { grid-column: span 2; padding: 26px; }
.stack { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.stack li { position: relative; display: grid; place-items: center; height: 46px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); color: #a9a9b2; transition: color .2s, border-color .2s, transform .2s; }
.stack li:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-2px); }
.stack svg { width: 22px; height: 22px; }
.stack span { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--text); color: #0b0b0c; font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 2; }
.stack li:hover span { opacity: 1; }
.b-stack { overflow: visible; }
.b-gh { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.b-gh__top { display: flex; justify-content: space-between; align-items: flex-start; }
.gh { width: 38px; height: 38px; }
.b-gh .arrow { color: var(--muted); transition: transform .2s, color .2s; }
.b-gh:hover .arrow { color: var(--lime); transform: translate(2px, -2px); }
.b-gh__user { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* Sezioni */
.section { padding-top: 110px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.sec-head p { max-width: 420px; font-size: 15px; }

/* Progetti */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project { display: flex; flex-direction: column; }
.project__view { height: 250px; margin: 10px 10px 0; border-radius: 13px; background: #0f0f11; border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.project__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.project h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.project__tag { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px; }
.project__tag--open { color: #0b0b0c; background: var(--lime); border-color: var(--lime); }
.project p { color: var(--muted); font-size: 15px; }
.project__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 12px var(--mono); color: #b4b4bc; padding: 4px 9px; border-radius: 7px; background: var(--card-2); }
.project__link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--lime); }
.project__link .ic { width: 16px; height: 16px; transition: transform .2s; }
.project__link:hover .ic { transform: translate(2px, -2px); }

/* Anteprime disegnate */
.ui { font-family: var(--font); color: var(--text); }
.win { width: 82%; height: 78%; border-radius: 10px; background: var(--card); border: 1px solid var(--line-2); display: flex; flex-direction: column; overflow: hidden; transition: transform .4s ease; }
.project:hover .win, .project:hover .phone { transform: translateY(-4px); }
.win__bar { display: flex; gap: 5px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.win__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.win__body { flex: 1; padding: 12px; display: flex; gap: 10px; min-height: 0; }
.bar { height: 7px; border-radius: 4px; background: var(--line-2); }
.bar--lime { background: var(--lime); }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }

/* Gym */
.gym-list { flex: 1.3; display: flex; flex-direction: column; gap: 9px; }
.gym-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; background: var(--card-2); }
.gym-row b { width: 16px; height: 16px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.gym-row .bar { flex: 1; }
.gym-row em { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.gym-row em.off { background: var(--line-2); }
.gym-badge { flex: 1; border-radius: 9px; border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--card-2); }
.gym-badge svg { width: 34px; height: 34px; color: var(--lime); }
.gym-badge span { font: 500 10px var(--mono); padding: 3px 8px; border-radius: 999px; background: var(--lime); color: #0b0b0c; }

/* Kursor */
.phone { width: 120px; height: 210px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--card); padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; transition: transform .4s ease; position: relative; }
.phone__status { display: flex; justify-content: space-between; font: 500 8px var(--mono); color: var(--muted); }
.phone__status b { color: var(--lime); font-weight: 500; }
.phone__pad { flex: 1; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); position: relative; }
.phone__pad i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(212, 255, 63, .2); border: 1px solid var(--lime); left: 52%; top: 40%; }
.phone__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone__btns span { height: 24px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); }
.kursor { display: flex; align-items: center; gap: 34px; }
.monitor { width: 150px; height: 100px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); position: relative; }
.monitor::after { content: ''; position: absolute; left: 50%; bottom: -18px; width: 40px; height: 18px; transform: translateX(-50%); border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 4px 4px; }
.monitor svg { position: absolute; width: 18px; height: 18px; color: var(--text); left: 58%; top: 38%; }
.wave { font: 500 10px var(--mono); color: var(--muted); letter-spacing: .3em; }

/* Ratiora */
.rat-side { width: 22%; display: flex; flex-direction: column; gap: 8px; padding-right: 8px; border-right: 1px solid var(--line); }
.rat-main { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rat-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rat-kpis div { padding: 7px; border-radius: 7px; background: var(--card-2); display: flex; flex-direction: column; gap: 5px; }
.rat-kpis strong { font: 600 13px var(--font); }
.rat-kpis strong.up { color: var(--lime); }
.rat-chart { flex: 1; display: flex; align-items: flex-end; gap: 5px; padding: 6px; border-radius: 7px; background: var(--card-2); }
.rat-chart i { flex: 1; border-radius: 3px 3px 0 0; background: var(--line-2); }
.rat-chart i.on { background: var(--lime); }
.h20 { height: 20%; } .h35 { height: 35%; } .h45 { height: 45%; } .h55 { height: 55%; } .h65 { height: 65%; } .h75 { height: 75%; } .h90 { height: 90%; }

/* MuteBox */
.mute { display: flex; align-items: center; gap: 26px; }
.mute__phone { gap: 7px; }
.mute__row { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); }
.mute__row b { width: 12px; height: 12px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.mute__row .bar { flex: 1; height: 5px; }
.mute__row em { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.mute__row.on { border-color: var(--lime); }
.mute__row.on b, .mute__row.on em { background: var(--lime); }
.mute__row.off { opacity: .55; }
.mute__time { margin-top: auto; text-align: center; font: 500 9px var(--mono); color: var(--muted); }
.mute__bell { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 255, 63, .12); border: 1px solid var(--lime); color: var(--lime); transition: transform .4s ease; }
.mute__bell svg { width: 28px; height: 28px; }
.project:hover .mute__bell { transform: rotate(-12deg); }

/* Kloudy */
.tree { width: 34%; display: flex; flex-direction: column; gap: 8px; padding-right: 8px; border-right: 1px solid var(--line); }
.tree__dir { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tree__dir svg { width: 12px; height: 12px; flex-shrink: 0; }
.tree__dir .bar { flex: 1; }
.tree__dir.on { color: var(--lime); }
.tree__dir.sub { padding-left: 12px; }
.files { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.file { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; background: var(--card-2); }
.file span { font: 500 8px var(--mono); padding: 2px 5px; border-radius: 4px; background: var(--line-2); color: var(--text); flex-shrink: 0; }
.file:first-child span { background: var(--lime); color: #0b0b0c; }
.file div.bar { flex: 1; }
.file em.bar { flex-shrink: 0; width: 18%; }

/* Urban Chaos Studio */
.urban { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px 24px; background: radial-gradient(circle at 50% 50%, #18181b, #0f0f11 70%); }
.urban .shards { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s ease; }
.project:hover .urban .shards { transform: scale(1.06); }
.urban__title { position: relative; font: 700 28px/1 var(--font); letter-spacing: -.02em; color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }

/* Agriturismo */
.cal { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.cal__head { display: flex; justify-content: space-between; align-items: center; }
.cal__head strong { font-size: 12px; font-weight: 600; }
.cal__grid { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__grid i { border-radius: 4px; background: var(--card-2); }
.cal__grid i.b { background: rgba(212, 255, 63, .22); }
.cal__grid i.s { background: var(--lime); }
.cal__grid i.x { background: transparent; }
.rooms { width: 34%; display: flex; flex-direction: column; gap: 7px; }
.room { padding: 7px; border-radius: 7px; background: var(--card-2); display: flex; flex-direction: column; gap: 5px; }

/* Timer */
.timer { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.timer__digits { font: 500 54px/1 var(--mono); letter-spacing: -.04em; }
.timer__digits span { color: var(--muted); }
.timer__subj { display: flex; gap: 6px; }
.timer__subj span { font: 500 11px var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.timer__subj span.on { border-color: var(--lime); color: var(--lime); }
.timer__track { width: 240px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.timer__track i { display: block; height: 100%; width: 64%; background: var(--lime); }

/* Percorso */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.journey li { padding: 26px; display: flex; flex-direction: column; gap: 8px; min-height: 210px; }
.when { font: 500 13px var(--mono); color: var(--lime); }
.journey h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: auto; }
.journey p { font-size: 15px; }

/* Contatti */
.cta { background: var(--lime); color: #0b0b0c; border-radius: 28px; padding: clamp(32px, 6vw, 72px); }
.cta__kicker { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-bottom: 18px; }
.cta__title { font-size: clamp(36px, 6vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -.045em; max-width: 13ch; }
.cta__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.cta__social { display: flex; gap: 22px; margin-top: 28px; font-weight: 500; }
.cta__social a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.cta__social a:hover { border-color: #0b0b0c; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 48px; padding-bottom: 40px; font-size: 14px; }

@keyframes ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }

/* Responsive */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .b-photo { grid-row: span 2; min-height: 380px; }
  .b-about, .b-stack { grid-column: span 2; }
  .b-time, .b-gh { min-height: 180px; }
  .b-photo { order: -1; grid-column: span 1; }
  .nav__links { display: none; }
  .nav__right { margin-left: auto; }
}
@media (max-width: 760px) {
  .hero { padding-top: 120px; }
  .projects, .journey { grid-template-columns: 1fr; }
  .logo__txt { display: none; }
  .stack { grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .stack li { height: 40px; }
  .kursor { gap: 16px; }
  .monitor { width: 110px; height: 76px; }
  .phone { width: 100px; height: 176px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-photo { grid-column: span 2; grid-row: auto; height: 380px; }
  .b-photo img { object-position: 60% 78%; }
  .avail { margin-left: 4px; }
  .journey li { min-height: 0; }
  .journey h3 { margin-top: 8px; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .gym-row:nth-child(4) { display: none; }
  .hero__cta, .hero__cta .btn { width: 100%; }
  .stack { grid-template-columns: repeat(5, 1fr); }
  .stack li { height: 48px; }
  .project__view { height: 210px; }
  .timer__digits { font-size: 42px; }
  .clock { font-size: 40px; }
  .cta__actions .btn { width: 100%; font-size: 14px; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
