/* Naighbor · anteprime in stile EquitiFy — base condivisa.
   Progettata prima a 390 px; i ritocchi per il computer sono nei media query min-width. */

@font-face { font-family: "Aspekta"; src: url("../fonts/Aspekta-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("../fonts/Aspekta-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("../fonts/Aspekta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("../fonts/Aspekta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --accent: #D9663F;
  --accent-deep: #B9502D;
  --navy: #14213D;
  --light: #FBFBFB;
  --black: #000;
  --ink: #0A0A0A;
  --body: #534F4D;
  --body-dark: #A39E9A;
  --line: rgba(0, 0, 0, .1);
  --line-dark: rgba(255, 255, 255, .14);
  --gut: 20px;
  --title: 40px;
  --hero: 40px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 768px) { :root { --gut: 32px; --title: 52px; --hero: 64px; } }
@media (min-width: 1200px) { :root { --gut: 40px; --title: 64px; --hero: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--light); color: var(--ink);
  font: 400 15px/1.55 "Aspekta", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografia ---------- */
.t-hero { font-size: var(--hero); line-height: 1; letter-spacing: -.03em; font-weight: 400; }
.t-title { font-size: var(--title); line-height: 1; letter-spacing: -.03em; font-weight: 400; text-wrap: balance; }
.t-h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; font-weight: 500; }
.t-body { color: var(--body); font-size: 15px; line-height: 1.6; max-width: 46ch; }
.dark .t-body, .t-body.on-dark { color: var(--body-dark); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
}
.label::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.dark .label { color: #fff; }

/* ---------- sezioni e griglia ---------- */
.sec { position: relative; overflow-x: clip; }
.sec.dark { background: var(--black); color: #fff; }
.wrap { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.frame { position: relative; border-inline: 1px solid var(--line); }
.dark .frame { border-color: var(--line-dark); }
.hl { border-top: 1px solid var(--line); }
.dark .hl { border-color: var(--line-dark); }
.pad { padding: 64px 20px; }
@media (min-width: 768px) { .pad { padding: 96px 40px; } }
@media (min-width: 1200px) { .pad { padding: 120px 56px; } }

/* segni di registro: piccole croci arancioni agli incroci della griglia */
.mk { position: absolute; width: 11px; height: 11px; margin: -5px 0 0 -5px; pointer-events: none; z-index: 2; }
.mk::before, .mk::after { content: ""; position: absolute; background: var(--accent); }
.mk::before { left: 5px; top: 0; width: 1px; height: 11px; }
.mk::after { top: 5px; left: 0; height: 1px; width: 11px; }
.mk.tl { left: 0; top: 0; } .mk.tr { left: 100%; top: 0; } .mk.bl { left: 0; top: 100%; } .mk.br { left: 100%; top: 100%; }

/* ---------- pulsanti ---------- */
.btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 500; font-size: 15px;
  border: 0; cursor: pointer; transition: background .25s var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--accent-deep); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.btn-round {
  width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: #fff; color: #000; border: 0; cursor: pointer;
}
.on-light .btn-round, .btn-round.ink { background: #000; color: #fff; }
.btn-round svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn-round:hover svg { transform: rotate(-45deg); }

/* ---------- navbar a pillola sfocata ---------- */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 12px; right: 12px; margin: 0 auto; max-width: 1180px;
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 6px 0 18px; border-radius: var(--r-pill);
  background: rgba(251, 251, 251, .86); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.nav .logo svg { height: 30px; width: auto; }
.nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 28px; font-size: 14px; }
.nav ul a { color: #2a2725; }
.nav ul a:hover { color: var(--accent); }
.nav .btn { height: 44px; padding: 0 18px; font-size: 14px; }
@media (min-width: 900px) { .nav ul { display: flex; } .nav { padding-left: 24px; } }
.nav.dark-nav { background: rgba(10, 10, 10, .55); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.nav.dark-nav ul a { color: #e9e6e3; }

/* ---------- hero con immagine a tutto schermo ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; background: #000; color: #fff; overflow: clip; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; }
.hero img.cover, .hero video.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78) 80%, #000 100%); }
@media (min-width: 768px) { .hero img.cover { object-position: 100% 50%; } .hero video.cover { object-position: 50% 50%; } .hero .shade { background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.6) 100%); } }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gut) 92px; max-width: 1440px; margin: 0 auto; }
.hero-copy .t-body { color: #CFCAC6; margin: 18px 0 24px; max-width: 40ch; font-size: 14.5px; }
.nb { white-space: nowrap; }
.dbr { display: none; }
@media (min-width: 768px) { .dbr { display: inline; } }
@media (min-width: 768px) { .hero-copy { padding-bottom: 120px; } }

/* RotatingText: parola che ruota lettera per lettera */
.rot { display: block; position: relative; color: var(--accent); white-space: nowrap; }
.rot .w { display: inline-flex; }
.rot .rc { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.rot .rc > i { display: inline-block; font-style: normal; will-change: transform; }

/* ---------- celle con numeri ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { position: relative; padding: 28px 18px 24px; border-top: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat .n { font-size: 48px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .n small { font-size: .5em; letter-spacing: -.01em; margin-left: 2px; }
.stat p { color: var(--body); font-size: 13.5px; line-height: 1.45; margin-top: 12px; max-width: 22ch; }
.dark .stat { border-color: var(--line-dark); } .dark .stat p { color: var(--body-dark); }
@media (min-width: 1000px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 40px 32px 36px; border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .stat .n { font-size: 72px; }
}

/* ---------- aree (servizi su nero) ---------- */
.areas { display: grid; grid-template-columns: 1fr; }
.area { position: relative; padding: 28px 20px 30px; border-top: 1px solid var(--line-dark); }
.area .ico { width: 36px; height: 36px; color: var(--accent); margin-bottom: 22px; }
.area .ico svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.area h3 { font-size: 19px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.area p { color: var(--body-dark); font-size: 14px; line-height: 1.55; margin-top: 10px; max-width: 34ch; }
.area .cnt { margin-top: 18px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: #fff; opacity: .7; }
@media (min-width: 640px) { .areas { grid-template-columns: 1fr 1fr; } .area:nth-child(odd) { border-right: 1px solid var(--line-dark); } }
@media (min-width: 1100px) { .areas { grid-template-columns: repeat(4, 1fr); } .area { border-right: 1px solid var(--line-dark); padding: 40px 32px 44px; } .area:nth-child(4n) { border-right: 0; } }

/* ---------- carosello schede ---------- */
.car { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 20px; }
.car::-webkit-scrollbar { display: none; }
.car-track { display: flex; gap: 12px; padding: 0 20px 8px; width: max-content; }
.card { flex: none; width: min(80vw, 380px); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; color: var(--ink); }
.card .ph { aspect-ratio: 4 / 3; background: #EDEBE9; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; padding: 18px 18px 12px; }
.card dl { margin: 0; padding: 0 18px 16px; font-size: 13.5px; }
.card dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.card dt { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #8A8480; padding-top: 2px; }
.card dd { margin: 0; color: #2A2725; }
@media (min-width: 768px) { .card { width: 44vw; } .car-track { padding: 0 40px 8px; gap: 16px; } .car { scroll-padding-inline: 40px; } }
@media (min-width: 1200px) { .card { width: calc((min(100vw, 1440px) - 144px) / 3.3); } .car-track { padding: 0 56px 8px; } .car { scroll-padding-inline: 56px; } }
.car.is-drag { overflow: hidden; scroll-snap-type: none; cursor: grab; touch-action: pan-y; }
.car.is-drag.down { cursor: grabbing; }
.car.is-drag img { pointer-events: none; -webkit-user-drag: none; }
.car-ctl { display: flex; gap: 8px; }
.car-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.car-ctl svg { width: 16px; height: 16px; }

/* ---------- piani ---------- */
.plans { display: grid; grid-template-columns: 1fr; }
.plan { position: relative; padding: 28px 20px 30px; border-top: 1px solid var(--line); }
.plan .pn { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 17px; }
.plan .tag { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 5px 9px; border-radius: 99px; }
.plan .pr { font-size: 56px; letter-spacing: -.04em; line-height: 1; margin: 18px 0 6px; }
.plan .pr span { font-size: 15px; letter-spacing: 0; color: var(--body); margin-left: 6px; }
.plan .who { color: var(--body); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; }
.plan li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.plan li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; background: var(--accent); flex: none; }
.dark .plan { border-color: var(--line-dark); } .dark .plan li { border-color: var(--line-dark); } .dark .plan .pr span, .dark .plan .who { color: var(--body-dark); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } .plan { padding: 40px 32px; border-right: 1px solid var(--line); } .plan:last-child { border-right: 0; } .dark .plan { border-right-color: var(--line-dark); } }
.fine { font-size: 12.5px; color: var(--body); padding: 18px 20px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .fine { padding: 20px 32px; } }

/* ---------- banner a tutto schermo ---------- */
.banner { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; background: #000; overflow: clip; }
.banner .bg { position: absolute; inset: 0; }
.banner .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: blur(5px); transform: scale(1.04); }
.banner .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.banner .bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.2) 100%); }
.banner .in { position: relative; padding: 96px 24px; max-width: 900px; }
.banner .t-body { color: #D3CECA; margin: 22px auto 30px; }
.banner .btns { justify-content: center; }
.banner .label { color: #fff; }

/* ---------- footer nero ---------- */
.foot { background: #000; color: #fff; position: relative; overflow: clip; padding-bottom: 72px; /* spazio per la barra delle anteprime */ }
.ix { padding-bottom: 72px; }
.foot .big { font-size: 48px; line-height: .98; letter-spacing: -.035em; max-width: 12ch; }
.foot .emb { width: 200px; margin: 8px 0 0 auto; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 72px 20px 48px; }
.news { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: var(--r-pill); background: #141414; box-shadow: inset 0 0 0 1px var(--line-dark); max-width: 520px; }
.news input { flex: 1; min-width: 0; width: 100%; height: 44px; padding: 0 14px; background: transparent; border: 0; outline: 0; color: #fff; }
.news input::placeholder { color: #8F8A86; }
.news .btn { height: 44px; padding: 0 18px; font-size: 14px; }
.foot-bot { display: grid; gap: 18px; padding: 28px 20px 32px; border-top: 1px solid var(--line-dark); font-size: 13px; color: #9C9692; }
.foot-bot .logo svg { height: 34px; width: auto; }
.foot-bot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-bot a:hover { color: #fff; }
@media (min-width: 900px) {
  .foot .big { font-size: 96px; }
  .foot-top { grid-template-columns: 1.4fr 1fr; align-items: end; padding: 120px 56px 72px; }
  .foot .emb { width: 300px; }
  .foot-bot { grid-template-columns: auto 1fr auto; align-items: center; padding: 28px 56px 36px; }
  .foot-bot nav { justify-content: center; }
}

/* ---------- barra per passare da un'anteprima all'altra ---------- */
.sw {
  position: fixed; z-index: 60; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: var(--r-pill);
  background: rgba(14, 14, 14, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; font-size: 13px; max-width: calc(100vw - 16px);
}
.sw a { height: 38px; min-width: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--r-pill); color: #D8D4D0; white-space: nowrap; }
.sw a:hover { color: #fff; }
.sw a[aria-current] { background: var(--accent); color: #fff; }
.sw .ix { padding: 0 14px; }
@media (max-width: 479px) { .sw a { min-width: 32px; padding: 0 6px; } .sw .ix { padding: 0 10px; } }

/* ---------- movimento ridotto: pagina ferma e completa ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Counter / Number Ticker: colonne di cifre */
.roll { position: relative; display: inline-block; height: 1em; overflow: hidden; line-height: 1; vertical-align: top; }
.roll .sz { visibility: hidden; }
.roll .strip { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; }
.roll .strip span { display: block; height: 1em; line-height: 1; }

/* cortina */
.curtain { position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: transform; }

/* ---------- processo con dischi isometrici in SVG ---------- */
.proc { display: grid; gap: 28px; }
.proc .art { justify-self: center; width: min(250px, 70vw); }
.proc .art svg { width: 100%; height: auto; overflow: visible; }
.step { position: relative; padding: 20px 0 0; border-top: 1px solid var(--line); }
.step .no { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.step h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; margin: 10px 0 8px; }
.step p { color: var(--body); font-size: 14.5px; max-width: 36ch; }
.dark .step { border-color: var(--line-dark); } .dark .step p { color: var(--body-dark); }
@media (min-width: 900px) {
  .proc { grid-template-columns: 1fr 320px 1fr; grid-template-rows: repeat(4, 140px); gap: 0 56px; align-items: center; }
  .proc .art { grid-column: 2; grid-row: 1 / 5; width: 320px; }
  .step { border-top: 0; padding: 0; transition: opacity .4s; }
  .motion .step { opacity: .38; }
  .motion .step.on { opacity: 1; }
  .step:nth-of-type(odd) { grid-column: 1; text-align: right; justify-self: end; }
  .step:nth-of-type(even) { grid-column: 3; }
  .step:nth-of-type(1) { grid-row: 1; } .step:nth-of-type(2) { grid-row: 2; } .step:nth-of-type(3) { grid-row: 3; } .step:nth-of-type(4) { grid-row: 4; }
  .step:nth-of-type(odd) p { margin-left: auto; }
}
